You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
6.4 KiB
118 lines
6.4 KiB
<?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.mmxt.business.mapper.MmxtMeiyuSmsLogMapper">
|
|
|
|
<resultMap type="com.mmxt.business.domain.MmxtMeiyuSmsLog" id="MmxtMeiyuSmsLogResult">
|
|
<result property="id" column="id" />
|
|
<result property="sendUser" column="send_user" />
|
|
<result property="carrieroperator" column="carrieroperator" />
|
|
<result property="phone" column="phone" />
|
|
<result property="content" column="content" />
|
|
<result property="returncode" column="returncode" />
|
|
<result property="sendStatus" column="send_status" />
|
|
<result property="sendTime" column="send_time" />
|
|
<result property="sendType" column="send_type" />
|
|
<result property="sendBizid" column="send_bizId" />
|
|
<result property="sendIp" column="send_ip" />
|
|
<result property="siteFlag" column="site_flag" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="delFlag" column="del_flag" />
|
|
</resultMap>
|
|
|
|
<sql id="selectMmxtMeiyuSmsLogVo">
|
|
select id, send_user, carrieroperator, phone, content, returncode, send_status, send_time, send_type, send_bizId, send_ip, site_flag, create_time, create_by, del_flag from mmxt_meiyu_sms_log
|
|
</sql>
|
|
|
|
<select id="selectMmxtMeiyuSmsLogList" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog" resultMap="MmxtMeiyuSmsLogResult">
|
|
<include refid="selectMmxtMeiyuSmsLogVo"/>
|
|
<where>
|
|
<if test="sendUser != null and sendUser != ''"> and send_user = #{sendUser}</if>
|
|
<if test="carrieroperator != null and carrieroperator != ''"> and carrieroperator = #{carrieroperator}</if>
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
<if test="returncode != null and returncode != ''"> and returncode = #{returncode}</if>
|
|
<if test="sendStatus != null and sendStatus != ''"> and send_status = #{sendStatus}</if>
|
|
<if test="sendTime != null "> and send_time = #{sendTime}</if>
|
|
<if test="sendType != null and sendType != ''"> and send_type = #{sendType}</if>
|
|
<if test="sendBizid != null and sendBizid != ''"> and send_bizId = #{sendBizid}</if>
|
|
<if test="sendIp != null and sendIp != ''"> and send_ip = #{sendIp}</if>
|
|
<if test="siteFlag != null "> and site_flag = #{siteFlag}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectMmxtMeiyuSmsLogById" parameterType="Long" resultMap="MmxtMeiyuSmsLogResult">
|
|
<include refid="selectMmxtMeiyuSmsLogVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertMmxtMeiyuSmsLog" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog" useGeneratedKeys="true" keyProperty="id">
|
|
insert into mmxt_meiyu_sms_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="sendUser != null">send_user,</if>
|
|
<if test="carrieroperator != null">carrieroperator,</if>
|
|
<if test="phone != null">phone,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="returncode != null">returncode,</if>
|
|
<if test="sendStatus != null">send_status,</if>
|
|
<if test="sendTime != null">send_time,</if>
|
|
<if test="sendType != null">send_type,</if>
|
|
<if test="sendBizid != null">send_bizId,</if>
|
|
<if test="sendIp != null">send_ip,</if>
|
|
<if test="siteFlag != null">site_flag,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="sendUser != null">#{sendUser},</if>
|
|
<if test="carrieroperator != null">#{carrieroperator},</if>
|
|
<if test="phone != null">#{phone},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="returncode != null">#{returncode},</if>
|
|
<if test="sendStatus != null">#{sendStatus},</if>
|
|
<if test="sendTime != null">#{sendTime},</if>
|
|
<if test="sendType != null">#{sendType},</if>
|
|
<if test="sendBizid != null">#{sendBizid},</if>
|
|
<if test="sendIp != null">#{sendIp},</if>
|
|
<if test="siteFlag != null">#{siteFlag},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateMmxtMeiyuSmsLog" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog">
|
|
update mmxt_meiyu_sms_log
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="sendUser != null">send_user = #{sendUser},</if>
|
|
<if test="carrieroperator != null">carrieroperator = #{carrieroperator},</if>
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
<if test="returncode != null">returncode = #{returncode},</if>
|
|
<if test="sendStatus != null">send_status = #{sendStatus},</if>
|
|
<if test="sendTime != null">send_time = #{sendTime},</if>
|
|
<if test="sendType != null">send_type = #{sendType},</if>
|
|
<if test="sendBizid != null">send_bizId = #{sendBizid},</if>
|
|
<if test="sendIp != null">send_ip = #{sendIp},</if>
|
|
<if test="siteFlag != null">site_flag = #{siteFlag},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteMmxtMeiyuSmsLogById" parameterType="Long">
|
|
delete from mmxt_meiyu_sms_log where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteMmxtMeiyuSmsLogByIds" parameterType="String">
|
|
delete from mmxt_meiyu_sms_log where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper>
|