| | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.concurrent.ExecutorService; |
| | | import java.util.concurrent.Executors; |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "卡车公司- 点对点/范围/距离详情",notes="卡车公司-点对点/范围/距离详情") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "int",paramType = "query"), |
| | | }) |
| | | @PostMapping(value = "/laneInfo") |
| | | @ResponseBody |
| | | public Object laneInfo( int id) { |
| | | TCompanyBasic tCompanyBasic = basicService.selectById(id); |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("data",tCompanyBasic); |
| | | |
| | | if(tCompanyBasic.getType()==2){ |
| | | String lonLat = tCompanyBasic.getLonLat(); |
| | | String[] split = lonLat.split("_"); |
| | | ArrayList<LonLat> lonLats = new ArrayList<>(); |
| | | for (String s : split) { |
| | | String[] split1 = s.split(","); |
| | | LonLat lonLat1 = new LonLat(); |
| | | lonLat1.setLat(split1[0]); |
| | | lonLat1.setLng(split1[1]); |
| | | lonLats.add(lonLat1); |
| | | } |
| | | map.put("lonlat",lonLats); |
| | | }else { |
| | | map.put("lonlat",new ArrayList<>()); |
| | | } |
| | | return new SuccessTip(map); |
| | | } |
| | | @ApiOperation(value = "卡车公司- 添加点对点/范围/距离",notes="卡车公司-添加点对点/范围/距离") |
| | | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | }) |