yujian
2019-04-22 b6c37e4bc38db88a360d0f2c6099183f9bb75bdc
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialMapper.java
@@ -4,21 +4,11 @@
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);
   
@@ -44,8 +34,7 @@
    * @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);
   
   
   List<Special> listQueryByCard(@Param("start") long start, @Param("count") int count,
@@ -58,7 +47,7 @@
    * @param card
    * @return
    */
   int getMaxOrderByCard(@Param("cardId") Long card);
   int getMaxOrderByCard(@Param("cardId") Long cardId);
   
   /**
    * 根据标识、系统查询启用专题
@@ -68,4 +57,22 @@
    */
   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);
}