|
|
@@ -196,11 +196,14 @@
|
|
|
<select id="selectRecPage" resultType="com.xunmei.common.core.domain.drill.vo.CoreDrillTaskRecPageVo">
|
|
|
select * from core_drill_task t
|
|
|
where t.rec_status is not null
|
|
|
- <if test="request.recStatus!=null">
|
|
|
- and t.rec_status =#{request.recStatus} and t.unrec_status is null
|
|
|
+ <if test="request.recStatus!=null and request.unRecStatus==null">
|
|
|
+ and t.rec_status = #{request.recStatus} AND t.unrec_status is null
|
|
|
+ </if>
|
|
|
+ <if test="request.recStatus!=null and request.unRecStatus!=null">
|
|
|
+ and t.rec_status = #{request.recStatus} and t.unrec_status = #{request.unRecStatus}
|
|
|
</if>
|
|
|
- <if test="request.unRecStatus!=null">
|
|
|
- and t.unrec_status =#{request.unRecStatus}
|
|
|
+ <if test="request.drillType!=null">
|
|
|
+ and t.type =#{request.drillType}
|
|
|
</if>
|
|
|
and t.org_path like concat(#{request.orgPath},'%')
|
|
|
<include refid="timeRangeSql"/>
|
|
|
@@ -220,9 +223,18 @@
|
|
|
<select id="selectRecTaskListPage" resultType="com.xunmei.common.core.domain.drill.vo.CoreDrillTaskRecTaskPageVo">
|
|
|
select id,org_name,drill_start_time,drill_end_time,type from core_drill_task t
|
|
|
where drill_start_time is not null
|
|
|
- <include refid="recTaskListPage"/>
|
|
|
-
|
|
|
-
|
|
|
+ <if test="request.orgPath !=null and request.orgPath != ''">
|
|
|
+ and t.org_path like concat(#{request.orgPath},'%')
|
|
|
+ </if>
|
|
|
+ <if test="request.recStatus!=null and request.unRecStatus==null">
|
|
|
+ and t.rec_status = #{request.recStatus} AND t.unrec_status is null
|
|
|
+ </if>
|
|
|
+ <if test="request.recStatus!=null and request.unRecStatus!=null">
|
|
|
+ and t.rec_status = #{request.recStatus} and t.unrec_status = #{request.unRecStatus}
|
|
|
+ </if>
|
|
|
+ <if test="request.drillType!=null">
|
|
|
+ and t.type =#{request.drillType}
|
|
|
+ </if>
|
|
|
<if test="request.startTime != null and request.endTime != null">
|
|
|
and (
|
|
|
(
|