From 5637070c77ad24c595b73d628d52e83a28b51ba8 Mon Sep 17 00:00:00 2001
From: lSun <15893999301@qq.com>
Date: Fri, 6 Feb 2026 18:28:04 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=8C=89=E5=9B=BA=E5=AE=9A=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E8=80=83=E5=8B=A4=E3=80=81=E4=B8=B4=E6=97=B6=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E8=80=83=E5=8B=A4=E5=8C=BA=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../bmw/basic/entity/ProjectGeneralBean.java | 1 -
.../resources/mapper/basic/ProjectMapper.xml | 13 +++----------
.../resources/mapper/basic/UserMapper.xml | 14 ++++----------
.../mapper/subeva/SubCorepersonMapper.xml | 11 ++++++-----
.../static/downloads/业主信息导入模板.xlsx | Bin 10768 -> 10500 bytes
.../js/work/ProjectManage/projectManage.js | 4 ++--
.../work/SettingManage/UserManage/UserList.js | 14 +++++++-------
.../SettingManage/UserManage/UserList.html | 12 ++++++------
8 files changed, 28 insertions(+), 41 deletions(-)
diff --git a/modules/bmw/src/main/java/com/bonus/bmw/basic/entity/ProjectGeneralBean.java b/modules/bmw/src/main/java/com/bonus/bmw/basic/entity/ProjectGeneralBean.java
index 856473a..f408393 100644
--- a/modules/bmw/src/main/java/com/bonus/bmw/basic/entity/ProjectGeneralBean.java
+++ b/modules/bmw/src/main/java/com/bonus/bmw/basic/entity/ProjectGeneralBean.java
@@ -17,7 +17,6 @@ public class ProjectGeneralBean {
/**
* 总工程电压
*/
- @Excel(name = "电压等级")
private String level;
/**
* 工程id
diff --git a/modules/bmw/src/main/resources/mapper/basic/ProjectMapper.xml b/modules/bmw/src/main/resources/mapper/basic/ProjectMapper.xml
index f6674dd..5ccf24f 100644
--- a/modules/bmw/src/main/resources/mapper/basic/ProjectMapper.xml
+++ b/modules/bmw/src/main/resources/mapper/basic/ProjectMapper.xml
@@ -268,16 +268,9 @@
\ No newline at end of file
diff --git a/modules/bmw/src/main/resources/mapper/basic/UserMapper.xml b/modules/bmw/src/main/resources/mapper/basic/UserMapper.xml
index cd15470..1bfd7bd 100644
--- a/modules/bmw/src/main/resources/mapper/basic/UserMapper.xml
+++ b/modules/bmw/src/main/resources/mapper/basic/UserMapper.xml
@@ -13,10 +13,7 @@
AND sru.is_active = '1'
LEFT JOIN sys_role sr ON sr.id = sru.roleId
LEFT JOIN bm_subcontractor bs ON bs.id = t.sub_id
- LEFT JOIN bm_team_user_relation btur ON btur.id_number = t.id_number and btur.is_active = '1'
- LEFT JOIN bm_sub_relation bsr ON bsr.v = btur.team_id and bsr.is_active = '1' and bsr.type = '3'
- LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = '1'
- LEFT JOIN bm_project bp ON bp.id = bsc.pro_id and bp.is_active = '1'
+ LEFT JOIN bm_project bp ON bp.id = t.pro_id and bp.is_active = '1'
LEFT JOIN pm_organization po2 ON bp.company_id = po2.ID
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
@@ -55,7 +52,7 @@
t.phone AS phonenumber,
IF(
FIND_IN_SET( '3', sr.type ),
- po2.`name`,
+ po.`NAME`,
po.`NAME`
) AS orgName,
sr.`NAME` AS roleName,
@@ -76,10 +73,7 @@
AND sru.is_active = '1'
LEFT JOIN sys_role sr ON sr.id = sru.roleId
LEFT JOIN bm_subcontractor bs ON bs.id = t.sub_id
- LEFT JOIN bm_team_user_relation btur ON btur.id_number = t.id_number and btur.is_active = '1'
- LEFT JOIN bm_sub_relation bsr ON bsr.v = btur.team_id and bsr.is_active = '1' and bsr.type = '3'
- LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = '1'
- LEFT JOIN bm_project bp ON bp.id = bsc.pro_id and bp.is_active = '1'
+ LEFT JOIN bm_project bp ON bp.id = t.pro_id and bp.is_active = '1'
LEFT JOIN pm_organization po2 ON bp.company_id = po2.ID
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
@@ -108,7 +102,7 @@
)
- ORDER BY sr.id, t.id desc
+ ORDER BY t.id desc
limit #{offset}, #{limit}
diff --git a/modules/bmw/src/main/resources/mapper/subeva/SubCorepersonMapper.xml b/modules/bmw/src/main/resources/mapper/subeva/SubCorepersonMapper.xml
index 3ac4a90..265281d 100644
--- a/modules/bmw/src/main/resources/mapper/subeva/SubCorepersonMapper.xml
+++ b/modules/bmw/src/main/resources/mapper/subeva/SubCorepersonMapper.xml
@@ -7,7 +7,7 @@
bp.`NAME` as proName,
bs.sub_name as subName,
bsc.contract_name as contractName,
- COUNT(bsr.id) AS teamNumber,
+ COUNT(bst.id) AS teamNumber,
td.`value` AS evaMonth,
fcpe.eva_grade AS evaGrade,
fcpe.eva_name AS evaName,
@@ -24,7 +24,7 @@
`bm_sub_contract` bsc
LEFT JOIN bm_project bp on bp.id = bsc.pro_id and bp.is_active = '1'
LEFT JOIN bm_subcontractor bs on bs.id = bsc.sub_id and bs.is_active = '1'
- LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id AND bsr.type = '3' and bsr.is_active = '1'
+ LEFT JOIN bm_sub_team bst ON bst.sub_id = bst.bs.id AND bst.is_active = '1'
LEFT JOIN t_dict td ON td.type = 'monthcheck' and td.is_active = '1'
LEFT JOIN fbeva_core_person_evalu fcpe ON fcpe.eva_month = td.`value` AND bsc.id = fcpe.contract_id and fcpe.eva_year = #{params.year}
@@ -53,7 +53,7 @@
`bm_sub_contract` bsc
LEFT JOIN bm_project bp on bp.id = bsc.pro_id and bp.is_active = '1'
LEFT JOIN bm_subcontractor bs on bs.id = bsc.sub_id and bs.is_active = '1'
- LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id AND bsr.type = '1' and bsr.is_active = '3'
+ LEFT JOIN bm_sub_team bst ON bst.sub_id = bst.bs.id AND bst.is_active = '1'
LEFT JOIN t_dict td ON td.type = 'monthcheck' and td.is_active = '1'
LEFT JOIN fbeva_core_person_evalu fcpe ON fcpe.eva_month = td.`value` AND bsc.id = fcpe.contract_id and fcpe.eva_year = #{params.year}
@@ -66,7 +66,7 @@
bp.`NAME` as proName,
bs.sub_name as subName,
bsc.contract_name as contractName,
- COUNT(bsr.id) AS teamNumber,
+ COUNT(bst.id) AS teamNumber,
td.`value` AS evaMonth,
fcpe.eva_grade AS evaGrade,
fcpe.eva_name AS evaName,
@@ -77,7 +77,8 @@
`bm_sub_contract` bsc
LEFT JOIN bm_project bp on bp.id = bsc.pro_id and bp.is_active = '1'
LEFT JOIN bm_subcontractor bs on bs.id = bsc.sub_id and bs.is_active = '1'
- LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id AND bsr.type = '3' and bsr.is_active = '1'
+ LEFT JOIN bm_sub_team bst ON bst.sub_id = bs.id and bst.is_active ='1'
+
LEFT JOIN t_dict td ON td.type = 'monthcheck' and td.is_active = '1'
LEFT JOIN fbeva_core_person_evalu fcpe ON fcpe.eva_month = td.`value` AND bsc.id = fcpe.contract_id and fcpe.eva_year = #{params.year}
diff --git a/modules/bmw/src/main/resources/static/downloads/业主信息导入模板.xlsx b/modules/bmw/src/main/resources/static/downloads/业主信息导入模板.xlsx
index 1e1d81048e17b08e9b59655b54dc4caf8fe2ea78..41b80ebae6fed7be30f12a7f960055d8b0ed16a3 100644
GIT binary patch
literal 10500
zcmeHtWmKKXvNrDS7M$Sj7ThJc1b26LcZUtZ-GaMYa0?nF5S$>v-2!}&%$b>R=A3oE
zpLea>KlUrTq~EIU>h7vXP6`wZ2I#qk$gcB0U;ovhpKc6o4CL%>Y#r$3p2*OiUO@dM
zyMc9ks8hRt9Ye+}C9T>t>$LcD^#zy_wX|#ITMOEnoA2@kD5f+TcQXQ+vN0x6reJ^d-u`2Da@e7*X}`3oDveTv~4V
zgnZgrD=YYXS=vm<_l|Qz-gT9qa?&0BD4YYV1lB|Q>DIdCz+IKcl(Thw$-P#iiPm1H
z@1X-l-Fj+Fjp006kxf069A*%&AQGS4D{f-`ZfLcbrg!h246XfSXym^e+Q7!%=-JX<
z@iMYK3`jv&;$MkQ-&7|g@t2dL^L-DO6bJL0SHG-_5>Fpw%h#$g{s`R!0=eTqEjQ+u
z@DK~rJ9W0~d1kz6%0X|x4GkER#3orG83Z1ZiW@SEw4RFd@W-=CMx&u8>oo<&flufO
z2vr5VhpA9f_hZ5~9f;2_YzvIGS6-ZME+F#lNyI
z!=s`$qq@SP^01!K(wkr+_vt6#EtF
zO>PV#Cm82`I0q=!#gmTNOc|*(vzht1{x<`(N>+=E+Ei>8nmD1zsRC?fdG0RP
zy?)F#9qgSVY~imC&W*jW%B+(-yAWj;(<&rBT1bS~kcKuj