Browse Source

修改预案新增、修改校验返回错误类型

develop
Mr.Wang 4 months ago
parent
commit
8fe53e979f
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -1353,7 +1353,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
@Override
public AjaxResult insertDcEmergencyPlans(DcEmergencyPlans dcEmergencyPlans) {
if (parityBit(dcEmergencyPlans)) {
return AjaxResult.error("存在相同类型的预案");
return AjaxResult.success("存在相同类型的预案");
}
dcEmergencyPlans.setCreateTime(DateUtils.getNowDate());
List<DcExecuteAction> dcExecuteActionList = dataProcessing(dcEmergencyPlans);
@ -1375,7 +1375,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
@Override
public AjaxResult updateDcEmergencyPlans(DcEmergencyPlans dcEmergencyPlans) {
if (parityBit(dcEmergencyPlans)) {
return AjaxResult.error("存在相同类型的预案");
return AjaxResult.success("存在相同类型的预案");
}
dcEmergencyPlans.setUpdateTime(DateUtils.getNowDate());
List<DcExecuteAction> dcExecuteActionList = dataProcessing(dcEmergencyPlans);

Loading…
Cancel
Save