| | |
| | | |
| | | |
| | | <select id="selectSmsRecordPage" resultMap="smsRecordResultMap"> |
| | | select * from blade_sms_record where is_deleted = 0 |
| | | select * from blade_sms_record |
| | | <where> |
| | | <if test="smsRecord.id != null ">and id = #{smsRecord.id}</if> |
| | | <if test="smsRecord.templateId != null ">and template_id = #{smsRecord.templateId}</if> |
| | | <if test="smsRecord.phone != null and smsRecord.phone != ''">and phone like concat('%',#{smsRecord.phone},'%') </if> |
| | | <if test="smsRecord.content != null and smsRecord.content != ''">and content like concat('%',#{smsRecord.content},'%') </if> |
| | | <if test="smsRecord.createUser != null ">and create_user = #{smsRecord.createUser}</if> |
| | | <if test="smsRecord.createDept != null ">and create_dept = #{smsRecord.createDept}</if> |
| | | <if test="smsRecord.createTime != null ">and create_time = #{smsRecord.createTime}</if> |
| | | <if test="smsRecord.updateTime != null ">and update_time = #{smsRecord.updateTime}</if> |
| | | <if test="smsRecord.status != null ">and status = #{smsRecord.status}</if> |
| | | <if test="smsRecord.isDeleted != null ">and is_deleted = #{smsRecord.isDeleted}</if> |
| | | order by create_time desc |
| | | </where> |
| | | </select> |
| | | |
| | | <resultMap type="org.springblade.modules.sms.dto.SmsRecordDTO" id="BladeSmsRecordDTOResult"> |