| | |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.Special; |
| | | |
| | | public interface SpecialMapper { |
| | | public interface SpecialMapper extends BaseMapper<Special>{ |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(Special record); |
| | | |
| | | int insertSelective(Special record); |
| | | |
| | | Special selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(Special record); |
| | | |
| | | int updateByPrimaryKey(Special record); |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | |
| | | * @param order |
| | | * @return |
| | | */ |
| | | List<Special> getOrderByCardID(@Param("cardId") Long cardId, @Param("type") Integer type, |
| | | @Param("order") Integer order); |
| | | Special getOrderByCardID(@Param("cardId") Long cardId, @Param("type") Integer type, |
| | | @Param("order") Integer order, @Param("sex")Integer sex); |
| | | |
| | | |
| | | List<Special> listQueryByCard(@Param("start") long start, @Param("count") int count, |
| | | @Param("cardId") Long card, @Param("key") String key); |
| | | |
| | | long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key); |
| | | |
| | | /** |
| | | * 获取最大的排序值 |
| | | * 后端查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param card |
| | | * @param key |
| | | * @param sex |
| | | * @return |
| | | */ |
| | | List<Special> listQueryByCard(@Param("start") long start, @Param("count") int count, |
| | | @Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex); |
| | | |
| | | long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex); |
| | | |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getMaxOrderByCard(@Param("cardId") Long card); |
| | | int getDefaultMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getManMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getWomanMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | /** |
| | | * 根据标识、系统查询启用专题 |
| | |
| | | */ |
| | | List<Special> listBySystemAndCard(@Param("card") String card, @Param("systemId") Long systemId); |
| | | |
| | | /** |
| | | * 根据标识、系统查询启用专题-分页 |
| | | * @param card |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<Special> listPageBySystemAndCard(@Param("start") long start, @Param("count") int count, |
| | | @Param("card") String card, @Param("systemId") Long systemId); |
| | | |
| | | |
| | | /** |
| | | * 根据位置标识查询 |
| | | * @param card |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<Special> listByPlaceKey(@Param("placeKey") String placeKey, @Param("sex")Integer sex); |
| | | |
| | | } |