1:修改通联关系百分比流量返回gps

2:修改iprange接口添加searchip查询条件及desc查询条件
This commit is contained in:
renkaige
2018-12-18 00:57:45 +06:00
parent 9f8fb67584
commit a1c72f4545
6 changed files with 91 additions and 23 deletions

View File

@@ -149,7 +149,9 @@ public class LocalLogJDBCByDruid {
if (!allPps.equals("0")) {
ntcConnRecordPercent.setPpsPercent(
num.format(Double.valueOf(ntcConnRecordPercent.getPps()) / Double.valueOf(allPps)));
ntcConnRecordPercent.setPps(subStr(ntcConnRecordPercent.getPps()));
int idx = ntcConnRecordPercent.getPps().lastIndexOf(".");//查找小数点的位置
String strNum = ntcConnRecordPercent.getPps().substring(0,idx);//截取从字符串开始到小数点位置的字符串,就是整数部分
ntcConnRecordPercent.setPps(strNum);
} else {
ntcConnRecordPercent.setPpsPercent("0%");
}