From 3e09990298d9751bdf03e28f3935a02130440a74 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期四, 17 八月 2023 08:48:30 +0800 Subject: [PATCH] 客服管理、荣誉管理 --- cloud-server-other/src/main/resources/mapper/FrequentlyAskedQuestionsMapper.xml | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/cloud-server-other/src/main/resources/mapper/FrequentlyAskedQuestionsMapper.xml b/cloud-server-other/src/main/resources/mapper/FrequentlyAskedQuestionsMapper.xml index 084e295..12d1bd3 100644 --- a/cloud-server-other/src/main/resources/mapper/FrequentlyAskedQuestionsMapper.xml +++ b/cloud-server-other/src/main/resources/mapper/FrequentlyAskedQuestionsMapper.xml @@ -3,4 +3,19 @@ <mapper namespace="com.dsh.other.mapper.FrequentlyAskedQuestionsMapper"> + <update id="changeState"> + update t_frequently_asked_questions set + state = #{type} + <where> + <if test="questionIds != null and questionIds.size()>0"> + AND t_frequently_asked_questions.id IN + <foreach collection="questionIds" separator="," item="id" open="(" close=")"> + #{id} + </foreach> + </if> + </where> + </update> + <select id="getInfo" resultType="com.dsh.other.entity.FrequentlyAskedQuestions"> + select * from t_frequently_asked_questions where id = #{id} + </select> </mapper> -- Gitblit v1.7.1