客户API使用统计

This commit is contained in:
majintao
2024-08-22 18:07:27 +08:00
parent b1d9d071fc
commit 4b0569133e
3 changed files with 267 additions and 109 deletions
@@ -73,6 +73,7 @@ public class ApiUserController {
private ApiInvokeStatisticalService apiInvokeStatisticalService; private ApiInvokeStatisticalService apiInvokeStatisticalService;
private ApiVisitCountService apiVisitCountService; private ApiVisitCountService apiVisitCountService;
private ApiCountCityService apiCountCityService; private ApiCountCityService apiCountCityService;
/** /**
* 所有api用户的信息展示 * 所有api用户的信息展示
* *
@@ -1095,91 +1096,110 @@ public class ApiUserController {
if (endDate != null) { if (endDate != null) {
model.setEndDate(DateUtil.formatToYYYYMMDD(endDate)); model.setEndDate(DateUtil.formatToYYYYMMDD(endDate));
} }
Date nowDate = DateUtil.parseStringToDate(DateUtil.formatToYYYYMMDD(new Date()));
Date lastWeek = DateUtil.add(DateUtil.formatToYYYYMMDD(new Date()), -7);
Date lastMonth = DateUtil.add(DateUtil.formatToYYYYMMDD(new Date()), -30);
long diffInMillies = Math.abs(endDate.getTime() - startDate.getTime()); long diffInMillies = Math.abs(endDate.getTime() - startDate.getTime());
// 将毫秒转换为天数 // 将毫秒转换为天数
long days = diffInMillies / (1000 * 60 * 60 * 24); // 使用long来计算天数 long days = diffInMillies / (1000 * 60 * 60 * 24); // 使用long来计算天数
// 只查询正式账号
List<QueryParam> queryParams = Arrays.asList(new QueryParam("isTest", 0)); // 只查询正式账号、未过期、未禁用
List<QueryParam> queryParams = Arrays.asList(new QueryParam("isTest", 0),
new QueryParam("status", 0),
new QueryParam("deadTime", QueryParam.GREATER_THAN_EQUAL_OPERATOR, new Date()));
List<ApiUser> apiUsers = this.apiUserService.findApiUsersByParamsSortDate(queryParams); List<ApiUser> apiUsers = this.apiUserService.findApiUsersByParamsSortDate(queryParams);
// 获取正式账号的ids
List<Integer> ids = new ArrayList<Integer>(); //所有API
for (ApiUser apiUser : apiUsers) { List<OpenResource> allApi = openResourceService.findAll();
ids.add((int) apiUser.getId()); // 所有API的URI与name对应Map
} Map<String, String> apiMap = converMapData(allApi);
// 只获取正式用户的
List<OpenUriAnaly> analyAll = openUriAnalyService.findOpenUriAnalyLogs(model.getUserId(), null, startDate, endDate);
List<OpenUriAnaly> analys = new ArrayList<OpenUriAnaly>();
for (OpenUriAnaly analy : analyAll) {
if (ids.contains(analy.getApiUserId())) {
analys.add(analy);
}
}
List<Integer> userIds = new ArrayList<Integer>();
// 获取有访问记录的用户ID
for (OpenUriAnaly analy : analys) {
if (!userIds.contains(analy.getApiUserId())) {
userIds.add(analy.getApiUserId());
}
}
List<StatAnalyBo> bosAll = new ArrayList<StatAnalyBo>(); List<StatAnalyBo> bosAll = new ArrayList<StatAnalyBo>();
if (CollectionUtils.isNotEmpty(userIds)) { if (CollectionUtils.isNotEmpty(apiUsers)) {
// 根据访问遍历用户 // 根据访问遍历用户
for (Integer userId : userIds) { for (ApiUser apiUser : apiUsers) {
long id = (long) userId; long id = apiUser.getId();
// 获取每个用户的访问 // 获取每个用户的访问
List<OpenUriAnaly> analyUser = openUriAnalyService.findOpenUriAnalyLogs(id, null, startDate, endDate);
ApiUserAuthority authority = apiUserAuthorityService.findByUserId(id); ApiUserAuthority authority = apiUserAuthorityService.findByUserId(id);
// 用户有的api
List<String> userApi = authority.getOpenResourseUris();
Map<String, Integer> countMap = authority.getTotalCountMap(); Map<String, Integer> countMap = authority.getTotalCountMap();
// 获取 deadline
ApiUser apiUser = apiUserService.findApiUserById(id);
// 获取用户名 // 获取用户名
User user = userService.findById(id); User user = userService.findById(id);
List<StatAnalyBo> bos = null;
bos = createAnalyBosByLink(analyUser);
long date = DateUtil.parseStringToDate("2016-11-23").getTime(); long date = DateUtil.parseStringToDate("2016-11-23").getTime();
if (startDate.getTime() >= date && endDate.getTime() > date) { if (startDate.getTime() >= date && endDate.getTime() > date) {
List<ApiInvokeStatistical> apiInvokeStatisticalList = apiInvokeStatisticalService.findApiInvokeStatisticalList(id, startDate, endDate); List<ApiInvokeStatistical> apiInvokeStatisticalList = apiInvokeStatisticalService.findApiInvokeStatisticalList(id, startDate, endDate);
if (bos != null && apiInvokeStatisticalList.size() > 0) { List<ApiInvokeStatistical> weekApiInvokeStatisticalList;
Map<String, Map<String, Integer>> resultMap = getCountByUri(apiInvokeStatisticalList); if (lastWeek == startDate && nowDate == endDate) {
for (StatAnalyBo boTemp : bos) { weekApiInvokeStatisticalList = apiInvokeStatisticalList;
boTemp.setPurpose(apiUser.getPurpose()); } else {
String url = boTemp.getKey(); weekApiInvokeStatisticalList = apiInvokeStatisticalService.findApiInvokeStatisticalList(id, lastWeek, nowDate);
boTemp.setSuccessEffectiveTime(resultMap.get(url).get("successEffectiveCount")); }
boTemp.setSuccessInvalidTime(resultMap.get(url).get("successInvalidCount")); List<ApiInvokeStatistical> monthApiInvokeStatisticalList;
boTemp.setDefeatTime(resultMap.get(url).get("defeatCount")); if (lastMonth == startDate && nowDate == endDate) {
if (apiUser != null) { monthApiInvokeStatisticalList = apiInvokeStatisticalList;
boTemp.setDeadline(apiUser.getDeadTime()); } else {
} monthApiInvokeStatisticalList = apiInvokeStatisticalService.findApiInvokeStatisticalList(id, lastMonth, nowDate);
long curVistedCount = apiVisitCountService.findApiVisitCountByDay(id, url, DateUtil.truncateDay(new Date())); }
long historyCount = apiVisitCountService.findApiVisitAllCount(id, url, DateUtil.truncateDay(new Date())); Map<String, Map<String, Integer>> resultMap = getCountByUri(apiInvokeStatisticalList);
if (countMap != null && countMap.containsKey(url)) { Map<String, Map<String, Integer>> weekResultMap = getCountByUri(weekApiInvokeStatisticalList);
Integer totalCount = countMap.get(url); Map<String, Map<String, Integer>> monthResultMap = getCountByUri(monthApiInvokeStatisticalList);
long usedCount = curVistedCount + historyCount;
boTemp.setSurplusCallCount(Integer.valueOf((int) (totalCount - usedCount)));
}
if (user != null) {
boTemp.setName(user.getDisplayName());
boTemp.setUserId((int) user.getId());
}
List<ApiVisitCount> apiVisitCounts = apiVisitCountService.findAllApiVisitCount(id, boTemp.getKey(), startDate, endDate); // 遍历用户所有的api
int total = 0; for (String url : userApi) {
for (ApiVisitCount apiVisitCount : apiVisitCounts) { // 统计用过的api
total += apiVisitCount.getVisitCount(); String urlName = apiMap.get(url);
} StatAnalyBo bo = new StatAnalyBo();
boTemp.setBillingCount(total); if (resultMap.containsKey(url)) {
double dailyUse = boTemp.getCount() * 1.0 / days; // 自定义时间的数据
boTemp.setDailyUse(dailyUse); bo.setSuccessEffectiveTime(resultMap.get(url).get("successEffectiveCount"));
bo.setSuccessInvalidTime(resultMap.get(url).get("successInvalidCount"));
bo.setDefeatTime(resultMap.get(url).get("defeatCount"));
bo.setCount(resultMap.get(url).get("totalCount"));
double dailyUse = bo.getCount() * 1.0 / days;
bo.setDailyUse(dailyUse);
} }
if (weekResultMap.containsKey(url)) {
// 近一周数据
bo.setWeekSuccessEffectiveTime(weekResultMap.get(url).get("successEffectiveCount"));
bo.setWeekSuccessInvalidTime(weekResultMap.get(url).get("successInvalidCount"));
bo.setWeekDefeatTime(weekResultMap.get(url).get("defeatCount"));
bo.setWeekCount(weekResultMap.get(url).get("totalCount"));
double dailyUse = bo.getWeekCount() * 1.0 / 7;
bo.setWeekDailyUse(dailyUse);
}
if (monthResultMap.containsKey(url)) {
// 成功有效次数
bo.setMonthSuccessEffectiveTime(monthResultMap.get(url).get("successEffectiveCount"));
// 成功无效次数
bo.setMonthSuccessInvalidTime(monthResultMap.get(url).get("successInvalidCount"));
// 失败次数
bo.setMonthDefeatTime(monthResultMap.get(url).get("defeatCount"));
bo.setMonthCount(monthResultMap.get(url).get("totalCount"));
double dailyUse = bo.getMonthCount() * 1.0 / 30;
bo.setMonthDailyUse(dailyUse);
}
bo.setUrl(url);
bo.setUrlName(urlName);
bo.setDeadline(apiUser.getDeadTime());
bo.setUserId((int) id);
bo.setUserName(user.getDisplayName());
//剩余调用量
long curVistedCount = apiVisitCountService.findApiVisitCountByDay(id, url, DateUtil.truncateDay(new Date()));
long historyCount = apiVisitCountService.findApiVisitAllCount(id, url, DateUtil.truncateDay(new Date()));
if (countMap != null && countMap.containsKey(url)) {
Integer totalCount = countMap.get(url);
long usedCount = curVistedCount + historyCount;
bo.setSurplusCallCount(Integer.valueOf((int) (totalCount - usedCount)));
}
bosAll.add(bo);
} }
} }
bosAll.addAll(bos);
} }
this.buildReport(bosAll, response, startDate, endDate);
} }
this.buildReport(bosAll, response, startDate, endDate);
model.setViewType("stream"); model.setViewType("stream");
return model; return model;
} }
@@ -1191,39 +1211,52 @@ public class ApiUserController {
for (StatAnalyBo bo : bos) { for (StatAnalyBo bo : bos) {
List<String> row = new ArrayList<String>(); List<String> row = new ArrayList<String>();
row.add(bo.getUserId() != null ? bo.getUserId().toString() : ""); row.add(bo.getUserId() != null ? bo.getUserId().toString() : "");
row.add(bo.getName() != null ? bo.getName().toString() : ""); row.add(bo.getUserName() != null ? bo.getUserName().toString() : "");
if (bo.getPurpose() != null) { row.add(bo.getDeadline() != null ? DateUtils.format(bo.getDeadline(), "yyyy/MM/dd") : "");
Integer purpose = bo.getPurpose(); row.add(bo.getUrl() != null ? bo.getUrl().toString() : "");
if (purpose == 1) { row.add(bo.getUrlName() != null ? bo.getUrlName().toString() : "");
row.add("API"); row.add(bo.getSurplusCallCount() != null ? bo.getSurplusCallCount().toString() : "");
} else if (purpose == 2) { // 上周
row.add("PDS"); row.add(bo.getWeekCount() != null ? bo.getWeekCount().toString() : "");
} else if (purpose == 4) { if (bo.getWeekDailyUse() != null) {
row.add("房生活"); // 格式化为保留一位小数的字符串
} String formattedDailyUse = String.format("%.1f", bo.getWeekDailyUse());
}else { row.add(formattedDailyUse);
} else {
row.add(""); row.add("");
} }
row.add(bo.getKey() != null ? bo.getKey().toString() : ""); row.add(bo.getWeekSuccessEffectiveTime() != null ? bo.getWeekSuccessEffectiveTime().toString() : "");
row.add(bo.getSurplusCallCount() != null ? bo.getSurplusCallCount().toString() : ""); row.add(bo.getWeekSuccessInvalidTime() != null ? bo.getWeekSuccessInvalidTime().toString() : "");
row.add(bo.getDeadline() != null ? DateUtils.format(bo.getDeadline(), "yyyy/MM/dd") : ""); row.add(bo.getWeekDefeatTime() != null ? bo.getWeekDefeatTime().toString() : "");
// 上个月
row.add(bo.getMonthCount() != null ? bo.getMonthCount().toString() : "");
if (bo.getMonthDailyUse() != null) {
// 格式化为保留一位小数的字符串
String formattedDailyUse = String.format("%.1f", bo.getMonthDailyUse());
row.add(formattedDailyUse);
} else {
row.add("");
}
row.add(bo.getMonthSuccessEffectiveTime() != null ? bo.getMonthSuccessEffectiveTime().toString() : "");
row.add(bo.getMonthSuccessInvalidTime() != null ? bo.getMonthSuccessInvalidTime().toString() : "");
row.add(bo.getMonthDefeatTime() != null ? bo.getMonthDefeatTime().toString() : "");
// 自定义时间
row.add(bo.getCount() != null ? bo.getCount().toString() : ""); row.add(bo.getCount() != null ? bo.getCount().toString() : "");
if (bo.getDailyUse() !=null){ if (bo.getDailyUse() != null) {
// 格式化为保留一位小数的字符串 // 格式化为保留一位小数的字符串
String formattedDailyUse = String.format("%.1f", bo.getDailyUse()); String formattedDailyUse = String.format("%.1f", bo.getDailyUse());
row.add(formattedDailyUse); row.add(formattedDailyUse);
}else { } else {
row.add(""); row.add("");
} }
row.add(bo.getPercent() != null ? bo.getPercent().toString() : "");
row.add(bo.getSuccessEffectiveTime() != null ? bo.getSuccessEffectiveTime().toString() : ""); row.add(bo.getSuccessEffectiveTime() != null ? bo.getSuccessEffectiveTime().toString() : "");
row.add(bo.getSuccessInvalidTime() != null ? bo.getSuccessInvalidTime().toString() : ""); row.add(bo.getSuccessInvalidTime() != null ? bo.getSuccessInvalidTime().toString() : "");
row.add(bo.getDefeatTime() != null ? bo.getDefeatTime().toString() : ""); row.add(bo.getDefeatTime() != null ? bo.getDefeatTime().toString() : "");
row.add(bo.getBillingCount() != null ? bo.getBillingCount().toString() : "");
dataList.add(row); dataList.add(row);
} }
String fileName = "用户账号使用统计(" + DateUtils.format(startDate, "yyyy/MM/dd") + "—" + DateUtils.format(endDate, "yyyy/MM/dd") + ").xlsx"; String dateStr ="("+ DateUtils.format(startDate, "yyyy/MM/dd") + "—" + DateUtils.format(endDate, "yyyy/MM/dd") +")";
String fileName = "用户账号使用统计" + dateStr + ".xlsx";
// ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).build(); // ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).build();
String displayName = URLEncoder.encode(fileName, "UTF-8"); String displayName = URLEncoder.encode(fileName, "UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=\"" + displayName + "\""); response.setHeader("Content-Disposition", "attachment; filename=\"" + displayName + "\"");
@@ -1231,8 +1264,11 @@ public class ApiUserController {
Workbook workbook = new XSSFWorkbook(); Workbook workbook = new XSSFWorkbook();
Sheet sheet = workbook.createSheet("用户账号使用统计"); Sheet sheet = workbook.createSheet("用户账号使用统计");
List<String> head = Arrays.asList( List<String> head = Arrays.asList(
"用户ID", "账号", "账号用途", "接口", "剩余使用次数", "合同到期时间", "访问次数", "日均访问量", "用户ID", "账号", "合同到期时间", "接口", "接口名称", "剩余使用次数",
"占比(%)", "成功并有效", "成功并无效", "失败次数", "计费次数"); "访问次数(近一周)", "日均访问量(近一周)","成功并有效(近一周)", "成功并无效(近一周)","失败次数(近一周)",
"访问次数(近一月)", "日均访问量(近一月)","成功并有效(近一月)", "成功并无效(近一月)","失败次数(近一月)",
"访问次数"+dateStr, "日均访问量"+dateStr,"成功并有效"+dateStr, "成功并无效"+dateStr,"失败次数"+dateStr
);
// 创建表头 // 创建表头
Row headRow = sheet.createRow(0); Row headRow = sheet.createRow(0);
for (int i = 0; i < head.size(); i++) { for (int i = 0; i < head.size(); i++) {
@@ -1852,6 +1888,7 @@ public class ApiUserController {
Integer successEffectiveCount = detailMap.get("successEffectiveCount"); Integer successEffectiveCount = detailMap.get("successEffectiveCount");
Integer successInvalidCount = detailMap.get("successInvalidCount"); Integer successInvalidCount = detailMap.get("successInvalidCount");
Integer defeatCount = detailMap.get("defeatCount"); Integer defeatCount = detailMap.get("defeatCount");
Integer totalCount = detailMap.get("totalCount");
if (successEffectiveCount != null) { if (successEffectiveCount != null) {
successEffectiveCount = successEffectiveCount + apiInvokeStatistical.getSuccessEffectiveTime(); successEffectiveCount = successEffectiveCount + apiInvokeStatistical.getSuccessEffectiveTime();
} else { } else {
@@ -1868,10 +1905,16 @@ public class ApiUserController {
} else { } else {
defeatCount = apiInvokeStatistical.getDefeatTime(); defeatCount = apiInvokeStatistical.getDefeatTime();
} }
if (totalCount != null) {
totalCount = totalCount + apiInvokeStatistical.getTotalTime();
} else {
totalCount = apiInvokeStatistical.getTotalTime();
}
detailMap.put("successEffectiveCount", successEffectiveCount); detailMap.put("successEffectiveCount", successEffectiveCount);
detailMap.put("successInvalidCount", successInvalidCount); detailMap.put("successInvalidCount", successInvalidCount);
detailMap.put("defeatCount", defeatCount); detailMap.put("defeatCount", defeatCount);
detailMap.put("totalCount", totalCount);
} }
return resultMap; return resultMap;
@@ -56,9 +56,9 @@
<th align="center" width="100px"> <th align="center" width="100px">
昵称 昵称
</th> </th>
<th align="center" width="60px"> <#-- <th align="center" width="60px">-->
账户用途 <#-- 账户用途-->
</th> <#-- </th>-->
<th align="center" width="100px"> <th align="center" width="100px">
username username
</th> </th>
@@ -100,15 +100,15 @@
<td align="center"> <td align="center">
<a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a> <a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a>
</td> </td>
<td> <#-- <td>-->
<#if bo.purpose?? && bo.purpose == 1> <#-- <#if bo.purpose?? && bo.purpose == 1>-->
API <#-- API-->
<#elseif bo.purpose?? && bo.purpose == 2> <#-- <#elseif bo.purpose?? && bo.purpose == 2>-->
PDS <#-- PDS-->
<#elseif bo.purpose?? && bo.purpose == 4> <#-- <#elseif bo.purpose?? && bo.purpose == 4>-->
房生活 <#-- 房生活-->
</#if> <#-- </#if>-->
</td> <#-- </td>-->
<td align="center"> <td align="center">
${bo.userName!} ${bo.userName!}
</td> </td>
@@ -6,11 +6,19 @@ public class StatAnalyBo {
private String key; private String key;
private Integer count; private Integer count;
private Integer weekCount;
private Integer monthCount;
private Double percent; private Double percent;
private Integer userId; private Integer userId;
private Integer successEffectiveTime; private Integer successEffectiveTime;
private Integer weekSuccessEffectiveTime;
private Integer monthSuccessEffectiveTime;
private Integer successInvalidTime; private Integer successInvalidTime;
private Integer weekSuccessInvalidTime;
private Integer monthSuccessInvalidTime;
private Integer defeatTime; private Integer defeatTime;
private Integer weekDefeatTime;
private Integer monthDefeatTime;
private Integer successTime; private Integer successTime;
private Integer billingCount; private Integer billingCount;
private Integer purpose; private Integer purpose;
@@ -21,58 +29,133 @@ public class StatAnalyBo {
// 新增url和name // 新增url和name
private String url; private String url;
private String urlName;
private String name; private String userName;
// 添加日均使用量 // 添加日均使用量
private Double dailyUse; private Double dailyUse;
private Double weekDailyUse;
private Double monthDailyUse;
public String getKey() { public String getKey() {
return key; return key;
} }
public void setKey(String key) { public void setKey(String key) {
this.key = key; this.key = key;
} }
public Integer getCount() { public Integer getCount() {
return count; return count;
} }
public void setCount(Integer count) { public void setCount(Integer count) {
this.count = count; this.count = count;
} }
public Integer getWeekCount() {
return weekCount;
}
public void setWeekCount(Integer weekCount) {
this.weekCount = weekCount;
}
public Integer getMonthCount() {
return monthCount;
}
public void setMonthCount(Integer monthCount) {
this.monthCount = monthCount;
}
public Double getPercent() { public Double getPercent() {
return percent; return percent;
} }
public void setPercent(Double percent) { public void setPercent(Double percent) {
this.percent = percent; this.percent = percent;
} }
public Integer getUserId() { public Integer getUserId() {
return userId; return userId;
} }
public void setUserId(Integer userId) { public void setUserId(Integer userId) {
this.userId = userId; this.userId = userId;
} }
public Integer getSuccessEffectiveTime() { public Integer getSuccessEffectiveTime() {
return successEffectiveTime; return successEffectiveTime;
} }
public void setSuccessEffectiveTime(Integer successEffectiveTime) { public void setSuccessEffectiveTime(Integer successEffectiveTime) {
this.successEffectiveTime = successEffectiveTime; this.successEffectiveTime = successEffectiveTime;
} }
public Integer getWeekSuccessEffectiveTime() {
return weekSuccessEffectiveTime;
}
public void setWeekSuccessEffectiveTime(Integer weekSuccessEffectiveTime) {
this.weekSuccessEffectiveTime = weekSuccessEffectiveTime;
}
public Integer getMonthSuccessEffectiveTime() {
return monthSuccessEffectiveTime;
}
public void setMonthSuccessEffectiveTime(Integer monthSuccessEffectiveTime) {
this.monthSuccessEffectiveTime = monthSuccessEffectiveTime;
}
public Integer getSuccessInvalidTime() { public Integer getSuccessInvalidTime() {
return successInvalidTime; return successInvalidTime;
} }
public void setSuccessInvalidTime(Integer successInvalidTime) { public void setSuccessInvalidTime(Integer successInvalidTime) {
this.successInvalidTime = successInvalidTime; this.successInvalidTime = successInvalidTime;
} }
public Integer getWeekSuccessInvalidTime() {
return weekSuccessInvalidTime;
}
public void setWeekSuccessInvalidTime(Integer weekSuccessInvalidTime) {
this.weekSuccessInvalidTime = weekSuccessInvalidTime;
}
public Integer getMonthSuccessInvalidTime() {
return monthSuccessInvalidTime;
}
public void setMonthSuccessInvalidTime(Integer monthSuccessInvalidTime) {
this.monthSuccessInvalidTime = monthSuccessInvalidTime;
}
public Integer getDefeatTime() { public Integer getDefeatTime() {
return defeatTime; return defeatTime;
} }
public void setDefeatTime(Integer defeatTime) { public void setDefeatTime(Integer defeatTime) {
this.defeatTime = defeatTime; this.defeatTime = defeatTime;
} }
public Integer getBillingCount() {
return billingCount; public Integer getWeekDefeatTime() {
return weekDefeatTime;
} }
public void setBillingCount(Integer billingCount) {
this.billingCount = billingCount; public void setWeekDefeatTime(Integer weekDefeatTime) {
this.weekDefeatTime = weekDefeatTime;
}
public Integer getMonthDefeatTime() {
return monthDefeatTime;
}
public void setMonthDefeatTime(Integer monthDefeatTime) {
this.monthDefeatTime = monthDefeatTime;
} }
public Integer getSuccessTime() { public Integer getSuccessTime() {
@@ -83,12 +166,12 @@ public class StatAnalyBo {
this.successTime = successTime; this.successTime = successTime;
} }
public Double getSuccessRate() { public Integer getBillingCount() {
return successRate; return billingCount;
} }
public void setSuccessRate(Double successRate) { public void setBillingCount(Integer billingCount) {
this.successRate = successRate; this.billingCount = billingCount;
} }
public Integer getPurpose() { public Integer getPurpose() {
@@ -99,6 +182,14 @@ public class StatAnalyBo {
this.purpose = purpose; this.purpose = purpose;
} }
public Double getSuccessRate() {
return successRate;
}
public void setSuccessRate(Double successRate) {
this.successRate = successRate;
}
public Integer getSurplusCallCount() { public Integer getSurplusCallCount() {
return surplusCallCount; return surplusCallCount;
} }
@@ -123,12 +214,20 @@ public class StatAnalyBo {
this.url = url; this.url = url;
} }
public String getName() { public String getUrlName() {
return name; return urlName;
} }
public void setName(String name) { public void setUrlName(String urlName) {
this.name = name; this.urlName = urlName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
} }
public Double getDailyUse() { public Double getDailyUse() {
@@ -138,4 +237,20 @@ public class StatAnalyBo {
public void setDailyUse(Double dailyUse) { public void setDailyUse(Double dailyUse) {
this.dailyUse = dailyUse; this.dailyUse = dailyUse;
} }
public Double getWeekDailyUse() {
return weekDailyUse;
}
public void setWeekDailyUse(Double weekDailyUse) {
this.weekDailyUse = weekDailyUse;
}
public Double getMonthDailyUse() {
return monthDailyUse;
}
public void setMonthDailyUse(Double monthDailyUse) {
this.monthDailyUse = monthDailyUse;
}
} }