|
@@ -8,18 +8,14 @@ import com.chelvc.cloud.vehicle.api.param.OrderPagingParam;
|
|
|
import com.chelvc.cloud.vehicle.api.service.IOmsOrderReturnApplyService;
|
|
|
import com.chelvc.cloud.vehicle.api.service.IOmsOrderService;
|
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
|
-import com.chelvc.framework.base.context.SessionContextHolder;
|
|
|
import com.chelvc.framework.common.model.Pagination;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.Min;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -142,12 +138,15 @@ public class OmsOrderController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 商家订单核验
|
|
|
+ *
|
|
|
+ *
|
|
|
* @param orderId
|
|
|
+ * @param merchantId
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("/order/verification")
|
|
|
- public void orderVerification(@PathVariable("orderId") Long orderId) {
|
|
|
- this.omsOrderService.orderVerification(orderId, SessionContextHolder.getId());
|
|
|
+ @GetMapping("/order/verification/{orderId}/{merchantId}")
|
|
|
+ public void orderVerification(@PathVariable("orderId") @NotNull(message = "订单错误") Long orderId,
|
|
|
+ @PathVariable("merchantId") @NotNull(message = "订单错误") Long merchantId) {
|
|
|
+ this.omsOrderService.orderVerification(orderId, merchantId);
|
|
|
}
|
|
|
}
|