From 4799dfece3090ad3221e5b6c7ff9c403effc5da2 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期五, 31 五月 2024 16:48:08 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java index 1a1a1d4..cb743d0 100644 --- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java @@ -20,6 +20,7 @@ import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.SaasLogService; +import lombok.Synchronized; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -1237,6 +1238,7 @@ @Override @Transactional + @Synchronized public void plaPakout(String brand, String locNo, String batch, Integer packageNo, String orderNo, String plaQtyId, String wrkNo, Double anfme, boolean isReplace) { Pla pla = plaService.selectByBatchAndPackageNo(batch, packageNo,brand); @@ -1266,6 +1268,7 @@ manPakOut.setCount(manPakOut.getCount() + anfme); if (manPakOut.getAnfme().equals(manPakOut.getCount())){ manPakOut.setStatus(1); + manPakOut.setUpdateTime(new Date()); manPakOutService.updateById(manPakOut); } @@ -1354,6 +1357,7 @@ manPakOut.setMaktx(plaNew.getBrand()); manPakOut.setBatch(plaNew.getBatch()); manPakOut.setBarcode(plaNew.getPackageNo() + ""); + manPakOut.setUpdateTime(new Date()); manPakOutService.updateById(manPakOut); @@ -1378,8 +1382,7 @@ }else { throw new CoolException("鏉$爜淇℃伅鏈夎!"); } - - + plaEntityWrapper.eq(false,"status","鍏ㄩ儴鍑哄簱"); List<Pla> plaList = plaService.selectList(plaEntityWrapper); if (Cools.isEmpty(plaList)){ throw new CoolException("鏈煡璇㈠埌搴撳瓨鐗╂枡淇℃伅"); -- Gitblit v1.9.1