diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceUserMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceUserMapper.xml
index b406b9bd..fdecc082 100644
--- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceUserMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceUserMapper.xml
@@ -513,15 +513,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT u.*,b.project_id,b.sub_dept_id
- FROM sur_project_attendance_user u,sur_project_attendance_cfg b,sur_project_attendance_group g
+ FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g
WHERE u.cfgid=b.id and u.state=0 and u.companyId=g.companyId
and g.companyTypeId in (1,6)
-
+
and g.companyTypeId =8
-
+
and g.companyTypeId in (0,2,3,4,5)
@@ -539,10 +539,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select p.id, p.projectName name,g.companyTypeId companyId,count(1) cfgid
- from sur_project_attendance_user u,sur_project_attendance_cfg b,sur_project_attendance_group g,sur_project p
- where u.cfgid=b.id and u.state=0 and u.companyId=g.companyId and b.project_id=p.id
- and g.companyTypeId in (1,6,0,2,3,4,5,8)
+ SELECT p.id, p.projectName NAME,c.dept_name groupName,g.companyTypeId companyId,COUNT(1) cfgid
+ FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project p,sys_dept c
+ where u.cfgid=b.id and u.state=0 and u.companyId=g.companyId and b.project_id=p.id and c.dept_id=b.sub_dept_id
+ and g.companyTypeId in (1,6,0,2,3,4,5,8)
and b.project_id in (SELECT id FROM sur_project WHERE deptid=#{deptId})
@@ -552,7 +552,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item}
- group by p.projectName,g.companyTypeId,p.id
+ group by p.projectName,c.dept_name,g.companyTypeId,p.id
order by p.id
\ No newline at end of file