Commit 1a468742 authored by 赵啸非's avatar 赵啸非

添加钉钉对接流程代码

parent 11bbcb58
...@@ -14,10 +14,7 @@ import com.mortals.xhx.common.code.AttendSourceTypeEnum; ...@@ -14,10 +14,7 @@ import com.mortals.xhx.common.code.AttendSourceTypeEnum;
import com.mortals.xhx.common.code.AttendanceTypeEnum; import com.mortals.xhx.common.code.AttendanceTypeEnum;
import com.mortals.xhx.common.code.YesNoEnum; import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.module.attendance.model.*; import com.mortals.xhx.module.attendance.model.*;
import com.mortals.xhx.module.attendance.service.AttendanceClassService; import com.mortals.xhx.module.attendance.service.*;
import com.mortals.xhx.module.attendance.service.AttendanceGroupService;
import com.mortals.xhx.module.attendance.service.AttendanceGroupStaffService;
import com.mortals.xhx.module.attendance.service.AttendanceRecordHikService;
import com.mortals.xhx.module.dept.model.DeptEntity; import com.mortals.xhx.module.dept.model.DeptEntity;
import com.mortals.xhx.module.dept.model.DeptQuery; import com.mortals.xhx.module.dept.model.DeptQuery;
import com.mortals.xhx.module.dept.service.DeptService; import com.mortals.xhx.module.dept.service.DeptService;
...@@ -66,6 +63,12 @@ public class StartedService implements IApplicationStartedService { ...@@ -66,6 +63,12 @@ public class StartedService implements IApplicationStartedService {
@Autowired @Autowired
private AttendanceGroupStaffService groupStaffService; private AttendanceGroupStaffService groupStaffService;
@Autowired
private AttendanceGroupFixedworkService attendanceGroupFixedworkService;
@Autowired
private AttendanceClassService attendanceClassService;
@Autowired
private AttendanceClassDetailService attendanceClassDetailService;
@Override @Override
...@@ -73,6 +76,9 @@ public class StartedService implements IApplicationStartedService { ...@@ -73,6 +76,9 @@ public class StartedService implements IApplicationStartedService {
log.info("开始服务..[配置已加载完成,并且所有框架都已经初始化]"); log.info("开始服务..[配置已加载完成,并且所有框架都已经初始化]");
groupService.syncGroupByDingTalk();
//获取排班信息 //获取排班信息
/* Rest<List<OapiAttendanceShiftListResponse.TopMinimalismShiftVo>> rest = dingAttenanceService.getShiftList(0L); /* Rest<List<OapiAttendanceShiftListResponse.TopMinimalismShiftVo>> rest = dingAttenanceService.getShiftList(0L);
...@@ -91,7 +97,7 @@ public class StartedService implements IApplicationStartedService { ...@@ -91,7 +97,7 @@ public class StartedService implements IApplicationStartedService {
*/ */
//保存更新考勤组 //保存更新考勤组
PageInfo pageInfo = new PageInfo(); /* PageInfo pageInfo = new PageInfo();
Rest<List<OapiAttendanceGetsimplegroupsResponse.AtGroupForTopVo>> groupRest = dingAttenanceService.getAttendanceGroupList(pageInfo); Rest<List<OapiAttendanceGetsimplegroupsResponse.AtGroupForTopVo>> groupRest = dingAttenanceService.getAttendanceGroupList(pageInfo);
if (YesNoEnum.YES.getValue() == groupRest.getCode()) { if (YesNoEnum.YES.getValue() == groupRest.getCode()) {
...@@ -160,9 +166,9 @@ public class StartedService implements IApplicationStartedService { ...@@ -160,9 +166,9 @@ public class StartedService implements IApplicationStartedService {
}).collect(Collectors.toList()); }).collect(Collectors.toList());
/* StaffQuery staffQuery = new StaffQuery(); *//* StaffQuery staffQuery = new StaffQuery();
staffQuery.setWorkNumList(groupPersonRest.getData()); staffQuery.setWorkNumList(groupPersonRest.getData());
List<StaffEntity> staffEntityList = staffService.find(staffQuery);*/ List<StaffEntity> staffEntityList = staffService.find(staffQuery);*//*
for (StaffEntity staffEntity : staffEntityList) { for (StaffEntity staffEntity : staffEntityList) {
if (!staffIdsSet.contains(staffEntity.getId())) { if (!staffIdsSet.contains(staffEntity.getId())) {
AttendanceGroupStaffEntity groupStaffEntity = new AttendanceGroupStaffEntity(); AttendanceGroupStaffEntity groupStaffEntity = new AttendanceGroupStaffEntity();
...@@ -184,7 +190,7 @@ public class StartedService implements IApplicationStartedService { ...@@ -184,7 +190,7 @@ public class StartedService implements IApplicationStartedService {
} }
} }*/
// //获取考勤组列表 // //获取考勤组列表
......
package com.mortals.xhx.module.attendance.service; package com.mortals.xhx.module.attendance.service;
import com.mortals.framework.common.Rest;
import com.mortals.framework.service.ICRUDService; import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity; import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity;
/** /**
...@@ -11,4 +12,9 @@ import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity; ...@@ -11,4 +12,9 @@ import com.mortals.xhx.module.attendance.model.AttendanceGroupEntity;
*/ */
public interface AttendanceGroupService extends ICRUDService<AttendanceGroupEntity,Long>{ public interface AttendanceGroupService extends ICRUDService<AttendanceGroupEntity,Long>{
/**
* 同步钉钉考勤组
* @return
*/
Rest<String> syncGroupByDingTalk();
} }
\ 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