|
@@ -98,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
)
|
|
|
</if>
|
|
|
<if test="user.userType!=null and user.userType!=-999 and user.userType!=-9999 and user.programItems != null and user.programItems.size() > 0">
|
|
|
+ <if test="user.permissonType == 5 or user.permissonType == 2">
|
|
|
and ( a.DEPT_ORG_ID in
|
|
|
<foreach collection="user.programItems" item="item" open="(" close=")" separator=",">
|
|
|
#{item.orgId}
|
|
@@ -108,6 +109,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{item.orgId}
|
|
|
</foreach>
|
|
|
)
|
|
|
+ </if>
|
|
|
+ <if test="user.permissonType == 4 or user.permissonType == 3">
|
|
|
+ and a.DEPT_ORG_ID in
|
|
|
+ <foreach collection="user.programItems" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item.orgId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="user.permissonType == 1">
|
|
|
+ and a.COMPANY_ORG_ID in
|
|
|
+ <foreach collection="user.programItems" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item.orgId}
|
|
|
+ </foreach>
|
|
|
+ and (a.DEPT_ORG_ID is null or a.DEPT_ORG_ID =0)
|
|
|
+ </if>
|
|
|
</if>
|
|
|
</where>
|
|
|
order by a.date_create desc
|