mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
新增判断桩号是否为电单车的工具类方法
This commit is contained in:
@@ -506,4 +506,19 @@ public class YKCUtils {
|
||||
return minValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否为汽车桩号
|
||||
* @return
|
||||
*/
|
||||
public static Boolean checkEVPileSn(String pileSn) {
|
||||
if (StringUtils.isBlank(pileSn)) {
|
||||
return false;
|
||||
}
|
||||
// 起始为 88,并且位数为 14 位,判断为汽车桩
|
||||
if (StringUtils.startsWith(pileSn, "88") && StringUtils.length(pileSn) == 14) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user