|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.qs.serve.common.util.Assert; |
|
|
|
import com.qs.serve.common.util.CollectionUtil; |
|
|
|
import com.qs.serve.common.util.CopierUtil; |
|
|
|
import com.qs.serve.common.util.IdUtil; |
|
|
|
import com.qs.serve.modules.goods.common.GoodsConst; |
|
|
|
import com.qs.serve.modules.goods.entity.GoodsSpu; |
|
|
|
import com.qs.serve.modules.goods.entity.bo.GoodsCategoryLevelBo; |
|
|
@ -161,5 +162,11 @@ public class GoodsCategoryServiceImpl extends ServiceImpl<GoodsCategoryMapper,Go |
|
|
|
this.updateById(category); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteCateById(Long id) { |
|
|
|
GoodsCategory goodsCategory = this.getById(id); |
|
|
|
goodsCategory.setCode(goodsCategory.getCode()+"_del_"+ IdUtil.getSnowFlakeId()); |
|
|
|
baseMapper.deleteByCate(goodsCategory); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|