|
|
@ -1425,6 +1425,13 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
*/ |
|
|
|
public boolean parityBit(DcEmergencyPlans dcEmergencyPlans) { |
|
|
|
List<DcEmergencyPlans> dcEmergencyPlansList = dcEmergencyPlansMapper.selectDcEmergencyPlansByOne(dcEmergencyPlans); |
|
|
|
if (dcEmergencyPlans.getId() != null) { |
|
|
|
// 修改操作
|
|
|
|
List<DcEmergencyPlans> collect = dcEmergencyPlansList.stream() |
|
|
|
.filter(plan -> !plan.getId().equals(dcEmergencyPlans.getId())) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
return collect.size() > 0; |
|
|
|
} |
|
|
|
return dcEmergencyPlansList.size() > 0; |
|
|
|
} |
|
|
|
|
|
|
|