| | |
| | | import com.yeshi.fanli.entity.bus.lable.LabelGoods;
|
| | | import com.yeshi.fanli.entity.common.AdminUser;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.LabelClassException;
|
| | | import com.yeshi.fanli.exception.LabelGoodsException;
|
| | | import com.yeshi.fanli.exception.goods.quality.LabelClassException;
|
| | | import com.yeshi.fanli.exception.goods.quality.LabelGoodsException;
|
| | |
|
| | | public interface LabelGoodsService {
|
| | |
|
| | |
| | | * @return
|
| | | * @throws LabelGoodsException
|
| | | */
|
| | | public int insert(LabelGoods record) throws LabelGoodsException;
|
| | |
|
| | | /**
|
| | | * 更新当前对象所有数据
|
| | | * |
| | | * @param record
|
| | | * @return
|
| | | * @throws LabelGoodsException
|
| | | */
|
| | | public int updateByPrimaryKey(LabelGoods record) throws LabelGoodsException;
|
| | |
|
| | | /**
|
| | | * 选择性更新内容——不为空则更新该字段
|
| | | * |
| | | * @param record
|
| | | * @return
|
| | | * @throws LabelGoodsException
|
| | | */
|
| | | public int updateByPrimaryKeySelective(LabelGoods record) throws LabelGoodsException;
|
| | | public int insertSelective(LabelGoods record) throws LabelGoodsException;
|
| | |
|
| | | /**
|
| | | * 根据id删除当前对象
|
| | |
| | | */
|
| | | public int deleteBatchById(long[] ids) throws LabelGoodsException;
|
| | |
|
| | | /**
|
| | | * 商品贴标签
|
| | | * |
| | | * @param arrtitle
|
| | | * @param ids
|
| | | * @param admin
|
| | | * @return
|
| | | * @throws LabelGoodsException
|
| | | */
|
| | | public void setGoodsLabel(String[] arrtitle, List<String> goodsIds, AdminUser admin) throws Exception;
|
| | |
|
| | | /**
|
| | | * 根据商品id 删除商品对应的所有标签信息
|
| | |
| | | */
|
| | | public void deleteByGoodsId(List<String> ids) throws LabelGoodsException;
|
| | |
|
| | | /**
|
| | | * 批量添加商品标签
|
| | | * |
| | | * @param label
|
| | | * @param goodsIdList
|
| | | * @param admin
|
| | | * @param weight
|
| | | * @param weightSmall
|
| | | * @param weightLarge
|
| | | */
|
| | | public void addBatchRandom(String[] lables, List<String> idList, AdminUser admin, Integer weight,
|
| | | Integer weightSmall, Integer weightLarge) throws Exception;
|
| | |
|
| | | /**
|
| | | * 获取标签商品关联数量
|