| | |
| | | <result property="taskId" column="task_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="followTypeId" column="follow_type_id" /> |
| | | <result property="followType" column="follow_type" /> |
| | | <result property="followContent" column="follow_content" /> |
| | | <result property="nextFollowDate" column="next_follow_date" /> |
| | | <result property="taskTitle" column="task_title" /> |
| | | <result property="emergencyStateId" column="emergency_state_id" /> |
| | | <result property="emergencyState" column="emergency_state" /> |
| | | <result property="createTime" column="create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopTaskVo"> |
| | | select task_id, del_flag, shop_id, follow_type_id, follow_content, next_follow_date, task_title, emergency_state_id, create_time from t_shop_task |
| | | select task_id, del_flag, shop_id, follow_type, follow_content, next_follow_date, task_title, emergency_state, create_time from t_shop_task |
| | | </sql> |
| | | |
| | | <select id="selectShopTaskList" parameterType="ShopTask" resultMap="ShopTaskResult"> |
| | | <include refid="selectShopTaskVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="followTypeId != null "> and follow_type_id = #{followTypeId}</if> |
| | | <if test="followType != null "> and follow_type = #{followType}</if> |
| | | <if test="followContent != null and followContent != ''"> and follow_content = #{followContent}</if> |
| | | <if test="nextFollowDate != null "> and next_follow_date = #{nextFollowDate}</if> |
| | | <if test="taskTitle != null and taskTitle != ''"> and task_title = #{taskTitle}</if> |
| | | <if test="emergencyStateId != null "> and emergency_state_id = #{emergencyStateId}</if> |
| | | <if test="emergencyState != null "> and emergency_state = #{emergencyState}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="taskId != null">task_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="followTypeId != null">follow_type_id,</if> |
| | | <if test="followType != null">follow_type,</if> |
| | | <if test="followContent != null">follow_content,</if> |
| | | <if test="nextFollowDate != null">next_follow_date,</if> |
| | | <if test="taskTitle != null">task_title,</if> |
| | | <if test="emergencyStateId != null">emergency_state_id,</if> |
| | | <if test="emergencyState != null">emergency_state,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskId != null">#{taskId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="followTypeId != null">#{followTypeId},</if> |
| | | <if test="followType != null">#{followType},</if> |
| | | <if test="followContent != null">#{followContent},</if> |
| | | <if test="nextFollowDate != null">#{nextFollowDate},</if> |
| | | <if test="taskTitle != null">#{taskTitle},</if> |
| | | <if test="emergencyStateId != null">#{emergencyStateId},</if> |
| | | <if test="emergencyState != null">#{emergencyState},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="followTypeId != null">follow_type_id = #{followTypeId},</if> |
| | | <if test="followType != null">follow_type = #{followType},</if> |
| | | <if test="followContent != null">follow_content = #{followContent},</if> |
| | | <if test="nextFollowDate != null">next_follow_date = #{nextFollowDate},</if> |
| | | <if test="taskTitle != null">task_title = #{taskTitle},</if> |
| | | <if test="emergencyStateId != null">emergency_state_id = #{emergencyStateId},</if> |
| | | <if test="emergencyState != null">emergency_state = #{emergencyState},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | </trim> |
| | | where task_id = #{taskId} |
| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="pageMgtAgencyFollow" resultType="com.ruoyi.shop.domain.vo.MgtAgencyTaskRecordPageVo"> |
| | | SELECT |
| | | tmtr.user_id userId, |
| | | tmtr.id followId, |
| | | tmtr.task_id taskId, |
| | | tmtr.create_time createTime, |
| | | tmtr.follow_type followType, |
| | | tmtr.call_time callTime, |
| | | tmtr.follow_content followContent, |
| | | tmtr.call_phone callPhone |
| | | FROM t_agency_task tmt |
| | | INNER JOIN t_agency_task_record tmtr ON tmtr.task_id = tmt.task_id |
| | | WHERE tmt.del_flag = 0 AND tmt.agency_id = #{param.shopId} |
| | | ORDER BY tmtr.create_time DESC |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |