Browse Source

2.0-项目管理xm更新

1产品、项目列表后端增加根据团队成员过滤权限功能
master
陈裕财 2 years ago
parent
commit
6f5e02f2e6
  1. 5
      xm-core/src/main/java/com/xm/core/mapper/XmProductMapper.xml
  2. 3
      xm-core/src/main/java/com/xm/core/mapper/XmProjectMapper.xml

5
xm-core/src/main/java/com/xm/core/mapper/XmProductMapper.xml

@ -41,9 +41,10 @@
) )
</if> </if>
<if test='ext.isTpl==null or ext.isTpl=="0"'>
<if test='(ext.isTpl==null or ext.isTpl=="0") and (ext.linkProjectId ==null or ext.linkProjectId=="") and (ext.linkIterationId ==null or ext.linkIterationId=="")'>
and ( and (
(res.adm_userid= #{ext.myUserid} or res.pm_userid=#{ext.myUserid} or res.ass_userid=#{ext.myUserid})
exists(select 1 from xm_group_user gu where gu.userid=#{ext.myUserid} and gu.product_id=res.id)
or (res.adm_userid= #{ext.myUserid} or res.pm_userid=#{ext.myUserid} or res.ass_userid=#{ext.myUserid})
or (CASE or (CASE
WHEN res.show_out = '1' THEN WHEN res.show_out = '1' THEN
res.branch_id = #{ext.myBranchId} res.branch_id = #{ext.myBranchId}

3
xm-core/src/main/java/com/xm/core/mapper/XmProjectMapper.xml

@ -64,8 +64,9 @@
<if test="ext.del==null or ext.del==''"> <if test="ext.del==null or ext.del==''">
and res.del!="1" and res.del!="1"
</if> </if>
<if test='ext.isTpl==null or ext.isTpl=="0"'>
<if test='(ext.isTpl==null or ext.isTpl=="0") and (ext.linkProductId ==null or ext.linkProductId=="") and (ext.linkIterationId ==null or ext.linkIterationId=="")'>
and ( and (
exists(select 1 from xm_group_user gu where gu.userid=#{ext.myUserid} and gu.project_id=res.id)
(res.create_userid = #{ext.myUserid} or res.adm_userid= #{ext.myUserid} or res.pm_userid=#{ext.myUserid} or res.ass_userid=#{ext.myUserid}) (res.create_userid = #{ext.myUserid} or res.adm_userid= #{ext.myUserid} or res.pm_userid=#{ext.myUserid} or res.ass_userid=#{ext.myUserid})
or (CASE or (CASE
WHEN res.show_out = '1' THEN WHEN res.show_out = '1' THEN

Loading…
Cancel
Save