Commit 7ff7b1f3 authored by 赵啸非's avatar 赵啸非

添加服务追踪

parent ff88c2ff
......@@ -269,11 +269,12 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
private boolean checkCareServiceMaxNum(CareConfigEntity careConfigEntity) {
Integer maxServicePersonNum = careConfigEntity.getMaxServicePersonNum();
CareRecordsQuery careRecordsQuery = new CareRecordsQuery();
careRecordsQuery.setCareCountStart(1);
careRecordsQuery.setCreateTimeStart(DateUtils.getCurrStrDate());
careRecordsQuery.setCreateTimeEnd(DateUtils.getCurrStrDate());
int dayServiceNum = careRecordsService.count(careRecordsQuery, null);
if (dayServiceNum > maxServicePersonNum) {
log.info("关怀服务人数超过最大数量!");
log.info("关怀服务人数超过最大数量!当天关怀人数:{},配置最大关怀人数:{}",dayServiceNum,maxServicePersonNum);
return true;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment