package com.yeshi.fanli.service.inter.homemodule;
|
|
import java.util.List;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import com.yeshi.fanli.entity.bus.homemodule.Special;
|
|
import net.sf.json.JSONObject;
|
|
/**
|
* 专题
|
*
|
* @author Administrator
|
*
|
*/
|
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);
|
|
public long countlistQueryByCard(Long card, String key);
|
|
/**
|
* 查询排序值
|
* @param card
|
* @return
|
*/
|
public int getMaxOrderByCard(Long card);
|
|
/**
|
* 专题图片上传
|
* @param file
|
* @param record
|
* @throws Exception
|
*/
|
public void uploadPicture(MultipartFile file, Special record, Long cardId) throws Exception;
|
|
/**
|
* 根据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 cardId
|
* @param type
|
* @param order
|
* @return
|
*/
|
public List<Special> getOrderByCardID(Long cardId, Integer type, Integer order);
|
|
|
/**
|
* 根据标识、系统查询启用专题
|
* @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 card
|
* @param systemId
|
* @return
|
* @throws Exception
|
*/
|
public JSONObject getSpecialListCache(String card, Long systemId) throws Exception;
|
|
}
|