Commit 5ce71787 authored by zhangwanglin's avatar zhangwanglin

Merge branch 'dev_nursing_records_20230214' into dev_ch_master

parents 08276518 1efeb27c
...@@ -279,7 +279,10 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -279,7 +279,10 @@ public class SrvTaskServiceImpl implements SrvTaskService {
Long modeId = srvPlanInputVO.getModeId(); Long modeId = srvPlanInputVO.getModeId();
if (CollectionUtil.isNotEmpty(chSrvTaskDetailList)) { if (CollectionUtil.isNotEmpty(chSrvTaskDetailList)) {
if(modeId == 3){ if(modeId == 3){
return Result.failed("手机app已有计划,不可重复生成"); int status = chSrvTaskDetailList.stream().map(ChSrvTaskDetail::getStatus).findFirst().orElse((short)0);
if(status == 1 || status == 4) {
return Result.failed("手机app已有任务,不可重复生成");
}
} }
ChSrvTaskDetail chSrvTaskDetail = chSrvTaskDetailList.get(0); ChSrvTaskDetail chSrvTaskDetail = chSrvTaskDetailList.get(0);
taskDetailId = chSrvTaskDetail.getTaskDetailId(); taskDetailId = chSrvTaskDetail.getTaskDetailId();
......
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