luoweijian 5 days ago
parent
commit
390266fbf3
  1. 3
      src/main/java/com/project/information/domain/service/impl/UpdateProductLineDomainServiceImpl.java

3
src/main/java/com/project/information/domain/service/impl/UpdateProductLineDomainServiceImpl.java

@ -48,6 +48,9 @@ public class UpdateProductLineDomainServiceImpl implements UpdateProductLineDoma
@Override @Override
public Result<String> delete(Long id) throws Exception { public Result<String> delete(Long id) throws Exception {
productLineBaseService.removeById(id); productLineBaseService.removeById(id);
LambdaQueryWrapper<ProductLineEntity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(ProductLineEntity::getParentId , id);
productLineBaseService.remove(queryWrapper);
return Result.success("删除成功"); return Result.success("删除成功");
} }
} }

Loading…
Cancel
Save