diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml index d1c24dd..8facee4 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -280,7 +280,7 @@ 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 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' SELECT @@ -307,7 +307,7 @@ 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_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' SELECT @@ -334,7 +334,7 @@ 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 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' SELECT @@ -347,7 +347,7 @@ lcp.is_exist_file = '1' left join pt_project_info ppi on ppi.pro_id = lcp.pro_id 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 ppi.pro_id @@ -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 pt_project_info ppi on ppi.pro_id = lcp.pro_id 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 ppi.pro_id