mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update
This commit is contained in:
@@ -5,22 +5,34 @@
|
||||
<mapper namespace="com.jsowell.pile.mapper.MemberFeedbackMapper">
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.MemberFeedback" id="MemberFeedbackResultMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="memberName" column="member_name" />
|
||||
<result property="contactInfo" column="contact_info" />
|
||||
<result property="feedbackType" column="feedback_type" />
|
||||
<result property="feedbackContent" column="feedback_content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="replyContent" column="reply_content" />
|
||||
<result property="replyTime" column="reply_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="id" column="id"/>
|
||||
<result property="memberId" column="member_id"/>
|
||||
<result property="memberName" column="member_name"/>
|
||||
<result property="contactInfo" column="contact_info"/>
|
||||
<result property="feedbackType" column="feedback_type"/>
|
||||
<result property="feedbackContent" column="feedback_content"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="replyContent" column="reply_content"/>
|
||||
<result property="replyTime" column="reply_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCarCouponRecordVo">
|
||||
select id, member_id, member_name, contact_info, feedback_type, feedback_content, status, create_time, update_time, reply_content, reply_time, del_flag from member_feedback
|
||||
select id,
|
||||
member_id,
|
||||
member_name,
|
||||
contact_info,
|
||||
feedback_type,
|
||||
feedback_content,
|
||||
status,
|
||||
create_time,
|
||||
update_time,
|
||||
reply_content,
|
||||
reply_time,
|
||||
del_flag
|
||||
from member_feedback
|
||||
</sql>
|
||||
|
||||
<insert id="insertMemberFeedback" parameterType="com.jsowell.pile.domain.MemberFeedback">
|
||||
@@ -102,11 +114,93 @@
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateFeedback">
|
||||
UPDATE member_feedback
|
||||
<set>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="replyContent != null">
|
||||
reply_content = #{replyContent},
|
||||
</if>
|
||||
<if test="replyTime != null">
|
||||
reply_time = #{replyTime},
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMemberFeedbackById">
|
||||
DELETE
|
||||
FROM member_feedback
|
||||
WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
|
||||
<select id="selectMemberFeedbackList" resultType="com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO">
|
||||
SELECT member_id, member_name, contact_info, feedback_type, feedback_content, status, create_time, update_time, reply_content, reply_time
|
||||
SELECT member_id,
|
||||
member_name,
|
||||
contact_info,
|
||||
feedback_type,
|
||||
feedback_content,
|
||||
status,
|
||||
create_time,
|
||||
update_time,
|
||||
reply_content,
|
||||
reply_time
|
||||
FROM member_feedback
|
||||
WHERE member_id = #{memberId} AND del_flag = '0'
|
||||
WHERE member_id = #{memberId}
|
||||
AND del_flag = '0'
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
<select id="getFeedbackList" resultType="com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO">
|
||||
SELECT
|
||||
id,
|
||||
member_id,
|
||||
member_name,
|
||||
contact_info,
|
||||
feedback_type,
|
||||
feedback_content,
|
||||
status,
|
||||
create_time,
|
||||
update_time,
|
||||
reply_content,
|
||||
reply_time
|
||||
FROM member_feedback
|
||||
<where>
|
||||
del_flag = '0'
|
||||
<if test="memberId != null and memberId != ''">
|
||||
AND member_id = #{memberId}
|
||||
</if>
|
||||
<if test="memberName != null and memberName != ''">
|
||||
AND member_name = #{memberName}
|
||||
</if>
|
||||
<if test="feedbackType != null and feedbackType != ''">
|
||||
AND feedback_type = #{feedbackType}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="getFeedbackById" resultType="com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO">
|
||||
SELECT id,
|
||||
member_id,
|
||||
member_name,
|
||||
contact_info,
|
||||
feedback_type,
|
||||
feedback_content,
|
||||
status,
|
||||
create_time,
|
||||
update_time,
|
||||
reply_content,
|
||||
reply_time
|
||||
FROM member_feedback
|
||||
WHERE id = #{id}
|
||||
AND del_flag = '0'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user