|
|
|
@ -7,13 +7,18 @@ import com.logpm.factory.comfac.dto.OrderStatusDTO;
|
|
|
|
|
import com.logpm.factory.mt.service.IMtFactoryDataService; |
|
|
|
|
import com.logpm.factory.oupai.service.IOuPaiFactoryService; |
|
|
|
|
import com.logpm.factory.pan.service.IPanFactoryDataService; |
|
|
|
|
import com.logpm.factory.props.MtFactoryProperties; |
|
|
|
|
import com.logpm.factory.zb.service.IZbFactoryDataService; |
|
|
|
|
import com.logpm.oldproject.entity.AdvanceEntity; |
|
|
|
|
import com.logpm.oldproject.feign.IAdvanceClient; |
|
|
|
|
import com.logpm.oldproject.feign.ITrayClient; |
|
|
|
|
import com.logpm.oldproject.feign.ITrayScanClient; |
|
|
|
|
import com.logpm.oldproject.feign.ITrayScanDesClient; |
|
|
|
|
import com.logpm.warehouse.feign.*; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseTaryAllocationClient; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayTypeClient; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsClient; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownTypeClient; |
|
|
|
|
import com.rabbitmq.client.Channel; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.constant.RabbitConstant; |
|
|
|
@ -50,6 +55,8 @@ public class OrderStatusHandler {
|
|
|
|
|
private IMtFactoryDataService mtFactoryDataService; |
|
|
|
|
@Autowired |
|
|
|
|
private IZbFactoryDataService zbFactoryDataService; |
|
|
|
|
@Autowired |
|
|
|
|
private MtFactoryProperties mtFactoryProperties; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IOuPaiFactoryService ouPaiFactoryService; |
|
|
|
@ -105,12 +112,14 @@ public class OrderStatusHandler {
|
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case FactoryConstant.MENGT: |
|
|
|
|
if(mtFactoryProperties.getSendEnable()){ |
|
|
|
|
r = mtFactoryDataService.handleStatusData(orderStatusDTO); |
|
|
|
|
if (r.getCode() == 400 || r.getCode() == 200) { |
|
|
|
|
log.info("TAG {} ##################orderStatusHandler: 该条数据不用处理 orderNo={}", FactoryConstant.MENGT, orderSelfNum); |
|
|
|
|
} else { |
|
|
|
|
throw new CustomerException(r.getCode(), r.getMsg()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case FactoryConstant.ZHIBANG: |
|
|
|
|
r = zbFactoryDataService.handleStatusData(orderStatusDTO); |
|
|
|
|