Commit 35ba3dfb by 杨林龙

修改获取省市区地址接口和添加注释 yangll

1 parent c86703c4
......@@ -73,4 +73,5 @@ public class Area implements Serializable {
public void setInitDate(Date initDate) {
this.initDate = initDate;
}
}
......@@ -6,15 +6,36 @@ import cn.com.glsx.openplatform.vo.R;
import cn.hutool.db.Page;
public interface AdMgrService {
/**
* 获取广告管理列表分页信息
*
* @param page 分页查询参数
* @return R对象
*/
R getAdMgrList(Page page);
/**
* 插入广告信息
*
* @param ad 广告数据
* @return 改变的行数
*/
int insertAd(PlatformAd ad);
/**
* 更新广告数据
*
* @param ad 广告数据
* @return 更新行数
*/
int updateAd(PlatformAd ad);
/**
* 修改广告状态
*
* @param id id
* @param status 状态
* @return 修改的行数
*/
Integer startandstop(Integer id, Integer status);
// int start(int id);
//
// int stop(int id);
}
......@@ -9,11 +9,33 @@ import java.util.List;
import java.util.Map;
public interface ApiCallMgrService {
/**
* 条件查询 API调用列表数据
*
* @param page 分页数据
* @param apiCallVo Api调用查询数据
* @return R对象
*/
R getApiCallMgrList(Page page, ApiCallVo apiCallVo);
/**
* 获取API调用统计数据
*
* @return
*/
int getApiCallCount();
/**
* 获取 APi调用饼状图数据
*
* @return
*/
List<Map<String, Integer>> getApiCallGraphData();
/**
* API调用折线图
*
* @return
*/
List<Map<String, Integer>> getApiCallTrendList();
}
......@@ -6,7 +6,20 @@ import cn.hutool.db.Page;
public interface ApiMgrService {
/**
* APi管理列表
*
* @param page 分页数据
* @return
*/
R getApiMgrList(Page page);
/**
* 修改API管理列表状态
*
* @param id
* @param status
* @return
*/
Integer startAndStop(Integer id, Integer status);
}
......@@ -2,5 +2,11 @@ package cn.com.glsx.openplatform.service;
public interface AppDownloadMgrService {
/**
* 获取APP下载数量
*
* @param customerName 客户名
* @return
*/
int getApiCallCountAuth(String customerName);
}
......@@ -9,17 +9,60 @@ import java.security.NoSuchAlgorithmException;
import java.util.List;
public interface CustomerMgrService {
/**
* 获取客服管理列表
*
* @param page 分页查询数据
* @return
*/
R getCustomerMgrList(Page page);
/**
* 重置密码
*
* @param id
* @return
*/
int reset(int id);
/**
* 修改状态
*
* @param id
* @param status
* @return
*/
int startAndStop(int id, int status);
/**
* 客户总数据
*
* @return
*/
int getCustomerCount();
/**
* 注册
*
* @param customer
* @return
* @throws NoSuchAlgorithmException
*/
int register(PlatformCustomer customer) throws NoSuchAlgorithmException;
/**
* 登陆
*
* @param customer
* @return
*/
PlatformCustomer login(PlatformCustomer customer);
/**
* 获取地址下拉选
*
* @param id
* @return
*/
List<Area> getAddressOptionList(int id);
}
......@@ -9,17 +9,55 @@ import java.util.List;
import java.util.Map;
public interface DeviceMgrService {
/**
* 获取设备分页列表变数据
*
* @param page
* @param deviceVo
* @return
*/
R getDeviceMgrList(Page page, DeviceVo deviceVo);
/**
* 获取客服名
*
* @return
*/
List<String> getCustomerNameList();
/**
* 获取设备类型列表
*
* @return
*/
List<String> getDeviceTypeList();
/**
* 获取设备总数
*
* @return
*/
int getDeviceCount();
/**
* 获取设备饼状图数据
*
* @return
*/
List<Map<String, Integer>> getDeviceGraphData();
/**
* 根据客户名获取该客服拥有的设备总数
*
* @param customerName
* @return
*/
int getDeviceCountAuth(String customerName);
/**
* 获取设备折线图数据
*
* @return
*/
List<Map<String, Integer>> getDeviceAccessTrendList();
}
package cn.com.glsx.openplatform.service;
import cn.hutool.db.Page;
import java.util.Date;
import java.util.Map;
public interface IceOpenApiService {
/**
* 获取客户拥有的该设备类型的设备数量
*
* @param customerId
* @param deviceType
* @return
*/
Map<String, Integer> getDataView(int customerId, int deviceType);
/**
* 获取私钥
*
* @param appId
* @return
*/
String getPrivateSecret(int appId);
/**
* 根据客户ID获取客服数据
*
* @param appId
* @return
*/
Map<String, Object> getCustomerInfo(int appId);
Map<String, Object> getDeviceList(Integer appid,Page page, Date start_time, Date end_time);
/**
* 获取条件 设备列表
*
* @param appid
* @param page
* @param start_time
* @param end_time
* @return
*/
Map<String, Object> getDeviceList(Integer appid, Page page, Date start_time, Date end_time);
}
......@@ -11,11 +11,35 @@ import java.util.Map;
* @date 2020-12-16
*/
public interface IndexService {
/**
* 根据客户名获取统计数量
*
* @param customerName 客户名
* @return
*/
Map<String, Integer> getUcSummaryStatistic(String customerName);
/**
* 根据客户名获取设备激活数量
*
* @param customerName 客户名
* @return
*/
List<Map<String, Object>> getUcDeviceActivationStatistic(String customerName);
/**
* 根据客户名获取用户在线数量
*
* @param customerName 客户名
* @return
*/
List<Map<String, Object>> getUcUserActivityStatistic(String customerName);
/**
* 根据客户名获取app下载数量
*
* @param customerName 客户名
* @return
*/
List<Map<String, Object>> getUcAppDownloadStatistic(String customerName);
}
......@@ -8,13 +8,35 @@ import cn.hutool.db.Page;
import java.util.List;
public interface UserMgrService {
/**
* 获取用户管理列表
*
* @param page
* @param userVo
* @return
*/
R getUserMgrList(Page page, UserVo userVo);
/**
* 获取客户名列表
*
* @return
*/
List<String> getCustomerNameList();
/**
* 获取用户数量
*
* @return
*/
int getUserCount();
/**
* 根据客户名获取该客户下的用户数量
*
* @param customerName 用户名
* @return
*/
int getUserCountAuth(String customerName);
}
......
......@@ -90,8 +90,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
@Override
public List<Area> getAddressOptionList(int id) {
List<Area> addressOptionList = customerMapper.getAddressOptionList(id);
return addressOptionList;
return customerMapper.getAddressOptionList(id);
}
public static void main(String[] args) {
......
......@@ -195,7 +195,8 @@
<select id="getAddressOptionList" resultType="cn.com.glsx.openplatform.model.Area">
select
id ,
area_name as areaName
area_name as areaName,
area_code as areaCode
from t_sys_area
where 1 = 1
<choose>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!