From e7c63dbbed71a75821ee9f6d7deb63b888bbb7c5 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Thu, 9 Jan 2025 14:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/api/controller/basic/UdiContrastController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/controller/basic/UdiContrastController.java b/src/main/java/com/glxp/api/controller/basic/UdiContrastController.java index 2552e97a..835d486f 100644 --- a/src/main/java/com/glxp/api/controller/basic/UdiContrastController.java +++ b/src/main/java/com/glxp/api/controller/basic/UdiContrastController.java @@ -408,7 +408,7 @@ public class UdiContrastController { @PostMapping("/udi/udirel/drug/delLevel") public BaseResponse delLevel(@RequestBody AddProductRequest addProductRequest) { boolean b = udiProductService.deleteByNameCode(addProductRequest.getNameCode()); - if(b == true){ + if( b && StrUtil.isNotEmpty(addProductRequest.getYbbm()) && StrUtil.isNotEmpty(addProductRequest.getNameCode())){ CodeRel codeRel = new CodeRel(); codeRel.setYbbm(addProductRequest.getYbbm()); codeRel.setDrugCode(addProductRequest.getNameCode());