Pu Zhibing
2025-03-28 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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>