| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.mzl.flower.mapper.SmsTaskDetailMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.mzl.flower.entity.SmsTaskDetailDO"> |
| | | <id column="id" property="id" /> |
| | | <result column="deleted" property="deleted" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="sms_task_id" property="smsTaskId" /> |
| | | <result column="sms_template_id" property="smsTemplateId" /> |
| | | <result column="phone" property="phone" /> |
| | | <result column="result" property="result" /> |
| | | </resultMap> |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.sms.SmsTaskDetailVO"> |
| | | select t.* from t_sms_task_detail t |
| | | where t.deleted= 0 |
| | | <if test="dto.smsTaskId!=null "> |
| | | and t.sms_task_id = #{dto.smsTaskId} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |