Merge branch 'refs/heads/feature/DM/nflg-bom-dq' into feature/DM/nflg-bom

This commit is contained in:
曹鹏飞 2024-05-10 17:30:39 +08:00
commit 9cfa61c5bd
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public interface BomNewDQbomParentMapper extends BaseMapper<BomNewDQbomParentEnt
BomNewDQbomVO getRootBomByRowId(Long rootBomRowId);
List<BomNewDQbomVO> getChildren(Long bomRowId);
// List<BomNewDQbomVO> getChildren(Long bomRowId);
List<BomNewDQbomVO> getBom(int status, String materialNo, String drawingNo, String materialName);

View File

@ -375,7 +375,8 @@ public class DQBomService {
private void getChildren(List<BomNewDQbomVO> datas, BomNewDQbomVO parent) {
if (Objects.isNull(parent) || parent.getBomRowId() == 0) return;
List<BomNewDQbomVO> cc = dQBomParentService.getBaseMapper().getChildren(parent.getBomRowId());
//List<BomNewDQbomVO> cc = dQBomParentService.getBaseMapper().getChildren(parent.getBomRowId());
List<BomNewDQbomVO> cc = getChild(parent.getBomRowId());
if (CollUtil.isNotEmpty(cc)) {
cc.forEach(c -> {
c.setParentMaterialNo(parent.getMaterialNo());