Browse Source

增加根据PO单据ID获取单据信息的请求

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@197 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 11 years ago
parent
commit
e3ff61519f

+ 13 - 0
src/main/java/com/uas/platform/b2b/controller/SaleOrderController.java

@@ -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);
+	}
 
 	/**
 	 * 作为卖家,收到的采购订单(含明细)