Commit b3fc9868 authored by lisong's avatar lisong

修改打卡名字重复导致出勤统计bug

parent 3c763c09
......@@ -44,9 +44,9 @@
</select>
<select id="queryStaticForPage" resultType="com.yeejoin.amos.boot.module.jcs.api.dto.SinStaticDto">
select date,count(name) signNum,bizOrgName,bizOrgCode,personOfDay from (
select date,count(userId) signNum,bizOrgName,bizOrgCode,personOfDay from (
SELECT
DISTINCT name,
DISTINCT sign.user_id userId,
date,
biz_org_Name bizOrgName,
biz_org_code bizOrgCode,
......@@ -70,7 +70,7 @@
group by
date,
biz_org_code,
name
user_id
order by
sign.sign_time desc
) s group by date,bizOrgCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment