Commit 8f6bf474 authored by jay's avatar jay

im接口临时调整

parent f0f65f87
...@@ -116,9 +116,9 @@ ...@@ -116,9 +116,9 @@
<div class="span12"> <div class="span12">
<form id="filterForm" class="form-inline filterForm" action="${ctx}/user/" method="get"> <form id="filterForm" class="form-inline filterForm" action="${ctx}/user/" method="get">
<%--<input type="hidden" name="search_EQ_deptId" value="${sessionTreeDept}"--%> <%--<input type="hidden" name="search_EQ_deptId" value="${sessionTreeDept}"--%>
<%--class="m-wrap small span2" placeholder="deptId">--%> <%--class="m-wrap small span2" placeholder="deptId">--%>
<%--<input type="text" name="search_EQ_id" value="${param['search_EQ_id']}"--%> <%--<input type="text" name="search_EQ_id" value="${param['search_EQ_id']}"--%>
<%--class="m-wrap small span2" placeholder="用户ID">--%> <%--class="m-wrap small span2" placeholder="用户ID">--%>
<input type="text" name="search_LIKE_name" value="${param['search_LIKE_name']}" <input type="text" name="search_LIKE_name" value="${param['search_LIKE_name']}"
class="m-wrap small span2" placeholder="用户名"> class="m-wrap small span2" placeholder="用户名">
<input type="text" name="search_LIKE_realName" value="${param['search_LIKE_realName']}" <input type="text" name="search_LIKE_realName" value="${param['search_LIKE_realName']}"
...@@ -249,6 +249,7 @@ ...@@ -249,6 +249,7 @@
<c:if test="${user.entity.identityType eq '10'}"> <c:out value="租房房博士"/></c:if> <c:if test="${user.entity.identityType eq '10'}"> <c:out value="租房房博士"/></c:if>
<c:if test="${user.entity.identityType eq '7'}"> <c:out value="客服"/></c:if> <c:if test="${user.entity.identityType eq '7'}"> <c:out value="客服"/></c:if>
<c:if test="${user.entity.identityType eq '20'}"> <c:out value="平台人员"/></c:if> <c:if test="${user.entity.identityType eq '20'}"> <c:out value="平台人员"/></c:if>
<c:if test="${user.entity.identityType eq '13'}"> <c:out value="房博士测试"/></c:if>
<c:if test="${null eq user.entity.identityType || '' eq user.entity.identityType}"> <c:if test="${null eq user.entity.identityType || '' eq user.entity.identityType}">
<c:out value=""/> <c:out value=""/>
</c:if> </c:if>
...@@ -310,6 +311,9 @@ ...@@ -310,6 +311,9 @@
<li class="choosemask-fbs" onclick="saveIM(1)" style="margin-left: 10px;">安家顾问</li> <li class="choosemask-fbs" onclick="saveIM(1)" style="margin-left: 10px;">安家顾问</li>
<li class="choosemask-fbs" onclick="saveIM(20)" style="margin-left: 10px;">平台人员</li> <li class="choosemask-fbs" onclick="saveIM(20)" style="margin-left: 10px;">平台人员</li>
</ul> </ul>
<%--<ul class="choosemask-twobtn clearfix">--%>
<%--<li class="choosemask-fbs" onclick="saveIM(13)">房博士测试</li>--%>
<%--</ul>--%>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -129,7 +129,9 @@ public class AppHgsLoginImpl implements IAppHgsLogin { ...@@ -129,7 +129,9 @@ public class AppHgsLoginImpl implements IAppHgsLogin {
} }
//查询在线客服list //查询在线客服list
Map<String, Object> queryMap = new HashMap<>(5); Map<String, Object> queryMap = new HashMap<>(5);
queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77"); //测试临时新加部门,上线需要调整
queryMap.put("deptUrlPath", "/1/2/69/70/71/556/557");
// queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77");
queryMap.put("telephone", phone); queryMap.put("telephone", phone);
List<UserEntity> userList = userMapper.queryByConditions(queryMap); List<UserEntity> userList = userMapper.queryByConditions(queryMap);
if (CollectionUtils.isNotEmpty(userList)) { if (CollectionUtils.isNotEmpty(userList)) {
...@@ -179,7 +181,7 @@ public class AppHgsLoginImpl implements IAppHgsLogin { ...@@ -179,7 +181,7 @@ public class AppHgsLoginImpl implements IAppHgsLogin {
return restObject; return restObject;
} }
public boolean hasKey(final String key) { private boolean hasKey(final String key) {
return (Boolean) redisTemplate.execute(new RedisCallback<Object>() { return (Boolean) redisTemplate.execute(new RedisCallback<Object>() {
@Override @Override
public Object doInRedis(RedisConnection connection) throws DataAccessException { public Object doInRedis(RedisConnection connection) throws DataAccessException {
...@@ -189,8 +191,8 @@ public class AppHgsLoginImpl implements IAppHgsLogin { ...@@ -189,8 +191,8 @@ public class AppHgsLoginImpl implements IAppHgsLogin {
}); });
} }
public static String MD5(String s) { private static String MD5(String s) {
char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'}; 'a', 'b', 'c', 'd', 'e', 'f'};
try { try {
byte[] strTemp = s.getBytes(); byte[] strTemp = s.getBytes();
...@@ -237,9 +239,7 @@ public class AppHgsLoginImpl implements IAppHgsLogin { ...@@ -237,9 +239,7 @@ public class AppHgsLoginImpl implements IAppHgsLogin {
* *
* @author hqc * @author hqc
*/ */
protected void checkInterfaceParameter( protected void checkInterfaceParameter(Map<String, Object> map, String[] checkParams) throws IllegalServiceParameterException {
Map<String, Object> map, String[] checkParams
) throws IllegalServiceParameterException {
// 方法所需参数 // 方法所需参数
for (String str : checkParams) { for (String str : checkParams) {
// 如果不存在跳出 同时抛出相应异常 // 如果不存在跳出 同时抛出相应异常
......
...@@ -68,9 +68,14 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo { ...@@ -68,9 +68,14 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo {
response.setMsg("参数不正确"); response.setMsg("参数不正确");
return JSONObject.fromObject(response).toString(); return JSONObject.fromObject(response).toString();
} }
//测试临时调整为qlt_10000
String defaultId = "qlt_10000";
// String defaultId = "qlt_527";
//查询在线客服list //查询在线客服list
Map<String, Object> queryMap = new HashMap<>(5); Map<String, Object> queryMap = new HashMap<>(5);
queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77"); //测试临时新加部门,上线需要调整
queryMap.put("deptUrlPath", "/1/2/69/70/71/556/557");
// queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77");
queryMap.put("onlineStatus", 1); queryMap.put("onlineStatus", 1);
List<UserEntity> userList = userMapper.queryByConditions(queryMap); List<UserEntity> userList = userMapper.queryByConditions(queryMap);
...@@ -94,7 +99,7 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo { ...@@ -94,7 +99,7 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo {
accId = userList.get(pick).getAccId(); accId = userList.get(pick).getAccId();
} else { } else {
//没有聊天 取默认值组长的的id //没有聊天 取默认值组长的的id
accId = "qlt_527"; accId = defaultId;
} }
} }
putMap.put("accId", accId); putMap.put("accId", accId);
...@@ -106,7 +111,7 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo { ...@@ -106,7 +111,7 @@ public class GetNewUserInfoImpl implements IGetNewUserInfo {
accId = userList.get(pick).getAccId(); accId = userList.get(pick).getAccId();
} else { } else {
//没有聊天 取默认值组长的的id //没有聊天 取默认值组长的的id
accId = "qlt_527"; accId = defaultId;
} }
putMap.put("accId", accId); putMap.put("accId", accId);
data.setEntity(putMap); data.setEntity(putMap);
......
...@@ -56,7 +56,9 @@ public class SaveNewMessage implements ISaveNewMessage { ...@@ -56,7 +56,9 @@ public class SaveNewMessage implements ISaveNewMessage {
if (receiver.startsWith("qlt_") && sender.startsWith("tf_")) { if (receiver.startsWith("qlt_") && sender.startsWith("tf_")) {
Date now = new Date(); Date now = new Date();
Map<String, Object> queryMap = new HashMap<>(5); Map<String, Object> queryMap = new HashMap<>(5);
queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77"); //测试临时新加部门,上线需要调整
queryMap.put("deptUrlPath", "/1/2/69/70/71/556/557");
// queryMap.put("deptUrlPath", "/1/2/69/70/71/72/77");
queryMap.put("accId", receiver); queryMap.put("accId", receiver);
List<UserEntity> userList = userMapper.queryByConditions(queryMap); List<UserEntity> userList = userMapper.queryByConditions(queryMap);
if (CollectionUtils.isNotEmpty(userList)) { if (CollectionUtils.isNotEmpty(userList)) {
......
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