From 3bf6f972604761c9ac59a2cb9ea01eeacaec2189 Mon Sep 17 00:00:00 2001
From: zyh <zyh@123>
Date: 星期六, 28 三月 2026 15:43:51 +0800
Subject: [PATCH] 更新为正式部署许可证
---
src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java | 31 +++++++++++++++++++++++++++----
1 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
index 0321a08..979f073 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
@@ -16,6 +16,7 @@
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
+import java.util.Date;
import java.util.Map;
import java.util.Objects;
@@ -34,11 +35,33 @@
if (Objects.isNull(mast)) {
throw new CoolException("鏁版嵁閿欒锛氫换鍔′笉瀛樺湪锛侊紒");
}
- WrkMastLog mastLog = new WrkMastLog();
- BeanUtils.copyProperties(mast, mastLog);
- mastLog.setLogId(mast.getId());
+ Date now = new Date();
+ WrkMastLog wrkMastLog = new WrkMastLog();
+ wrkMastLog.setWrkNo(mast.getWrkNo());
+ wrkMastLog.setIoTime(mast.getIoTime());
+ wrkMastLog.setWrkSts(Math.toIntExact(mast.getWrkSts()));
+ wrkMastLog.setIoType(mast.getIoType());
+ wrkMastLog.setIoPri(mast.getIoPri()); // 浼樺厛绾�
+ wrkMastLog.setCrnNo(mast.getCrnNo());
+ wrkMastLog.setSourceLocNo(mast.getSourceLocNo());
+ wrkMastLog.setLocNo(mast.getLocNo());
+ wrkMastLog.setBarcode(mast.getBarcode()); // 鎵樼洏鐮�
+ wrkMastLog.setFullPlt(mast.getFullPlt()); // 婊℃澘锛歒
+ wrkMastLog.setPicking(mast.getPicking()); // 鎷f枡
+ wrkMastLog.setExitMk(mast.getExitMk()); // 閫�鍑�
+ wrkMastLog.setEmptyMk(mast.getEmptyMk()); // 绌烘澘
+ wrkMastLog.setLinkMis(mast.getLinkMis());
+ wrkMastLog.setWrkDate(mast.getWrkDate());
+ wrkMastLog.setPic(mast.getPic());
+ // 鎿嶄綔浜哄憳鏁版嵁
+ wrkMastLog.setAppeTime(now);
+ wrkMastLog.setModiTime(now);
+ wrkMastLog.setAppeUser(mast.getAppeUser());
+ wrkMastLog.setModiUser(mast.getModiUser());
+ wrkMastLog.setLogId(mast.getId());
+ boolean res = wrkMastLogService.insert(wrkMastLog);
- if (!wrkMastLogService.insert(mastLog)) {
+ if (!res) {
throw new CoolException("浠诲姟鏃ュ織淇濆瓨澶辫触锛侊紒");
}
--
Gitblit v1.9.1