|
|
|
@ -122,15 +122,15 @@ |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
pa.PA_TYPE = 1 AND pa.CUR_STATUS = 1 |
|
|
|
pa.PA_TYPE = 1 AND pa.CUR_STATUS = 1 |
|
|
|
<if test="tsIds != null and tsIds.size() > 0"> |
|
|
|
<if test="tsIds != null and tsIds.size() > 0"> |
|
|
|
AND (c.MAKE_TEAM in |
|
|
|
AND (b.MAKE_TEAM in |
|
|
|
<foreach collection="tsIds" item="tsId" open="(" separator="," close=")"> |
|
|
|
<foreach collection="tsIds" item="tsId" open="(" separator="," close=")"> |
|
|
|
#{tsId} |
|
|
|
#{tsId} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
or c.SUBSIDIARY_TEAM in |
|
|
|
or b.SUBSIDIARY_TEAM in |
|
|
|
<foreach collection="tsIds" item="tsId" open="(" separator="," close=")"> |
|
|
|
<foreach collection="tsIds" item="tsId" open="(" separator="," close=")"> |
|
|
|
#{tsId} |
|
|
|
#{tsId} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
or (c.MAKE_TEAM is null and c.OC_ID is null and d.dispatcher is not null and d.dispatcher = #{userId})) |
|
|
|
or (b.MAKE_TEAM is null and b.OC_ID is null and c.dispatcher is not null and c.dispatcher = #{userId})) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
and c.ID = #{id} |
|
|
|
and c.ID = #{id} |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
|