| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | |
| | | * @param order |
| | | * @return |
| | | */ |
| | | 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); |
| | | |
| | | |
| | | /** |
| | | * 后端查询列表 |
| | | * @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("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex); |
| | | |
| | | long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key); |
| | | long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取最大的排序值 |
| | | * @param card |
| | | * 默认最大的排序值 |
| | | * @param cardId |
| | | * @return |
| | | */ |
| | | int getMaxOrderByCard(@Param("cardId") Long cardId); |
| | | int getDefaultMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据标识、系统查询启用专题 |
| | | * @param card |
| | | * @param systemId |
| | | * 默认最大的排序值 |
| | | * @param cardId |
| | | * @return |
| | | */ |
| | | List<Special> listBySystemAndCard(@Param("card") String card, @Param("systemId") Long systemId); |
| | | |
| | | int getManMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | /** |
| | | * 根据标识、系统查询启用专题-分页 |
| | | * @param card |
| | | * @param systemId |
| | | * 默认最大的排序值 |
| | | * @param cardId |
| | | * @return |
| | | */ |
| | | List<Special> listPageBySystemAndCard(@Param("start") long start, @Param("count") int count, |
| | | @Param("card") String card, @Param("systemId") Long systemId); |
| | | |
| | | |
| | | int getWomanMaxOrder(@Param("cardId") Long cardId); |
| | | |
| | | /** |
| | | * 查询有效专题-版本区分 |
| | | * @param start |
| | | * @param count |
| | | * @param placeKey |
| | | * @param platform |
| | | * @param versionCode |
| | | * @param system |
| | | * @return |
| | | */ |
| | | List<Special> listByVersion(@Param("start") long start, @Param("count") int count, |
| | | @Param("placeKey") String placeKey, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode, @Param("system")SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 根据位置标识查询 |
| | | * @param card |
| | | * @param systemId |
| | | * @param placeKey |
| | | * @param sex |
| | | * @param platform |
| | | * @param versionCode |
| | | * @param system |
| | | * @return |
| | | */ |
| | | List<Special> listByPlaceKey(@Param("placeKey") String placeKey); |
| | | List<Special> listByPlaceKey(@Param("placeKey") String placeKey, @Param("sex")Integer sex, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode,@Param("system")SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 根据多个位置标识查询 |
| | | * @param list |
| | | * @param sex |
| | | * @param platform |
| | | * @param versionCode |
| | | * @return |
| | | */ |
| | | List<Special> listByPlaceKeyList(@Param("start")long start, @Param("count")int count,@Param("list") List<String> list, @Param("sex")Integer sex |
| | | , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode,@Param("system")SystemEnum system); |
| | | |
| | | long countByPlaceKeyList(@Param("list") List<String> list, @Param("sex")Integer sex |
| | | , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode,@Param("system")SystemEnum system); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据多个位置标识查询 |
| | | * @param list |
| | | * @param sex |
| | | * @param platform |
| | | * @param versionCode |
| | | * @return |
| | | */ |
| | | List<Special> listByPlaceKeyHasLabel(@Param("start")long start, @Param("count")int count,@Param("list") List<String> list, @Param("sex")Integer sex |
| | | , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode,@Param("system")SystemEnum system); |
| | | |
| | | } |