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