| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation; |
| | | |
| | | public interface TaoBaoClassRelationMapper extends BaseMapper<TaoBaoClassRelation> { |
| | | |
| | | List<TaoBaoClassRelation> listByTaoBaoCid(Long taobaoCid); |
| | | |
| | | /** |
| | | * 根据分类id查询 |
| | | * |
| | | * @param taobaoCid |
| | | * @return |
| | | */ |
| | | TaoBaoClassRelation getByLocalCid(Long localCid); |
| | | |
| | | /** |
| | | * |
| | | * @param localCid |
| | | * @param classId |
| | | */ |
| | | void deleteRelationByLocalCid(Long localCid); |
| | | |
| | | /** |
| | | * 根据分类ID删除 |
| | | * |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | int deleteByCid(Long cid); |
| | | |
| | | /** |
| | | * 根据子分类ID做删除 |
| | | * |
| | | * @param subId |
| | | * @return |
| | | */ |
| | | int deleteBySubId(Long subId); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation;
|
| | |
|
| | | public interface TaoBaoClassRelationMapper extends BaseMapper<TaoBaoClassRelation> {
|
| | |
|
| | | List<TaoBaoClassRelation> listByTaoBaoCid(Long taobaoCid);
|
| | |
|
| | | /**
|
| | | * 根据淘宝分类id查询系统分类
|
| | | * @param taobaoCid
|
| | | * @return
|
| | | */
|
| | | Long getClassIdByTaoBaoCid(Long taobaoCid);
|
| | | |
| | | /**
|
| | | * 根据分类id查询
|
| | | * |
| | | * @param taobaoCid
|
| | | * @return
|
| | | */
|
| | | TaoBaoClassRelation getByLocalCid(Long localCid);
|
| | |
|
| | | /**
|
| | | * |
| | | * @param localCid
|
| | | * @param classId
|
| | | */
|
| | | void deleteRelationByLocalCid(Long localCid);
|
| | |
|
| | | /**
|
| | | * 根据分类ID删除
|
| | | * |
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | int deleteByCid(Long cid);
|
| | |
|
| | | /**
|
| | | * 根据子分类ID做删除
|
| | | * |
| | | * @param subId
|
| | | * @return
|
| | | */
|
| | | int deleteBySubId(Long subId);
|
| | | } |