From 1155098fcd1bcab6861bf44d5b846dd5bd7f2546 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期五, 02 八月 2024 13:42:25 +0800 Subject: [PATCH] #MES上报 --- src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java index 94cdbb2..a80a11a 100644 --- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java @@ -15,7 +15,6 @@ import com.zy.asrs.service.*; import com.zy.asrs.utils.MatUtils; import com.zy.common.model.DetlDto; -import com.zy.common.model.LocDetlDto; import com.zy.common.utils.NodeUtils; import lombok.Synchronized; import lombok.extern.slf4j.Slf4j; @@ -936,6 +935,18 @@ throw new CoolException("搴撲綅鍙蜂笉瀛樺湪"); } + if(!Cools.eq("O",agvLocMast.getLocSts()) && !Cools.eq("F",agvLocMast.getLocSts())){ + throw new CoolException("褰撳墠搴撲綅姝e湪浣滀笟涓紝鏃犳硶鐩樼偣璋冩暣"); + } + + if(Cools.isEmpty(params.getLocDetls())){ + agvLocMast.setLocSts("O"); + }else { + agvLocMast.setLocSts("F"); + } + + agvLocMastService.updateById(agvLocMast); + //鍒犻櫎鏃у簱瀛� agvLocDetlService.delete(new EntityWrapper<AgvLocDetl>().eq("loc_no",params.getLocNo())); @@ -968,6 +979,9 @@ //鍗曟嵁鏃ユ湡 order.setOrderTime(param.getDdate()); + //渚涘簲鍟嗙紪鐮� + order.setSalesman(param.getCVenCode()); + order.setMemo(param.getCMemo()); //鍒跺崟浜� order.setShipCode(param.getCPersonCode()); -- Gitblit v1.9.1