|
@@ -23,12 +23,12 @@
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="BsStreet">
|
|
<delete id="deleteByPrimaryKey" parameterType="BsStreet">
|
|
- delete from bs_street where STREET_ID = #{ streetId }
|
|
|
|
|
|
+ delete from sys_street where STREET_ID = #{ streetId }
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<!--根据主键批量删除-->
|
|
<!--根据主键批量删除-->
|
|
<delete id="deleteBylist" parameterType="ArrayList">
|
|
<delete id="deleteBylist" parameterType="ArrayList">
|
|
- delete from bs_street where STREET_ID in
|
|
|
|
|
|
+ delete from sys_street where STREET_ID in
|
|
<foreach collection="array" item="item" open="(" separator="," close=")">
|
|
<foreach collection="array" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -36,20 +36,20 @@
|
|
|
|
|
|
<!--单个插入-->
|
|
<!--单个插入-->
|
|
<insert id="insert" parameterType="BsStreet">
|
|
<insert id="insert" parameterType="BsStreet">
|
|
- insert into bs_street (STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status) values
|
|
|
|
|
|
+ insert into sys_street (STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status) values
|
|
(#{streetId},#{streetCode},#{areaCode},#{streetName},#{streetShortName},#{streetLng},#{streetLat},#{sort},#{createDate},#{modifyDate},#{desc},#{status})
|
|
(#{streetId},#{streetCode},#{areaCode},#{streetName},#{streetShortName},#{streetLng},#{streetLat},#{sort},#{createDate},#{modifyDate},#{desc},#{status})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!--批量插入-->
|
|
<!--批量插入-->
|
|
<insert id="insertList" parameterType="List">
|
|
<insert id="insertList" parameterType="List">
|
|
- insert into bs_street (STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status) values
|
|
|
|
|
|
+ insert into sys_street (STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status) values
|
|
<foreach collection="list" item="item" index="index" separator="," >
|
|
<foreach collection="list" item="item" index="index" separator="," >
|
|
(#{item.streetId},#{item.streetCode},#{item.areaCode},#{item.streetName},#{item.streetShortName},#{item.streetLng},#{item.streetLat},#{item.sort},#{item.createDate},#{item.modifyDate},#{item.desc},#{item.status})
|
|
(#{item.streetId},#{item.streetCode},#{item.areaCode},#{item.streetName},#{item.streetShortName},#{item.streetLng},#{item.streetLat},#{item.sort},#{item.createDate},#{item.modifyDate},#{item.desc},#{item.status})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="BsStreet">
|
|
<update id="updateByPrimaryKey" parameterType="BsStreet">
|
|
- update bs_street
|
|
|
|
|
|
+ update sys_street
|
|
<set>
|
|
<set>
|
|
<if test="streetCode != null">
|
|
<if test="streetCode != null">
|
|
STREET_CODE = #{ streetCode },
|
|
STREET_CODE = #{ streetCode },
|
|
@@ -90,7 +90,7 @@
|
|
|
|
|
|
<!-- 更新多个或者单个字段 -->
|
|
<!-- 更新多个或者单个字段 -->
|
|
<update id="updateM" parameterType="Map">
|
|
<update id="updateM" parameterType="Map">
|
|
- update bs_street set ${filed}=#{filedValue}
|
|
|
|
|
|
+ update sys_street set ${filed}=#{filedValue}
|
|
<if test="filed2!=null and filed2!=''">,${filed2}=#{filedValue2}</if>
|
|
<if test="filed2!=null and filed2!=''">,${filed2}=#{filedValue2}</if>
|
|
<if test="filed3!=null and filed3!=''">,${filed3}=#{filedValue3}</if>
|
|
<if test="filed3!=null and filed3!=''">,${filed3}=#{filedValue3}</if>
|
|
<if test="filed4!=null and filed4!=''">,${filed4}=#{filedValue4}</if>
|
|
<if test="filed4!=null and filed4!=''">,${filed4}=#{filedValue4}</if>
|
|
@@ -103,7 +103,7 @@
|
|
|
|
|
|
<!--查询某个字段的某条数据数量-->
|
|
<!--查询某个字段的某条数据数量-->
|
|
<select id="getObjExists" parameterType="Map" resultType="int">
|
|
<select id="getObjExists" parameterType="Map" resultType="int">
|
|
- select count(1) cun from bs_street where 1=1
|
|
|
|
|
|
+ select count(1) cun from sys_street where 1=1
|
|
<if test="key!=null and key!=''">
|
|
<if test="key!=null and key!=''">
|
|
and ${key} = #{value}
|
|
and ${key} = #{value}
|
|
</if>
|
|
</if>
|
|
@@ -119,17 +119,17 @@
|
|
|
|
|
|
<select id="getMapById" resultType="Map" parameterType="String">
|
|
<select id="getMapById" resultType="Map" parameterType="String">
|
|
select <include refid="Base_Column_List" />
|
|
select <include refid="Base_Column_List" />
|
|
- from bs_street where STREET_ID = #{id}
|
|
|
|
|
|
+ from sys_street where STREET_ID = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getObjectById" resultMap="BaseResultMap" parameterType="String">
|
|
<select id="getObjectById" resultMap="BaseResultMap" parameterType="String">
|
|
select <include refid="Base_Column_List" />
|
|
select <include refid="Base_Column_List" />
|
|
- from bs_street where STREET_ID = #{id}
|
|
|
|
|
|
+ from sys_street where STREET_ID = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--分页查询基础语句返回Map-->
|
|
<!--分页查询基础语句返回Map-->
|
|
<select id="getPageDatas" parameterType="BsStreet" resultType="Map">
|
|
<select id="getPageDatas" parameterType="BsStreet" resultType="Map">
|
|
- SELECT STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status from bs_street
|
|
|
|
|
|
+ SELECT STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,SORT,CREATE_DATE,MODIFY_DATE,`DESC`,status from sys_street
|
|
where 1=1
|
|
where 1=1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -137,7 +137,7 @@
|
|
<!--分页查询基础语句返回对象-->
|
|
<!--分页查询基础语句返回对象-->
|
|
<select id="getPageListByObj" parameterType="BsStreet" resultMap="BaseResultMap">
|
|
<select id="getPageListByObj" parameterType="BsStreet" resultMap="BaseResultMap">
|
|
SELECT STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,status
|
|
SELECT STREET_ID,STREET_CODE,AREA_CODE,STREET_NAME,STREET_SHORT_NAME,STREET_LNG,STREET_LAT,status
|
|
- from bs_street
|
|
|
|
|
|
+ from sys_street
|
|
where 1=1
|
|
where 1=1
|
|
<if test="areaCode != null and areaCode!='' ">
|
|
<if test="areaCode != null and areaCode!='' ">
|
|
and AREA_CODE = #{areaCode}
|
|
and AREA_CODE = #{areaCode}
|