|
|
|
@ -49,4 +49,13 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 批量插入 -->
|
|
|
|
|
<select id="insertBatch" parameterType="java.util.List">
|
|
|
|
|
INSERT INTO regionalism_info (code,city_name,district_name)
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.code},#{item.cityName},#{item.districtName})
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|