Commit c8536476 by 徐高华

聊天记录

parent 98801536
...@@ -11,6 +11,7 @@ import com.gic.commons.util.DateUtil; ...@@ -11,6 +11,7 @@ import com.gic.commons.util.DateUtil;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.manage.web.handle.*; import com.gic.haoban.manage.web.handle.*;
import com.gic.haoban.manage.web.qo.chat.*; import com.gic.haoban.manage.web.qo.chat.*;
import com.gic.haoban.manage.web.qo.open.UserChatDetailLogQO;
import com.gic.haoban.manage.web.qo.wechatwork.StoreGroupCommonQO; import com.gic.haoban.manage.web.qo.wechatwork.StoreGroupCommonQO;
import com.gic.haoban.manage.web.qo.wechatwork.WechatWorkLostClerkQO; import com.gic.haoban.manage.web.qo.wechatwork.WechatWorkLostClerkQO;
import com.gic.haoban.manage.web.qo.wechatwork.WechatWorkLostStoreGroupQO; import com.gic.haoban.manage.web.qo.wechatwork.WechatWorkLostStoreGroupQO;
...@@ -1215,6 +1216,25 @@ public class ChatDataController extends NewBaseController { ...@@ -1215,6 +1216,25 @@ public class ChatDataController extends NewBaseController {
/** /**
* 用户单独对话聊天记录
* @param req
* @return
*/
@RequestMapping("user-chat-detail-log")
public RestResponse<List<UserChatDetailLogVO>> userChatDetailLog(@RequestBody UserChatDetailLogQO req) {
Map<String, Object> res = DataApiUtils.http(JSONObject.toJSONString(req), "data_mbr_scale_haoban_qw_chat_detail_log");
Page page = DataApiUtils.getPageData(res);
List<JSONObject> list = page.getResult();
if (CollectionUtils.isNotEmpty(list)) {
List<UserChatDetailLogVO> voList = JSONArray.parseArray(JSON.toJSONString(list), UserChatDetailLogVO.class);
return RestResponse.successResult(voList) ;
}
return RestResponse.successResult();
}
/**
* 群聊统计 会话明细 数据导出 * 群聊统计 会话明细 数据导出
* *
* *
......
package com.gic.haoban.manage.web.qo.open;
import java.io.Serializable;
public class UserChatDetailLogQO implements Serializable {
private Long groupChatId ;
private String memberId ;
private String clerkId ;
private Integer rn ;
// 1群聊2单聊
private Integer tableType ;
// 1往前10条 2往后10条
private Integer dataType ;
public Long getGroupChatId() {
return groupChatId;
}
public void setGroupChatId(Long groupChatId) {
this.groupChatId = groupChatId;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public Integer getRn() {
return rn;
}
public void setRn(Integer rn) {
this.rn = rn;
}
public Integer getTableType() {
return tableType;
}
public void setTableType(Integer tableType) {
this.tableType = tableType;
}
public Integer getDataType() {
return dataType;
}
public void setDataType(Integer dataType) {
this.dataType = dataType;
}
}
...@@ -99,6 +99,16 @@ public class GroupChatChatDetailVO extends StoreGroupCommonVO implements Seriali ...@@ -99,6 +99,16 @@ public class GroupChatChatDetailVO extends StoreGroupCommonVO implements Seriali
*/ */
private String msgType; private String msgType;
private Integer rn ;
public Integer getRn() {
return rn;
}
public void setRn(Integer rn) {
this.rn = rn;
}
public String getMemberId() { public String getMemberId() {
return memberId; return memberId;
} }
......
...@@ -88,6 +88,8 @@ public class SingleChatDetailVO extends StoreGroupCommonVO implements Serializab ...@@ -88,6 +88,8 @@ public class SingleChatDetailVO extends StoreGroupCommonVO implements Serializab
*/ */
private String sendTime; private String sendTime;
private Integer rn ;
public String getMemberId() { public String getMemberId() {
return memberId; return memberId;
......
package com.gic.haoban.manage.web.vo.chat;
import java.io.Serializable;
public class UserChatDetailLogVO implements Serializable {
// 聊天内容
private String content ;
// 发送时间
private String sendTime ;
// 排序值
private Integer rn ;
// 发送人名字
private String sendName ;
// 1导购2客户
private Integer userType ;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getSendTime() {
return sendTime;
}
public void setSendTime(String sendTime) {
this.sendTime = sendTime;
}
public Integer getRn() {
return rn;
}
public void setRn(Integer rn) {
this.rn = rn;
}
public String getSendName() {
return sendName;
}
public void setSendName(String sendName) {
this.sendName = sendName;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
}
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