parent
672f4132ca
commit
37534223c2
|
|
@ -0,0 +1,48 @@
|
|||
<?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.bonus.bmw.mapper.QuestionRecordMapper">
|
||||
|
||||
<select id="selectQuestionRecordList" resultType="com.bonus.bmw.domain.dto.QuestionRecordDto">
|
||||
select
|
||||
qr.id,
|
||||
qr.module,
|
||||
qr.content,
|
||||
qr.submitter,
|
||||
qr.handler,
|
||||
qr.create_time,
|
||||
qr.update_time
|
||||
from question_record qr
|
||||
<where>
|
||||
<if test="module != null and module != ''">
|
||||
and qr.module = #{module}
|
||||
</if>
|
||||
<if test="content != null and content != ''">
|
||||
and qr.content like concat('%',#{content},'%')
|
||||
</if>
|
||||
<if test="submitter != null and submitter != ''">
|
||||
and qr.submitter = #{submitter}
|
||||
</if>
|
||||
<if test="handler != null and handler != ''">
|
||||
and qr.handler = #{handler}
|
||||
</if>
|
||||
<if test="createTime != null and createTime != ''">
|
||||
and locate( #{createTime},qr.create_time)
|
||||
</if>
|
||||
</where>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
insert into question_record( module, content, submitter,create_id)
|
||||
values( #{module}, #{content}, #{submitter}, #{createId})
|
||||
</insert>
|
||||
|
||||
<update id="del">
|
||||
update question_record set is_active = 0 where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deal">
|
||||
update question_record set handler = #{handler},update_time = #{updateTime},status = #{status},reamrk = #{remark},update_id = #{updateId} where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue