From f7f49482695e9f94a35e5e3718d42105bb3987fb Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期五, 20 三月 2026 18:01:29 +0800
Subject: [PATCH] 新增查询
---
service/src/main/resources/mapper/cwgl/PaymentFeedbackMapper.xml | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 113 insertions(+), 0 deletions(-)
diff --git a/service/src/main/resources/mapper/cwgl/PaymentFeedbackMapper.xml b/service/src/main/resources/mapper/cwgl/PaymentFeedbackMapper.xml
new file mode 100644
index 0000000..bfd0dc2
--- /dev/null
+++ b/service/src/main/resources/mapper/cwgl/PaymentFeedbackMapper.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.cwgl.mapper.PaymentFeedbackMapper">
+
+ <resultMap type="com.ruoyi.cwgl.domain.PaymentFeedback" id="PaymentFeedbackResult">
+ <result property="id" column="id" />
+ <result property="headId" column="head_id" />
+ <result property="feedbackContent" column="feedback_content" />
+ <result property="createBy" column="create_by" />
+ <result property="createTime" column="create_time" />
+ </resultMap>
+
+ <sql id="selectPaymentFeedbackVo">
+ select thisTab.id, thisTab.head_id, thisTab.feedback_content, thisTab.create_by, thisTab.create_time from payment_feedback AS thisTab
+ </sql>
+ <sql id="selectPaymentFeedbackVoCount">
+ select count(0) from payment_feedback as thisTab
+ </sql>
+
+ <sql id="whereCondition">
+ <if test="headId != null "> and thisTab.head_id = #{headId}</if>
+ <if test="feedbackContent != null and feedbackContent != ''"> and thisTab.feedback_content = #{feedbackContent}</if>
+ </sql>
+
+ <!--鏌ヨ-->
+ <select id="selectPaymentFeedbackById" parameterType="Integer" resultMap="PaymentFeedbackResult">
+ <include refid="selectPaymentFeedbackVo"/>
+ where id = #{id}
+ </select>
+
+ <select id="selectPaymentFeedbackCount" parameterType="com.ruoyi.cwgl.domain.PaymentFeedback" resultType="int">
+ <include refid="selectPaymentFeedbackVoCount"/>
+ <where>
+ <include refid="whereCondition"/>
+ </where>
+ </select>
+
+ <select id="selectPaymentFeedbackList" parameterType="com.ruoyi.cwgl.domain.PaymentFeedback" resultMap="PaymentFeedbackResult">
+ <include refid="selectPaymentFeedbackVo"/>
+ <where>
+ <include refid="whereCondition"/>
+ </where>
+ order by thisTab.id desc
+ </select>
+
+ <!-- 鏂板 -->
+ <insert id="insertPaymentFeedback" parameterType="com.ruoyi.cwgl.domain.PaymentFeedback" useGeneratedKeys="true" keyProperty="id">
+ insert into payment_feedback
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="headId != null">head_id,</if>
+ <if test="feedbackContent != null and feedbackContent != ''">feedback_content,</if>
+ <if test="createBy != null">create_by,</if>
+ <if test="createTime != null">create_time,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="headId != null">#{headId},</if>
+ <if test="feedbackContent != null and feedbackContent != ''">#{feedbackContent},</if>
+ <if test="createBy != null">#{createBy},</if>
+ <if test="createTime != null">#{createTime},</if>
+ </trim>
+ </insert>
+
+ <insert id="insertPaymentFeedbackBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
+ insert into payment_feedback
+ <trim prefix="(" suffix=") values" suffixOverrides=",">
+ id,head_id,feedback_content,create_by,create_time,
+ </trim>
+ <foreach item="item" index="index" collection="list" separator=",">
+ <trim prefix="(" suffix=") " suffixOverrides=",">
+ #{item.id},#{item.headId},#{item.feedbackContent},#{item.createBy},#{item.createTime},
+ </trim>
+ </foreach>
+ </insert>
+
+ <!-- 淇敼 -->
+ <update id="updatePaymentFeedback" parameterType="com.ruoyi.cwgl.domain.PaymentFeedback">
+ update payment_feedback
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="headId != null">head_id = #{headId},</if>
+ <if test="feedbackContent != null and feedbackContent != ''">feedback_content = #{feedbackContent},</if>
+ <if test="createBy != null">create_by = #{createBy},</if>
+ <if test="createTime != null">create_time = #{createTime},</if>
+ </trim>
+ where id = #{id}
+ </update>
+ <!-- 淇敼 -->
+ <update id="updatePaymentFeedbackBatch" parameterType="java.util.List">
+ <foreach collection="list" item="item" index="index" separator=";">
+ update payment_feedback
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="item.headId != null">head_id = #{item.headId},</if>
+ <if test="item.feedbackContent != null and item.feedbackContent != ''">feedback_content = #{item.feedbackContent},</if>
+ <if test="item.createBy != null">create_by = #{item.createBy},</if>
+ <if test="item.createTime != null">create_time = #{item.createTime},</if>
+ </trim>
+ where id = #{item.id}
+ </foreach>
+ </update>
+
+ <!--鍒犻櫎-->
+ <delete id="deletePaymentFeedbackById" parameterType="Integer">
+ delete from payment_feedback where id = #{id}
+ </delete>
+ <delete id="deletePaymentFeedbackByIds" parameterType="Integer">
+ delete from payment_feedback where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </delete>
+
+</mapper>
\ No newline at end of file
--
Gitblit v1.8.0