|
|
|
|
@ -221,7 +221,11 @@
|
|
|
|
|
n.check_status_code AS checkStatusCode, |
|
|
|
|
n.checkStatusName AS checkStatusName, |
|
|
|
|
n.check_status_desc AS checkStatusDesc, |
|
|
|
|
n.involveDepartName AS involveDepartName |
|
|
|
|
n.involveDepartName AS involveDepartName, |
|
|
|
|
n.handle_second_depart_id AS handleSecondDepartId, |
|
|
|
|
n.handle_second_depart_name AS handleSecondDepartName, |
|
|
|
|
n.handle_three_depart_id AS handleThreeDepartId, |
|
|
|
|
n.handle_three_depart_name AS handleThreeDepartName |
|
|
|
|
FROM complaint_collection cc |
|
|
|
|
LEFT JOIN negative n ON n.id = cc.negative_id |
|
|
|
|
<where> |
|
|
|
|
@ -321,6 +325,18 @@
|
|
|
|
|
<if test="param.createTimeList != null and param.createTimeList.size == 2"> |
|
|
|
|
AND cc.create_time BETWEEN #{param.createTimeList[0]} AND #{param.createTimeList[1]} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.handleDepartIds != null and param.handleDepartIds.size > 0"> |
|
|
|
|
AND ( |
|
|
|
|
n.handle_second_depart_id IN |
|
|
|
|
<foreach collection="param.handleDepartIds" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
OR n.handle_three_depart_id IN |
|
|
|
|
<foreach collection="param.handleDepartIds" item="item" open="(" separator="," close=")"> |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
) |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
ORDER BY n.crtTime DESC, cc.id DESC |
|
|
|
|
</select> |
|
|
|
|
|