Compare commits

..

No commits in common. '870857edc66cc89a405a973331b544d682e0cc8b' and 'cb7eafd3ac7cd039dec6d464fec3fb8381f03002' have entirely different histories.

@ -5,7 +5,6 @@ import com.internal.dto.ResponseResult;
import com.taxi.aipboss.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@ -19,9 +18,4 @@ public class DriverUserController {
public ResponseResult addDriverUser(@RequestBody DriverUser driverUser){
return driverUserService.addDriverUser(driverUser);
}
@PutMapping("/driver-user")
public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){
return driverUserService.updateDriverUser(driverUser);
}
}

@ -12,7 +12,4 @@ public interface ServiceDriverUserClient {
@RequestMapping(method = RequestMethod.POST,value = "/users")
ResponseResult addDriverUser(@RequestBody DriverUser driverUser);
@RequestMapping(method = RequestMethod.PUT,value = "/user")
ResponseResult updateDriverUser(@RequestBody DriverUser driverUser);
}

@ -14,8 +14,4 @@ public class DriverUserService {
public ResponseResult addDriverUser(DriverUser driverUser){
return serviceDriverUserClient.addDriverUser(driverUser);
}
public ResponseResult updateDriverUser(DriverUser driverUser){
return serviceDriverUserClient.updateDriverUser(driverUser);
}
}

@ -5,7 +5,6 @@ import com.internal.dto.ResponseResult;
import com.taxi.servicedriveruser.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@ -22,9 +21,4 @@ public class DriverUserController {
return driverUserService.addDriverUser(driverUser);
}
@PutMapping("/user")
public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){
return driverUserService.updateDriverUser(driverUser);
}
}

@ -22,12 +22,4 @@ public class DriverUserService {
return ResponseResult.success();
}
public ResponseResult updateDriverUser(DriverUser driverUser){
LocalDateTime localDate = LocalDateTime.now();
driverUser.setGmtCreate(localDate);
driverUser.setGmtModified(localDate);
driverUserMapper.updateById(driverUser);
return ResponseResult.success();
}
}

Loading…
Cancel
Save