轨迹
This commit is contained in:
parent
a10fed78dc
commit
3edcc599e8
|
@ -212,7 +212,6 @@ public class AppController extends BaseController
|
||||||
public TableDataInfo list(EtParkingArea etParkingArea)
|
public TableDataInfo list(EtParkingArea etParkingArea)
|
||||||
{
|
{
|
||||||
etParkingArea.setStatus("0");
|
etParkingArea.setStatus("0");
|
||||||
// startPage();
|
|
||||||
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
|
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1662,4 +1662,71 @@ public class AppVerifyController extends BaseController
|
||||||
}
|
}
|
||||||
return toAjax(etOperatingAreaService.updateEtOperatingArea(etOperatingArea));
|
return toAjax(etOperatingAreaService.updateEtOperatingArea(etOperatingArea));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询停车区列表
|
||||||
|
*/
|
||||||
|
@GetMapping("/parking/list")
|
||||||
|
public AjaxResult list(EtParkingArea etParkingArea)
|
||||||
|
{
|
||||||
|
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增停车区
|
||||||
|
*/
|
||||||
|
@Log(title = "停车区", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/parking")
|
||||||
|
public AjaxResult add(@RequestBody EtParkingArea etParkingArea)
|
||||||
|
{
|
||||||
|
return toAjax(etParkingAreaService.insertEtParkingArea(etParkingArea));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改停车区
|
||||||
|
*/
|
||||||
|
@Log(title = "停车区", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/parking")
|
||||||
|
public AjaxResult edit(@RequestBody EtParkingArea etParkingArea)
|
||||||
|
{
|
||||||
|
return toAjax(etParkingAreaService.updateEtParkingArea(etParkingArea));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除停车区
|
||||||
|
*/
|
||||||
|
@Log(title = "停车区", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/parking/{parkingIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] parkingIds)
|
||||||
|
{
|
||||||
|
return toAjax(etParkingAreaService.deleteEtParkingAreaByParkingIds(parkingIds));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态修改
|
||||||
|
*/
|
||||||
|
@Log(title = "停车区状态修改", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/parking/changeParkingStatus")
|
||||||
|
public AjaxResult changeStatus(@RequestBody EtParkingArea area)
|
||||||
|
{
|
||||||
|
return toAjax(etParkingAreaService.updateParkingStatus(area));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据时间查询车辆轨迹 /trajectory 给方法取个名,本来是查询轨迹的,现在增加一个带详情的轨迹,给新接口取个名
|
||||||
|
*/
|
||||||
|
@PostMapping("/trajectoryDetails")
|
||||||
|
public AjaxResult trajectoryDetails(String sn,String startTime,String endTime)
|
||||||
|
{
|
||||||
|
AjaxResult ajax = AjaxResult.success();
|
||||||
|
if(StrUtil.isBlank(sn)){
|
||||||
|
logger.info("没有sn号参数:【sn={}】",sn);
|
||||||
|
return error("请传sn号参数"+"【sn="+sn+"】");
|
||||||
|
}
|
||||||
|
logger.info("【根据时间查询车辆轨迹】:{}",sn,startTime,endTime);
|
||||||
|
List<EtLocationLog> trajectoryDetails = asDeviceService.trajectoryDetails(sn,startTime,endTime);
|
||||||
|
ajax.put(AjaxResult.DATA_TAG,trajectoryDetails);
|
||||||
|
return ajax;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ public class EtParkingAreaController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 状态修改
|
* 状态修改
|
||||||
*/
|
*/
|
||||||
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
@Log(title = "停车区状态修改", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping("/changeParkingStatus")
|
@PutMapping("/changeParkingStatus")
|
||||||
public AjaxResult changeStatus(@RequestBody EtParkingArea area)
|
public AjaxResult changeStatus(@RequestBody EtParkingArea area)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.ruoyi.common.annotation.Excel;
|
import com.ruoyi.common.annotation.Excel;
|
||||||
import com.ruoyi.common.core.domain.BaseEntity;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -37,6 +38,7 @@ public class EtLocationLog extends BaseEntity
|
||||||
private String latitude;
|
private String latitude;
|
||||||
|
|
||||||
@Excel(name = "onenet消息时间")
|
@Excel(name = "onenet消息时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date at;
|
private Date at;
|
||||||
|
|
||||||
/** 车辆状态 */
|
/** 车辆状态 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user