创建任务数量修改
This commit is contained in:
parent
f5f6751551
commit
2512533dc3
@ -205,7 +205,7 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
SignPatientManageRouteNodeDto signPatientManageRouteNode = new SignPatientManageRouteNodeDto();
|
SignPatientManageRouteNodeDto signPatientManageRouteNode = new SignPatientManageRouteNodeDto();
|
||||||
signPatientManageRouteNode.setNodePlanTime(LocalDateTime.now());
|
signPatientManageRouteNode.setNodePlanTime(LocalDateTime.now());
|
||||||
List<SignPatientManageRouteNode> signPatientManageRouteNodes = signPatientManageRouteNodeMapper.selectSignPatientManageRouteNodeList(signPatientManageRouteNode);
|
List<SignPatientManageRouteNode> signPatientManageRouteNodes = signPatientManageRouteNodeMapper.selectSignPatientManageRouteNodeList(signPatientManageRouteNode);
|
||||||
if (CollectionUtils.isNotEmpty(signPatientManageRouteNodes) && signPatientManageRouteNodes.size() >= 100) {
|
if (CollectionUtils.isNotEmpty(signPatientManageRouteNodes) && signPatientManageRouteNodes.size() >= 6500) {
|
||||||
return AjaxResult.error("今日创建任务已达上线,请改日创建任务!");
|
return AjaxResult.error("今日创建任务已达上线,请改日创建任务!");
|
||||||
}
|
}
|
||||||
//获取患者信息
|
//获取患者信息
|
||||||
@ -213,10 +213,10 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
PatientInfoDto patientInfo = new PatientInfoDto();
|
PatientInfoDto patientInfo = new PatientInfoDto();
|
||||||
patientInfo.setSn(signPatientManageRoute.getSn());
|
patientInfo.setSn(signPatientManageRoute.getSn());
|
||||||
listPatient = patientInfoMapper.getPatientList(patientInfo);
|
listPatient = patientInfoMapper.getPatientList(patientInfo);
|
||||||
if (CollectionUtils.isNotEmpty(listPatient) && listPatient.size() > 100) {
|
if (CollectionUtils.isNotEmpty(listPatient) && listPatient.size() > 6500) {
|
||||||
return AjaxResult.error("创建任务数量超出当日上限,请减少创建任务数量!");
|
return AjaxResult.error("创建任务数量超出当日上限,请减少创建任务数量!");
|
||||||
}
|
}
|
||||||
if (CollectionUtils.isNotEmpty(listPatient) && CollectionUtils.isNotEmpty(signPatientManageRouteNodes) && (listPatient.size() + signPatientManageRouteNodes.size()) > 100) {
|
if (CollectionUtils.isNotEmpty(listPatient) && CollectionUtils.isNotEmpty(signPatientManageRouteNodes) && (listPatient.size() + signPatientManageRouteNodes.size()) > 10000) {
|
||||||
return AjaxResult.error("创建任务数量超出当日上限,请减少创建任务数量!");
|
return AjaxResult.error("创建任务数量超出当日上限,请减少创建任务数量!");
|
||||||
}
|
}
|
||||||
for (PatientInfoVo patientInfoVo : listPatient) {
|
for (PatientInfoVo patientInfoVo : listPatient) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user