施工方案台账去掉项目子账号权限
This commit is contained in:
parent
75632cd92b
commit
bad3ab281d
@ -12,13 +12,13 @@
|
|||||||
ei.enterprise_name as epc_contractor_name,
|
ei.enterprise_name as epc_contractor_name,
|
||||||
ei2.enterprise_name as supervising_unit_name,
|
ei2.enterprise_name as supervising_unit_name,
|
||||||
ei3.enterprise_name as construction_unit_name,
|
ei3.enterprise_name as construction_unit_name,
|
||||||
ifnull(if(su.account_type=6,cpls.is_review,1),0) as is_review,
|
1 as is_review,
|
||||||
ifnull(if(su.account_type=6,cpls.is_download,1),0) as is_download,
|
1 as is_download,
|
||||||
ifnull(if(su.account_type=6,cpls.is_created,1),0) as is_created,
|
1 as is_created,
|
||||||
ifnull(if(su.account_type=6,cpls.is_modified,1),0) as is_modified,
|
1 as is_modified,
|
||||||
ifnull(if(su.account_type=6,cpls.is_deleted,1),0) as is_deleted,
|
1 as is_deleted,
|
||||||
ifnull(if(su.account_type=6,cpls.is_authorize,1),0) as is_authorize,
|
1 as is_authorize,
|
||||||
ifnull(if(su.account_type=6,cpls.is_view,1),0) as is_view
|
1 as is_view
|
||||||
,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name
|
,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name
|
||||||
from
|
from
|
||||||
construction_plan_ledger t
|
construction_plan_ledger t
|
||||||
@ -27,8 +27,8 @@
|
|||||||
left join enterprise_info ei on ei.id=t.epc_contractor_id
|
left join enterprise_info ei on ei.id=t.epc_contractor_id
|
||||||
left join enterprise_info ei2 on ei2.id=t.supervising_unit_id
|
left join enterprise_info ei2 on ei2.id=t.supervising_unit_id
|
||||||
left join enterprise_info ei3 on ei3.id=t.construction_unit_id
|
left join enterprise_info ei3 on ei3.id=t.construction_unit_id
|
||||||
LEFT JOIN system_user su ON su.user_id = #{param.userId}
|
LEFT JOIN system_user su ON su.user_id = #{param.userId}
|
||||||
LEFT JOIN construction_plan_ledger_set cpls ON cpls.construction_plan_ledger_id = t.id AND cpls.user_id = su.user_id
|
<!-- LEFT JOIN construction_plan_ledger_set cpls ON cpls.construction_plan_ledger_id = t.id AND cpls.user_id = su.user_id-->
|
||||||
LEFT JOIN worker_info wi on wi.id=su.worker_id
|
LEFT JOIN worker_info wi on wi.id=su.worker_id
|
||||||
LEFT JOIN team_info b ON wi.team_id = b.id
|
LEFT JOIN team_info b ON wi.team_id = b.id
|
||||||
LEFT JOIN department_info c ON wi.department_id = c.id
|
LEFT JOIN department_info c ON wi.department_id = c.id
|
||||||
@ -49,13 +49,13 @@
|
|||||||
ei.enterprise_name as epc_contractor_name,
|
ei.enterprise_name as epc_contractor_name,
|
||||||
ei2.enterprise_name as supervising_unit_name,
|
ei2.enterprise_name as supervising_unit_name,
|
||||||
ei3.enterprise_name as construction_unit_name,
|
ei3.enterprise_name as construction_unit_name,
|
||||||
ifnull(if(su.account_type=6,cpls.is_review,1),0) as is_review,
|
1 as is_review,
|
||||||
ifnull(if(su.account_type=6,cpls.is_download,1),0) as is_download,
|
1 as is_download,
|
||||||
ifnull(if(su.account_type=6,cpls.is_created,1),0) as is_created,
|
1 as is_created,
|
||||||
ifnull(if(su.account_type=6,cpls.is_modified,1),0) as is_modified,
|
1 as is_modified,
|
||||||
ifnull(if(su.account_type=6,cpls.is_deleted,1),0) as is_deleted,
|
1 as is_deleted,
|
||||||
ifnull(if(su.account_type=6,cpls.is_authorize,1),0) as is_authorize,
|
1 as is_authorize,
|
||||||
ifnull(if(su.account_type=6,cpls.is_view,1),0) as is_view
|
1 as is_view
|
||||||
,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name
|
,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name
|
||||||
from
|
from
|
||||||
construction_plan_ledger t
|
construction_plan_ledger t
|
||||||
@ -64,14 +64,14 @@
|
|||||||
left join enterprise_info ei on ei.id=t.epc_contractor_id
|
left join enterprise_info ei on ei.id=t.epc_contractor_id
|
||||||
left join enterprise_info ei2 on ei2.id=t.supervising_unit_id
|
left join enterprise_info ei2 on ei2.id=t.supervising_unit_id
|
||||||
left join enterprise_info ei3 on ei3.id=t.construction_unit_id
|
left join enterprise_info ei3 on ei3.id=t.construction_unit_id
|
||||||
LEFT JOIN system_user su ON su.user_id = #{userId}
|
LEFT JOIN system_user su ON su.user_id = #{userId}
|
||||||
LEFT JOIN construction_plan_ledger_set cpls ON cpls.construction_plan_ledger_id = t.id AND cpls.user_id = su.user_id
|
<!-- LEFT JOIN construction_plan_ledger_set cpls ON cpls.construction_plan_ledger_id = t.id AND cpls.user_id = su.user_id-->
|
||||||
LEFT JOIN worker_info wi on wi.id=su.worker_id
|
LEFT JOIN worker_info wi on wi.id=su.worker_id
|
||||||
LEFT JOIN team_info b ON wi.team_id = b.id
|
LEFT JOIN team_info b ON wi.team_id = b.id
|
||||||
LEFT JOIN department_info c ON wi.department_id = c.id
|
LEFT JOIN department_info c ON wi.department_id = c.id
|
||||||
LEFT JOIN worker_type wt ON b.worker_type_id = wt.id
|
LEFT JOIN worker_type wt ON b.worker_type_id = wt.id
|
||||||
)t
|
)t
|
||||||
where t.is_view = 1
|
<!-- where t.is_view = 1-->
|
||||||
)t
|
)t
|
||||||
where t.id = #{id}
|
where t.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user