From 1d94f7aca37aee361786b67ceb65920192f4f7ca Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期三, 06 九月 2023 08:56:34 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java | 83 ++++++++++++++++++++++-------------------
1 files changed, 44 insertions(+), 39 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 ce3fbbb..19a4a40 100644
--- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -604,7 +604,7 @@
matNew.setMatnr(param.getPackNo());
matNew.setMaktx(param.getPackName());
matNew.setManuDate(param.getRequestTime());
- matNew.setDeadWarn(480);//8灏忔椂 480鍒嗛挓
+ matNew.setDeadWarn(360);//6灏忔椂 360鍒嗛挓
matNew.setCreateBy(9999L);//9999琛ㄧずerp涓嬪彂
matNew.setCreateTime(now);
matNew.setUpdateBy(9999L);//9999琛ㄧずerp涓嬪彂
@@ -778,48 +778,53 @@
return testMast;
}
-
@Override
- @Transactional
public Boolean testFinish(Review review) {
- Boolean success=true;
- Wrapper wrapper = new EntityWrapper<TestMast>()
- .eq("loc_no", review.getLocNo())
- .eq("barcode", review.getBarcode())
- .eq("user_Id", review.getUserId());
- LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", review.getLocNo()));
- if (null == locMast ||locMast.getPackStatus()!=2){
- throw new CoolException("浜у搧鐘舵�佷笉鏄� 2:娴嬭瘯涓�");
- }else if (!review.getBarcode().equals(locMast.getBarcode())){
- throw new CoolException("pack鐮佷笉鍚�");
- }
- TestMast testMast = testMastService.selectOne(wrapper);
- if(null != testMast){
- if (testMast.getStatus()==3){
- Date date = new Date();
- locMast.setPackStatus(3);
- locMast.setModiTime(date);
-// CombParam combParam = new CombParam();
-// combParam.setPackNo(locMast.getBarcode());
-// combParam.setLocNo(locMast.getLocNo());
-// combParam.setPackSts(3);
-// combParam.setRequestTime(DateUtils.convert(new Date()));
-// new PostMesDataUtils().postMesData("MES绯荤粺",mesUrl,inpath,combParam);
-
- if (!locMastService.update(locMast, new EntityWrapper<LocMast>().eq("loc_no", review.getLocNo()))){
- throw new CoolException("鏇存敼浜у搧鐘舵�佸け璐�");
- }
- }else if (Cools.isEmpty(testMast.getStatus())){
- throw new CoolException("鐘舵�佸紓甯�");
- }else {
- throw new CoolException("娴嬭瘯鐘舵�佷笉鏄� 3:娴嬭瘯涓�");
- }
- } else {
- throw new CoolException("鐘舵�佸紓甯�");
- }
- return success;
+ return null;
}
+
+// @Override
+// @Transactional
+// public Boolean testFinish(Review review) {
+// Boolean success=true;
+// Wrapper wrapper = new EntityWrapper<TestMast>()
+// .eq("loc_no", review.getLocNo())
+// .eq("barcode", review.getBarcode())
+// .eq("user_Id", review.getUserId());
+// LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", review.getLocNo()));
+// if (null == locMast ||locMast.getPackStatus()!=2){
+// throw new CoolException("浜у搧鐘舵�佷笉鏄� 2:娴嬭瘯涓�");
+// }else if (!review.getBarcode().equals(locMast.getBarcode())){
+// throw new CoolException("pack鐮佷笉鍚�");
+// }
+// TestMast testMast = testMastService.selectOne(wrapper);
+// if(null != testMast){
+// if (testMast.getStatus()==3){
+// Date date = new Date();
+// locMast.setPackStatus(3);
+// locMast.setModiTime(date);
+//// CombParam combParam = new CombParam();
+//// combParam.setPackNo(locMast.getBarcode());
+//// combParam.setLocNo(locMast.getLocNo());
+//// combParam.setPackSts(3);
+//// combParam.setRequestTime(DateUtils.convert(new Date()));
+//// new PostMesDataUtils().postMesData("MES绯荤粺",mesUrl,inpath,combParam);
+//
+// if (!locMastService.update(locMast, new EntityWrapper<LocMast>().eq("loc_no", review.getLocNo()))){
+// throw new CoolException("鏇存敼浜у搧鐘舵�佸け璐�");
+// }
+// }else if (Cools.isEmpty(testMast.getStatus())){
+// throw new CoolException("鐘舵�佸紓甯�");
+// }else {
+// throw new CoolException("娴嬭瘯鐘舵�佷笉鏄� 3:娴嬭瘯涓�");
+// }
+// } else {
+// throw new CoolException("鐘舵�佸紓甯�");
+// }
+// return success;
+// }
+
@Override
@Transactional
public Boolean testNG(Review review) {
--
Gitblit v1.9.1