1234567891011121314151617181920212223 |
- <?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.cool.bang.modules.mysql.mapper.BankMapper">
- <resultMap id="bankMap" type="com.cool.bang.modules.mysql.domain.Bank">
- <id property="id" column="id"/>
- <result property="code" column="code" jdbcType="VARCHAR"/>
- <result property="bankName" column="bank_name" jdbcType="VARCHAR"/>
- <result property="director" column="director" jdbcType="VARCHAR"/>
- <result property="phone" column="phone" jdbcType="VARCHAR"/>
- <result property="address" column="address" jdbcType="VARCHAR"/>
- <result property="trusteeship" column="trusteeship" jdbcType="TINYINT"/>
- <result property="supervise" column="supervise" jdbcType="TINYINT"/>
- <result property="authState" column="auth_state" jdbcType="INTEGER"/>
- <result property="token" column="token" jdbcType="VARCHAR"/>
- <result property="secret" column="secret" jdbcType="VARCHAR"/>
- <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
- </resultMap>
- <select id="selectByName" resultMap="bankMap">
- select * from fc_bank where bank_name = #{bankName}
- </select>
- </mapper>
|