From e7d8e2c64facfa261e8b168b84e81ef6c835f57d Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期三, 03 九月 2025 09:25:19 +0800
Subject: [PATCH] 许可证到期提醒,系统30分钟无操作下线账号

---
 src/main/resources/mapper/OrderMapper.xml |   64 ++++++++++++++++++++++++++++++++
 1 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index c1b06a4..3aebce7 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -39,7 +39,13 @@
         <result column="update_by" property="updateBy" />
         <result column="update_time" property="updateTime" />
         <result column="memo" property="memo" />
+        <result column="move_status" property="moveStatus" />
 
+        <result column="temp1" property="temp1" />
+        <result column="temp2" property="temp2" />
+        <result column="temp3" property="temp3" />
+        <result column="ware_id" property="wareId" />
+        <result column="ware_name" property="wareName" />
     </resultMap>
 
     <update id="updateSettle">
@@ -52,6 +58,26 @@
         where 1=1
         and id = #{orderId}
     </update>
+    <update id="updateSettleAndGroupingFlag">
+        update
+            man_order
+        set
+            settle = #{settle},
+            account_day = #{account_day} ,
+            update_time = getdate()
+        where
+            1 = 1
+          and id = #{orderId}
+    </update>
+
+    <select id="selectWork" resultMap="BaseResultMap">
+        select top 5 *
+        from man_order
+        where 1=1
+          and settle = 2
+          and status = 1
+        order by create_time asc
+    </select>
 
     <select id="selectComplete" resultMap="BaseResultMap">
         select top 5 *
@@ -83,5 +109,43 @@
             and order_no = #{orderNo}
         </if>
     </select>
+    <select id="selectorderNoL2" resultMap="BaseResultMap">
+        SELECT TOP 10 *
+        FROM man_order
+        WHERE 1=1
+        <if test="orderNo != null and orderNo != ''">
+            AND order_no LIKE '%' + #{orderNo} + '%'
+        </if>
+        AND doc_type IN (34, 36, 37, 39, 40)
+        AND settle IN (1, 2)
+        ORDER BY create_time DESC
+    </select>
+
+    <select id="selectOrderMoveStatus" resultMap="BaseResultMap">
+        select top 1 *
+        from man_order
+        where 1=1
+        and move_status = 2
+    </select>
+
+    <select id="selectOrderMoveStatusInitial" resultMap="BaseResultMap">
+        select top 1 *
+        from man_order
+        where 1=1
+        and move_status = 1
+        order by update_time
+    </select>
+    <select id="selectNotGroupingList" resultMap="BaseResultMap">
+        select
+            *
+        from
+            man_order mo
+                left join man_doc_type mdt on
+                mo.doc_type = mdt.doc_id
+        where
+            mdt.pakin = 1
+          and mo.account_day = 0
+          and mo.settle = 1
+    </select>
 
 </mapper>

--
Gitblit v1.9.1