From 745b115acbb46829eb52f904f0c276012decf938 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 20 八月 2024 10:53:35 +0800
Subject: [PATCH] order manage

---
 pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
index 0332664..a3ca0de 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
@@ -83,4 +83,35 @@
         </set>
         where   id = #{id,jdbcType=BIGINT} 
     </update>
+    <delete id="deleteLogicById">
+        update pr_order_item set deleted = 1 where id = #{id}
+    </delete>
+    <select id="selectSome" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pr_order_item p
+        where p.deleted!=1
+        <trim prefix="and " suffixOverrides="and">
+            <if test="orderId != null and orderId != ''">
+                p.orderId = #{orderId,jdbcType=BIGINT} and
+            </if>
+        </trim>
+        order by id desc
+        <trim prefix="limit " >
+            <if test="start != null and count != null">
+                #{start}, #{count}
+            </if>
+        </trim>
+    </select>
+
+    <select id="selectSomeCount" resultType="java.lang.Long">
+        select count(1)
+        from pr_order_item p
+        where p.deleted!=1
+        <trim prefix="and " suffixOverrides="and">
+            <if test="orderId != null and orderId != ''">
+                p.orderId = #{orderId,jdbcType=BIGINT} and
+            </if>
+        </trim>
+    </select>
 </mapper>

--
Gitblit v1.8.0