|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="com.boman.web.core.domain.SendSms" id="SendSmsResult">
|
|
<resultMap type="com.boman.web.core.domain.SendSms" id="SendSmsResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="phone" column="phone" />
|
|
<result property="phone" column="phone" />
|
|
|
|
+ <result property="ticketId" column="ticket_id" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
<result property="content" column="content" />
|
|
<result property="content" column="content" />
|
|
<result property="modifyDate" column="modify_date" />
|
|
<result property="modifyDate" column="modify_date" />
|
|
@@ -18,13 +19,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSendSmsVo">
|
|
<sql id="selectSendSmsVo">
|
|
- select id, phone, status, content, modify_date, create_by, create_time, update_by, update_time, is_del from send_sms
|
|
|
|
|
|
+ select id, phone,ticket_id, status, content, modify_date, create_by, create_time, update_by, update_time, is_del from send_sms
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSendSmsList" parameterType="SendSms" resultMap="SendSmsResult">
|
|
<select id="selectSendSmsList" parameterType="SendSms" resultMap="SendSmsResult">
|
|
<include refid="selectSendSmsVo"/>
|
|
<include refid="selectSendSmsVo"/>
|
|
<where>
|
|
<where>
|
|
- <if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
|
|
|
|
|
+ <if test="phone != null and phone != ''"> and phone like concat( #{phone}, '%')</if>
|
|
|
|
+ <if test="ticketId != null and ticketId != ''"> and ticket_id like concat( #{ticketId}, '%')</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -37,28 +39,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<insert id="insertSendSms" parameterType="SendSms">
|
|
<insert id="insertSendSms" parameterType="SendSms">
|
|
insert into send_sms
|
|
insert into send_sms
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="id != null">id,</if>
|
|
|
|
<if test="phone != null">phone,</if>
|
|
<if test="phone != null">phone,</if>
|
|
|
|
+ <if test="ticketId != null">ticket_id,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="modifyDate != null">modify_date,</if>
|
|
<if test="modifyDate != null">modify_date,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
- <if test="isDel != null and isDel != ''">is_del,</if>
|
|
|
|
|
|
+ create_time
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="id != null">#{id},</if>
|
|
|
|
<if test="phone != null">#{phone},</if>
|
|
<if test="phone != null">#{phone},</if>
|
|
|
|
+ <if test="ticketId != null">#{ticketId},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="modifyDate != null">#{modifyDate},</if>
|
|
<if test="modifyDate != null">#{modifyDate},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
- <if test="isDel != null and isDel != ''">#{isDel},</if>
|
|
|
|
|
|
+ sysdate()
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -66,14 +66,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update send_sms
|
|
update send_sms
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
|
+ <if test="ticketId != null">ticket_id = #{ticketId},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
<if test="modifyDate != null">modify_date = #{modifyDate},</if>
|
|
<if test="modifyDate != null">modify_date = #{modifyDate},</if>
|
|
- <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
|
|
<if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
|
|
|
|
+ update_time = sysdate()
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|