Commit 57b18b2d authored by 赵啸非's avatar 赵啸非

修改本月统计

parent 0f0d2d7a
...@@ -106,14 +106,15 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle ...@@ -106,14 +106,15 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
@Override @Override
public void doExportBefore(Context context, AttendanceRecordEntity query, List<String> properties) throws AppException { public void doExportBefore(Context context, AttendanceRecordEntity query, List<String> properties) throws AppException {
String bool = cacheService.get(RedisCacheKeys.getRecordExportLockKey()); String bool = cacheService.get(RedisCacheKeys.getRecordExportLockKey());
if (!ObjectUtils.isEmpty(bool)) { if (!ObjectUtils.isEmpty(bool)) {
throw new AppException("每日数据正在导出中,请稍后再试!"); throw new AppException("每日数据正在导出中,请稍后再试!");
} }
cacheService.set(RedisCacheKeys.getRecordExportLockKey(), "111", 120L); cacheService.set(RedisCacheKeys.getRecordExportLockKey(), "111", 120L);
query.setOrderColList(Arrays.asList(new OrderCol("attendanceDate", OrderCol.DESCENDING), new OrderCol("staffName", OrderCol.DESCENDING)));
if (!ObjectUtils.isEmpty(query.getProperties())) { if (!ObjectUtils.isEmpty(query.getProperties())) {
/* //通过属性转换为注解 /* //通过属性转换为注解
List<Field> tempFields = new ArrayList<>(); List<Field> tempFields = new ArrayList<>();
......
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