Commit b3fc9868 authored by lisong's avatar lisong

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

parent 3c763c09
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
</select> </select>
<select id="queryStaticForPage" resultType="com.yeejoin.amos.boot.module.jcs.api.dto.SinStaticDto"> <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 SELECT
DISTINCT name, DISTINCT sign.user_id userId,
date, date,
biz_org_Name bizOrgName, biz_org_Name bizOrgName,
biz_org_code bizOrgCode, biz_org_code bizOrgCode,
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
group by group by
date, date,
biz_org_code, biz_org_code,
name user_id
order by order by
sign.sign_time desc sign.sign_time desc
) s group by date,bizOrgCode ) 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