Browse Source

突击检查时没有预约id导致的更新报错, 突击检查没有预约需要更新

v2
蟑螂恶霸 2 years ago
parent
commit
cc321041b0
  1. 2
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java

2
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java

@ -177,10 +177,12 @@ public class AppEnforcementRegistrationController extends BaseController
enforcementRegistration.setId(null);
}
}
if (StringUtils.isNotEmpty(enforcementRegistration.getLawId())) {
EnterpriseLawEnforcement law = new EnterpriseLawEnforcement();
law.setId(enforcementRegistration.getLawId());
law.setIsReg(1);
resNum = enterpriseLawEnforcementService.updateEnterpriseLawEnforcement(law);
}
return resNum > 0 ? ZDResponse.success("修改成功") : ZDResponse.error("修改失败");
}

Loading…
Cancel
Save