diff --git a/src/main/java/com/glxp/api/controller/inout/IoCodeTempController.java b/src/main/java/com/glxp/api/controller/inout/IoCodeTempController.java index c70ea590..a0025223 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoCodeTempController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoCodeTempController.java @@ -963,7 +963,9 @@ public class IoCodeTempController extends BaseController { for (int i = 0; i < codeEnttityList.size(); i++) { IoCodeTempEntity drugCodeSelectEntity = codeEnttityList.get(i); if (codeEnttityList.get(i).getCode().equals(code)) { - return drugCodeSelectEntity; + if (StrUtil.emptyIfNull(drugCodeSelectEntity.getSerialNo()).equals(StrUtil.emptyIfNull(udiEntity.getSerialNo()))) { + return drugCodeSelectEntity; + } } // UdiEntity originUdiEntity = FilterUdiUtils.getUdi(drugCodeSelectEntity.getCode()); if (!StrUtil.emptyIfNull(drugCodeSelectEntity.getNameCode()).equals(StrUtil.emptyIfNull(udiEntity.getUdi()))) {