|
|
@ -278,12 +278,18 @@ public class WisdomCarService implements IWisdomCarService { |
|
|
|
if (0 == taskIsExist){ |
|
|
|
throw new BaseException(CodeEnum.TASK_IS_EXIST); |
|
|
|
} |
|
|
|
//查询任务是否是分诊环节的任务ID
|
|
|
|
Integer taskIsTriageTask = stepTaskDao.findTaskIsTriageTask(param.getTaskSubId()); |
|
|
|
if (0 == taskIsTriageTask){ |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
|
} |
|
|
|
//查询患者是否存在
|
|
|
|
Integer patientIsExist = patientProjectDao.findPatientIsExist(param.getProjectId()); |
|
|
|
if (0 == patientIsExist){ |
|
|
|
throw new BaseException(Constant.PATIENT_NOT_FOUND); |
|
|
|
} |
|
|
|
//开始时间不能大于当前时间,结束时间不能小于开始时间
|
|
|
|
System.out.println(System.currentTimeMillis()); |
|
|
|
if (param.getEndTime() < param.getStartTime() || param.getStartTime() > System.currentTimeMillis()){ |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
|
} |
|
|
|