|  | @ -209,69 +209,6 @@ public class MedicineOrderEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseRequestMapping.BaseOrder.checkOrder)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "检查订单" , notes="检查订单")
 | 
	
		
			
				|  |  |     public Envelop checkOrder(
 | 
	
		
			
				|  |  |             @ApiParam(name = "deviceId", value = "设备id", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "deviceId", required = true) String deviceId,
 | 
	
		
			
				|  |  |             @ApiParam(name = "pickUpNum", value = "取药码")
 | 
	
		
			
				|  |  |             @RequestParam(value = "pickUpNum", required = false) String pickUpNum,
 | 
	
		
			
				|  |  |             @ApiParam(name = "cardNum", value = "社保卡号")
 | 
	
		
			
				|  |  |             @RequestParam(value = "cardNum", required = false) String cardNum
 | 
	
		
			
				|  |  |     ) {
 | 
	
		
			
				|  |  |         JSONObject jsonObject =  orderservice.checkOrder(deviceId, pickUpNum, cardNum);
 | 
	
		
			
				|  |  |         if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
 | 
	
		
			
				|  |  |             return failed(jsonObject.getString("msg"));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return success(jsonObject.getJSONObject("msg"));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseRequestMapping.BaseOrder.checkOrderAndReturn)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "检查订单并且返回列表" , notes="检查订单")
 | 
	
		
			
				|  |  |     public Envelop checkOrderAndReturn(
 | 
	
		
			
				|  |  |             @ApiParam(name = "deviceId", value = "设备id", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "deviceId", required = true) String deviceId,
 | 
	
		
			
				|  |  |             @ApiParam(name = "pickUpNum", value = "取药码")
 | 
	
		
			
				|  |  |             @RequestParam(value = "pickUpNum", required = false) String pickUpNum,
 | 
	
		
			
				|  |  |             @ApiParam(name = "cardNum", value = "社保卡号")
 | 
	
		
			
				|  |  |             @RequestParam(value = "cardNum", required = false) String cardNum
 | 
	
		
			
				|  |  |     ) {
 | 
	
		
			
				|  |  |         JSONObject jsonObject =  orderservice.checkOrderAndReturn(deviceId, pickUpNum, cardNum);
 | 
	
		
			
				|  |  |         if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
 | 
	
		
			
				|  |  |             return failed(jsonObject.getString("msg"));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return success(jsonObject.getJSONObject("msg"));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseRequestMapping.BaseOrder.getOrderOutList)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "通过orderId查询订单出货单" , notes="通过orderId查询订单出货单")
 | 
	
		
			
				|  |  |     public Envelop getOrderOutList(
 | 
	
		
			
				|  |  |             @ApiParam(name = "orderId", value = "订单id", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "orderId", required = true) String orderId
 | 
	
		
			
				|  |  |     ) throws Exception {
 | 
	
		
			
				|  |  |         JSONObject jsonObject =  orderservice.getOrderOutList(orderId);
 | 
	
		
			
				|  |  |         if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
 | 
	
		
			
				|  |  |             return failed(jsonObject.getString("msg"));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         List<MedicineShipmentLog> list = JSONObject.parseArray(jsonObject.getJSONArray("msg").toJSONString(), MedicineShipmentLog.class);
 | 
	
		
			
				|  |  |         return success(list, MedicineShipmentLog.class);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @PostMapping(value = BaseRequestMapping.BaseOrder.updateOrderOutStatus)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "更新订单出货单状态" , notes="更新订单出货单状态")
 | 
	
		
			
				|  |  |     public Envelop updateOrderOut(
 | 
	
		
			
				|  |  |             @ApiParam(name = "shipmentLogId", value = "订单id", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "shipmentLogId", required = true) String shipmentLogId,
 | 
	
		
			
				|  |  |             @ApiParam(name = "status", value = "目标状态", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(value = "status", required = true) String status
 | 
	
		
			
				|  |  |     ) throws Exception {
 | 
	
		
			
				|  |  |         JSONObject jsonObject =  orderservice.updateOrderOutStatus(shipmentLogId, status);
 | 
	
		
			
				|  |  |         return success(jsonObject.getString("msg"));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 |