Browse Source

fiex:执法办案定时任务时间范围调整,审计监督排序问题

master
pengwei 1 month ago
parent
commit
8f59a637b1
  1. 13
      src/main/java/com/biutag/supervision/job/Job.java
  2. 2
      src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

13
src/main/java/com/biutag/supervision/job/Job.java

@ -62,18 +62,21 @@ public class Job {
}
// 每日04:00更新基础数据
@Scheduled(cron = "0 0 23 * * ?")
@Scheduled(cron = "0 0 4 * * ?")
public void updateBaseData() {
// 0秒
log.info("获取数据-------updateBaseData-----------");
//LocalDateTime.now().minusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0).atZone(ZoneId.systemDefault()).toInstant()
//LocalDateTime.now().minusDays(1).withHour(23).withMinute(59).withSecond(59).atZone(ZoneId.systemDefault()).toInstant()
LocalDateTime firstDay = LocalDate.now()
.withDayOfYear(1)
.atStartOfDay();
List<Date> happenTime = new ArrayList<>();
Date start = Date.from(firstDay.atZone(ZoneId.systemDefault()).toInstant());
Date end = Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant());
// Date start = Date.from(firstDay.atZone(ZoneId.systemDefault()).toInstant());
// Date end = Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant());
Date start = Date.from(LocalDateTime.now().minusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0).atZone(ZoneId.systemDefault()).toInstant());
Date end = Date.from(LocalDateTime.now().minusDays(1).withHour(23).withMinute(59).withSecond(59).atZone(ZoneId.systemDefault()).toInstant());
happenTime.add(start);
happenTime.add(end);
businessDepartService.generate(happenTime);

2
src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

@ -249,7 +249,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " +
"WHERE sd.statistics_group_id=3 " +
"GROUP BY sd.short_name " +
"ORDER BY totalPro DESC;")
"ORDER BY completedRate DESC;")
List<SuperviseMapIconVo> getSupervisionMapIconInfo(Date beginTime, Date endTime);

Loading…
Cancel
Save