Commit 7b4deb11 authored by 赵啸非's avatar 赵啸非

添加员工钉钉同步userId

parent 548b31d2
......@@ -14,6 +14,7 @@ import com.mortals.xhx.common.code.AttendSourceTypeEnum;
import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.module.attendance.model.AttendanceLeaveRecordQuery;
import com.mortals.xhx.module.attendance.model.AttendanceRecordHikQuery;
import com.mortals.xhx.module.attendance.service.AttendanceGroupService;
import com.mortals.xhx.module.attendance.service.AttendanceLeaveRecordService;
import com.mortals.xhx.module.attendance.service.AttendanceStatService;
import com.mortals.xhx.module.attendance.service.AttendanceVacationBalanceService;
......@@ -63,6 +64,9 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
@Value("${source.type:''}")
protected String sourceType;
@Autowired
private AttendanceGroupService groupService;
@Autowired
private AttendanceLeaveRecordService attendanceLeaveRecordService;
......@@ -90,6 +94,8 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
//syncDingDingLocalUserIds();
log.info("钉钉直连同步人员信息");
groupService.syncGroupByDingTalk();
//同步最近10天请假信息
DateTime weekStart = DateUtil.offsetDay(new Date(), -10);
AttendanceRecordHikQuery hikQuery = new AttendanceRecordHikQuery();
......
......@@ -79,8 +79,9 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceHikRecordCustom
Content-Type: application/json
{
"attendanceDateStart": "2025-01-01",
"attendanceDateEnd": "2025-03-24"
"staffId": 501,
"attendanceDateStart": "2025-03-01",
"attendanceDateEnd": "2025-03-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