mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 06:55:09 +08:00
绑定蓝牙桩
This commit is contained in:
@@ -330,6 +330,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
t1.pile_sn as pileSn,
|
||||
t1.member_id as memberId,
|
||||
t1.type,
|
||||
t1.device_name as deviceName,
|
||||
t1.device_id as deviceId,
|
||||
t3.model_name as modelName,
|
||||
t3.rated_power as ratedPower,
|
||||
t3.rated_current as ratedCurrent,
|
||||
|
||||
@@ -8,16 +8,20 @@
|
||||
<result property="id" column="id" />
|
||||
<result property="pileSn" column="pile_sn" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="deviceName" column="device_name"/>
|
||||
<result property="deviceId" column="device_id"/>
|
||||
<result property="type" column="type" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPileMemberRelationVo">
|
||||
select id, pile_sn, member_id, type, create_time from pile_member_relation
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from pile_member_relation
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id, pile_sn, member_id, type, create_time
|
||||
id, pile_sn, member_id, device_name, device_id, type, create_time
|
||||
</sql>
|
||||
|
||||
<select id="selectPileMemberRelationList" parameterType="com.jsowell.pile.domain.PileMemberRelation" resultMap="PileMemberRelationResult">
|
||||
@@ -39,11 +43,15 @@
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="pileSn != null">pile_sn,</if>
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="type != null">type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="pileSn != null">#{pileSn},</if>
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="deviceName != null">#{deviceName},</if>
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
Reference in New Issue
Block a user