Browse Source

请联系工程维护产品有效期!

master
han\hanst 3 weeks ago
parent
commit
622aaf6e3f
  1. 4
      src/main/java/com/gaotao/modules/po/service/impl/PoServiceImpl.java

4
src/main/java/com/gaotao/modules/po/service/impl/PoServiceImpl.java

@ -176,6 +176,10 @@ public class PoServiceImpl extends ServiceImpl<PoMapper, PurchaseOrder> implemen
if (parts!=null && !parts.isEmpty()) {
shelfLife = parts.getFirst().getDurabilityDays()!=0?parts.getFirst().getDurabilityDays():null;
}
// 如果物料没有设置shelfLife报错提示请联系工程维护产品有效期
if (shelfLife == null) {
throw new XJException("请联系工程维护产品有效期!");
}
// 根据库位获取仓库ID
String warehouseId = null;
Location location = locationService.getByLocationIdAndSite(inData.getSite(), inData.getLocationNo());

Loading…
Cancel
Save