|
|
|
@ -335,6 +335,19 @@ |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.handleResultCode != null and param.handleResultCode.size > 0"> |
|
|
|
|
|
|
|
AND n.id IN ( |
|
|
|
|
|
|
|
SELECT DISTINCT nb.negativeId |
|
|
|
|
|
|
|
FROM negative_blame nb |
|
|
|
|
|
|
|
WHERE |
|
|
|
|
|
|
|
<foreach collection="param.handleResultCode" item="code" separator=" OR "> |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
CONCAT(',', nb.handleResultCode, ',') LIKE CONCAT('%,', #{code}, ',%') |
|
|
|
|
|
|
|
OR CONCAT(',', nb.leadHandleResultCode, ',') LIKE CONCAT('%,', #{code}, ',%') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
ORDER BY n.crtTime DESC, cc.id DESC |
|
|
|
ORDER BY n.crtTime DESC, cc.id DESC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|