Commit ab159773 by 黄小葱

修改bug

1 parent d4689617
......@@ -100,7 +100,7 @@ public class MonitorController {
*
* @return
*/
@PostMapping(value = "/exportstaypoint")
@PostMapping(value = "/exportstaypoint", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public void exportStayPoint(@RequestBody @Validated ExpStayPointRequest spRequest) {
if (StringUtils.isBlank(spRequest.getExpData())) {
throw new AdminException("数据为空");
......
......@@ -53,7 +53,7 @@ public class StayPointReport {
* 停留地址
*/
@ExcelProperty(value = "停留地址", index = 8)
private String stayAddr;
private String transferAddress;
......
......@@ -104,7 +104,6 @@ public class GpsBsLocationServiceImpl implements GpsBsLocationService {
* @return
*/
public DataGpsLocation getDeviceLastWifiInfoBySn(String sn) {
// 75开头的设备是沃达孚的无线设备,需要显示wifi定位
//具有wifi定位的设备起始号
String wifiSns = PropertiesUtils.getProperty("wifi.sn.start.location");
boolean hasWifi = false;
......
......@@ -174,8 +174,15 @@ public class MonitorServiceImpl implements MonitorService {
public List<StayPointReport> listExportStayPoint(ExpStayPointRequest espRequest) throws UnsupportedEncodingException {
//将json数据封装为实体对象
String jsonData = URLDecoder.decode(espRequest.getExpData(), "UTF-8");
//TODO 待完成 report中的index
String name = espRequest.getName();
String vin = espRequest.getVin();
String locationType = espRequest.getLocationType() == 1 ? "基站" : "gps";
List<StayPointReport> dtoList = JsonUtils.getDTOList(jsonData, StayPointReport.class);
dtoList.forEach(stayPoint -> {
stayPoint.setName(name);
stayPoint.setVin(vin);
stayPoint.setLocationType(locationType);
});
return dtoList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!