| | |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * 订单Feign客户端 |
| | |
| | | */ |
| | | @PostMapping("/logan/inner/v1/order/updateOrderStatus") |
| | | R<String> updateOrderStatus(@RequestParam Long orderId, |
| | | @RequestParam Integer status); |
| | | @RequestParam Integer status, |
| | | @RequestParam Boolean orderException); |
| | | /** |
| | | * 行驶中车辆异常,订单状态修改- 修改状态=7 再修改 金额-再将状态修改成8 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/v1/order/carAbnormalUpdateOrderStatus") |
| | | R<String> carAbnormalUpdateOrderStatus(@RequestParam Long orderId); |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 判断用户类型 |
| | | * @param userId |
| | | * @return 1=老用户,2=新用户,3=流失用户 |
| | | */ |
| | | @PostMapping("/logan/inner/order/determineUserType") |
| | | R<Integer> determineUserType(@RequestParam Long userId); |
| | | |
| | | |
| | | /** |
| | | * 获取用户订单数量 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/order/getUserOrderNum") |
| | | R<Long> getUserOrderNum(@RequestParam Long userId); |
| | | } |