package com.xxfc.platform.tour.mapper;


import com.xxfc.platform.tour.entity.TourUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 出游人信息
 * 
 * @author zjw
 * @email nishijjo@qq.com
 * @date 2019-06-06 11:41:51
 */
@Repository
public interface TourUserMapper extends Mapper<TourUser> {

    @Select("select * from tour_user where userid=${userid} and is_child=${isChild} and isdel=${isdel}")
    List<TourUser> findListByTourUserByIsChild(TourUser user);

    @Select("select * from tour_user where userid=${userid}  and isdel=${isdel}")
    List<TourUser> findListByTourUser(TourUser user);
}
