|
|
|
@ -20,6 +20,7 @@ import com.gaotao.modules.warehouse.entity.InventoryStock; |
|
|
|
import com.gaotao.modules.warehouse.service.InventoryStockService; |
|
|
|
import com.gaotao.modules.base.entity.PartData; |
|
|
|
import com.gaotao.modules.handlingunit.service.HandlingUnitService; |
|
|
|
import com.gaotao.modules.warehouse.service.WmsAvailabilityControlIdService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -44,7 +45,8 @@ public class HandlingUnitServiceImpl extends ServiceImpl<HandlingUnitMapper, Han |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private TransNoControlService transNoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WmsAvailabilityControlIdService wmsAvailabilityControlIdService; |
|
|
|
@Override |
|
|
|
public List<HandlingUnitDto> getHandlingUnitList(HandlingUnitDto dto) { |
|
|
|
return baseMapper.selectHandlingUnitList(dto); |
|
|
|
@ -55,6 +57,14 @@ public class HandlingUnitServiceImpl extends ServiceImpl<HandlingUnitMapper, Han |
|
|
|
return baseMapper.selectHandlingUnitDetail(site, unitId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public HandlingUnitDto scanHandlingUnitLabelForYiKu(String site, String unitId) { |
|
|
|
if(!wmsAvailabilityControlIdService.checkPartOperationAllowed(site,unitId,"part_movement_control")){ |
|
|
|
throw new RuntimeException("本标签的 availability control id 不允许移库!"); |
|
|
|
} |
|
|
|
return baseMapper.selectHandlingUnitDetail(site, unitId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public String packHandlingUnit(HandlingUnitPackDto packDto) { |
|
|
|
|