|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.Min;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
|
/**
|
|
|
* 订单接口
|
|
@@ -49,4 +50,17 @@ public class OrderController {
|
|
|
public OmsOrderDetailDTO getOrderDetail(@PathVariable("id") @Min(value = 1, message = "主键不能小于1") Long id) {
|
|
|
return this.orderService.detail(id);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *已核验订单
|
|
|
+ * @param orderId
|
|
|
+ * @param merchantId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/order/verification/{orderId}/{merchantId}")
|
|
|
+ public void orderVerification(@PathVariable("orderId") @NotNull(message = "订单错误") Long orderId,
|
|
|
+ @PathVariable("merchantId") @NotNull(message = "订单错误") Long merchantId) {
|
|
|
+ this.orderService.orderVerification(orderId, merchantId);
|
|
|
+ }
|
|
|
}
|