From fc950ab18dead1dfe1f3d5151a7288ce9ca10330 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Fri, 21 Jun 2024 12:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E6=B3=95=E7=AB=AF=E7=99=BB=E8=AE=B0?= =?UTF-8?q?=E4=B8=8D=E7=BB=91=E5=AE=9A=E9=A2=84=E7=BA=A6=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/controller/AppEnforcementRegistrationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java index 1d1b9f17..8969ac8b 100644 --- a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java +++ b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java @@ -118,7 +118,7 @@ public class AppEnforcementRegistrationController extends BaseController resNum = enforcementRegistrationService.updateEnforcementRegistration(enforcementRegistration); } else { resNum = enforcementRegistrationService.insertEnforcementRegistration(enforcementRegistration); - if (resNum > 0) { + if (resNum > 0 && StringUtils.isNotEmpty(enforcementRegistration.getLawId())) { enforcementRegistration.setId(null); EnterpriseLawEnforcement law = new EnterpriseLawEnforcement(); law.setId(enforcementRegistration.getLawId());