|
|
@@ -5,6 +5,7 @@ import org.springframework.data.domain.Page;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -40,6 +41,18 @@ public class SaleOrderController {
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
return purchaseOrderService.findAllByPageInfo(info);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 作为卖家,根据单据号查询收到一条采购订单
|
|
|
+ *
|
|
|
+ * @param json
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/orders/{id}", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public PurchaseOrderAll getReceivedPurchaseOrderItemById(@PathVariable("id") Long id) {
|
|
|
+ return purchaseOrderService.findById(id);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 作为卖家,收到的采购订单(含明细)
|