Commit 6ac33634 by xiongjiangtao

排序

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