|
@@ -4,11 +4,12 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="cn.cslg.permission.mapper.LoginRecordMapper">
|
|
|
<select id="getSignCount" resultType="java.lang.Long">
|
|
|
- select count(*) from LOGIN_RECORD
|
|
|
+ select count(*) from ( select * from LOGIN_RECORD
|
|
|
<where>
|
|
|
LOGIN_SYSTEM=3 and
|
|
|
DATE_FORMAT(CREATE_TIME, '%Y-%m-%d')= DATE_FORMAT(NOW(), '%Y-%m-%d')
|
|
|
GROUP BY PERSONNEL_ID, DATE_FORMAT(CREATE_TIME, '%Y-%m-%d')
|
|
|
</where>
|
|
|
+ ) as t
|
|
|
</select>
|
|
|
</mapper>
|