summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrenkaige <[email protected]>2019-01-08 20:39:51 +0600
committerrenkaige <[email protected]>2019-01-08 20:39:51 +0600
commit1ebf5f80a7cbd40f1f7bbabee9bd557794f64fd9 (patch)
tree3880f110056b9c5b4bc581661956f1eeb1a51729 /src
parent0a8ba41860b4279e1c560d143cf299b2b6714d19 (diff)
为asn单向流统计添加运营商查询条件
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/nis/domain/restful/NtcConnRecordPercent.java13
-rw-r--r--src/main/java/com/nis/web/controller/restful/NtcLogSearchController.java23
2 files changed, 31 insertions, 5 deletions
diff --git a/src/main/java/com/nis/domain/restful/NtcConnRecordPercent.java b/src/main/java/com/nis/domain/restful/NtcConnRecordPercent.java
index 6d1b21e..0f445c9 100644
--- a/src/main/java/com/nis/domain/restful/NtcConnRecordPercent.java
+++ b/src/main/java/com/nis/domain/restful/NtcConnRecordPercent.java
@@ -24,6 +24,7 @@ public class NtcConnRecordPercent implements Serializable {
private String ppsPercent;
private String searchFoundStartTime;// 开始发现时间
private String searchFoundEndTime;// 结束发现时间
+ private String searchEntranceId;
public String getBps() {
return bps;
@@ -74,4 +75,16 @@ public class NtcConnRecordPercent implements Serializable {
public void setSearchFoundEndTime(String searchFoundEndTime) {
this.searchFoundEndTime = searchFoundEndTime;
}
+ @JsonIgnore
+ public String getSearchEntranceId() {
+ return searchEntranceId;
+ }
+
+ public void setSearchEntranceId(String searchEntranceId) {
+ this.searchEntranceId = searchEntranceId;
+ }
+
+
+
+
}
diff --git a/src/main/java/com/nis/web/controller/restful/NtcLogSearchController.java b/src/main/java/com/nis/web/controller/restful/NtcLogSearchController.java
index f2dbc2c..de71421 100644
--- a/src/main/java/com/nis/web/controller/restful/NtcLogSearchController.java
+++ b/src/main/java/com/nis/web/controller/restful/NtcLogSearchController.java
@@ -696,7 +696,8 @@ public class NtcLogSearchController extends BaseRestController {
ntcConnRecordLog.setSearchFoundEndTime(map.get("endTime"));
}
ntcLogService.queryConditionCheck(auditLogThread, start, ntcConnRecordLog, NtcConnRecordLog.class, page);
- ntcLogService.ntcConnRecordLogsQueryConditionCheck(auditLogThread, start, ntcConnRecordLog, NtcConnRecordLog.class, page);
+ ntcLogService.ntcConnRecordLogsQueryConditionCheck(auditLogThread, start, ntcConnRecordLog,
+ NtcConnRecordLog.class, page);
logDataService.getData(page, ntcConnRecordLog);
} catch (Exception e) {
auditLogThread.setExceptionInfo("通联关系日志检索失败:" + e.getMessage());
@@ -749,7 +750,7 @@ public class NtcLogSearchController extends BaseRestController {
if (!StringUtil.isBlank(ntcConnRecordPercent.getSearchFoundStartTime())) {
sdf.setLenient(false);
sdf.parse(ntcConnRecordPercent.getSearchFoundStartTime());
- }
+ }
} catch (ParseException e) {
throw new RestServiceException("searchFoundStartTime参数格式错误",
RestBusinessCode.param_formate_error.getValue());
@@ -757,6 +758,16 @@ public class NtcLogSearchController extends BaseRestController {
throw new RestServiceException("searchFoundStartTime参数错误",
RestBusinessCode.param_formate_error.getValue());
}
+ try {
+ if (!StringUtil.isBlank(ntcConnRecordPercent.getSearchEntranceId())) {
+ Integer.parseInt(ntcConnRecordPercent.getSearchEntranceId());
+ }
+ } catch (NumberFormatException e) {
+ throw new RestServiceException("searchEntranceId参数格式错误",
+ RestBusinessCode.param_formate_error.getValue());
+ } catch (Exception e) {
+ throw new RestServiceException("searchEntranceId参数错误", RestBusinessCode.param_formate_error.getValue());
+ }
logDataService.getNtcConnRecordPercent(ntcConnRecordPercent);
} catch (Exception e) {
@@ -823,14 +834,16 @@ public class NtcLogSearchController extends BaseRestController {
try {
if (!StringUtil.isBlank(ntcAsnRecord.getSearchAsnType())) {
Integer.parseInt(ntcAsnRecord.getSearchAsnType());
- }else {
+ } else {
throw new RestServiceException("searchAsnType参数不能为空",
RestBusinessCode.param_formate_error.getValue());
}
} catch (NumberFormatException e) {
- throw new RestServiceException("searchAsnType参数格式错误"+e.getMessage(), RestBusinessCode.param_formate_error.getValue());
+ throw new RestServiceException("searchAsnType参数格式错误" + e.getMessage(),
+ RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
- throw new RestServiceException("searchAsnType参数错误"+e.getMessage(), RestBusinessCode.param_formate_error.getValue());
+ throw new RestServiceException("searchAsnType参数错误" + e.getMessage(),
+ RestBusinessCode.param_formate_error.getValue());
}
logDataService.getNtcAsnRecord(page, ntcAsnRecord);