删除的项目不可查询
This commit is contained in:
parent
67f93e0e70
commit
e76d289706
|
|
@ -280,7 +280,7 @@
|
||||||
LEFT JOIN lk_pro_sup lps ON psi.uuid= lps.sup_uuid
|
LEFT JOIN lk_pro_sup lps ON psi.uuid= lps.sup_uuid
|
||||||
left join pt_project_info ppi on ppi.pro_id = lps.pro_id
|
left join pt_project_info ppi on ppi.pro_id = lps.pro_id
|
||||||
WHERE
|
WHERE
|
||||||
user_id = #{userId} and lps.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1
|
user_id = #{userId} and lps.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1 and ppi.is_active = '1'
|
||||||
</if>
|
</if>
|
||||||
<if test="userType == '02'">
|
<if test="userType == '02'">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
@ -307,7 +307,7 @@
|
||||||
LEFT JOIN lk_pro_cont lpc ON pci.uuid = lpc.cont_uuid
|
LEFT JOIN lk_pro_cont lpc ON pci.uuid = lpc.cont_uuid
|
||||||
left join pt_sup_info psi on psi.uuid = lpc.sup_uuid
|
left join pt_sup_info psi on psi.uuid = lpc.sup_uuid
|
||||||
left join pt_project_info ppi on ppi.pro_id = lpc.pro_id
|
left join pt_project_info ppi on ppi.pro_id = lpc.pro_id
|
||||||
WHERE user_id = #{userId} and lpc.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1
|
WHERE user_id = #{userId} and lpc.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1 and ppi.is_active = '1'
|
||||||
</if>
|
</if>
|
||||||
<if test="userType == '03'">
|
<if test="userType == '03'">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
@ -334,7 +334,7 @@
|
||||||
left join pt_sub_info psii on psii.uuid = lcs.sup_uuid
|
left join pt_sub_info psii on psii.uuid = lcs.sup_uuid
|
||||||
left join pt_project_info ppi on ppi.pro_id = lcs.pro_id
|
left join pt_project_info ppi on ppi.pro_id = lcs.pro_id
|
||||||
WHERE
|
WHERE
|
||||||
user_id = #{userId} and lcs.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1
|
user_id = #{userId} and lcs.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1 and ppi.is_active = '1'
|
||||||
</if>
|
</if>
|
||||||
<if test="userType == '04'">
|
<if test="userType == '04'">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
@ -347,7 +347,7 @@
|
||||||
lcp.is_exist_file = '1'
|
lcp.is_exist_file = '1'
|
||||||
left join pt_project_info ppi on ppi.pro_id = lcp.pro_id
|
left join pt_project_info ppi on ppi.pro_id = lcp.pro_id
|
||||||
WHERE
|
WHERE
|
||||||
user_id = #{userId} and ppi.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1
|
user_id = #{userId} and ppi.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1 and ppi.is_active = '1'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
ppi.pro_id
|
ppi.pro_id
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -360,7 +360,7 @@
|
||||||
LEFT JOIN lk_sup_person lcp ON su.parent_uuid = lcp.sup_uuid and lcp.is_exist_file = '1'
|
LEFT JOIN lk_sup_person lcp ON su.parent_uuid = lcp.sup_uuid and lcp.is_exist_file = '1'
|
||||||
left join pt_project_info ppi on ppi.pro_id = lcp.pro_id
|
left join pt_project_info ppi on ppi.pro_id = lcp.pro_id
|
||||||
WHERE
|
WHERE
|
||||||
user_id = #{userId} and ppi.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1
|
user_id = #{userId} and ppi.pro_id is not null and ppi.pro_name is not null and ppi.pro_status!=1 and ppi.is_active = '1'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
ppi.pro_id
|
ppi.pro_id
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue