| | |
| | | <!--自定义分页列表查询--> |
| | | <select id="selectSmsRecordPage" resultType="cn.gistack.alerts.sms.vo.SmsRecordVO"> |
| | | select * from sm_sms_record where 1=1 and is_deleted = 0 |
| | | <if test="smsRecord.phone!=null and smsRecord.phone!=''"> |
| | | and phone like concat(concat('%',#{smsRecord.phone}),'%') |
| | | <if test="smsRecord.tel!=null and smsRecord.tel!=''"> |
| | | and tel like concat(concat('%',#{smsRecord.tel}),'%') |
| | | </if> |
| | | <if test="smsRecord.content!=null and smsRecord.content!=''"> |
| | | and content like concat(concat('%',#{smsRecord.content}),'%') |
| | |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--批量新增--> |
| | | <insert id="batchSaveSendRecord" |
| | | parameterType="cn.gistack.alerts.sms.entity.SmsRecord" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into sm_sms_record |
| | | (id,template_id,tel,content,response_status,response_msg,result_id,is_deleted,create_time) |
| | | <foreach collection="list" item="item" index="index" separator=","> |
| | | ( |
| | | #{item.id}, |
| | | #{item.templateId}, |
| | | #{item.tel}, |
| | | #{item.content}, |
| | | #{item.responseStatus}, |
| | | #{item.responseMsg}, |
| | | #{item.resultId}, |
| | | 0,now() |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |