fire_point/src/main/java/com/xkrs/utils/FirePointCodeUtils.java

17 lines
399 B
Java
Raw Normal View History

2022-06-08 09:23:33 +08:00
package com.xkrs.utils;
public class FirePointCodeUtils {
private FirePointCodeUtils() {
}
public static String getCodeNotZeroEnd(String code) throws Exception {
String codeNotZeroEnd = code;
while (codeNotZeroEnd.endsWith("0")) {
codeNotZeroEnd = codeNotZeroEnd.substring(0, codeNotZeroEnd.length() - 1);
}
return codeNotZeroEnd;
}
}