|
@@ -166,10 +166,10 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
} else {
|
|
|
var timeSql, phoneSql, filtrationSql string
|
|
|
if in.StartTime != "" {
|
|
|
- timeSql += fmt.Sprintf(" AND a.timestamp > %s", in.StartTime)
|
|
|
+ timeSql += fmt.Sprintf(" AND a.timestamp > '%s'", in.StartTime)
|
|
|
}
|
|
|
if in.EndTime != "" {
|
|
|
- timeSql += fmt.Sprintf(" AND a.timestamp < %s", in.EndTime)
|
|
|
+ timeSql += fmt.Sprintf(" AND a.timestamp < '%s'", in.EndTime)
|
|
|
}
|
|
|
if in.Phone != "" {
|
|
|
phoneSql = " AND b.phone like '%" + in.Phone + "%'"
|
|
@@ -1157,7 +1157,7 @@ func GetUserByGroupId(tx *sql.Tx, groupId, sendId int64) []int64 {
|
|
|
// 最后一次聊天存储
|
|
|
// 1v1是双方的
|
|
|
// 群聊是发送人和其他人的
|
|
|
-//send :true发送人 false接收人 用于取分1对1 身份
|
|
|
+// send :true发送人 false接收人 用于取分1对1 身份
|
|
|
func SocializeSummaryAddOrUpdate(tx *sql.Tx, groupId, myPositionId, yourPositionId, messageId int64, isCustomerServiceAccess int, timestamp string, send bool) bool {
|
|
|
//判断是否存在
|
|
|
if groupId > 0 {
|