jinpengyong
2020-08-05 91c1c308abec43a67335cdebb574940ed41b09cf
src/main/resources/mapper/AreaMapper.xml
@@ -6,4 +6,9 @@
    <result column="area_name" property="areaName" jdbcType="VARCHAR" />
    <result column="city_code" property="cityCode" jdbcType="INTEGER" />
  </resultMap>
  <select id="getAreaByName" resultType="com.moral.entity.Area" resultMap="BaseResultMap">
    select * from area
    where area_name like '%${name}%' limit 0,1
  </select>
</mapper>