|
|
@ -10,6 +10,7 @@ import com.gaotao.modules.automatedWarehouse.service.WcsIntegrationService; |
|
|
import com.gaotao.modules.automatedWarehouse.service.WcsTaskService; |
|
|
import com.gaotao.modules.automatedWarehouse.service.WcsTaskService; |
|
|
import com.gaotao.modules.handlingunit.entity.HandlingUnit; |
|
|
import com.gaotao.modules.handlingunit.entity.HandlingUnit; |
|
|
import com.gaotao.modules.notify.mapper.NewIssureMapper; |
|
|
import com.gaotao.modules.notify.mapper.NewIssureMapper; |
|
|
|
|
|
import com.gaotao.modules.warehouse.dao.PalletMapper; |
|
|
import com.gaotao.modules.warehouse.entity.Pallet; |
|
|
import com.gaotao.modules.warehouse.entity.Pallet; |
|
|
|
|
|
|
|
|
import com.gaotao.modules.warehouse.service.PalletService; |
|
|
import com.gaotao.modules.warehouse.service.PalletService; |
|
|
@ -48,6 +49,8 @@ public class WcsTaskServiceImpl implements WcsTaskService { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private NewIssureMapper newIssureMapper; |
|
|
private NewIssureMapper newIssureMapper; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PalletMapper palletMapper; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<WcsCallbackTask> getPendingWcsCallbackTasks(String site) { |
|
|
public List<WcsCallbackTask> getPendingWcsCallbackTasks(String site) { |
|
|
@ -106,13 +109,16 @@ public class WcsTaskServiceImpl implements WcsTaskService { |
|
|
WareHouseTransferRequest request = buildWareHouseTransferRequest(callbackTask); |
|
|
WareHouseTransferRequest request = buildWareHouseTransferRequest(callbackTask); |
|
|
request.setUsername("sys_wms"); |
|
|
request.setUsername("sys_wms"); |
|
|
result = wmsMessageService.doWareHouseForPallet(request); |
|
|
result = wmsMessageService.doWareHouseForPallet(request); |
|
|
|
|
|
|
|
|
// 更新托盘状态 - rqrq |
|
|
// 更新托盘状态 - rqrq |
|
|
if ("入库".equals(callbackTask.getTransTypeDesc())) { |
|
|
if ("入库".equals(callbackTask.getTransTypeDesc())) { |
|
|
updateOrderTaskStatusForInbound(callbackTask); |
|
|
updateOrderTaskStatusForInbound(callbackTask); |
|
|
|
|
|
palletMapper.updateLocationWithPalletId(request.getSite(),request.getPalletId(),request.getToStation(),request.getToStation()); |
|
|
|
|
|
|
|
|
wcsIntegrationMapper.updatePalletCallingFlag(callbackTask.getSite(), callbackTask.getPalletId(), "N", "SYS_WMS"); |
|
|
wcsIntegrationMapper.updatePalletCallingFlag(callbackTask.getSite(), callbackTask.getPalletId(), "N", "SYS_WMS"); |
|
|
} else { |
|
|
} else { |
|
|
wcsIntegrationMapper.updatePalletWcsLocation(callbackTask.getSite(), callbackTask.getPalletId(), null); |
|
|
|
|
|
|
|
|
palletMapper.updateLocationWithPalletId(request.getSite(),request.getPalletId(),"Virtual_AS",null); |
|
|
|
|
|
|
|
|
|
|
|
// wcsIntegrationMapper.updatePalletWcsLocation(callbackTask.getSite(), callbackTask.getPalletId(), null); |
|
|
wcsIntegrationMapper.updatePalletCallingFlag(callbackTask.getSite(), callbackTask.getPalletId(), "Y", "SYS_WMS"); |
|
|
wcsIntegrationMapper.updatePalletCallingFlag(callbackTask.getSite(), callbackTask.getPalletId(), "Y", "SYS_WMS"); |
|
|
} |
|
|
} |
|
|
} else if ("取货通知".equals(callbackTask.getTransTypeDesc())) { |
|
|
} else if ("取货通知".equals(callbackTask.getTransTypeDesc())) { |
|
|
|