|
|
@@ -10,6 +10,7 @@ import com.template.model.dto.WarningUserDto;
|
|
|
import com.template.model.pojo.*;
|
|
|
import com.template.mapper.SmartRelationMapper;
|
|
|
import com.template.model.result.PageUtils;
|
|
|
+import com.template.model.vo.SmartRelationAppVo;
|
|
|
import com.template.model.vo.SmartRelationVo;
|
|
|
import com.template.model.vo.UserVo;
|
|
|
import com.template.services.*;
|
|
|
@@ -184,8 +185,8 @@ public class SmartRelationServiceImpl extends ServiceImpl<SmartRelationMapper, S
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Async
|
|
|
- @Scheduled(cron = "0 20 3 * * ? ")//每天凌晨一点
|
|
|
+// @Async
|
|
|
+// @Scheduled(cron = "0 20 3 * * ? ")//每天凌晨一点
|
|
|
public void getAttendanceListSmartRelation() {
|
|
|
if (scheduleConfig.getIsOpen().equals("1")) {
|
|
|
DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
@@ -212,4 +213,14 @@ public class SmartRelationServiceImpl extends ServiceImpl<SmartRelationMapper, S
|
|
|
|
|
|
return new PageUtils(result);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PageUtils<SmartRelationAppVo> getAppList(int currentPage, int pageCount, Integer userId, String startTime, String endTime) {
|
|
|
+ Page<SmartRelationAppVo> page = new Page<>();
|
|
|
+ page.setCurrent(currentPage);
|
|
|
+ page.setSize(pageCount);
|
|
|
+ IPage<SmartRelationAppVo> result =smartRelationMapper.getAppList(page,userId,startTime,endTime);
|
|
|
+
|
|
|
+ return new PageUtils(result);
|
|
|
+ }
|
|
|
}
|