service-driver-user创建车辆改造成功

main
topsun 2 years ago
parent 322c774d86
commit 74c35cb6df

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
public interface ServiceMapClient {
@RequestMapping(method = RequestMethod.POST,value = "/terminal/addTerminal")
ResponseResult<TerminalResponse> addTerminal(@RequestParam String name,String desc);
ResponseResult<TerminalResponse> addTerminal(@RequestParam String name,@RequestParam String desc);
@RequestMapping(method = RequestMethod.POST,value = "/track/addTrack")
ResponseResult<TrackResponse> addTrack(@RequestParam String tid);

@ -26,6 +26,7 @@ public class CarService {
LocalDateTime localDateTime = LocalDateTime.now();
car.setGmtCreate(localDateTime);
car.setGmtModified(localDateTime);
carMapper.insert(car);
//获取此车辆终端的tid
ResponseResult<TerminalResponse> responseResult = serviceMapClient
@ -40,7 +41,7 @@ public class CarService {
car.setTrid(trid);
car.setTrname(trname);
carMapper.insert(car);
carMapper.updateById(car);
return ResponseResult.success();

@ -15,5 +15,5 @@ spring:
name: service-map
amap:
key: 01d85ea8f7db65efc370cfec18ff6397
key:
sid: 936137
Loading…
Cancel
Save