From d52b5d11199cc6b7cec42deb82c831a4ed15a3b4 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期五, 31 五月 2024 14:56:58 +0800
Subject: [PATCH] 仓库: 	显示在库信息,入库完成后显示成功入库的包数 	订单出库页面显示剩余待检包数 (PDA) 	未查询到的提示改为显示物料实际状态 	拣货单已完成,单据未完成 ✔ 	单据数量字段显示变更 ✔ 	拣货单按实际操作时间降序排序 ✔ 	拣货单明细导出 ✔ 	拣货单显示创建时间与操作时间 ✔

---
 src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
index 542452e..30043c7 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
@@ -2,13 +2,17 @@
 
 import com.baomidou.mybatisplus.mapper.EntityWrapper;
 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import com.core.common.Cools;
 import com.zy.asrs.entity.WrkMast;
+import com.zy.asrs.entity.result.InOutCountDto;
 import com.zy.asrs.mapper.WrkMastMapper;
 import com.zy.asrs.service.WrkMastService;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 
 import java.util.List;
 
+@Slf4j
 @Service("wrkMastService")
 public class WrkMastServiceImpl extends ServiceImpl<WrkMastMapper, WrkMast> implements WrkMastService {
 
@@ -19,6 +23,37 @@
 
     @Override
     public List<WrkMast> selectToBeCompleteData() {
-        return this.selectToBeCompleteData();
+        return this.baseMapper.selectToBeCompleteData();
     }
+
+    @Override
+    public List<WrkMast> selectToBeHistoryData() {
+        return this.baseMapper.selectToBeHistoryData();
+    }
+
+    @Override
+    public WrkMast selectByBarcode(String barcode) {
+        List<WrkMast> wrkMasts = this.selectList(new EntityWrapper<WrkMast>().eq("barcode", barcode));
+        if (Cools.isEmpty(wrkMasts)) {
+            return null;
+        }
+        return wrkMasts.get(0);
+    }
+
+    @Override
+    public int getStoreCount(Integer crnNo) {
+        return selectCount(new EntityWrapper<WrkMast>().eq("crn_no", crnNo)
+                .last(" and (wrk_sts in (1,2) or (wrk_sts=3 and wrk_no in (select wrk_no from asr_bas_devp)))"));
+    }
+
+    @Override
+    public Boolean checkFinishByOrder(String orderNo) {
+        return this.baseMapper.checkFinishByOrder(orderNo) <= 0;
+    }
+
+    @Override
+    public List<InOutCountDto> selectTop100() {
+        return this.baseMapper.selectTop100();
+    }
+
 }

--
Gitblit v1.9.1