TopicMapper.java 2.22 KB
/*
 * @(#)TopicMapper.java
 *
 * Copyright (c) 2014-2017   版权所有
 * xiniunet. All rights reserved.
 *
 * This software is the confidential and proprietary
 * information of  xiniunet.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with xiniunet.
 */
package com.xiniunet.service.railway.dal;

import com.xiniunet.framework.annotation.MyBatisRepository;
import com.xiniunet.framework.security.Passport;
import com.xiniunet.railway.request.TopicFindRequest;
import com.xiniunet.railway.request.TopicSearchRequest;
import com.xiniunet.service.railway.po.TopicPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消息推送的数据库操作接口.
 * @author 
 */
@MyBatisRepository("RailwayTopicMapper")
public interface TopicMapper extends TopicMapperAuto {

    /**
     * 更新实体对象
     *
     * @param request 请求对象
     * @return 受影响的记录条数
     */
    long update(@Param("request") TopicPO request, @Param("passport") Passport passport);


    /**
     * 模糊搜索对象列表
     *
     * @param request 请求对象
     * @param passport 用户护照
     * @return 实体对象列表集合
     */
    List<TopicPO> search(@Param("request") TopicSearchRequest request, @Param("passport") Passport passport);

    /**
     * 模糊搜索对象列表总数
     *
     * @param request 请求对象
     * @param passport 用户护照
     * @return 实体对象列表集合总数
     */
    long searchCount(@Param("request") TopicSearchRequest request, @Param("passport") Passport passport);

    /**
     * 高级查询对象列表
     *
     * @param request 请求对象
     * @param passport 用户护照
     * @return 实体对象列表集合
     */
    List<TopicPO> find(@Param("request") TopicFindRequest request, @Param("passport") Passport passport);

    /**
     * 高级查询对象列表总数
     *
     * @param request 请求对象
     * @param passport 用户护照
     * @return 实体对象列表集合总数
     */
    long findCount(@Param("request") TopicFindRequest request, @Param("passport") Passport passport);

    
}