更改配置
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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="cn.pluss.platform.mapper.RegionCodeRyxMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="cn.pluss.platform.entity.RegionCodeRyx">
|
||||
<id column="id" property="id" />
|
||||
<result column="province" property="province" />
|
||||
<result column="provinceCode" property="provinceCode" />
|
||||
<result column="city" property="city" />
|
||||
<result column="cityCode" property="cityCode" />
|
||||
<result column="area" property="area" />
|
||||
<result column="areaCode" property="areaCode" />
|
||||
<result column="createTime" property="createTime" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectRegionCode" resultType="cn.pluss.platform.entity.RegionCodeRyx">
|
||||
SELECT sxf.id, sxf.province, sxf.provinceCode, sxf.city, sxf.cityCode, sxf.area, sxf.areaCode
|
||||
FROM tb_pluss_region_code_ryx sxf
|
||||
LEFT JOIN tb_pluss_region_reflect rr ON sxf.id = rr.regionDes
|
||||
LEFT JOIN tb_pluss_region_code_ls ls ON ls.id = rr.regionSrc
|
||||
WHERE rr.channel = 3
|
||||
AND ls.province LIKE CONCAT(#{province}, "%")
|
||||
AND ls.city = #{city}
|
||||
AND ls.area = #{area}
|
||||
</select>
|
||||
|
||||
<select id="selectProvince" resultType="java.lang.String">
|
||||
SELECT DISTINCT province FROM tb_pluss_region_code_ryx
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCity" resultType="java.lang.String">
|
||||
SELECT DISTINCT city FROM tb_pluss_region_code_ryx
|
||||
WHERE province LIKE CONCAT(#{province}, '%')
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectArea" resultType="java.lang.String">
|
||||
SELECT area FROM tb_pluss_region_code_ryx
|
||||
WHERE province LIKE CONCAT(#{province}, '%')
|
||||
AND city LIKE CONCAT(#{city}, '%')
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user