bug 投诉建议
This commit is contained in:
parent
8f8970684d
commit
349082bae4
|
|
@ -21,15 +21,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<sql id="selectBasicCanteenSuggestionVo">
|
<sql id="selectBasicCanteenSuggestionVo">
|
||||||
select bcs.suggestion_id, bcs.user_id, bcs.content, bcs.canteen_id, bcs.contact_tel, bcs.reply_content,
|
select bcs.suggestion_id, bcs.user_id, bcs.content, bcs.canteen_id, bcs.contact_tel, bcs.reply_content,
|
||||||
bcs.reply_state, bcs.reply_user_id, bcs.create_by, bcs.create_time, bcs.update_by, bcs.update_time,
|
bcs.reply_state, bcs.reply_user_id, su.nick_name as create_by, bcs.create_time, bcs.update_by, bcs.update_time,
|
||||||
bc.canteen_name
|
bc.canteen_name
|
||||||
from basic_canteen_suggestion bcs
|
from basic_canteen_suggestion bcs
|
||||||
left join basic_canteen bc on bc.canteen_id = bcs.canteen_id
|
left join basic_canteen bc on bc.canteen_id = bcs.canteen_id
|
||||||
|
left join sys_user su on su.user_id = bcs.user_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectBasicCanteenSuggestionList" parameterType="com.bonus.canteen.core.basic.domain.BasicCanteenSuggestion" resultMap="BasicCanteenSuggestionResult">
|
<select id="selectBasicCanteenSuggestionList" parameterType="com.bonus.canteen.core.basic.domain.BasicCanteenSuggestion" resultMap="BasicCanteenSuggestionResult">
|
||||||
<include refid="selectBasicCanteenSuggestionVo"/>
|
<include refid="selectBasicCanteenSuggestionVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="userId != null "> and bcs.user_id = #{userId}</if>
|
<if test="userId != null "> and bcs.user_id = #{userId}</if>
|
||||||
<if test="content != null and content != ''"> and bcs.content like concat('%', #{content}, '%')</if>
|
<if test="content != null and content != ''"> and bcs.content like concat('%', #{content}, '%')</if>
|
||||||
<if test="canteenId != null "> and bcs.canteen_id = #{canteenId}</if>
|
<if test="canteenId != null "> and bcs.canteen_id = #{canteenId}</if>
|
||||||
|
|
@ -43,12 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
order by bcs.create_time desc
|
order by bcs.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectBasicCanteenSuggestionBySuggestionId" parameterType="Long" resultMap="BasicCanteenSuggestionResult">
|
<select id="selectBasicCanteenSuggestionBySuggestionId" parameterType="Long" resultMap="BasicCanteenSuggestionResult">
|
||||||
<include refid="selectBasicCanteenSuggestionVo"/>
|
<include refid="selectBasicCanteenSuggestionVo"/>
|
||||||
where suggestion_id = #{suggestionId}
|
where suggestion_id = #{suggestionId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertBasicCanteenSuggestion" parameterType="com.bonus.canteen.core.basic.domain.BasicCanteenSuggestion" useGeneratedKeys="true" keyProperty="suggestionId">
|
<insert id="insertBasicCanteenSuggestion" parameterType="com.bonus.canteen.core.basic.domain.BasicCanteenSuggestion" useGeneratedKeys="true" keyProperty="suggestionId">
|
||||||
insert into basic_canteen_suggestion
|
insert into basic_canteen_suggestion
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|
@ -102,9 +103,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteBasicCanteenSuggestionBySuggestionIds" parameterType="String">
|
<delete id="deleteBasicCanteenSuggestionBySuggestionIds" parameterType="String">
|
||||||
delete from basic_canteen_suggestion where suggestion_id in
|
delete from basic_canteen_suggestion where suggestion_id in
|
||||||
<foreach item="suggestionId" collection="array" open="(" separator="," close=")">
|
<foreach item="suggestionId" collection="array" open="(" separator="," close=")">
|
||||||
#{suggestionId}
|
#{suggestionId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue