From ff66ddf96807fac02e01c7d2ecdfd1ba808af9c5 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期六, 25 四月 2026 18:42:10 +0800
Subject: [PATCH] wms下发任务给wcs时上锁,防止erp发送中止任务
---
src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 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 e0caced..7c0ef09 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
@@ -1,12 +1,48 @@
package com.zy.asrs.service.impl;
+import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import com.core.common.R;
+import com.zy.asrs.entity.InventoryFlowDto;
import com.zy.asrs.entity.WrkMastLog;
import com.zy.asrs.mapper.WrkMastLogMapper;
import com.zy.asrs.service.WrkMastLogService;
import org.springframework.stereotype.Service;
+import java.util.Date;
+import java.util.Map;
+
@Service("wrkMastLogService")
public class WrkMastLogServiceImpl extends ServiceImpl<WrkMastLogMapper, WrkMastLog> implements WrkMastLogService {
+ @Override
+ public boolean save(Integer workNo) {
+ return this.baseMapper.save(workNo) > 0;
+ }
+
+ @Override
+ public Long sumCostTimeByWrkSts(Date startTime, Date endTime, Integer wrkSts) {
+ Long total = this.baseMapper.sumCostTimeByWrkSts(startTime, endTime, wrkSts);
+ return total == null ? 0L : total;
+ }
+
+ @Override
+ public Long countInboundHistoryBySourceStaNo(Date startTime, Date endTime, Integer sourceStaNo) {
+ if (sourceStaNo == null) {
+ return 0L;
+ }
+ Long count = this.baseMapper.countInboundHistoryBySourceStaNo(startTime, endTime, sourceStaNo);
+ return count == null ? 0L : count;
+ }
+
+ @Override
+ public R inventoryFlowList(Integer curr, Integer limit, Map<String, Object> param) {
+ Page<InventoryFlowDto> page = new Page<>();
+ page.setCurrent(curr);
+ page.setSize(limit);
+ page.setTotal(this.baseMapper.inventoryFlowListCount(param));
+ page.setRecords(this.baseMapper.inventoryFlowList(curr, limit, param));
+ return R.ok(page);
+ }
+
}
--
Gitblit v1.9.1