mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 20:15:06 +08:00
修改表名、实体类
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.DockingPlatformConfigMapper">
|
||||
<mapper namespace="com.jsowell.pile.mapper.ThirdPartyPlatformConfigMapper">
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.DockingPlatformConfig" id="DockingPlatformConfigResult">
|
||||
<resultMap type="com.jsowell.pile.domain.ThirdPartyPlatformConfig" id="ThirdPartyPlatformConfigResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="operatorId" column="operator_id" />
|
||||
@@ -19,8 +19,8 @@
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDockingPlatformConfigVo">
|
||||
select id, name, operator_id, operator_secret, sign_secret, data_secret, data_secret_IV, create_time, create_by, update_time, update_by, del_flag from docking_platform_config
|
||||
<sql id="selectThirdPartyPlatformConfigVo">
|
||||
select id, name, operator_id, operator_secret, sign_secret, data_secret, data_secret_IV, create_time, create_by, update_time, update_by, del_flag from thirdparty_platform_config
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
@@ -28,8 +28,8 @@
|
||||
id, name, operator_id, operator_secret, sign_secret, data_secret, data_secret_IV, create_time, create_by, update_time, update_by, del_flag
|
||||
</sql>
|
||||
|
||||
<select id="selectDockingPlatformConfigList" parameterType="com.jsowell.pile.domain.DockingPlatformConfig" resultMap="DockingPlatformConfigResult">
|
||||
<include refid="selectDockingPlatformConfigVo"/>
|
||||
<select id="selectThirdPartyPlatformConfigList" parameterType="com.jsowell.pile.domain.ThirdPartyPlatformConfig" resultMap="ThirdPartyPlatformConfigResult">
|
||||
<include refid="selectThirdPartyPlatformConfigVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="operatorId != null and operatorId != ''"> and operator_id = #{operatorId}</if>
|
||||
@@ -40,13 +40,13 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDockingPlatformConfigById" parameterType="Integer" resultMap="DockingPlatformConfigResult">
|
||||
<include refid="selectDockingPlatformConfigVo"/>
|
||||
<select id="selectThirdPartyPlatformConfigById" parameterType="Integer" resultMap="ThirdPartyPlatformConfigResult">
|
||||
<include refid="selectThirdPartyPlatformConfigVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDockingPlatformConfig" parameterType="com.jsowell.pile.domain.DockingPlatformConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into docking_platform_config
|
||||
<insert id="insertThirdPartyPlatformConfig" parameterType="com.jsowell.pile.domain.ThirdPartyPlatformConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into thirdparty_platform_config
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="operatorId != null">operator_id,</if>
|
||||
@@ -75,8 +75,8 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDockingPlatformConfig" parameterType="com.jsowell.pile.domain.DockingPlatformConfig">
|
||||
update docking_platform_config
|
||||
<update id="updateThirdPartyPlatformConfig" parameterType="com.jsowell.pile.domain.ThirdPartyPlatformConfig">
|
||||
update thirdparty_platform_config
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="operatorId != null">operator_id = #{operatorId},</if>
|
||||
@@ -93,20 +93,20 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDockingPlatformConfigById" parameterType="Integer">
|
||||
delete from docking_platform_config where id = #{id}
|
||||
<delete id="deleteThirdPartyPlatformConfigById" parameterType="Integer">
|
||||
delete from thirdparty_platform_config where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDockingPlatformConfigByIds" parameterType="String">
|
||||
delete from docking_platform_config where id in
|
||||
<delete id="deleteThirdPartyPlatformConfigByIds" parameterType="String">
|
||||
delete from thirdparty_platform_config where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="getInfoByOperatorId" resultMap="DockingPlatformConfigResult">
|
||||
<select id="getInfoByOperatorId" resultMap="ThirdPartyPlatformConfigResult">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from docking_platform_config
|
||||
from thirdparty_platform_config
|
||||
where operator_id = #{operatorId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user