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

添加员工钉钉同步userId

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