|
|
|
@ -4,16 +4,23 @@ import com.gaotao.modules.api.entity.WareHouseTransferRequest; |
|
|
|
import com.gaotao.modules.api.service.WcsApiService; |
|
|
|
|
|
|
|
import com.gaotao.modules.api.service.WmsMessageService; |
|
|
|
import com.gaotao.modules.automatedWarehouse.entity.AgvStation; |
|
|
|
import com.gaotao.modules.automatedWarehouse.entity.WcsCallbackTask; |
|
|
|
import com.gaotao.modules.automatedWarehouse.entity.WmsOrderTask; |
|
|
|
import com.gaotao.modules.automatedWarehouse.mapper.WcsIntegrationMapper; |
|
|
|
import com.gaotao.modules.automatedWarehouse.service.WcsIntegrationService; |
|
|
|
import com.gaotao.modules.automatedWarehouse.service.WcsTaskService; |
|
|
|
import com.gaotao.modules.warehouse.entity.Pallet; |
|
|
|
import com.gaotao.modules.warehouse.service.PalletService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* WCS任务处理服务实现类 |
|
|
|
@ -21,7 +28,11 @@ import java.util.List; |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class WcsTaskServiceImpl implements WcsTaskService { |
|
|
|
@Autowired |
|
|
|
private PalletService palletService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WcsIntegrationService wcsIntegrationService; |
|
|
|
@Autowired |
|
|
|
private WcsIntegrationMapper wcsIntegrationMapper; |
|
|
|
|
|
|
|
@ -80,8 +91,7 @@ public class WcsTaskServiceImpl implements WcsTaskService { |
|
|
|
// 5. 如果是入库,更新对应的wms_order_task状态 |
|
|
|
if ("入库".equals(callbackTask.getTransTypeDesc())) { |
|
|
|
updateOrderTaskStatusForInbound(callbackTask); |
|
|
|
//如果更新wcs库位 |
|
|
|
wcsIntegrationMapper.updatePalletWcsLocation(callbackTask.getSite(), callbackTask.getPalletId(), callbackTask.getToStation()); |
|
|
|
|
|
|
|
} |
|
|
|
if ("出库".equals(callbackTask.getTransTypeDesc())) { |
|
|
|
wcsIntegrationMapper.updatePalletWcsLocation(callbackTask.getSite(), callbackTask.getPalletId(), ""); |
|
|
|
@ -258,4 +268,5 @@ public class WcsTaskServiceImpl implements WcsTaskService { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |