diff --git a/sql/SQL集合.txt b/sql/SQL集合.txt
index ed87394f..da0231f7 100644
--- a/sql/SQL集合.txt
+++ b/sql/SQL集合.txt
@@ -389,3 +389,21 @@ SELECT * FROM sur_project_attendance_group WHERE id IN (
SELECT MIN(id) FROM sur_project_attendance_group GROUP BY companyId,companyTypeId)
+
+
+create view view_sur_project_attendance_group
+as
+select * from vw_sur_project_attendance_group where cfgid not in (select id from sur_project_attendance_cfg where is_del=0 and vendors_code='huazhu')
+union
+SELECT id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, 1 companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
+FROM vw_sur_project_attendance_group where cfgid in (select id from sur_project_attendance_cfg where is_del=0 and vendors_code='huazhu')
+and companyName in (select unitName from sur_project_unit_info where unittype=2)
+union
+SELECT id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, 8 companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
+FROM vw_sur_project_attendance_group where cfgid in (select id from sur_project_attendance_cfg where is_del=0 and vendors_code='huazhu')
+and companyName in (select unitName from sur_project_unit_info where unittype=4)
+union
+SELECT id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, 2 companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
+FROM vw_sur_project_attendance_group where cfgid in (select id from sur_project_attendance_cfg where is_del=0 and vendors_code='huazhu')
+and companyName not in (select unitName from sur_project_unit_info where unittype=4 or unittype=2)
+
diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
index d12e3136..5dd323ec 100644
--- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * FROM
(
select a.*,b.project_id,b.sub_dept_id,c.companyTypeId
- from sur_project_attendance_data a,sur_project_attendance_cfg b,vw_sur_project_attendance_group c
+ from sur_project_attendance_data a,sur_project_attendance_cfg b,view_sur_project_attendance_group c
where a.cfgid=b.id and a.companyId=c.companyId
)
sur_project_attendance_data
diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceGroupMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceGroupMapper.xml
index 8b269b79..75233cfc 100644
--- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceGroupMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceGroupMapper.xml
@@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
- from vw_sur_project_attendance_group
+ from view_sur_project_attendance_group