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