|
|
|
|
@ -122,13 +122,15 @@ |
|
|
|
|
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' |
|
|
|
|
AND et.enumvalue = hdb.status |
|
|
|
|
WHERE hdb.handle_dept = #{cdepartmentid} |
|
|
|
|
<if test="status != null and status != '' and status == '0'"> |
|
|
|
|
AND hdb.status (0,99) |
|
|
|
|
<if test="status != null and status == 0"> |
|
|
|
|
AND hdb.status in ('0','99') |
|
|
|
|
</if> |
|
|
|
|
<if test="status != null and status != '' and status == '0'"> |
|
|
|
|
<if test="status != null and status != 0"> |
|
|
|
|
AND hdb.status = #{status} |
|
|
|
|
</if> |
|
|
|
|
AND hdb.name like #{search} |
|
|
|
|
<if test="search != null and search != ''"> |
|
|
|
|
AND hdb.name like concat(concat('%',#{search}),'%') |
|
|
|
|
</if> |
|
|
|
|
-- ORDER BY hdb.PC_END_TIME::timestamp DESC |
|
|
|
|
ORDER BY |
|
|
|
|
CASE |
|
|
|
|
|