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