|
@@ -1,5 +1,6 @@
|
|
package com.chelvc.cloud.admin.controller;
|
|
package com.chelvc.cloud.admin.controller;
|
|
import com.chelvc.cloud.vehicle.api.dto.OmsOrderDTO;
|
|
import com.chelvc.cloud.vehicle.api.dto.OmsOrderDTO;
|
|
|
|
+import com.chelvc.cloud.vehicle.api.dto.OmsOrderDetailDTO;
|
|
import com.chelvc.cloud.vehicle.api.param.OrderPagingParam;
|
|
import com.chelvc.cloud.vehicle.api.param.OrderPagingParam;
|
|
import com.chelvc.cloud.vehicle.api.service.IOmsOrderService;
|
|
import com.chelvc.cloud.vehicle.api.service.IOmsOrderService;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
@@ -8,8 +9,10 @@ import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
|
+import javax.validation.constraints.Min;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 订单接口
|
|
* 订单接口
|
|
@@ -34,4 +37,16 @@ public class OrderController {
|
|
public Pagination<OmsOrderDTO> getOrderPaging(@Valid OrderPagingParam param) {
|
|
public Pagination<OmsOrderDTO> getOrderPaging(@Valid OrderPagingParam param) {
|
|
return this.orderService.getOmsOrderPaging(param);
|
|
return this.orderService.getOmsOrderPaging(param);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询订单详情
|
|
|
|
+ *
|
|
|
|
+ * @param id 查询参数
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/order/{id}")
|
|
|
|
+ public OmsOrderDetailDTO getOrderDetail(@PathVariable("id") @Min(value = 1, message = "主键不能小于1") Long id) {
|
|
|
|
+ return this.orderService.detail(id);
|
|
|
|
+ }
|
|
}
|
|
}
|