ylx 7 年之前
父節點
當前提交
200672c5a5

+ 95 - 0
saicLogistics/src/main/java/com/fuzamei/entity/Param.java

@@ -0,0 +1,95 @@
+package com.fuzamei.entity;
+/**
+ * 
+ * @className:Param[接受前端参数的实体类]
+ * @author:ylx--->[yanglingxiao2009@163.com]
+ * @date:2018年1月24日下午8:57:58
+ * @version v1.0
+ */
+public class Param {
+	private Integer userId;				//用户id
+	private String supplierName;		//供应商名称
+	private String boxNo;				//箱号
+	private String partNo;				//零件号
+	private Integer inboxQty;			//箱中零件数量
+	private Integer statusId;			//状态id
+	private Integer orderId;			//订单id
+	private Integer carrierId;			//承运商id
+	private String carNo;				//车牌号
+	private Integer confirm;			//收货确认码1表示确认收货,0表示拒绝收货
+	private Long startTime;				//起始时间
+	private Long endTime;				//结束时间
+	public Integer getUserId() {
+		return userId;
+	}
+	public void setUserId(Integer userId) {
+		this.userId = userId;
+	}
+	public String getSupplierName() {
+		return supplierName;
+	}
+	public void setSupplierName(String supplierName) {
+		this.supplierName = supplierName;
+	}
+	public String getBoxNo() {
+		return boxNo;
+	}
+	public void setBoxNo(String boxNo) {
+		this.boxNo = boxNo;
+	}
+	public String getPartNo() {
+		return partNo;
+	}
+	public void setPartNo(String partNo) {
+		this.partNo = partNo;
+	}
+	public Integer getInboxQty() {
+		return inboxQty;
+	}
+	public void setInboxQty(Integer inboxQty) {
+		this.inboxQty = inboxQty;
+	}
+	public Integer getStatusId() {
+		return statusId;
+	}
+	public void setStatusId(Integer statusId) {
+		this.statusId = statusId;
+	}
+	public Integer getOrderId() {
+		return orderId;
+	}
+	public void setOrderId(Integer orderId) {
+		this.orderId = orderId;
+	}
+	public Integer getCarrierId() {
+		return carrierId;
+	}
+	public void setCarrierId(Integer carrierId) {
+		this.carrierId = carrierId;
+	}
+	public String getCarNo() {
+		return carNo;
+	}
+	public void setCarNo(String carNo) {
+		this.carNo = carNo;
+	}
+	public Integer getConfirm() {
+		return confirm;
+	}
+	public void setConfirm(Integer confirm) {
+		this.confirm = confirm;
+	}
+	public Long getStartTime() {
+		return startTime;
+	}
+	public void setStartTime(Long startTime) {
+		this.startTime = startTime;
+	}
+	public Long getEndTime() {
+		return endTime;
+	}
+	public void setEndTime(Long endTime) {
+		this.endTime = endTime;
+	}
+	
+}

+ 19 - 2
saicLogistics/src/main/java/com/fuzamei/web/OrdersIssueAction.java

@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
 
 import com.fuzamei.constant.HintMSG;
 import com.fuzamei.entity.Orders;
+import com.fuzamei.entity.Param;
 import com.fuzamei.service.OrdersIssueService;
 import com.fuzamei.util.JSONUtil;
 
@@ -20,10 +21,26 @@ public class OrdersIssueAction {
 	@Autowired
 	private OrdersIssueService ordersIssueService;
 	
+	/**
+	 * 
+	* @Title: queryOrdersByPlanner
+	* @Description: TODO(由计划员查询订单信息)
+	{
+		"userId":"xxx",
+		"supplierName":"",
+		"boxNo":"",
+		"startTime":"",
+		"endTime":""
+	}
+	* @return Map<String,Object>    返回类型
+	* @author ylx
+	* @date 2018年1月24日 下午8:58:24
+	* @throws
+	 */
 	@RequestMapping(path="queryOrdersByPlanner",method=RequestMethod.POST)
-	public Map<String, Object> queryOrdersByPlanner(){
+	public Map<String, Object> queryOrdersByPlanner(@RequestBody Param param){
 		try {
-			
+			Integer userId = param.getUserId();
 			
 			return JSONUtil.getJsonMap(200, true, HintMSG.QUERY_SUCCESS, null);
 		} catch (Exception e) {