|
@@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
INSERT INTO `qianshan_data_bureau`.`china_area`(`area_id`, `name`, `pid`, `sort`) VALUES (#{id}, #{name}, #{pid}, #{sort}) on duplicate key update sort = #{sort}
|
|
|
</insert>
|
|
|
<select id="selectSysRegion" parameterType="SysRegion" resultMap="SysRegionResult">
|
|
|
- select area_id,name,pid,sort from china_area where pid = #{pid}
|
|
|
+ select area_id,name,pid,sort from china_area where pid = #{pid} order by sort
|
|
|
</select>
|
|
|
|
|
|
<select id="selectSysRegionByName" parameterType="string" resultMap="SysRegionResult">
|