mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 电单车协议
This commit is contained in:
@@ -155,23 +155,23 @@ public class PileService {
|
||||
if (StringUtils.isBlank(param)) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||
}
|
||||
String pileSn;
|
||||
String pileSn = YKCUtils.getPileSn(param);
|
||||
// param长度大于10是汽车桩, 否则是电单车桩
|
||||
if (param.length() > 10) {
|
||||
// 汽车桩, 桩编号14位, 枪口号2位
|
||||
if (param.length() == 16) {
|
||||
pileSn = StringUtils.substring(param, 0, param.length() - 2);
|
||||
} else {
|
||||
pileSn = param;
|
||||
}
|
||||
} else {
|
||||
// 电单车桩, 桩编号8位, 枪口号2位
|
||||
if (param.length() == 10) {
|
||||
pileSn = StringUtils.substring(param, 0, param.length() - 2);
|
||||
} else {
|
||||
pileSn = param;
|
||||
}
|
||||
}
|
||||
// if (param.length() > 10) {
|
||||
// // 汽车桩, 桩编号14位, 枪口号2位
|
||||
// if (param.length() == 16) {
|
||||
// pileSn = StringUtils.substring(param, 0, param.length() - 2);
|
||||
// } else {
|
||||
// pileSn = param;
|
||||
// }
|
||||
// } else {
|
||||
// // 电单车桩, 桩编号8位, 枪口号2位
|
||||
// if (param.length() == 10) {
|
||||
// pileSn = StringUtils.substring(param, 0, param.length() - 2);
|
||||
// } else {
|
||||
// pileSn = param;
|
||||
// }
|
||||
// }
|
||||
|
||||
// 查询充电桩信息
|
||||
PileInfoVO pileInfoVO = pileBasicInfoService.selectPileInfoBySn(pileSn);
|
||||
|
||||
Reference in New Issue
Block a user