From c7ee9e7a9a0cb96d1c48bf8a8dff061f16e8a29b Mon Sep 17 00:00:00 2001
From: Administrator <56479841@QQ.COM>
Date: 星期一, 14 八月 2023 16:06:23 +0800
Subject: [PATCH] #补丁

---
 src/main/java/com/zy/asrs/mapper/WrkMastMapper.java |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java b/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
index 2465f1c..a0d397b 100644
--- a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
+++ b/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -3,7 +3,8 @@
 import com.baomidou.mybatisplus.mapper.BaseMapper;
 import com.zy.asrs.entity.WrkMast;
 import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Update;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -12,7 +13,25 @@
 @Repository
 public interface WrkMastMapper extends BaseMapper<WrkMast> {
 
-    @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no")
+//    @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no")
     List<WrkMast> selectToBeCompleteData();
 
+    List<WrkMast> selectToBeHistoryData();
+
+    WrkMast selectByLocNoOfPakin(@Param("locNo") String locNo);
+
+    WrkMast selectBySourceLocNoOfPakout(@Param("sourceLocNo") String sourceLocNo);
+
+    @Update("update asr_wrk_mast set ste_no = null where wrk_no = #{wrkNo}")
+    int setSteEmpty(Integer wrkNo);
+
+    WrkMast selectOfPick(@Param("wrkNo") Integer wrkNo, @Param("ioType") Integer ioType);
+
+    WrkMast selectPakoutOfStaNo(@Param("staNo")Integer staNo);
+
+    /**
+     * 鑾峰彇鐩稿悓瑙勬牸璐х墿鐨勫簱浣嶅彿锛屼笖鐘舵�佷负S鍏ュ簱棰勭害绫诲瀷
+     */
+    List<WrkMast> selectSameWrkMast(String matnr);
+
 }

--
Gitblit v1.9.1