|
@@ -15,6 +15,7 @@ import com.fjhx.mes.entity.bom.po.BomDetail;
|
|
|
import com.fjhx.mes.entity.bom.po.BomInfo;
|
|
|
import com.fjhx.mes.entity.bom.vo.BomDetailVo;
|
|
|
import com.fjhx.mes.entity.bom.vo.BomInfoVo;
|
|
|
+import com.fjhx.mes.entity.bom.vo.BomProductVo;
|
|
|
import com.fjhx.mes.mapper.bom.BomInfoMapper;
|
|
|
import com.fjhx.mes.service.bom.BomDetailService;
|
|
|
import com.fjhx.mes.service.bom.BomInfoService;
|
|
@@ -233,4 +234,14 @@ public class BomInfoServiceImpl extends ServiceImpl<BomInfoMapper, BomInfo> impl
|
|
|
ObsFileUtil.editFile(bomInfoDto.getFileList(), bomInfoDto.getId());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<BomProductVo> getProductList() {
|
|
|
+ List<ProductInfo> list = productInfoService.list();
|
|
|
+ List<BomProductVo> bomProductList = BeanUtil.copyToList(list, BomProductVo.class);
|
|
|
+
|
|
|
+ List<Long> productIdList = listObject(BomInfo::getProductId, null);
|
|
|
+ bomProductList.forEach(item -> item.setDisabled(productIdList.contains(item.getId())));
|
|
|
+ return bomProductList;
|
|
|
+ }
|
|
|
+
|
|
|
}
|