|  |  |  | 
|---|
|  |  |  | 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.service.business.third.WmsService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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; | 
|---|