1、增加推送到金马平台功能
This commit is contained in:
parent
bd17b001ea
commit
f609aa3518
@ -28,6 +28,6 @@ public class FwdRecord {
|
||||
LocalDateTime starttime;
|
||||
LocalDateTime endtime;
|
||||
Short state;
|
||||
private String fwd_group_id;
|
||||
String fwd_group_id;
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package com.imdroid.beidou.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.imdroid.secapi.dto.*;
|
||||
@ -45,7 +46,9 @@ public class GnssFwdController {
|
||||
@ResponseBody
|
||||
public JSONObject listRecords(int page, int limit) {
|
||||
Page<FwdRecord> pageable = new Page<>(page, limit);
|
||||
IPage<FwdRecord> cs = fwdRecordMapper.selectPage(pageable, null);
|
||||
QueryWrapper<FwdRecord> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.orderByDesc("starttime");
|
||||
IPage<FwdRecord> cs = fwdRecordMapper.selectPage(pageable, queryWrapper);
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("code", 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user