jinpengyong
2020-07-20 4d3ce5eff32aa783b7dced5eaef8f17fa80761a0
1
2
3
4
5
6
7
8
9
10
11
12
<?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.moral.mapper.AreaMapper">
    <resultMap id="BaseResultMap" type="com.moral.entity.Area">
        <id column="area_code" property="areaCode" jdbcType="INTEGER"/>
        <result column="area_name" property="areaName" jdbcType="VARCHAR"/>
        <result column="city_code" property="cityCode" jdbcType="INTEGER"/>
    </resultMap>
    <select id="getAreaByAreaCode" resultType="com.moral.entity.Area">
        select * from area where area_code=#{areaCode}
    </select>
</mapper>