Commit c511e1c6 authored by jay's avatar jay

接口修改

parent 8b0dce3c
......@@ -693,7 +693,7 @@ public class RoleController extends BaseController {
DepartmentResponse dept = department.getDepartmentById(userEntity.getDeptId());
try {
//2.获取短号
// String cornetUrl = "http://api.400.house365.com/api/5a9ea11c04845";//获取短号接口url
// String cornetUrl = "http://tel400.house365.com/api/5a9ea11c04845";//获取短号接口url
String cornetUrl = MemoryPropertyPlaceholderConfigurer.getContextProperty("getcornet.url");
HashMap<String, String> bindMap = new HashMap<>();
List<String> newCornetParams = new ArrayList<>();
......
......@@ -194,7 +194,7 @@ public class HttpUtil {
public static String getAccessToken(HashMap<String, String> tokenMap, String timestamp, String randStr, String signature, String deciceId, House365RestResponse response){
//获取acceToken接口URl
String getAccessTokenUrl = "http://api.400.house365.com/api/5aaf0c48ed105";
String getAccessTokenUrl = "http://tel400.house365.com/api/5aaf0c48ed105";
List<NameValuePair> tokenInParam = new ArrayList<>();
tokenInParam.add(new BasicNameValuePair("timestamp", timestamp));
......
......@@ -29,7 +29,7 @@ accesstoken.url=http://tel400.house365.com:81/api/5aaf0c48ed105
getcornet.url=http://tel400.house365.com:81/api/5a9ea11c04845
bindcornet.url=http://tel400.house365.com:81/api/5ad553214586b
#unbindcornet.url=http://tel400.house365.com:81/api/5a9ea13f5e42c
unbindcornet.url=http://api.400.house365.com/api/5a9ea13f5e42c
unbindcornet.url=http://tel400.house365.com/api/5a9ea13f5e42c
modifycornet.url=http://tel400.house365.com:81/api/5ad6b66e28cec
## NewHouse
......
......@@ -871,7 +871,7 @@ public class UserImpl implements IUser {
private static String getAccessToken(HashMap<String, String> tokenMap, String timestamp, String randStr, String signature, String deciceId) {
//获取acceToken接口URl
String getAccessTokenUrl = "http://api.400.house365.com/api/5aaf0c48ed105";
String getAccessTokenUrl = "http://tel400.house365.com/api/5aaf0c48ed105";
List<NameValuePair> tokenInParam = new ArrayList<>();
tokenInParam.add(new BasicNameValuePair("timestamp", timestamp));
tokenInParam.add(new BasicNameValuePair("app_id", "12558119"));
......
......@@ -120,37 +120,24 @@ public class GetOnlineLogImpl implements IGetOnlineLog {
list.add(dataMap);
}
} else {
//判断用户在线
if (u.getOnlineStatus() == 1) {
//当天没有日志记录时,往前推一个月查询是否有在线记录
Date date = DateTimeUtils.getDateByString(startTime, patten);
date = DateTimeUtils.getDaysAgo(date, 30);
String startTimeNew = DateTimeUtils.getDateString(date, patten);
searchMap.put("startTime", startTimeNew);
searchMap.put("endTime", endTime);
searchMap.put("userId", u.getId());
searchMap.put("order", 1);
List<OnlineLogEntity> logListNew = logMapper.queryByConditions(searchMap);
if (CollectionUtils.isNotEmpty(logListNew) && logListNew.get(0).getNewStatus() == 1) {
dataMap.put("userId", u.getId());
dataMap.put("accId", u.getAccId());
String timePeriod = startTime + "---" + endTime;
dataMap.put("time", timePeriod);
list.add(dataMap);
} else {
//处于下线状态时,往前推一个月查询是否有在线记录
Date date = DateTimeUtils.getDateByString(startTime, patten);
date = DateTimeUtils.getDaysAgo(date, 30);
String startTimeNew = DateTimeUtils.getDateString(date, patten);
searchMap.put("startTime", startTimeNew);
searchMap.put("endTime", endTime);
searchMap.put("userId", u.getId());
searchMap.put("order", 1);
searchMap.put("newStatus", 1);
List<OnlineLogEntity> logListNew = logMapper.queryByConditions(searchMap);
if (CollectionUtils.isNotEmpty(logListNew)) {
searchMap.put("newStatus", 0);
List<OnlineLogEntity> logListUnder = logMapper.queryByConditions(searchMap);
if (CollectionUtils.isNotEmpty(logListUnder)) {
dataMap.put("userId", u.getId());
dataMap.put("accId", u.getAccId());
String timePeriod = DateTimeUtils.getDateString(logListNew.get(0).getCreateTime(), patten) + "---" + DateTimeUtils.getDateString(logListUnder.get(0).getCreateTime(), patten);
dataMap.put("time", timePeriod);
list.add(dataMap);
}
}
}
}
});
}
data.setList(list);
......
......@@ -37,7 +37,7 @@ CRM.CUSTOMER.INFO.URL=http://crm.house365.com:81/index.php/Simulate/getmember_vi
CRM.WECHAT.CUSTOMER.INFO.URL=http://crmtouch.house365.com/index.php?m=Home&c=Api&a=MemberViewHyperlink&source=hgs&nonce=
CRM.TOUCH.HOST=http://crmtouch.house365.com
CRM.CUSTOMER.CALLBACK=http://crm.house365.com/api/hgs/pingback
unbindcornet.url=http://api.400.house365.com/api/5a9ea13f5e42c
unbindcornet.url=http://tel400.house365.com/api/5a9ea13f5e42c
CRM.CONFIG.URL=http://crm.house365.com:81/api/hgs/definition
CRM.CUSTOMERQUERY.URL=http://crm.house365.com/api/hgs/query
CRM.CONFIRM.URL=http://crm.house365.com/api/hgs/confirm
......
......@@ -32,7 +32,7 @@ system.env=test
CRM.CUSTOMERPROJECT.UPDATESTATUS.URL=http://crm.house365.com:81/api/hgs/update?apiLevel=1.0
#CRM.CUSTOMER.ADD.URL=http://218.94.115.131:8881/index.php/Simulate/sea_utf8?
CRM.CUSTOMER.ADD.URL=http://crm.house365.com:81/index.php/Simulate/sea_utf8?
unbindcornet.url=http://api.400.house365.com/api/5a9ea13f5e42c
unbindcornet.url=http://tel400.house365.com/api/5a9ea13f5e42c
#CRM.CUSTOMER.INFO.URL=http://218.94.115.131:8881/index.php/Simulate/getmember_view?source=hgs&nonce=
CRM.CUSTOMER.INFO.URL=http://crm.house365.com:81/index.php/Simulate/getmember_view?source=hgs&nonce=
CRM.WECHAT.CUSTOMER.INFO.URL=http://crmtouch.house365.com/index.php?m=Home&c=Api&a=MemberViewHyperlink&source=hgs&nonce=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment