|
|
@ -151,9 +151,6 @@ public class WmsAvailabilityControlIdServiceImpl extends ServiceImpl<WmsAvailabi |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public boolean checkPartOperationAllowed(String site, String unitId, String type) { |
|
|
public boolean checkPartOperationAllowed(String site, String unitId, String type) { |
|
|
if (!StringUtils.hasText(site)) { |
|
|
|
|
|
throw new XJException("site不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
if (!StringUtils.hasText(unitId)) { |
|
|
if (!StringUtils.hasText(unitId)) { |
|
|
throw new XJException("unitId不能为空"); |
|
|
throw new XJException("unitId不能为空"); |
|
|
} |
|
|
} |
|
|
@ -166,7 +163,7 @@ public class WmsAvailabilityControlIdServiceImpl extends ServiceImpl<WmsAvailabi |
|
|
throw new XJException("不支持的type:" + type); |
|
|
throw new XJException("不支持的type:" + type); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
WmsAvailabilityControlId config = wmsAvailabilityControlIdMapper.getControlConfigByUnit(site, unitId); |
|
|
|
|
|
|
|
|
WmsAvailabilityControlId config = wmsAvailabilityControlIdMapper.getControlConfigByUnit( unitId); |
|
|
if (config == null || !StringUtils.hasText(config.getHandlingUnitUnitId())) { |
|
|
if (config == null || !StringUtils.hasText(config.getHandlingUnitUnitId())) { |
|
|
throw new XJException("未找到标签,site=" + site + ",unitId=" + unitId); |
|
|
throw new XJException("未找到标签,site=" + site + ",unitId=" + unitId); |
|
|
} |
|
|
} |
|
|
|