|
@@ -38,47 +38,51 @@
|
|
</delete>
|
|
</delete>
|
|
<select id="searchTaskList" resultMap="BaseResultMap"
|
|
<select id="searchTaskList" resultMap="BaseResultMap"
|
|
parameterType="com.simuwang.base.pojo.dto.query.TaskPageQuery">
|
|
parameterType="com.simuwang.base.pojo.dto.query.TaskPageQuery">
|
|
- select id,email, task_name,task_type, start_time, end_time, task_status,
|
|
|
|
- isvalid, creatorid, createtime, updaterid, updatetime
|
|
|
|
- from PPW_EMAIL.email_task_info
|
|
|
|
- where isvalid=1
|
|
|
|
|
|
+ select task.id,task.email, task.task_name,task.task_type, task.start_time, task.end_time, task.task_status,
|
|
|
|
+ task.isvalid, task.creatorid, task.createtime, task.updaterid, task.updatetime,u.user_name
|
|
|
|
+ from PPW_EMAIL.email_task_info task
|
|
|
|
+ left join PPW_EMAIL.sys_user u
|
|
|
|
+ on task.creatorid=u.user_id
|
|
|
|
+ where task.isvalid=1
|
|
<if test="email != null and email !=''">
|
|
<if test="email != null and email !=''">
|
|
- and email like concat('%',#{email},'%')
|
|
|
|
|
|
+ and task.email like concat('%',#{email},'%')
|
|
</if>
|
|
</if>
|
|
<if test="taskName != null and taskName !=''">
|
|
<if test="taskName != null and taskName !=''">
|
|
- and task_name like concat('%',#{taskName},'%')
|
|
|
|
|
|
+ and task.task_name like concat('%',#{taskName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="startDate != null and startDate !=''">
|
|
<if test="startDate != null and startDate !=''">
|
|
- and updatetime >= #{startDate}
|
|
|
|
|
|
+ and task.updatetime >= #{startDate}
|
|
</if>
|
|
</if>
|
|
<if test="taskType != null">
|
|
<if test="taskType != null">
|
|
- and task_type = #{taskType}
|
|
|
|
|
|
+ and task.task_type = #{taskType}
|
|
</if>
|
|
</if>
|
|
<if test="endDate != null and endDate !=''">
|
|
<if test="endDate != null and endDate !=''">
|
|
- and updatetime <![CDATA[ <= ]]> #{endDate}
|
|
|
|
|
|
+ and task.updatetime <![CDATA[ <= ]]> #{endDate}
|
|
</if>
|
|
</if>
|
|
- order by updatetime desc
|
|
|
|
|
|
+ order by task.updatetime desc
|
|
limit #{offset},#{pageSize}
|
|
limit #{offset},#{pageSize}
|
|
</select>
|
|
</select>
|
|
<select id="countTaskList" resultType="java.lang.Long"
|
|
<select id="countTaskList" resultType="java.lang.Long"
|
|
parameterType="com.simuwang.base.pojo.dto.query.TaskPageQuery">
|
|
parameterType="com.simuwang.base.pojo.dto.query.TaskPageQuery">
|
|
select count(1)
|
|
select count(1)
|
|
- from PPW_EMAIL.email_task_info
|
|
|
|
- where isvalid=1
|
|
|
|
|
|
+ from PPW_EMAIL.email_task_info task
|
|
|
|
+ left join PPW_EMAIL.sys_user u
|
|
|
|
+ on task.creatorid=u.user_id
|
|
|
|
+ where task.isvalid=1
|
|
<if test="email != null and email !=''">
|
|
<if test="email != null and email !=''">
|
|
- and email like concat('%',#{email},'%')
|
|
|
|
|
|
+ and task.email like concat('%',#{email},'%')
|
|
</if>
|
|
</if>
|
|
<if test="taskName != null and taskName !=''">
|
|
<if test="taskName != null and taskName !=''">
|
|
- and task_name like concat('%',#{taskName},'%')
|
|
|
|
|
|
+ and task.task_name like concat('%',#{taskName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="startDate != null and startDate !=''">
|
|
<if test="startDate != null and startDate !=''">
|
|
- and updatetime >= #{startDate}
|
|
|
|
|
|
+ and task.updatetime >= #{startDate}
|
|
</if>
|
|
</if>
|
|
<if test="endDate != null and endDate !=''">
|
|
<if test="endDate != null and endDate !=''">
|
|
- and updatetime <![CDATA[ <= ]]> #{endDate}
|
|
|
|
|
|
+ and task.updatetime <![CDATA[ <= ]]> #{endDate}
|
|
</if>
|
|
</if>
|
|
<if test="taskType != null">
|
|
<if test="taskType != null">
|
|
- and task_type = #{taskType}
|
|
|
|
|
|
+ and task.task_type = #{taskType}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|