| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.lable.LabelClass; |
| | | |
| | | public interface LabelClassMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(LabelClass record); |
| | | |
| | | int insertSelective(LabelClass record); |
| | | |
| | | LabelClass selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(LabelClass record); |
| | | |
| | | int updateByPrimaryKey(LabelClass record); |
| | | |
| | | /** |
| | | * 根据分类id、标签id获取关系 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getByClassIdAndLabelId(@Param("classId") Long classId, @Param("labId") Long labId); |
| | | |
| | | |
| | | /** |
| | | * 查询一级类对应标签 -- 全部 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getByClassId(@Param("classId") Long record); |
| | | |
| | | /** |
| | | * 查询一级类对应标签 -- 分页 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> queryByClassId(@Param("start") int start, @Param("count") int count, @Param("classId") Long record); |
| | | |
| | | int getCountQueryByClassId(@Param("classId") Long record); |
| | | |
| | | |
| | | /** |
| | | * 查询子类对应标签 -- 全部 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getBySubClassId(@Param("subClassId") Long record); |
| | | |
| | | /** |
| | | * 查询子类对应标签 -- 分页 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> queryBySubClassId(@Param("start") int start, @Param("count") int count, @Param("subClassId") Long record); |
| | | |
| | | int getCountQueryBySubClassId(@Param("subClassId") Long record); |
| | | |
| | | /** |
| | | * 根据一级类别ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteByClassId(Long classId); |
| | | |
| | | /** |
| | | * 根据子类别ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteBySubClassId(Long subClassId); |
| | | |
| | | /** |
| | | * 根据标签ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteByLabId(Long labID); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.lable.LabelClass;
|
| | |
|
| | | public interface LabelClassMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(LabelClass record);
|
| | |
|
| | | int insertSelective(LabelClass record);
|
| | |
|
| | | LabelClass selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(LabelClass record);
|
| | |
|
| | | int updateByPrimaryKey(LabelClass record);
|
| | | |
| | | /**
|
| | | * 根据分类id、标签id获取关系
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getByClassIdAndLabelId(@Param("classId") Long classId, @Param("labId") Long labId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询一级类对应标签 -- 全部
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getByClassId(@Param("classId") Long record);
|
| | | |
| | | /**
|
| | | * 查询一级类对应标签 -- 分页
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> queryByClassId(@Param("start") int start, @Param("count") int count, @Param("classId") Long record);
|
| | | |
| | | int getCountQueryByClassId(@Param("classId") Long record);
|
| | | |
| | | |
| | | /**
|
| | | * 查询子类对应标签 -- 全部
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getBySubClassId(@Param("subClassId") Long record);
|
| | | |
| | | /**
|
| | | * 查询子类对应标签 -- 分页
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> queryBySubClassId(@Param("start") int start, @Param("count") int count, @Param("subClassId") Long record);
|
| | | |
| | | int getCountQueryBySubClassId(@Param("subClassId") Long record);
|
| | | |
| | | /**
|
| | | * 根据一级类别ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteByClassId(Long classId);
|
| | | |
| | | /**
|
| | | * 根据子类别ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteBySubClassId(Long subClassId);
|
| | | |
| | | /**
|
| | | * 根据标签ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteByLabId(Long labID);
|
| | | |
| | | |
| | | } |