|
|
|
@ -1636,6 +1636,12 @@ |
|
|
|
|
<if test="map.maxhjje!=null and map.maxhjje!= '' "> |
|
|
|
|
and CAST(oii.kphjje AS DECIMAL(40,2)) <= CAST(#{map.maxhjje,jdbcType=VARCHAR} as DECIMAL(40,2)) |
|
|
|
|
</if> |
|
|
|
|
<if test="map.pzhStart !=null and map.pzhStart != '' "> |
|
|
|
|
and CAST(oi.byzd2 AS UNSIGNED) >= CAST(#{map.pzhStart,jdbcType=VARCHAR} as UNSIGNED) |
|
|
|
|
</if> |
|
|
|
|
<if test="map.pzhEnd !=null and map.pzhEnd != '' "> |
|
|
|
|
and CAST(oi.byzd2 AS UNSIGNED) <= CAST(#{map.pzhEnd,jdbcType=VARCHAR} as UNSIGNED) |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
@ -1649,11 +1655,25 @@ |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'checkTime' "> |
|
|
|
|
order by check_time desc |
|
|
|
|
</when> |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'pzhAsc' "> |
|
|
|
|
order by CONVERT(oi.byzd2, UNSIGNED) asc,kprq DESC |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == '88' "> |
|
|
|
|
order by CASE |
|
|
|
|
WHEN oi.byzd2 IS NULL OR oi.byzd2 = '' THEN 1 |
|
|
|
|
ELSE 0 |
|
|
|
|
END, |
|
|
|
|
CONVERT(oi.byzd2, UNSIGNED) asc,ddh DESC |
|
|
|
|
</when> |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == '99' "> |
|
|
|
|
order by CASE |
|
|
|
|
WHEN oi.byzd2 IS NULL OR oi.byzd2 = '' THEN 1 |
|
|
|
|
ELSE 0 |
|
|
|
|
END, |
|
|
|
|
CONVERT(oi.byzd2, UNSIGNED) asc,ddh asc |
|
|
|
|
</when> |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == '66' "> |
|
|
|
|
order by CONVERT(oi.byzd2, UNSIGNED) DESC,ddh DESC |
|
|
|
|
</when> |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == 'pzhDesc' "> |
|
|
|
|
order by CONVERT(oi.byzd2, UNSIGNED) desc,kprq DESC |
|
|
|
|
<when test="map.orderBy !=null and map.orderBy == '77' "> |
|
|
|
|
order by CONVERT(oi.byzd2, UNSIGNED) DESC,ddh asc |
|
|
|
|
</when> |
|
|
|
|
<otherwise> |
|
|
|
|
ORDER BY kprq DESC |
|
|
|
|