BankMapper.xml 1.3 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.cool.bang.modules.mysql.mapper.BankMapper">
  4. <resultMap id="bankMap" type="com.cool.bang.modules.mysql.domain.Bank">
  5. <id property="id" column="id"/>
  6. <result property="code" column="code" jdbcType="VARCHAR"/>
  7. <result property="bankName" column="bank_name" jdbcType="VARCHAR"/>
  8. <result property="director" column="director" jdbcType="VARCHAR"/>
  9. <result property="phone" column="phone" jdbcType="VARCHAR"/>
  10. <result property="address" column="address" jdbcType="VARCHAR"/>
  11. <result property="trusteeship" column="trusteeship" jdbcType="TINYINT"/>
  12. <result property="supervise" column="supervise" jdbcType="TINYINT"/>
  13. <result property="authState" column="auth_state" jdbcType="INTEGER"/>
  14. <result property="token" column="token" jdbcType="VARCHAR"/>
  15. <result property="secret" column="secret" jdbcType="VARCHAR"/>
  16. <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
  17. </resultMap>
  18. <select id="selectByName" resultMap="bankMap">
  19. select * from fc_bank where bank_name = #{bankName}
  20. </select>
  21. </mapper>