| | |
| | | import cn.exrick.xboot.your.util.HttpUtil; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.json.JSONArray; |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | String latestGps = haiKangPost.findLatestGps(carids); |
| | | JSONObject jsonObject = JSONUtil.parseObj(latestGps); |
| | | String data = jsonObject.getStr("data"); |
| | | JSONObject jsonObject2 = JSONUtil.parseObj(data); |
| | | JSONArray objects = JSONUtil.parseArray(data); |
| | | JSONObject jsonObject2 = objects.getJSONObject(0); |
| | | Integer lng = jsonObject2.getInt("longitude"); |
| | | Integer lat = jsonObject2.getInt("latitude"); |
| | | |
| | |
| | | } |
| | | |
| | | //9.评价 |
| | | @RequestMapping("/remark") |
| | | @RequestMapping(value = "/remark", method = RequestMethod.POST) |
| | | @ApiOperation(value = "评价") |
| | | public Object remark(int level,String orderId){ |
| | | OrderTask byId = iOrderTaskService.getById(orderId); |