|
|
@ -115,7 +115,7 @@ |
|
|
|
and (hi.grid_id = #{gridId} |
|
|
|
OR find_in_set(#{gridId},hi.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="deptIdList != null"> |
|
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
|
and hi.grid_id in |
|
|
|
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
#{id} |
|
|
@ -164,7 +164,7 @@ |
|
|
|
and (hi.grid_id = #{gridId} |
|
|
|
OR find_in_set(#{gridId},hi.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="deptIdList != null"> |
|
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
|
and hi.grid_id in |
|
|
|
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
#{id} |
|
|
|