Commit 6ac33634 by xiongjiangtao

排序

parent d1524163
......@@ -38,10 +38,14 @@ public class GroupChatClerkReq extends ChatBaseReq implements Serializable {
*/
public Integer getDataApiOrderField() {
Map<String, Integer> map = new HashMap<>(8);
map.put("onewayFriendNum", 1);
map.put("totalLostNum", 2);
map.put("deleteSalesNum", 3);
map.put("salesDeleteNum", 4);
map.put("newGroupNum", 1);
map.put("actGroupNum", 2);
map.put("groupCustNum", 3);
map.put("newGroupCustNum", 4);
map.put("actGroupCustNum", 5);
map.put("newExitGroupCustNum", 6);
map.put("groupSessionsNum", 7);
map.put("groupNum", 8);
return map.get(getOrderByFields()) == null ? 1 : map.get(getOrderByFields());
}
......
......@@ -55,9 +55,7 @@ public class GroupChatDetailReq extends ChatBaseReq implements Serializable {
* @param jsonObject
*/
public void dealWithParam(JSONObject jsonObject) {
if (jsonObject == null) {
jsonObject = new JSONObject();
}
super.dealWithParam(jsonObject);
if (getOrderByFields() != null) {
jsonObject.put("orderByFields", getDataApiOrderField());
}
......
......@@ -56,15 +56,29 @@ public class GroupChatStoreGroupReq extends StoreGroupCommonQO implements Serial
*/
private String requestProject;
/**
* 排序*
* 1新增群数2活跃群数3群总人数4新增群人数5活跃群人数6新退群人数7群会话总条数8群总数
* @return
*/
public Integer getDataApiOrderField() {
Map<String, Integer> map = new HashMap<>(8);
map.put("onewayFriendNum", 1);
map.put("totalLostNum", 2);
map.put("deleteSalesNum", 3);
map.put("salesDeleteNum", 4);
map.put("newGroupNum", 1);
map.put("actGroupNum", 2);
map.put("groupCustNum", 3);
map.put("newGroupCustNum", 4);
map.put("actGroupCustNum", 5);
map.put("newExitGroupCustNum", 6);
map.put("groupSessionsNum", 7);
map.put("groupNum", 8);
return map.get(orderByFields) == null ? 1 : map.get(orderByFields);
}
/**
* 处理请求参数
* * *
* @param jsonObject
*/
public void dealWithParam(JSONObject jsonObject) {
if (jsonObject == null) {
jsonObject = new JSONObject();
......
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