| | |
| | | package com.yeshi.fanli.service.inter.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.Special;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialException;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | | /**
|
| | | * 专题
|
| | |
| | | */
|
| | | public interface SpecialService {
|
| | |
|
| | | public int deleteByPrimaryKey(Long id);
|
| | |
|
| | | public int insert(Special record);
|
| | |
|
| | | public int insertSelective(Special record);
|
| | |
|
| | | public Special selectByPrimaryKey(Long id);
|
| | |
|
| | | public int updateByPrimaryKeySelective(Special record);
|
| | |
|
| | | public int updateByPrimaryKey(Special record);
|
| | | public List<Special> listQueryByCard(long start, int count, Long card, String key, Integer sex);
|
| | |
|
| | | public long countlistQueryByCard(Long card, String key, Integer sex);
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据id批量删除
|
| | | * @param list
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
|
| | |
|
| | | /**
|
| | | * CardID批量删除
|
| | | * @param list
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public int deleteBatchByCardID(List<Long> list) throws Exception;
|
| | |
|
| | | /**
|
| | | * 根据标识、系统查询启用专题
|
| | | * @param card
|
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | public List<Special> listBySystemAndCard(String card, Long systemId);
|
| | |
|
| | | /**
|
| | | * 活动列表-分页
|
| | | * @param start
|
| | | * @param count
|
| | | * @param card
|
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | public List<Special> listPageBySystemAndCard(long start, int count, String card, Long systemId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 保存
|
| | | * @param file
|
| | | * @param record
|
| | | * @param jumpType
|
| | | * @throws SpecialException
|
| | | * @throws Exception
|
| | | */
|
| | | public void saveObject(MultipartFile file, MultipartFile file2, MultipartFile file3, Special record, String jumpType) throws SpecialException, Exception;
|
| | |
|
| | | /**
|
| | | * 更换顺序
|
| | | * @param id
|
| | | * @param moveType
|
| | | * @throws SpecialException
|
| | | */
|
| | | public void updateOrder(Long id, Integer moveType, Integer sex) throws SpecialException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 首页-专题数据
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | public JSONObject listCacheSpecialToIndex(AcceptData acceptData, Integer sex) throws Exception;
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据专题位置查询
|
| | | * @param placeKey
|
| | | * @return
|
| | | */
|
| | | public List<Special> listByPlaceKey(String placeKey, Integer platform, Integer versionCode);
|
| | |
|
| | |
|
| | | /**
|
| | | * 专题 版本区分
|
| | | * @param start
|
| | | * @param count
|
| | | * @param card
|
| | | * @param systemId
|
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | public List<Special> listByVersion(long start, int count, String card, String platform, Integer versionCode);
|
| | |
|
| | |
|
| | | /**
|
| | | * 专题版本区分 传递多个位置
|
| | | * @param list
|
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | public List<Special> listByPlaceKeyList(long start, int count, List<String> list, Integer platform, Integer versionCode);
|
| | |
|
| | |
|
| | | public long countByPlaceKeyList(List<String> list, Integer platform, Integer versionCode);
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询专题并返回标签
|
| | | * @param list
|
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | public List<Special> listByPlaceKeyHasLabel(long start, int count, List<String> list, Integer platform, Integer versionCode);
|
| | | |
| | | |
| | | /**
|
| | | * 为专题设置版本
|
| | | * @param specialId
|
| | | * @param versions
|
| | | * @throws Exception
|
| | | */
|
| | | public void setVersions(Long specialId,List<Long> versions) throws Exception;
|
| | |
|
| | |
|
| | | }
|