| | |
| | | package com.ruoyi.goods.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.goods.domain.pojo.GoodsInfoTitleValue; |
| | | import com.ruoyi.goods.mapper.GoodsInfoTitleValueMapper; |
| | | import com.ruoyi.goods.service.IGoodsInfoTitleValueService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class GoodsInfoTitleValueServiceImpl extends ServiceImpl<GoodsInfoTitleValueMapper, GoodsInfoTitleValue> implements IGoodsInfoTitleValueService { |
| | | |
| | | /** |
| | | * 根据商品SKU ID移除相应的商品信息标题值。 |
| | | * |
| | | * @param id 商品SKU的唯一标识符。 |
| | | * <p> |
| | | * 本方法通过使用Lambda更新表达式,设置条件为商品SKU ID与传入的ID相等,然后执行移除操作。 |
| | | */ |
| | | @Override |
| | | public void removeByGoodsSkuId(Long id) { |
| | | this.lambdaUpdate().eq(GoodsInfoTitleValue::getGoodsSkuId, id).remove(); |
| | | } |
| | | |
| | | } |