Commit 05a11576 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents d55ccecc d3f48dcc
...@@ -98,7 +98,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -98,7 +98,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100); staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100);
//staffPerformSummaryEntity.setAddTotalScore(BigDecimal.ZERO); //staffPerformSummaryEntity.setAddTotalScore(BigDecimal.ZERO);
staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO); staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO);
staffPerformSummaryEntity.setSumScore(StaffPerformUtil.SCORE100); //staffPerformSummaryEntity.setSumScore(StaffPerformUtil.SCORE100);
staffPerformSummaryEntity.setUpdateTime(new Date()); staffPerformSummaryEntity.setUpdateTime(new Date());
Map<String,Object> condition = new HashMap<>(); Map<String,Object> condition = new HashMap<>();
condition.put("year",year); condition.put("year",year);
......
...@@ -653,6 +653,13 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc ...@@ -653,6 +653,13 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
params.setSummaryTimeStart(DateUtil.offsetDay(new Date(), -30).toDateStr()); params.setSummaryTimeStart(DateUtil.offsetDay(new Date(), -30).toDateStr());
params.setSummaryTimeEnd(DateUtils.getCurrStrDate()); params.setSummaryTimeEnd(DateUtils.getCurrStrDate());
} }
if(StringUtils.isNotEmpty(params.getSummaryTimeStart()) && StringUtils.isNotEmpty(params.getSummaryTimeEnd())) {
String start = params.getSummaryTimeStart().substring(0, 7);
String end = params.getSummaryTimeEnd().substring(0, 7);
if(!start.equals(end)){
throw new AppException("时间范围不能跨月");
}
}
if (StringUtils.isNotEmpty(params.getStaffName())) { if (StringUtils.isNotEmpty(params.getStaffName())) {
params.setStaffName("%" + params.getStaffName() + "%"); params.setStaffName("%" + params.getStaffName() + "%");
} }
...@@ -775,4 +782,8 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc ...@@ -775,4 +782,8 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
} }
public static void main(String[] args) {
String ss = "2024-08-01";
System.out.println(ss.substring(0,7));
}
} }
\ No newline at end of file
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