|
|
|
@ -107,7 +107,9 @@ public class BasicThirdSysController {
|
|
|
|
|
filterBasicThirdSysRequest.setEnabled(true);
|
|
|
|
|
int count = basicThirdSysService.countThirdSys(filterBasicThirdSysRequest);
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
return ResultVOUtils.error(500, "至少需需用一个第三方系统!");
|
|
|
|
|
if(temp.getEnabled()) {
|
|
|
|
|
return ResultVOUtils.error(500, "至少需需用一个第三方系统!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -116,19 +118,24 @@ public class BasicThirdSysController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (temp.getMainSys() != basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
if (udiRelevanceService.isExit() || unitMaintainService.isExit()) {
|
|
|
|
|
return ResultVOUtils.error(999, "设置主系统失败");
|
|
|
|
|
}
|
|
|
|
|
if ((!temp.getEnabled()) && basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
if (!basicThirdSysEntity.getEnabled()) {
|
|
|
|
|
return ResultVOUtils.error(999, "请先启用系统!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!basicThirdSysEntity.getEnabled() && basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
return ResultVOUtils.error(999, "请先启用系统!");
|
|
|
|
|
}
|
|
|
|
|
if(!basicThirdSysEntity.getMainSys() && temp.getMainSys()){
|
|
|
|
|
return ResultVOUtils.error(500, "至少需需用一个第三方主系统!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (temp.getMainSys() != basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
// if (udiRelevanceService.isExit() || unitMaintainService.isExit()) {
|
|
|
|
|
// return ResultVOUtils.error(999, "设置主系统失败");
|
|
|
|
|
// }
|
|
|
|
|
// if ((!temp.getEnabled()) && basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
// if (!basicThirdSysEntity.getEnabled()) {
|
|
|
|
|
// return ResultVOUtils.error(999, "请先启用系统!");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (!basicThirdSysEntity.getEnabled() && basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
// return ResultVOUtils.error(999, "请先启用系统!");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (basicThirdSysEntity.getMainSys()) {
|
|
|
|
|
List<BasicThirdSysEntity> basicThirdSysEntities = basicThirdSysService.filterBasicThiSys(new FilterBasicThirdSysRequest());
|
|
|
|
|
for (BasicThirdSysEntity basicThirdSysEntity1 : basicThirdSysEntities) {
|
|
|
|
|