12345678910111213141516171819202122 |
- <?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.lyg.application.mapper.TaMessageMapper">
-
- <update id="updateBySourceId">
- update TA_MESSAGE m
- <set>
- <if test="params.contentSent != null and params.contentSent != ''">
- m.CONTENT_SENT = #{params.contentSent},
- </if>
- <if test="params.sourceName != null and params.sourceName != ''">
- m.SOURCE_NAME = #{params.sourceName},
- </if>
- <if test="params.waringType != null and params.waringType != ''">
- m.WARING_TYPE = #{params.waringType}
- </if>
- </set>
- WHERE m.source_id = #{id}
- AND m.deleted = 0
- </update>
- </mapper>
|