| | |
| | | |
| | | |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.sms.SmsTaskVO"> |
| | | select t.* from t_sms_task t |
| | | SELECT |
| | | t.* ,st.`name` as sms_template_name,st.description as sms_template_desc |
| | | FROM |
| | | t_sms_task t |
| | | LEFT JOIN t_sms_template st ON t.sms_template_id = st.id |
| | | where t.deleted= 0 |
| | | <if test="dto.id!=null "> |
| | | and t.id = #{dto.id} |
| | | </if> |
| | | <if test="dto.code != null and dto.code != ''"> |
| | | and t.code like concat('%', #{dto.code}, '%') |
| | | </if> |
| | | <if test="dto.name != null and dto.name != ''"> |
| | | and t.name like concat('%', #{dto.name}, '%') |
| | | </if> |
| | | <if test="dto.description != null and dto.description != ''"> |
| | | and t.description like concat('%', #{dto.description}, '%') |
| | | <if test="dto.smsTemplateName != null and dto.smsTemplateName != ''"> |
| | | and st.name like concat('%', #{dto.smsTemplateName}, '%') |
| | | </if> |
| | | <if test="dto.status != null and dto.status != ''"> |
| | | and t.status = #{dto.status} |
| | | </if> |
| | | <if test="dto.startDate!=null "> |
| | | <![CDATA[ |