feat: 东区缴费分支初始化
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.yida.data.attendance</groupId>
|
||||
<artifactId>attendance-api</artifactId>
|
||||
<artifactId>edu-attendance-api</artifactId>
|
||||
<version>${febs-cloud.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
+36
-25
@@ -3,7 +3,7 @@ package com.yida.data.job.task;
|
||||
|
||||
import com.yida.data.attendance.feign.RemoteAttendanceDeviceService;
|
||||
import com.yida.data.attendance.feign.RemoteAttendanceResultService;
|
||||
import com.yida.data.attendance.feign.RemoteUserStrategyService;
|
||||
import com.yida.data.attendance.feign.RemoteAttendanceRuleService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -16,9 +16,23 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class AttendanceTask {
|
||||
|
||||
private final RemoteUserStrategyService remoteUserStrategyService;
|
||||
private final RemoteAttendanceResultService remoteAttendanceResultService;
|
||||
private final RemoteAttendanceDeviceService remoteAttendanceDeviceService;
|
||||
private final RemoteAttendanceRuleService remoteAttendanceRuleService;
|
||||
|
||||
/**
|
||||
* 定时推送未到消息
|
||||
*/
|
||||
public void pushNotArriveMsg() {
|
||||
remoteAttendanceResultService.pushNotArriveMsg();
|
||||
}
|
||||
|
||||
/**
|
||||
* 定时保存未到记录
|
||||
*/
|
||||
public void dealResult() {
|
||||
remoteAttendanceResultService.dealAttendanceResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新设备在线状态
|
||||
@@ -27,6 +41,26 @@ public class AttendanceTask {
|
||||
remoteAttendanceDeviceService.updateDeviceStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新规则状态
|
||||
*/
|
||||
public void updateRuleStatus() {
|
||||
remoteAttendanceRuleService.updateRuleStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 提醒打卡
|
||||
*/
|
||||
public void remindStaff() {
|
||||
remoteAttendanceRuleService.remindStaff();
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理记录到结果表
|
||||
*/
|
||||
public void staffRecord() {
|
||||
remoteAttendanceRuleService.staffRecord();
|
||||
}
|
||||
|
||||
/**
|
||||
* 校时所有设备
|
||||
@@ -34,27 +68,4 @@ public class AttendanceTask {
|
||||
public void timingAllDevice() {
|
||||
remoteAttendanceDeviceService.timingAllDevice();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 初始化考勤结果
|
||||
*/
|
||||
public void initAttendanceData() {
|
||||
remoteAttendanceResultService.initAttendanceResult();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 考勤报告推送
|
||||
*/
|
||||
public void attendanceNotice() {
|
||||
remoteAttendanceResultService.attendanceNotice();
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理超时用户策略
|
||||
*/
|
||||
public void checkOverTimeUserStrategy() {
|
||||
remoteUserStrategyService.checkOverTimeUserStrategy();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
|
||||
* 账单模块相关定时任务
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/4/14
|
||||
* @date 2023/4/14
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
|
||||
-2
@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class ProductUpdateTask {
|
||||
|
||||
private final RemoteProductService remoteProductService;
|
||||
|
||||
public void productUpdate(String id) {
|
||||
@@ -29,7 +28,6 @@ public class ProductUpdateTask {
|
||||
|
||||
/**
|
||||
* 监测商品是否失效任务
|
||||
*
|
||||
* @param
|
||||
*/
|
||||
public void productMonitor() {
|
||||
|
||||
-18
@@ -15,7 +15,6 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class UserTask {
|
||||
|
||||
private final RemoteStudentService remoteStudentService;
|
||||
private final RemoteStaffService remoteStaffService;
|
||||
private final RemoteUserDeptService remoteUserDeptService;
|
||||
@@ -47,21 +46,4 @@ public class UserTask {
|
||||
public void dealNoParentUserDept() {
|
||||
remoteUserDeptService.dealNoParentUserDept();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 定时更新学生数据缓存
|
||||
*/
|
||||
public void updateStudentCache() {
|
||||
remoteStudentService.updateStudentCache();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 定时更新教职工数据缓存
|
||||
*/
|
||||
public void updateStaffCache() {
|
||||
remoteStaffService.updateStaffCache();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user