diff --git a/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/entity/AttDetailByMonthBean.java b/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/entity/AttDetailByMonthBean.java index f60e183..58483df 100644 --- a/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/entity/AttDetailByMonthBean.java +++ b/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/entity/AttDetailByMonthBean.java @@ -58,43 +58,43 @@ public class AttDetailByMonthBean { * 正常打卡天数 */ @Excel(name = "正常打卡天数") - private int normalNum; + private double normalNum; /** * 迟到次数 */ @Excel(name = "迟到次数") - private int lateNum; + private double lateNum; /** * 早退次数 */ @Excel(name = "早退次数") - private int earlyNum; + private double earlyNum; /** * 旷工次数 */ @Excel(name = "旷工次数") - private int skippingNum; + private double skippingNum; /** * 打卡地异常次数 */ @Excel(name = "打卡地异常次数") - private int addressErrorNum; + private double addressErrorNum; /** * 出入异常次数 */ @Excel(name = "出入异常次数") - private int einErrorNum; + private double einErrorNum; /** * 请假天数 */ @Excel(name = "请假天数") - private float leaveNum; + private double leaveNum; private int[] orgIds; diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/LeaveReporting/LeaveReportingMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/LeaveReporting/LeaveReportingMapper.xml index 701c382..3b5f533 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/LeaveReporting/LeaveReportingMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/LeaveReporting/LeaveReportingMapper.xml @@ -107,10 +107,10 @@ and l.user_id = #{params.userId} - and date_format(l.leave_start_date,'%y%m%d') >= date_format(#{params.params.beginTime},'%y%m%d') - - - and date_format(l.leave_end_date,'%y%m%d') <= date_format(#{params.params.endTime},'%y%m%d') + and ( + date_format(l.leave_start_date,'%y%m%d') between date_format(#{params.params.beginTime},'%y%m%d') and date_format(#{params.params.endTime},'%y%m%d') or + date_format(l.leave_end_date,'%y%m%d') between date_format(#{params.params.beginTime},'%y%m%d') and date_format(#{params.params.endTime},'%y%m%d') + ) GROUP BY l.id, diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/evection/EvectionMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/evection/EvectionMapper.xml index 86a3f84..2f9d23e 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/evection/EvectionMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/evection/EvectionMapper.xml @@ -114,10 +114,10 @@ and l.user_id = #{bean.userId} - and date_format(l.leave_start_date,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') - - - and date_format(l.leave_end_date,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') + and ( + date_format(l.leave_start_date,'%y%m%d') between date_format(#{params.beginTime},'%y%m%d') and date_format(#{params.endTime},'%y%m%d') or + date_format(l.leave_end_date,'%y%m%d') between date_format(#{params.beginTime},'%y%m%d') and date_format(#{params.endTime},'%y%m%d') + ) GROUP BY l.id, diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatEvectionMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatEvectionMapper.xml index 56fda42..3bd3388 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatEvectionMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatEvectionMapper.xml @@ -41,10 +41,10 @@ WHERE l.is_active = '1' AND l.leave_type = '出差' AND (l.source = '1' OR l.source = '3') - and date_format(l.leave_start_date,'%y%m%d') >= date_format(#{bean.params.beginTime},'%y%m%d') - - - and date_format(l.leave_end_date,'%y%m%d') <= date_format(#{bean.params.endTime},'%y%m%d') + and ( + date_format(l.leave_start_date,'%y%m%d') between date_format(#{bean.params.beginTime},'%y%m%d') and date_format(#{bean.params.endTime},'%y%m%d') or + date_format(l.leave_end_date,'%y%m%d') between date_format(#{bean.params.beginTime},'%y%m%d') and date_format(#{bean.params.endTime},'%y%m%d') + ) and l.org_id in ( diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatLeaveReportingMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatLeaveReportingMapper.xml index 66488d3..9ea1182 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatLeaveReportingMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/wechat/WechatLeaveReportingMapper.xml @@ -33,10 +33,10 @@ WHERE l.is_active = '1' AND l.type = '请假' AND (l.source = '1' OR l.source = '3') - and date_format(l.leave_start_date,'%y%m%d') >= date_format(#{params.params.beginTime},'%y%m%d') - - - and date_format(l.leave_end_date,'%y%m%d') <= date_format(#{params.params.endTime},'%y%m%d') + and ( + date_format(l.leave_start_date,'%y%m%d') between date_format(#{params.params.beginTime},'%y%m%d') and date_format(#{params.params.endTime},'%y%m%d') or + date_format(l.leave_end_date,'%y%m%d') between date_format(#{params.params.beginTime},'%y%m%d') and date_format(#{params.params.endTime},'%y%m%d') + ) and l.org_id in (