mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 13:05:11 +08:00
update 平台配置页面
This commit is contained in:
@@ -15,19 +15,6 @@
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectThirdPartyStationRelationVo">
|
||||
select id,
|
||||
station_id,
|
||||
third_party_type,
|
||||
start_mode,
|
||||
create_time,
|
||||
create_by,
|
||||
update_time,
|
||||
update_by,
|
||||
del_flag
|
||||
from thirdparty_station_relation
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
station_id,
|
||||
@@ -40,6 +27,11 @@
|
||||
del_flag
|
||||
</sql>
|
||||
|
||||
<sql id="selectThirdPartyStationRelationVo">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from thirdparty_station_relation
|
||||
</sql>
|
||||
|
||||
<select id="selectThirdPartyStationRelationList" parameterType="com.jsowell.pile.domain.ThirdPartyStationRelation"
|
||||
resultMap="ThirdPartyStationRelationResult">
|
||||
<include refid="selectThirdPartyStationRelationVo"/>
|
||||
@@ -159,6 +151,25 @@
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteThirdPartyStationRelationByStationId">
|
||||
delete
|
||||
from thirdparty_station_relation
|
||||
where station_id = #{stationId}
|
||||
</delete>
|
||||
|
||||
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into thirdparty_station_relation
|
||||
(station_id, third_party_type, start_mode, create_time, create_by, update_time, update_by,
|
||||
del_flag)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.stationId,jdbcType=INTEGER}, #{item.thirdPartyType,jdbcType=VARCHAR}, #{item.startMode,jdbcType=VARCHAR},
|
||||
#{item.createTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
||||
#{item.updateBy,jdbcType=VARCHAR}, #{item.delFlag,jdbcType=CHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="selectRelationInfo" resultType="com.jsowell.pile.vo.base.ThirdPartyStationRelationVO">
|
||||
select t1.station_id as stationId,
|
||||
t1.third_party_type as thirdPartyType,
|
||||
@@ -237,4 +248,89 @@
|
||||
where t1.del_flag = '0'
|
||||
and t1.third_party_type = #{thirdPlatformType,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="selectRelationListByStationId" resultMap="ThirdPartyStationRelationResult">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from thirdparty_station_relation
|
||||
where station_id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ThirdPartyStationRelation" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into thirdparty_station_relation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
station_id,
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
third_party_type,
|
||||
</if>
|
||||
<if test="startMode != null">
|
||||
start_mode,
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
#{stationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
#{thirdPartyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startMode != null">
|
||||
#{startMode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag,jdbcType=CHAR},
|
||||
</if>
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
station_id = #{stationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="thirdPartyType != null">
|
||||
third_party_type = #{thirdPartyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="startMode != null">
|
||||
start_mode = #{startMode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=CHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user