Commit 9584b506 authored by 赵啸非's avatar 赵啸非

添加用户钉钉主动拉取请假记录

parent 21b28048
...@@ -99,7 +99,7 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont ...@@ -99,7 +99,7 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
String busiDesc = this.getModuleDesc() + "主动同步拉取请假考勤记录"; String busiDesc = this.getModuleDesc() + "主动同步拉取请假考勤记录";
try { try {
if (ObjectUtils.isEmpty(query.getStartTimeStart())) throw new AppException("开始时间不能为空"); if (ObjectUtils.isEmpty(query.getStartTimeStart())) throw new AppException("开始时间不能为空");
if (ObjectUtils.isEmpty(query.getStartTimeEnd())) { if (ObjectUtils.isEmpty(query.getEndTimeEnd())) {
query.setEndTimeStart(DateUtil.today()); query.setEndTimeStart(DateUtil.today());
} }
long between = DateUtil.between(DateUtil.parseDate(query.getStartTimeStart()), DateUtil.parseDate(query.getStartTimeEnd()), DateUnit.DAY, true); long between = DateUtil.between(DateUtil.parseDate(query.getStartTimeStart()), DateUtil.parseDate(query.getStartTimeEnd()), DateUnit.DAY, true);
......
...@@ -110,7 +110,7 @@ Content-Type: application/json ...@@ -110,7 +110,7 @@ Content-Type: application/json
{ {
"startTimeStart":"2023-11-01", "startTimeStart":"2023-11-01",
"startTimeEnd":"2023-11-31" "endTimeEnd":"2023-11-31"
} }
......
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