From bad3ab281da0c2178a9f10aa961fe9e7be2f597e Mon Sep 17 00:00:00 2001 From: guoshengxiong <1923636941@qq.com> Date: Fri, 19 Dec 2025 09:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=BD=E5=B7=A5=E6=96=B9=E6=A1=88=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E5=8E=BB=E6=8E=89=E9=A1=B9=E7=9B=AE=E5=AD=90=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xml/ConstructionPlanLedgerMapper.xml | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/ConstructionPlanLedgerMapper.xml b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/ConstructionPlanLedgerMapper.xml index 0a313ef6c..0b06871fb 100644 --- a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/ConstructionPlanLedgerMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/ConstructionPlanLedgerMapper.xml @@ -12,13 +12,13 @@ ei.enterprise_name as epc_contractor_name, ei2.enterprise_name as supervising_unit_name, ei3.enterprise_name as construction_unit_name, - ifnull(if(su.account_type=6,cpls.is_review,1),0) as is_review, - ifnull(if(su.account_type=6,cpls.is_download,1),0) as is_download, - ifnull(if(su.account_type=6,cpls.is_created,1),0) as is_created, - ifnull(if(su.account_type=6,cpls.is_modified,1),0) as is_modified, - ifnull(if(su.account_type=6,cpls.is_deleted,1),0) as is_deleted, - ifnull(if(su.account_type=6,cpls.is_authorize,1),0) as is_authorize, - ifnull(if(su.account_type=6,cpls.is_view,1),0) as is_view + 1 as is_review, + 1 as is_download, + 1 as is_created, + 1 as is_modified, + 1 as is_deleted, + 1 as is_authorize, + 1 as is_view ,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name from construction_plan_ledger t @@ -27,8 +27,8 @@ 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 ei3 on ei3.id=t.construction_unit_id - 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 system_user su ON su.user_id = #{param.userId} + LEFT JOIN worker_info wi on wi.id=su.worker_id LEFT JOIN team_info b ON wi.team_id = b.id LEFT JOIN department_info c ON wi.department_id = c.id @@ -49,13 +49,13 @@ ei.enterprise_name as epc_contractor_name, ei2.enterprise_name as supervising_unit_name, ei3.enterprise_name as construction_unit_name, - ifnull(if(su.account_type=6,cpls.is_review,1),0) as is_review, - ifnull(if(su.account_type=6,cpls.is_download,1),0) as is_download, - ifnull(if(su.account_type=6,cpls.is_created,1),0) as is_created, - ifnull(if(su.account_type=6,cpls.is_modified,1),0) as is_modified, - ifnull(if(su.account_type=6,cpls.is_deleted,1),0) as is_deleted, - ifnull(if(su.account_type=6,cpls.is_authorize,1),0) as is_authorize, - ifnull(if(su.account_type=6,cpls.is_view,1),0) as is_view + 1 as is_review, + 1 as is_download, + 1 as is_created, + 1 as is_modified, + 1 as is_deleted, + 1 as is_authorize, + 1 as is_view ,if(wi.person_type=1,wt.type_name,c.department_name) as post_work_type_name from construction_plan_ledger t @@ -64,14 +64,14 @@ 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 ei3 on ei3.id=t.construction_unit_id - 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 system_user su ON su.user_id = #{userId} + LEFT JOIN worker_info wi on wi.id=su.worker_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 worker_type wt ON b.worker_type_id = wt.id )t - where t.is_view = 1 + )t where t.id = #{id}