mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
充电桩主动申请充电,平台生成订单号回复并启动充电
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<result property="id" column="id" />
|
||||
<result property="logicCard" column="logic_card" />
|
||||
<result property="physicsCard" column="physics_card" />
|
||||
<result property="status" column="status" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
@@ -17,7 +18,11 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPileAuthCardVo">
|
||||
select id, logic_card, physics_card, member_id, create_time, create_by, update_time, update_by, del_flag from pile_auth_card
|
||||
select id, logic_card, physics_card, status, member_id, create_time, create_by, update_time, update_by, del_flag from pile_auth_card
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, logic_card, physics_card, status, member_id, create_time, create_by, update_time, update_by, del_flag
|
||||
</sql>
|
||||
|
||||
<select id="selectPileAuthCardList" parameterType="com.jsowell.pile.domain.PileAuthCard" resultMap="PileAuthCardResult">
|
||||
@@ -25,6 +30,7 @@
|
||||
<where>
|
||||
<if test="logicCard != null and logicCard != ''"> and logic_card = #{logicCard}</if>
|
||||
<if test="physicsCard != null and physicsCard != ''"> and physics_card = #{physicsCard}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if>
|
||||
</where>
|
||||
</select>
|
||||
@@ -39,6 +45,7 @@
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logicCard != null">logic_card,</if>
|
||||
<if test="physicsCard != null">physics_card,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
@@ -49,6 +56,7 @@
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logicCard != null">#{logicCard},</if>
|
||||
<if test="physicsCard != null">#{physicsCard},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
@@ -63,6 +71,7 @@
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="logicCard != null">logic_card = #{logicCard},</if>
|
||||
<if test="physicsCard != null">physics_card = #{physicsCard},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
@@ -83,4 +92,21 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectPileAuthCardInfo" resultMap="PileAuthCardResult">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from pile_auth_card
|
||||
where status = '1'
|
||||
<if test="memberId != null and memberId != ''">
|
||||
and member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="physicsCard != null and physicsCard != ''">
|
||||
and physics_card = #{physicsCard,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="logicCard != null and logicCard != ''">
|
||||
and logic_card = #{logicCard,jdbcType=VARCHAR}
|
||||
</if>
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user