mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 鉴权卡启动充电
This commit is contained in:
@@ -278,10 +278,7 @@ public class MemberService {
|
||||
.build();
|
||||
checkVerificationCode(registerAndLoginDTO);
|
||||
// 判断当前鉴权卡是否被绑定过
|
||||
PileAuthCard authCard = PileAuthCard.builder()
|
||||
.logicCard(dto.getLogicCard())
|
||||
.build();
|
||||
PileAuthCard pileAuthCardInfo = pileAuthCardService.selectPileAuthCardInfo(authCard);
|
||||
PileAuthCard pileAuthCardInfo = pileAuthCardService.selectCardInfoByLogicCard(dto.getLogicCard());
|
||||
if (pileAuthCardInfo == null){
|
||||
// 为空说明没查到此卡信息
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_THIS_CARD_HAS_NO_INFO);
|
||||
@@ -294,10 +291,12 @@ public class MemberService {
|
||||
// 密钥不一致,不能绑定
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_SECRET_KEY_NOT_SAME);
|
||||
}
|
||||
authCard.setMemberId(dto.getMemberId());
|
||||
authCard.setStatus("1"); // 1-正常使用
|
||||
authCard.setCreateBy(dto.getMemberId());
|
||||
authCard.setId(pileAuthCardInfo.getId());
|
||||
PileAuthCard authCard = PileAuthCard.builder()
|
||||
.memberId(dto.getMemberId())
|
||||
.status("1") // 1-正常使用
|
||||
.createBy(dto.getMemberId())
|
||||
.id(pileAuthCardInfo.getId())
|
||||
.build();
|
||||
return pileAuthCardService.updatePileAuthCard(authCard);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user