fix: 设计人员只能查看自己的待复核和已退回数据
This commit is contained in:
parent
36e0e5c293
commit
515a72c325
|
|
@ -384,15 +384,15 @@
|
||||||
<select id="workDetailsListByPageNew" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO">
|
<select id="workDetailsListByPageNew" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO">
|
||||||
SELECT *,row_id as bomRowId
|
SELECT *,row_id as bomRowId
|
||||||
FROM t_bom_new_ebom_parent
|
FROM t_bom_new_ebom_parent
|
||||||
WHERE (root_is=1 OR ((user_root_is=1 OR root_is_for_wait_review=1) AND created_by=#{userCode}))
|
<!-- WHERE (root_is=1 OR ((user_root_is=1 OR root_is_for_wait_review=1) AND created_by=#{userCode}))-->
|
||||||
<if test="userJob==0">
|
<if test="userJob==0">
|
||||||
AND status IN (1,3)
|
WHERE status IN (1,3) AND (user_root_is=1 OR root_is_for_wait_review=1) AND created_by=#{userCode}
|
||||||
</if>
|
</if>
|
||||||
<if test="userJob==1 and query.dataType==0">
|
<if test="userJob==1 and query.dataType==0">
|
||||||
AND status=2
|
WHERE root_is=1 AND status=2
|
||||||
</if>
|
</if>
|
||||||
<if test="userJob==1 and query.dataType==1">
|
<if test="userJob==1 and query.dataType==1">
|
||||||
AND status=4
|
WHERE root_is=1 AND status=4
|
||||||
</if>
|
</if>
|
||||||
<if test="query.deviseName!=null and query.deviseName!=''">
|
<if test="query.deviseName!=null and query.deviseName!=''">
|
||||||
AND devise_name=#{query.deviseName}
|
AND devise_name=#{query.deviseName}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue