|
|
@@ -385,12 +385,18 @@
|
|
|
#{listItem}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="nextDate != null and nextDate.size() >= 2">
|
|
|
+ <if test="nextDate != null and nextDate.size() >= 2 and (order == null or order == '')">
|
|
|
AND (
|
|
|
(eb.NEXT_LEGAL_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]})
|
|
|
OR (eb.NEXT_YEAR_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]})
|
|
|
)
|
|
|
</if>
|
|
|
+ <if test="nextDate != null and nextDate.size() >=2 and sort != null and sort == 'nextLegalCheckDate' and order != null and order != ''">
|
|
|
+ AND eb.NEXT_LEGAL_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]}
|
|
|
+ </if>
|
|
|
+ <if test="nextDate != null and nextDate.size() >=2 and sort != null and sort == 'nextYearCheckDate' and order != null and order != ''">
|
|
|
+ AND eb.NEXT_YEAR_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]}
|
|
|
+ </if>
|
|
|
<if test="typeList != null and typeList.size() > 0">
|
|
|
AND eb.PIPE_CATEGORY IN
|
|
|
<foreach close=")" collection="typeList" item="listItem" open="(" separator=",">
|
|
|
@@ -484,12 +490,18 @@
|
|
|
#{listItem}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="nextDate != null and nextDate.size() >= 2">
|
|
|
+ <if test="nextDate != null and nextDate.size() >= 2 and (order == null or order == '')">
|
|
|
AND (
|
|
|
(eb.NEXT_LEGAL_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]})
|
|
|
OR (eb.NEXT_YEAR_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]})
|
|
|
)
|
|
|
</if>
|
|
|
+ <if test="nextDate != null and nextDate.size() >=2 and sort != null and sort == 'nextLegalCheckDate' and order != null and order != ''">
|
|
|
+ AND eb.NEXT_LEGAL_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]}
|
|
|
+ </if>
|
|
|
+ <if test="nextDate != null and nextDate.size() >=2 and sort != null and sort == 'nextYearCheckDate' and order != null and order != ''">
|
|
|
+ AND eb.NEXT_YEAR_CHECK_DATE BETWEEN #{nextDate[0]} AND #{nextDate[1]}
|
|
|
+ </if>
|
|
|
<if test="typeList != null and typeList.size() > 0">
|
|
|
AND eb.PIPE_CATEGORY IN
|
|
|
<foreach close=")" collection="typeList" item="listItem" open="(" separator=",">
|