optimize(dqbom): 优化查询物料信息接口
This commit is contained in:
parent
fd3524de70
commit
b71ca6e6a7
|
|
@ -695,6 +695,7 @@ public class DQBomService {
|
||||||
vo.setMaterialTexture(d.getMaterialTexture());
|
vo.setMaterialTexture(d.getMaterialTexture());
|
||||||
vo.setMaterialUnit(d.getMaterialUnit());
|
vo.setMaterialUnit(d.getMaterialUnit());
|
||||||
vo.setCategoryName(d.getCategoryName());
|
vo.setCategoryName(d.getCategoryName());
|
||||||
|
vo.setRelCategoryCode(d.getRelCategoryCode());
|
||||||
QueryMaterialsQuery q = query.stream()
|
QueryMaterialsQuery q = query.stream()
|
||||||
.filter(f -> StrUtil.equals(f.getMaterialNo(), vo.getMaterialNo()) || StrUtil.equals(f.getDrawingNo(), vo.getDrawingNo()))
|
.filter(f -> StrUtil.equals(f.getMaterialNo(), vo.getMaterialNo()) || StrUtil.equals(f.getDrawingNo(), vo.getDrawingNo()))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
|
|
@ -727,6 +728,7 @@ public class DQBomService {
|
||||||
vo.setMaterialTexture(d.getMaterialTexture());
|
vo.setMaterialTexture(d.getMaterialTexture());
|
||||||
vo.setMaterialUnit(d.getMaterialUnit());
|
vo.setMaterialUnit(d.getMaterialUnit());
|
||||||
vo.setCategoryName(d.getCategoryName());
|
vo.setCategoryName(d.getCategoryName());
|
||||||
|
vo.setRelCategoryCode(d.getRelCategoryCode());
|
||||||
if (Objects.nonNull(query.getUnitWeight())) {
|
if (Objects.nonNull(query.getUnitWeight())) {
|
||||||
vo.setUnitWeight(query.getUnitWeight());
|
vo.setUnitWeight(query.getUnitWeight());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue