Compare commits

..

No commits in common. '514bd7bb8c883fd9a01a3901fdd8befff836e6ed' and '08c2365411eefbccc8bd87ee783ab2c054478034' have entirely different histories.

@ -2,7 +2,6 @@ package com.taxi.servicedriveruser.remote;
import com.internal.dto.ResponseResult;
import com.internal.dto.TerminalResponse;
import com.internal.dto.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@ -13,7 +12,4 @@ public interface ServiceMapClient {
@RequestMapping(method = RequestMethod.POST,value = "/terminal/addTerminal")
ResponseResult<TerminalResponse> addTerminal(@RequestParam String name);
@RequestMapping(method = RequestMethod.POST,value = "/track/addTrack")
ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}

@ -3,7 +3,6 @@ package com.taxi.servicedriveruser.service;
import com.internal.dto.Car;
import com.internal.dto.ResponseResult;
import com.internal.dto.TerminalResponse;
import com.internal.dto.TrackResponse;
import com.taxi.servicedriveruser.mapper.CarMapper;
import com.taxi.servicedriveruser.remote.ServiceMapClient;
import org.springframework.beans.factory.annotation.Autowired;
@ -30,11 +29,8 @@ public class CarService {
car.setTid(tid);
//获得此车辆的轨迹id,trid
ResponseResult<TrackResponse> trackResult = serviceMapClient.addTrack(tid);
String trid = trackResult.getData().getTrid();
String trname = trackResult.getData().getTrname();
car.setTrid(trid);
car.setTrname(trname);
carMapper.insert(car);

@ -1,7 +1,6 @@
package com.taxi.servicemap.controller;
import com.internal.dto.ResponseResult;
import com.internal.dto.TrackResponse;
import com.taxi.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@ -16,7 +15,7 @@ public class TrackController {
private TrackService trackService;
@PostMapping("/addTrack")
public ResponseResult<TrackResponse> addTrack(String tid){
public ResponseResult addTrack(String tid){
return trackService.addTrack(tid);
}
}

@ -22,7 +22,7 @@ public class TrackClient {
private RestTemplate restTemplate;
public ResponseResult<TrackResponse> addTrack(String tid){
public ResponseResult addTrack(String tid){
//拼接请求的URL
StringBuilder url = new StringBuilder();
url.append(AmapConfigConstant.TRACK_MAP_ADD_URL);

@ -1,7 +1,6 @@
package com.taxi.servicemap.service;
import com.internal.dto.ResponseResult;
import com.internal.dto.TrackResponse;
import com.taxi.servicemap.remote.TrackClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -11,7 +10,7 @@ public class TrackService {
@Autowired
private TrackClient trackClient;
public ResponseResult<TrackResponse> addTrack(String tid){
public ResponseResult addTrack(String tid){
return trackClient.addTrack(tid);
}
}

Loading…
Cancel
Save