From b32dba6d0c069e4d1a416358501b441865714ab3 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 20 八月 2024 17:22:10 +0800
Subject: [PATCH] order manage
---
pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 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..7d632da 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
@@ -25,6 +25,7 @@
where id = #{id,jdbcType=BIGINT}
</select>
<select id="selectItems" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--绠楀嚭瀹屾垚鐜�-->
select
<include refid="Base_Column_List" />
from pr_order_item
@@ -63,6 +64,7 @@
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrOrderItem">
+ <!--@mbg.generated-->
update pr_order_item
<set>
<if test="orderId != null">
@@ -83,4 +85,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