|
|
|
@ -2,6 +2,7 @@ package com.gaotao.modules.handlingunit.service.impl; |
|
|
|
|
|
|
|
import com.gaotao.modules.api.entity.IfsInventoryPartInStock; |
|
|
|
import com.gaotao.modules.api.service.IfsApiService; |
|
|
|
import com.gaotao.modules.automatedWarehouse.mapper.WcsIntegrationMapper; |
|
|
|
import com.gaotao.modules.handlingunit.dao.HandlingUnitMapper; |
|
|
|
import com.gaotao.modules.handlingunit.dao.LabelCalibrationMapper; |
|
|
|
import com.gaotao.modules.handlingunit.entity.HandlingUnit; |
|
|
|
@ -31,6 +32,7 @@ import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -75,7 +77,8 @@ public class LabelCalibrationServiceImpl implements LabelCalibrationService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private LabelCalibrationMapper labelCalibrationMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WcsIntegrationMapper wcsIntegrationMapper; |
|
|
|
/** |
|
|
|
* @Description 查询标签校准信息 - rqrq |
|
|
|
*/ |
|
|
|
@ -168,7 +171,11 @@ public class LabelCalibrationServiceImpl implements LabelCalibrationService { |
|
|
|
if (originalHu == null) { |
|
|
|
throw new RuntimeException("标签不存在:" + unitId); |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, Object> existingPalletInfo = wcsIntegrationMapper.findPalletByLabel(site, unitId); |
|
|
|
if (existingPalletInfo != null) { |
|
|
|
String existingPalletId = (String) existingPalletInfo.get("palletId"); |
|
|
|
throw new RuntimeException("标签在栈板["+existingPalletId+"]上,请先扫出"); |
|
|
|
} |
|
|
|
// 检查标签是否在库 - rqrq |
|
|
|
if (!"Y".equals(originalHu.getInStockFlag())) { |
|
|
|
throw new RuntimeException("标签库存已被消耗"); |
|
|
|
|