|
|
@@ -31,19 +31,36 @@
|
|
|
id, schedule_id, template_id, task_id, childTaskId, group_id, task_type, remark, task_content, status, err_info, send_time, create_uid, update_uid, create_at, update_at
|
|
|
</sql>
|
|
|
<select id="getList" resultType="com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskList">
|
|
|
- SELECT
|
|
|
- task_list.*,
|
|
|
- task_template.template_name,
|
|
|
- mobile_group.group_name
|
|
|
- FROM
|
|
|
+ <if test="handle.type == 2">
|
|
|
+ SELECT
|
|
|
+ task_list.*,
|
|
|
+ task_template.template_name,
|
|
|
+ mobile_group.group_name
|
|
|
+ FROM
|
|
|
pan_fosterwx_cash_schedule_task_list task_list
|
|
|
- LEFT JOIN pan_fosterwx_cash_task_template task_template ON task_template.id = task_list.template_id
|
|
|
- LEFT JOIN pan_fosterwx_cash_mobile_group mobile_group ON task_list.group_id = mobile_group.id
|
|
|
- <where>
|
|
|
- ${ew.sqlSegment}
|
|
|
- </where>
|
|
|
- order by task_list.id desc
|
|
|
- limit #{limit} offset #{offset}
|
|
|
+ LEFT JOIN pan_fosterwx_cash_task_template task_template ON task_template.id = task_list.template_id
|
|
|
+ LEFT JOIN pan_fosterwx_cash_mobile_group mobile_group ON task_list.group_id = mobile_group.id
|
|
|
+ <where>
|
|
|
+ ${ew.sqlSegment}
|
|
|
+ </where>d
|
|
|
+ order by task_list.id desc
|
|
|
+ limit #{limit} offset #{offset}
|
|
|
+ </if>
|
|
|
+ <if test="handle.type == 1">
|
|
|
+ SELECT
|
|
|
+ task_list.*,
|
|
|
+ task_template.template_name,
|
|
|
+ mobile_group.group_name
|
|
|
+ FROM
|
|
|
+ pan_fosterwx_cash_schedule_task_list task_list
|
|
|
+ LEFT JOIN pan_fosterwx_cash_task_template task_template ON task_template.id = task_list.template_id
|
|
|
+ LEFT JOIN pan_fosterwx_cash_mobile_group mobile_group ON task_list.group_id = mobile_group.id
|
|
|
+ <where>
|
|
|
+ ${ew.sqlSegment}
|
|
|
+ </where>
|
|
|
+ order by task_list.id desc
|
|
|
+ limit #{limit} offset #{offset}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="getBannedGhid" resultType="com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskList">
|
|
|
SELECT
|