From d4c8e72800fcf6fbaa3804d383c7b6a23f826f3e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 20 八月 2025 14:35:00 +0800
Subject: [PATCH] 修改bug
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml | 33 ++++++++++++++++++++++++---------
1 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml
index f6a0859..e318476 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml
@@ -20,28 +20,25 @@
from se_payment_method
where id = #{id,jdbcType=BIGINT}
</select>
-
- <!--鑾峰彇鍏ㄩ儴鏈垹闄や粯娆炬柟寮�-->
- <select id="getPaymentMethods" resultType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod">
- SELECT * FROM se_payment_method WHERE deleted = 0
- </select>
-
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--@mbg.generated-->
delete from se_payment_method
where id = #{id,jdbcType=BIGINT}
</delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod" useGeneratedKeys="true">
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod" >
<!--@mbg.generated-->
- insert into se_payment_method (`name`, remarks, deleted
+ insert into se_payment_method (id, `name`, remarks, deleted
)
- values (#{name,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{deleted,jdbcType=TINYINT}
+ values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{deleted,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into se_payment_method
<trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
<if test="name != null">
`name`,
</if>
@@ -53,6 +50,9 @@
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
@@ -88,4 +88,19 @@
deleted = #{deleted,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
+
+
+ <!--鑾峰彇鍏ㄩ儴鏈垹闄や粯娆炬柟寮�-->
+ <select id="getPaymentMethods" resultType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod">
+ SELECT * FROM se_payment_method WHERE deleted = 0
+ </select>
+
+ <!--鍏呭�兼満鐢ㄨ幏鍙栨敮浠樻柟寮�-->
+ <select id="getPayMethods" resultType="com.dy.pipIrrGlobal.voSe.VoPaymentMethod">
+ SELECT
+ id,
+ name
+ FROM se_payment_method
+ WHERE deleted = 0
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0