From 751aa308846652d4f975f666d86f2e58120f6c88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?=
<7507756+jiang_yuqi@user.noreply.gitee.com>
Date: Wed, 28 May 2025 17:40:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../device/DevTowerDataCollideMapper.xml | 2 +
.../mapper/device/DevTowerDataLimitMapper.xml | 2 +
.../mapper/device/DevTowerDataLocalMapper.xml | 2 +
.../mapper/device/DevTowerDataRoundMapper.xml | 2 +
.../mapper/device/DevTowerDataRunMapper.xml | 2 +
.../device/DevTowerDataWarningMapper.xml | 2 +
.../device/DevTowerProjectConfigMapper.xml | 4 +-
.../yanzhu/job/task/AttendanceJgwTask.java | 69 ++++++++++++++++++-
.../job/QuartzProSubdeptsGroupMapper.xml | 5 +-
.../service/impl/BasSignetServiceImpl.java | 2 +-
.../service/impl/BasTemplateServiceImpl.java | 2 +-
.../service/impl/BusExamInfoServiceImpl.java | 6 +-
.../impl/BusExamQuestionServiceImpl.java | 6 +-
.../service/impl/BusExamUserServiceImpl.java | 6 +-
.../impl/BusTrainingVideoServiceImpl.java | 12 ++--
.../impl/BusTrainingVideoUserServiceImpl.java | 6 +-
.../impl/DevAiProjectConfigServiceImpl.java | 6 +-
.../impl/DevAiProjectDataServiceImpl.java | 2 +-
.../impl/DevIotConfigPointServiceImpl.java | 6 +-
.../service/impl/DevIotConfigServiceImpl.java | 2 +-
.../service/impl/DevIotDatasServiceImpl.java | 2 +-
.../impl/DevIotWarningServiceImpl.java | 2 +-
.../impl/DevTowerDataCollideServiceImpl.java | 5 ++
.../impl/DevTowerDataLimitServiceImpl.java | 5 ++
.../impl/DevTowerDataLocalServiceImpl.java | 5 ++
.../impl/DevTowerDataRoundServiceImpl.java | 5 ++
.../impl/DevTowerDataRunServiceImpl.java | 5 ++
.../impl/DevTowerDataWarningServiceImpl.java | 5 ++
.../DevTowerProjectConfigServiceImpl.java | 4 ++
...roProjectInfoSubdeptsGroupServiceImpl.java | 4 +-
.../ProProjectInfoSubdeptsServiceImpl.java | 4 +-
.../service/impl/WxMenuConfigServiceImpl.java | 6 +-
.../views/device/towerDataCollide/index.vue | 4 +-
.../src/views/device/towerDataLimit/index.vue | 4 +-
.../src/views/device/towerDataRound/index.vue | 4 +-
.../src/views/device/towerDataRun/index.vue | 4 +-
.../views/device/towerProjectConfig/index.vue | 6 +-
37 files changed, 174 insertions(+), 46 deletions(-)
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataCollideMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataCollideMapper.xml
index f494b019..b5d6333a 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataCollideMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataCollideMapper.xml
@@ -74,6 +74,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdc.project_id = #{projectId}
and dtdc.com_id = #{comId}
and dtdc.dept_id = #{deptId}
+ and dtdc.com_id = #{activeComId}
+ and dtdc.project_id = #{activeProjectId}
and dtdc.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdc.com_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdc.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLimitMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLimitMapper.xml
index 1ea8f06c..3fc2eabb 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLimitMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLimitMapper.xml
@@ -75,6 +75,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdl.project_id = #{projectId}
and dtdl.com_id = #{comId}
and dtdl.dept_id = #{deptId}
+ and dtdl.com_id = #{activeComId}
+ and dtdl.project_id = #{activeProjectId}
and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdl.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLocalMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLocalMapper.xml
index ca311b90..725c4fb6 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLocalMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataLocalMapper.xml
@@ -89,6 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdl.project_id = #{projectId}
and dtdl.com_id = #{comId}
and dtdl.dept_id = #{deptId}
+ and dtdl.com_id = #{activeComId}
+ and dtdl.project_id = #{activeProjectId}
and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdl.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRoundMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRoundMapper.xml
index 3fafc0c2..027dfa10 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRoundMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRoundMapper.xml
@@ -106,6 +106,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdr.project_id = #{projectId}
and dtdr.com_id = #{comId}
and dtdr.dept_id = #{deptId}
+ and dtdr.com_id = #{activeComId}
+ and dtdr.project_id = #{activeProjectId}
and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdr.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRunMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRunMapper.xml
index bbecdeba..351e56cd 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRunMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataRunMapper.xml
@@ -94,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdr.project_id = #{projectId}
and dtdr.com_id = #{comId}
and dtdr.dept_id = #{deptId}
+ and dtdr.com_id = #{activeComId}
+ and dtdr.project_id = #{activeProjectId}
and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdr.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataWarningMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataWarningMapper.xml
index fb3b349f..65e4352c 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataWarningMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerDataWarningMapper.xml
@@ -79,6 +79,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and dtdw.project_id = #{projectId}
and dtdw.com_id = #{comId}
and dtdw.dept_id = #{deptId}
+ and dtdw.com_id = #{activeComId}
+ and dtdw.project_id = #{activeProjectId}
and dtdw.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))
and dtdw.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))
and dtdw.device_key = #{deviceKey}
diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerProjectConfigMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerProjectConfigMapper.xml
index fd33b28a..f0caa0aa 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerProjectConfigMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/DevTowerProjectConfigMapper.xml
@@ -75,17 +75,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
diff --git a/yanzhu-modules/yanzhu-job/src/main/java/com/yanzhu/job/task/AttendanceJgwTask.java b/yanzhu-modules/yanzhu-job/src/main/java/com/yanzhu/job/task/AttendanceJgwTask.java
index 1aaea9db..5e9050e5 100644
--- a/yanzhu-modules/yanzhu-job/src/main/java/com/yanzhu/job/task/AttendanceJgwTask.java
+++ b/yanzhu-modules/yanzhu-job/src/main/java/com/yanzhu/job/task/AttendanceJgwTask.java
@@ -164,6 +164,7 @@
// for (int i = 0; i < arr.size(); i++) {
// JSONObject json = arr.getJSONObject(i);
// String subDeptType = convertSubDeptType(json.getString("corpType"));
+// // 总包单位不同步
// if(!"1".equals(subDeptType)){
// rowId = json.getLong("id");
// QuartzProSubdepts quartzProSubdeptsQuery = new QuartzProSubdepts();
@@ -173,6 +174,7 @@
// List list = quartzProSubdeptsService.selectQuartzProSubdeptsList(quartzProSubdeptsQuery);
// if(StringUtils.isNotEmpty(list)){
// QuartzProSubdepts quartzProSubdepts = list.get(0);
+// quartzProSubdepts.setSubDeptType(subDeptType);
// quartzProSubdepts.setSubDeptName(json.getString("corpName"));
// quartzProSubdepts.setSubDeptCode(json.getString("corpCode"));
// quartzProSubdepts.setSubDeptLeaderName(json.getString("pmName"));
@@ -188,6 +190,7 @@
// subDeptInfos.put("businessAddress",json.getString("businessAddress"));
// subDeptInfos.put("officePhone",json.getString("officePhone"));
// quartzProSubdepts.setSubDeptInfos(JSON.toJSONString(subDeptInfos));
+// quartzProSubdepts.setSource(code.toUpperCase());
// quartzProSubdeptsService.updateQuartzProSubdepts(quartzProSubdepts);
// }else{
// QuartzProSubdepts quartzProSubdepts = new QuartzProSubdepts();
@@ -211,7 +214,7 @@
// quartzProSubdepts.setSubDeptInfos(JSON.toJSONString(subDeptInfos));
// quartzProSubdepts.setUseStatus(UseStateEnums.IN.getCode());
// quartzProSubdepts.setApproveStatus(ApproveStatus.passed.getCode());
-// quartzProSubdepts.setSource(code);
+// quartzProSubdepts.setSource(code.toUpperCase());
// quartzProSubdeptsService.insertQuartzProSubdepts(quartzProSubdepts);
// }
// }
@@ -284,13 +287,15 @@
// long rowId = 0;
// for (int i = 0; i < arr.size(); i++) {
// JSONObject json = arr.getJSONObject(i);
+// String subDeptType = convertSubDeptType(json.getString("corpType"));
// QuartzProSubdeptsGroup quartzProSubdeptsGroupQuery = new QuartzProSubdeptsGroup();
// quartzProSubdeptsGroupQuery.setComId(it.getComId());
// quartzProSubdeptsGroupQuery.setProjectId(it.getProjectId());
// quartzProSubdeptsGroupQuery.setGroupName(json.getString("teamName"));
// List list = quartzProSubdeptsGroupService.selectQuartzProSubdeptsGroupList(quartzProSubdeptsGroupQuery);
// if(StringUtils.isNotEmpty(list)){
-//
+// QuartzProSubdeptsGroup quartzProSubdeptsGroup = list.get(0);
+// quartzProSubdeptsGroup
// }else{
//
// }
@@ -316,6 +321,66 @@
// }
// }
//
+// /**
+// * 转换工种类型
+// * @param jobTypes
+// * @return
+// */
+// private Map convertSubJobTypes(String jobTypes){
+// Map dataMap = new HashMap<>();
+// switch (jobTypes){
+// case "3001" : dataMap.put("type","2");dataMap.put("post","1015"); break;
+// case "3002" : dataMap.put("type","2");dataMap.put("post","1014"); break;
+// case "3003" :
+// case "3004" : dataMap.put("type","2");dataMap.put("post","2021"); break;
+// case "3005" : dataMap.put("type","2");dataMap.put("post","2022"); break;
+// case "3006" : dataMap.put("type","2");dataMap.put("post","1013"); break;
+// case "3007" : dataMap.put("type","1");dataMap.put("post","1006"); break;
+// case "3008" : dataMap.put("type","1");dataMap.put("post","1004"); break;
+// case "3009" : dataMap.put("type","1");dataMap.put("post","1001"); break;
+// case "3010" : dataMap.put("type","1");dataMap.put("post","1003"); break;
+// case "3011" : dataMap.put("type","1");dataMap.put("post","1017"); break;
+// case "3012" : dataMap.put("type","1");dataMap.put("post","1007"); break;
+// case "3013" : dataMap.put("type","1");dataMap.put("post","1008"); break;
+// case "3014" : dataMap.put("type","1");dataMap.put("post","1009"); break;
+// case "3015" : dataMap.put("type","1");dataMap.put("post","1012"); break;
+// case "3016" : dataMap.put("type","3");dataMap.put("post","3024"); break;
+// case "3017" : dataMap.put("type","1");dataMap.put("post","1010"); break;
+// case "3018" : dataMap.put("type","3");dataMap.put("post","3025"); break;
+// case "3071" :
+// case "3019" : dataMap.put("type","2");dataMap.put("post","2017"); break;
+// case "3020" : dataMap.put("type","2");dataMap.put("post","2018"); break;
+// case "3021" : dataMap.put("type","2");dataMap.put("post","2016"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3032" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
+// default : subDeptType = "99"; break;
+// }
+// return subDeptType;
+// }
+//
// private String getWorkTypeName(String appid, String token, String type, String key) {
// String ckey = "attendance_jgw_work_type_" + type;
// Object obj = redisService.getCacheObject(ckey);
diff --git a/yanzhu-modules/yanzhu-job/src/main/resources/mapper/job/QuartzProSubdeptsGroupMapper.xml b/yanzhu-modules/yanzhu-job/src/main/resources/mapper/job/QuartzProSubdeptsGroupMapper.xml
index 1bf9921c..7850ac84 100644
--- a/yanzhu-modules/yanzhu-job/src/main/resources/mapper/job/QuartzProSubdeptsGroupMapper.xml
+++ b/yanzhu-modules/yanzhu-job/src/main/resources/mapper/job/QuartzProSubdeptsGroupMapper.xml
@@ -37,13 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select psg.id, psg.com_id, sd.dept_name as com_name, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, dic0.dict_label as sub_dept_type_name, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, dic1.dict_label as craft_type_name, psg.craft_post, dic2.dict_label as craft_post_name, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark, psg.source
+ select psg.id, psg.com_id, sd.dept_name as com_name, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, psg.craft_post, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark, psg.source
from pro_project_info_subdepts_group psg
left join pro_project_info pi on pi.id = psg.project_id
left join sys_dept sd on sd.dept_id = psg.com_id
- left join sys_dict_data dic0 on psg.`sub_dept_type`=dic0.`dict_value` and dic0.`dict_type`='sub_dept_type'
- left join sys_dict_data dic1 on psg.`craft_type`=dic1.`dict_value` and dic1.`dict_type`='pro_craft_type'
- left join sys_dict_data dic2 on psg.`craft_post`=dic2.`dict_value` and dic2.`dict_type`='pro_craft_post'