feat(system): 生成假期信息到 Redis
- 在 AttendanceController 中添加 generateHolidayToRedis 接口- 在 AttendanceService 接口中定义 generateHolidayToRedis 方法 - 在 AttendanceServiceImpl 中实现 generateHolidayToRedis 方法 - 优化缓存更新逻辑,删除前年的假期信息
This commit is contained in:
parent
b0a5a961bf
commit
ffd92607e2
@ -113,7 +113,7 @@ public class AttendanceController {
|
||||
|
||||
|
||||
@GetMapping("/generateHolidayToRedis")
|
||||
@Operation(summary = "生成假期信息到redis(调用一次即可不需要重复调 需要开发人员手动调)")
|
||||
@Operation(summary = "生成假期信息到redis(每年年底 下一年节假日信息发布出来后 调用一次即可不需要重复调 需要开发人员手动调)")
|
||||
@PermitAll
|
||||
public CommonResult<?> generateHolidayToRedis(Integer year) {
|
||||
attendanceService.generateHolidayToRedis(year);
|
||||
|
Loading…
Reference in New Issue
Block a user