EmployeeMapper.java 2.86 KB
/**
 * @(#)EmployeeMapper.java Copyright (c) 2014-2014  苏州犀牛网络科技有限公司 版权所有
 * xiniunet. All rights reserved.
 * <p>
 * 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.tutorial.dal;

import com.xiniunet.framework.annotation.MyBatisRepository;
import com.xiniunet.framework.security.Passport;
import com.xiniunet.tutorial.po.EmployeePO;
import com.xiniunet.tutorial.request.EmployeeFindRequest;
import com.xiniunet.tutorial.request.EmployeeGetAllListRequest;
import com.xiniunet.tutorial.request.EmployeeSearchRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 吕浩 on 2017-03-20 15:54:02.
 *
 * @author 吕浩
 */
@MyBatisRepository("TutorialEmployeeMapper")
public interface EmployeeMapper extends EmployeeMapperAuto {

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

    /**
     * 更新员工照片
     *
     * @param request  更新请求
     * @param passport 用户护照
     * @return 受影响的记录条数
     */
    long updatePhoto(@Param("request") EmployeePO request, @Param("passport") Passport passport);

    /**
     * 获取所有对象列表
     *
     * @param passport 用户护照
     * @return 实体对象集合
     */
    List<EmployeePO> getAllList(@Param("request") EmployeeGetAllListRequest request, @Param("passport") Passport passport);


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

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


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

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


}