From 66fe563a04f1e99088cc343e1c2ffb139e6dfa1f Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 11 Aug 2025 10:08:24 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=E7=94=9F=E6=88=90=E6=A1=A9=E5=8F=B7?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jsowell/service/PileService.java | 2 +- .../com/jsowell/common/enums/SoftwareProtocolEnum.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/service/PileService.java b/jsowell-admin/src/main/java/com/jsowell/service/PileService.java index d7da64f0f..039751151 100644 --- a/jsowell-admin/src/main/java/com/jsowell/service/PileService.java +++ b/jsowell-admin/src/main/java/com/jsowell/service/PileService.java @@ -119,7 +119,7 @@ public class PileService { List snList = null; if (StringUtils.equals(SoftwareProtocolEnum.YOU_DIAN.getValue(), softwareProtocol)) { snList = snUtils.generateEBikeSN(dto.getNum()); - } else if (StringUtils.equals(SoftwareProtocolEnum.YUN_KUAI_CHONG.getValue(), softwareProtocol)){ + } else if (StringUtils.equals(SoftwareProtocolEnum.YUN_KUAI_CHONGV150.getValue(), softwareProtocol)){ snList = snUtils.generateEVPileSN(dto.getNum()); } else { throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不正确")); diff --git a/jsowell-common/src/main/java/com/jsowell/common/enums/SoftwareProtocolEnum.java b/jsowell-common/src/main/java/com/jsowell/common/enums/SoftwareProtocolEnum.java index d5344590a..1945d7c64 100644 --- a/jsowell-common/src/main/java/com/jsowell/common/enums/SoftwareProtocolEnum.java +++ b/jsowell-common/src/main/java/com/jsowell/common/enums/SoftwareProtocolEnum.java @@ -4,9 +4,10 @@ package com.jsowell.common.enums; * 软件协议enum */ public enum SoftwareProtocolEnum { - YUN_KUAI_CHONG("1", "云快充"), - YONG_LIAN("2", "永联"), - YOU_DIAN("3", "友电"), + YUN_KUAI_CHONGV150("yunkuaichongV150", "云快充V1.5"), + YUN_KUAI_CHONGV160("yunkuaichongV160", "云快充V1.6"), + YONG_LIAN("yonglianV1", "永联"), + YOU_DIAN("youdianV1", "友电"), ; private String value;