Commit db2fb9a3 authored by 赵啸非's avatar 赵啸非

修改本月统计

parent e7fac3de
...@@ -189,10 +189,12 @@ public class AttendanceRecordHikController extends BaseCRUDJsonBodyMappingContro ...@@ -189,10 +189,12 @@ public class AttendanceRecordHikController extends BaseCRUDJsonBodyMappingContro
} }
boolean bool = cacheService.set(RedisCacheKeys.getHikExportLockKey(), "111", 120L); String bool = cacheService.get(RedisCacheKeys.getHikExportLockKey());
if (!bool) {
if(ObjectUtils.isEmpty(bool)){
throw new AppException("考勤数据正在导出中,请稍后再试!"); throw new AppException("考勤数据正在导出中,请稍后再试!");
} }
cacheService.set(RedisCacheKeys.getHikExportLockKey(), "111", 120L);
} }
......
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