kaiyu
2020-12-15 1a406e3e206af1ab7e38042548a085b078b6ca09
src/main/resources/mapper/CityMapper.xml
@@ -6,4 +6,9 @@
    <result column="city_name" property="cityName" jdbcType="VARCHAR" />
    <result column="province_code" property="provinceCode" jdbcType="INTEGER" />
  </resultMap>
  <select id="getCityByName" resultType="com.moral.entity.City" resultMap="BaseResultMap">
    select * from city
    where city_name like '%${name}%' limit 0,1
  </select>
</mapper>