mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
充电桩主动申请充电,平台生成订单号回复并启动充电
This commit is contained in:
@@ -38,6 +38,12 @@ public class PileAuthCard {
|
||||
@Excel(name = "物理卡号")
|
||||
private String physicsCard;
|
||||
|
||||
/**
|
||||
* 卡状态
|
||||
*/
|
||||
@Excel(name = "卡状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 所属用户的会员id
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.jsowell.pile.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户绑定卡DTO
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2023/3/17 15:16
|
||||
*/
|
||||
@Data
|
||||
public class BindingCardDTO {
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 逻辑卡号
|
||||
*/
|
||||
private String logicCard;
|
||||
|
||||
/**
|
||||
* 物理卡号
|
||||
*/
|
||||
private String physicsCard;
|
||||
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
private String verificationCode;
|
||||
}
|
||||
@@ -21,6 +21,13 @@ public interface PileAuthCardMapper {
|
||||
*/
|
||||
public PileAuthCard selectPileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡信息
|
||||
* @param pileAuthCard
|
||||
* @return
|
||||
*/
|
||||
PileAuthCard selectPileAuthCardInfo (PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
|
||||
@@ -19,6 +19,13 @@ public interface IPileAuthCardService {
|
||||
*/
|
||||
public PileAuthCard selectPileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡信息
|
||||
* @param pileAuthCard
|
||||
* @return
|
||||
*/
|
||||
PileAuthCard selectPileAuthCardInfo(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
|
||||
@@ -31,6 +31,16 @@ public class PileAuthCardServiceImpl implements IPileAuthCardService {
|
||||
return pileAuthCardMapper.selectPileAuthCardById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡信息
|
||||
* @param pileAuthCard
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PileAuthCard selectPileAuthCardInfo(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.selectPileAuthCardInfo(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
|
||||
@@ -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