|
|
|
@ -37,6 +37,8 @@ |
|
|
|
<result column="FLAG_APPROACH" property="flagApproach"/> |
|
|
|
<result column="FLAG_APPROACH" property="flagApproach"/> |
|
|
|
<result column="FLAG_OUT" property="flagOut"/> |
|
|
|
<result column="FLAG_OUT" property="flagOut"/> |
|
|
|
<result column="REASON_FOR_OUT" property="reasonForOut"/> |
|
|
|
<result column="REASON_FOR_OUT" property="reasonForOut"/> |
|
|
|
|
|
|
|
<result column="DAY_TO_PLANED_FINISH" property="dayToPlanedFinish"/> |
|
|
|
|
|
|
|
<result column="DAY_TO_OUT" property="dayToOut"/> |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCycleTestTaskPage" resultMap="cycleTestTaskResultMap"> |
|
|
|
<select id="selectCycleTestTaskPage" resultMap="cycleTestTaskResultMap"> |
|
|
|
@ -103,12 +105,21 @@ |
|
|
|
<if test="q.createTimeEnd != null"> |
|
|
|
<if test="q.createTimeEnd != null"> |
|
|
|
AND t.CREATE_TIME <= #{q.createTimeEnd} |
|
|
|
AND t.CREATE_TIME <= #{q.createTimeEnd} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.genDatetimeStart != null"> |
|
|
|
|
|
|
|
AND t.CREATE_TIME >= #{q.genDatetimeStart} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.genDatetimeEnd != null"> |
|
|
|
|
|
|
|
AND t.CREATE_TIME <= #{q.genDatetimeEnd} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="q.testType != null"> |
|
|
|
<if test="q.testType != null"> |
|
|
|
AND t.TEST_TYPE = #{q.testType} |
|
|
|
AND t.TEST_TYPE = #{q.testType} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="q.code != null and q.code != ''"> |
|
|
|
<if test="q.code != null and q.code != ''"> |
|
|
|
AND t.CODE LIKE '%' || #{q.code} || '%' |
|
|
|
AND t.CODE LIKE '%' || #{q.code} || '%' |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.cycleTestItemId != null"> |
|
|
|
|
|
|
|
AND item.ID = #{q.cycleTestItemId} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="q.cycleTestItemName != null and q.cycleTestItemName != ''"> |
|
|
|
<if test="q.cycleTestItemName != null and q.cycleTestItemName != ''"> |
|
|
|
AND item.NAME LIKE '%' || #{q.cycleTestItemName} || '%' |
|
|
|
AND item.NAME LIKE '%' || #{q.cycleTestItemName} || '%' |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
@ -145,6 +156,12 @@ |
|
|
|
<if test="q.finishDateEnd != null"> |
|
|
|
<if test="q.finishDateEnd != null"> |
|
|
|
AND t.FINISH_DATE <= #{q.finishDateEnd} |
|
|
|
AND t.FINISH_DATE <= #{q.finishDateEnd} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.dayToPlanedFinish != null"> |
|
|
|
|
|
|
|
AND t.DAY_TO_PLANED_FINISH = #{q.dayToPlanedFinish} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.dayToOut != null"> |
|
|
|
|
|
|
|
AND t.DAY_TO_OUT = #{q.dayToOut} |
|
|
|
|
|
|
|
</if> |
|
|
|
ORDER BY t.STATUS ASC,t.CREATE_TIME ASC |
|
|
|
ORDER BY t.STATUS ASC,t.CREATE_TIME ASC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
@ -187,12 +204,21 @@ |
|
|
|
<if test="q.createTimeEnd != null"> |
|
|
|
<if test="q.createTimeEnd != null"> |
|
|
|
AND t.CREATE_TIME <= #{q.createTimeEnd} |
|
|
|
AND t.CREATE_TIME <= #{q.createTimeEnd} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.genDatetimeStart != null"> |
|
|
|
|
|
|
|
AND t.CREATE_TIME >= #{q.genDatetimeStart} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.genDatetimeEnd != null"> |
|
|
|
|
|
|
|
AND t.CREATE_TIME <= #{q.genDatetimeEnd} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="q.testType != null"> |
|
|
|
<if test="q.testType != null"> |
|
|
|
AND t.TEST_TYPE = #{q.testType} |
|
|
|
AND t.TEST_TYPE = #{q.testType} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="q.code != null and q.code != ''"> |
|
|
|
<if test="q.code != null and q.code != ''"> |
|
|
|
AND t.CODE LIKE '%' || #{q.code} || '%' |
|
|
|
AND t.CODE LIKE '%' || #{q.code} || '%' |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.cycleTestItemId != null"> |
|
|
|
|
|
|
|
AND item.ID = #{q.cycleTestItemId} |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="q.cycleTestItemName != null and q.cycleTestItemName != ''"> |
|
|
|
<if test="q.cycleTestItemName != null and q.cycleTestItemName != ''"> |
|
|
|
AND item.NAME LIKE '%' || #{q.cycleTestItemName} || '%' |
|
|
|
AND item.NAME LIKE '%' || #{q.cycleTestItemName} || '%' |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
@ -229,6 +255,12 @@ |
|
|
|
<if test="q.finishDateEnd != null"> |
|
|
|
<if test="q.finishDateEnd != null"> |
|
|
|
AND t.FINISH_DATE <= #{q.finishDateEnd} |
|
|
|
AND t.FINISH_DATE <= #{q.finishDateEnd} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.dayToPlanedFinish != null"> |
|
|
|
|
|
|
|
AND t.DAY_TO_PLANED_FINISH = #{q.dayToPlanedFinish} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="q.dayToOut != null"> |
|
|
|
|
|
|
|
AND t.DAY_TO_OUT = #{q.dayToOut} |
|
|
|
|
|
|
|
</if> |
|
|
|
ORDER BY t.STATUS ASC,t.CREATE_TIME ASC |
|
|
|
ORDER BY t.STATUS ASC,t.CREATE_TIME ASC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
</mapper> |
|
|
|
|