| | |
| | | public Long countBybomId(Integer bomId) { |
| | | ProductStructure productStructure = productStructureMapper.selectOne(new LambdaQueryWrapper<ProductStructure>() |
| | | .eq(ProductStructure::getBomId, bomId) |
| | | .isNull(ProductStructure::getParentId)); |
| | | .isNull(ProductStructure::getParentId) |
| | | .orderByDesc(ProductStructure::getId) |
| | | .last("limit 1")); |
| | | if(productStructure != null){ |
| | | return productStructureMapper.selectCount(new LambdaQueryWrapper<ProductStructure>() |
| | | .eq(ProductStructure::getParentId, productStructure.getId())); |