首页考勤统计

This commit is contained in:
zhanglipeng
2020-11-30 10:08:11 +08:00
parent f11278bce2
commit 3ebc280a25
6 changed files with 152 additions and 85 deletions

View File

@ -9,6 +9,9 @@ spring:
url: jdbc:mysql://120.53.14.147:3306/benyi-vue-dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: tsbz2020!
# url: jdbc:mysql://192.144.133.123:3306/benyi-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root
# password: msd5Ysql$%123
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -19,6 +19,8 @@
<result property="pbjsxm" column="pbjsxm"/>
<result property="zljs" column="zljs"/>
<result property="zljsxm" column="zljsxm"/>
<result property="childcount" column="childcount"/>
<result property="childcheckincount" column="childcheckincount"/>
<result property="isdel" column="isdel"/>
<result property="createtime" column="createtime"/>
<result property="month" column="month"/>
@ -61,6 +63,8 @@
zbjs, (select nick_name from sys_user where sys_user.user_id=zbjs) zbjsxm,
pbjs, (select nick_name from sys_user where sys_user.user_id=pbjs) pbjsxm,
zljs, (select nick_name from sys_user where sys_user.user_id=zljs) zljsxm,
(select count(*) from by_child WHERE by_child.classid=d.bjbh) childcount,
(select count(*) from by_child_checkin_detail WHERE by_child_checkin_detail.classid=d.bjbh and type='01' and date_format(by_child_checkin_detail.create_time,'%Y-%m-%d')=date_format(sysdate(),'%Y-%m-%d')) childcheckincount,
isdel, createtime from by_class d
</sql>