From af3819daa01126b63eb5f7ca8b3d66e04fd68885 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Thu, 20 Feb 2025 17:04:14 +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 --- .../glxp/api/controller/inout/IoOrderController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/glxp/api/controller/inout/IoOrderController.java b/src/main/java/com/glxp/api/controller/inout/IoOrderController.java index 147dd824..684df2e9 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderController.java @@ -345,6 +345,18 @@ public class IoOrderController extends BaseController { if (CollUtil.isEmpty(orderDetailCodeEntities)) { return ResultVOUtils.error(500, "单据还未扫码或和扫码校验存在异常无法提交!"); } + + for (int i = 0; i < orderDetailBizEntities.size(); i++) { + IoOrderDetailBizEntity ioOrderDetailBizEntity = orderDetailBizEntities.get(i); + if (ioOrderDetailBizEntity.getProductType() == 2) { + if ( StrUtil.isEmpty(ioOrderDetailBizEntity.getExpireDate()) && + StrUtil.isEmpty(ioOrderDetailBizEntity.getBatchNo()) && + StrUtil.isEmpty(ioOrderDetailBizEntity.getProductDate()) ){ + return ResultVOUtils.error(500, "单据中存在药品无填写完整三期,无法提交!"); + } + } + } + /** * 1:必须全部扫齐,才可以通过 * 2:必须选择了马上放心才能提交