|
@@ -579,7 +579,7 @@ func (b MessaggeService) FindMessage(in *messagecenter.MessageReq) *[]map[string
|
|
"where a.own_id= %d and a.iswithdraw = 0"+
|
|
"where a.own_id= %d and a.iswithdraw = 0"+
|
|
"AND ((a.send_user_id= %d AND a.receive_user_id= %d) or (a.send_user_id= %d AND a.receive_user_id= %d)) "+
|
|
"AND ((a.send_user_id= %d AND a.receive_user_id= %d) or (a.send_user_id= %d AND a.receive_user_id= %d)) "+
|
|
"AND a.type=2 %s "+
|
|
"AND a.type=2 %s "+
|
|
- "ORDER BY a.create_time ,a.id desc "+
|
|
|
|
|
|
+ "ORDER BY a.create_time desc,a.id asc "+
|
|
"limit 0 , %d ",
|
|
"limit 0 , %d ",
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.BASE_USER, util.BASE_USER,
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.BASE_USER, util.BASE_USER,
|
|
in.NewUserId, in.NewUserId, in.SendId, in.SendId, in.NewUserId, lastStr, in.PageSize)
|
|
in.NewUserId, in.NewUserId, in.SendId, in.SendId, in.NewUserId, lastStr, in.PageSize)
|
|
@@ -595,7 +595,7 @@ func (b MessaggeService) FindMessage(in *messagecenter.MessageReq) *[]map[string
|
|
"AND (a.type = 5 or a.type=4 or a.type=6 or a.type=7 or a.type=8 ) "+
|
|
"AND (a.type = 5 or a.type=4 or a.type=6 or a.type=7 or a.type=8 ) "+
|
|
"AND c.ent_id = %d "+
|
|
"AND c.ent_id = %d "+
|
|
"AND c.user_id = %d %s "+
|
|
"AND c.user_id = %d %s "+
|
|
- "ORDER BY a.create_time ,a.id desc "+
|
|
|
|
|
|
+ "ORDER BY a.create_time desc ,a.id asc "+
|
|
"limit 0 , %d ",
|
|
"limit 0 , %d ",
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.SOCIALIZE_CHAT_SESSION,
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.SOCIALIZE_CHAT_SESSION,
|
|
in.EntId, in.SendId, lastStr, in.PageSize)
|
|
in.EntId, in.SendId, lastStr, in.PageSize)
|
|
@@ -612,7 +612,7 @@ func (b MessaggeService) FindMessage(in *messagecenter.MessageReq) *[]map[string
|
|
"AND c.ent_id = %d "+
|
|
"AND c.ent_id = %d "+
|
|
"AND c.user_id = %d "+
|
|
"AND c.user_id = %d "+
|
|
"AND ( a.type = 4 OR a.type = 5 or a.type=6 or a.type=7 or a.type=8) %s "+
|
|
"AND ( a.type = 4 OR a.type = 5 or a.type=6 or a.type=7 or a.type=8) %s "+
|
|
- "ORDER BY a.create_time ,a.id desc "+
|
|
|
|
|
|
+ "ORDER BY a.create_time desc,a.id asc "+
|
|
"limit 0 , %d ",
|
|
"limit 0 , %d ",
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.SOCIALIZE_CHAT_SESSION, in.SendId, in.NewUserId, util.SOCIALIZE_TENANT_ROBOT, util.SOCIALIZE_APPRAISE,
|
|
util.SOCIALIZE_MESSAGE_MAILBOX, util.SOCIALIZE_MESSAGE, util.SOCIALIZE_CHAT_SESSION, in.SendId, in.NewUserId, util.SOCIALIZE_TENANT_ROBOT, util.SOCIALIZE_APPRAISE,
|
|
in.NewUserId, in.SendId, in.NewUserId, lastStr, in.PageSize)
|
|
in.NewUserId, in.SendId, in.NewUserId, lastStr, in.PageSize)
|