|
|
|
@ -22,6 +22,7 @@ import com.gaotao.modules.warehouse.service.HandlingUnitOperationLogService; |
|
|
|
import com.gaotao.modules.warehouse.service.PalletOperationLogService; |
|
|
|
import org.apache.shiro.SecurityUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
@ -36,6 +37,8 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
@Value("${custom.warehouse-error-location:1101}") |
|
|
|
private String warehouseErrorLocation; |
|
|
|
@Autowired |
|
|
|
private WcsIntegrationMapper wcsIntegrationMapper; |
|
|
|
@Autowired |
|
|
|
@ -1331,12 +1334,15 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
if(newDetail.isEmpty()){ |
|
|
|
throw new Exception("空栈板无法组托!"); |
|
|
|
} |
|
|
|
newDetail.stream() |
|
|
|
.filter(detail -> "Y".equals(detail.getReserveFlag())) |
|
|
|
.findFirst() |
|
|
|
.ifPresent(detail -> { |
|
|
|
throw new RuntimeException("标签{" + detail.getSerialNo() + "}已经被预留"); |
|
|
|
}); |
|
|
|
//---异常区不校验直接组盘是否被预留---!! 如果检验可能会导致单据无法继续 |
|
|
|
if(!warehouseErrorLocation.equals(locationCode)){ |
|
|
|
newDetail.stream() |
|
|
|
.filter(detail -> "Y".equals(detail.getReserveFlag())) |
|
|
|
.findFirst() |
|
|
|
.ifPresent(detail -> { |
|
|
|
throw new RuntimeException("标签{" + detail.getSerialNo() + "}已经被预留"); |
|
|
|
}); |
|
|
|
} |
|
|
|
// 生成入库任务编号 |
|
|
|
TransNoControl transData2 = transNoService.getTransNo(site, "WOT", 10); |
|
|
|
Date currentTime = new Date(); |
|
|
|
|