|  |  | 
 |  |  | import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; | 
 |  |  | import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; | 
 |  |  | import com.doumee.core.wms.model.response.WmsBaseResponse; | 
 |  |  | import com.doumee.service.business.WmsService; | 
 |  |  | import com.doumee.core.wms.model.response.WmsCarInParkDataResponse; | 
 |  |  | import com.doumee.service.business.third.WmsService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | 
 |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
 |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RestController; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author 江蹄蹄 | 
 |  |  | 
 |  |  |         WmsBaseResponse result =null; | 
 |  |  |         try { | 
 |  |  |             result = wmsService.inboundNotice(param); | 
 |  |  |             wmsService.computjobTotalNum(param.getJobIdList()); | 
 |  |  |         }catch (BusinessException e){ | 
 |  |  |             log.error("【WMS】推送入库单通知任务===失败:"+e.getMessage()); | 
 |  |  |             success = Constants.ONE; | 
 |  |  | 
 |  |  |         WmsBaseResponse result =null; | 
 |  |  |         try { | 
 |  |  |             result = wmsService.outboundNotice(param); | 
 |  |  |             wmsService.computjobTotalNum(param.getJobIdList()); | 
 |  |  |         }catch (BusinessException e){ | 
 |  |  |             log.error("【WMS】推送出库单通知任务===失败:"+e.getMessage()); | 
 |  |  |             success = Constants.ONE; | 
 |  |  | 
 |  |  |         } | 
 |  |  |         return result; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("【WMS】推送取消出库单通知任务") | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @PostMapping("/push/cancelOutbound") | 
 |  |  | 
 |  |  |             e.printStackTrace(); | 
 |  |  |             success = Constants.ONE; | 
 |  |  |         }finally { | 
 |  |  |             wmsService.saveInterfaceLog("/wms/push/cancelOutbound", "推送取消出库单通知任务", | 
 |  |  |             wmsService.saveInterfaceLog("/wms/push/cancelOutbound", "【TMS】推送取消出库单通知任务", | 
 |  |  |                     JSONObject.toJSONString(param),  success, JSONObject.toJSONString(result),Constants.ONE); | 
 |  |  |         } | 
 |  |  |         return result; | 
 |  |  | 
 |  |  |         return result; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("【WMS】获取车辆是否入园") | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @PostMapping("/push/carInParkInfo") | 
 |  |  |     public WmsBaseResponse carInParkInfo(@RequestBody WmsBaseRequest<String> param) { | 
 |  |  |         int success = Constants.ZERO; | 
 |  |  |         WmsBaseResponse result = null; | 
 |  |  |         try { | 
 |  |  |             result = wmsService.getCarInPark(param); | 
 |  |  |         }catch (BusinessException e){ | 
 |  |  |             log.error("【WMS】获取车辆是否入园===失败:"+e.getMessage()); | 
 |  |  |             success = Constants.ONE; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【WMS】获取车辆是否入园===失败:"+e.getMessage()); | 
 |  |  |             e.printStackTrace(); | 
 |  |  |             success = Constants.ONE; | 
 |  |  |         }finally { | 
 |  |  |             wmsService.saveInterfaceLog("/wms/push/carInParkInfo", "获取车辆是否入园",JSONObject.toJSONString(param), | 
 |  |  |                     success, JSONObject.toJSONString(result),Constants.ONE); | 
 |  |  |         } | 
 |  |  |         return result; | 
 |  |  |     } | 
 |  |  | } |