<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.stylefeng.guns.modular.system.dao.BankCardMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.BankCard">
|
<id column="id" property="id"/>
|
<result column="bank" property="bank" />
|
<result column="lastName" property="lastName" />
|
<result column="firstName" property="firstName" />
|
<result column="code" property="code"/>
|
<result column="userType" property="userType"/>
|
<result column="userId" property="userId"/>
|
<result column="insertTime" property="insertTime"/>
|
</resultMap>
|
|
|
|
<select id="query" resultType="BankCard">
|
select * from t_bank_card where userType = 2 and userId = #{driverId} and `code` = #{code}
|
</select>
|
|
|
<select id="queryBankCard" resultType="BankCard">
|
select * from t_bank_card where userType = 2 and userId = #{driverId} order by insertTime limit #{pageNum}, #{size}
|
</select>
|
</mapper>
|