Commit 22520316 by 宋珺琪

轨迹接口倒序

parent 02a65e2c
......@@ -497,7 +497,7 @@ public class SkTrailController extends ApiController implements ExcelControllerI
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.eq("objectType", objectType);
queryWrapper.eq("objectValue", bh);
queryWrapper.orderByAsc("date");
queryWrapper.orderByDesc("date");
queryWrapper.eq("isDeleted", "0");
return skTrailService.list(queryWrapper);
......
......@@ -23,6 +23,8 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.PostConstruct;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
......@@ -317,9 +319,12 @@ public class SkypDesktopController {
}
/**
* 启动后10秒启动,之后每一个小时开始一次
* 启动后一分钟启动,之后每一个小时开始一次
* 每天八点到十点 每半个小时 0 0/30 8-22 * * ?
* 每天的8点开始,2小时执行一次:0 0 8/2 * * ?
* 每个整点执行一次:0 0 0/1 * * ?
*/
@Scheduled(initialDelay = 10000,fixedDelay = 1800000)
@Scheduled(initialDelay = 60000,fixedDelay = 1800000)
public void timing() throws ParseException {
System.out.println("-----------------------日程定时任务启动");
for (String s : WebSocketServer.map.keySet()) {
......
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