|
|
@@ -85,23 +85,7 @@
|
|
|
<if test="request.status != null">
|
|
|
and t.status=#{request.status}
|
|
|
</if>
|
|
|
- <if test="request.startTime != null and request.endTime != null">
|
|
|
- and (
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.start_date
|
|
|
- )
|
|
|
- or
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.end_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.end_date
|
|
|
- )
|
|
|
- or (
|
|
|
- #{request.startTime} <![CDATA[>=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[<=]]> t.end_date
|
|
|
- )
|
|
|
- )
|
|
|
- </if>
|
|
|
+ <include refid="timeRangeSql"/>
|
|
|
</where>
|
|
|
order by t.update_time desc
|
|
|
</select>
|
|
|
@@ -216,23 +200,7 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
and t.org_path like concat(#{request.orgPath},'%')
|
|
|
- <if test="request.startTime != null and request.endTime != null">
|
|
|
- and (
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.start_date
|
|
|
- )
|
|
|
- or
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.end_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.end_date
|
|
|
- )
|
|
|
- or (
|
|
|
- #{request.startTime} <![CDATA[>=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[<=]]> t.end_date
|
|
|
- )
|
|
|
- )
|
|
|
- </if>
|
|
|
+ <include refid="timeRangeSql"/>
|
|
|
</select>
|
|
|
<sql id="recTaskListPage">
|
|
|
<if test="request.orgPath !=null and request.orgPath != ''">
|
|
|
@@ -285,7 +253,13 @@
|
|
|
<foreach collection="request.roleIdList" item="roleId" open="(" separator="," close=")">
|
|
|
#{roleId}
|
|
|
</foreach>
|
|
|
- and t.status in (0,1,2)
|
|
|
+ and t.status in
|
|
|
+ <foreach collection="list" item="status" open="(" separator="," close=")">
|
|
|
+ #{status}
|
|
|
+ </foreach>
|
|
|
+ <include refid="timeRangeSql"/>
|
|
|
+ </select>
|
|
|
+ <sql id="timeRangeSql">
|
|
|
<if test="request.startTime != null and request.endTime != null">
|
|
|
and (
|
|
|
(
|
|
|
@@ -303,30 +277,23 @@
|
|
|
)
|
|
|
)
|
|
|
</if>
|
|
|
- </select>
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="selectWaitEvaluateTaskList" resultType="com.xunmei.common.core.domain.panel.vo.PanelListVo">
|
|
|
select distinct t.id as id, title as taskName,t.start_date startTime,t.end_date as endTime,t.status
|
|
|
from core_drill_task t
|
|
|
where t.status =2
|
|
|
and t.org_path like concat(#{request.orgPath},'%')
|
|
|
- <if test="request.startTime != null and request.endTime != null">
|
|
|
- and (
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.start_date
|
|
|
- )
|
|
|
- or
|
|
|
- (
|
|
|
- #{request.startTime} <![CDATA[<=]]> t.end_date
|
|
|
- and #{request.endTime} <![CDATA[>=]]> t.end_date
|
|
|
- )
|
|
|
- or (
|
|
|
- #{request.startTime} <![CDATA[>=]]> t.start_date
|
|
|
- and #{request.endTime} <![CDATA[<=]]> t.end_date
|
|
|
- )
|
|
|
- )
|
|
|
+ <if test="request.orgType =3">
|
|
|
+ or (t.rec_status=0)
|
|
|
+ </if>
|
|
|
+ <if test="request.orgType =2">
|
|
|
+ or (t.rec_status=2)
|
|
|
+ </if>
|
|
|
+ <if test="request.orgType =2">
|
|
|
+ or (t.rec_status=4)
|
|
|
</if>
|
|
|
+ <include refid="timeRangeSql"/>
|
|
|
</select>
|
|
|
|
|
|
<update id="updateTaskStatus">
|