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