Browse Source

时间修改

WH01243 2 years ago
parent
commit
e31903edb3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      service/message_mail_box.go

+ 3 - 3
service/message_mail_box.go

@@ -610,12 +610,12 @@ func UserSynchronousList(customerServiceId, userId, entId, messageId int64, crea
 		if sendUserType == 1 {
 			if itemType == 4 {
 				//机器人消息保存处理
-				ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d  ,timestamp = %s WHERE user_id = %d and ent_id= %d", messageId, create_time, userId, entId))
+				ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d  ,timestamp = '%s' WHERE user_id = %d and ent_id= %d", messageId, create_time, userId, entId))
 			} else {
-				ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d ,timestamp = %s, unread = unread+1, customer_service_access = %d WHERE user_id = %d and ent_id= %d", messageId, create_time, customer_service_access, userId, entId))
+				ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d ,timestamp = '%s', unread = unread+1, customer_service_access = %d WHERE user_id = %d and ent_id= %d", messageId, create_time, customer_service_access, userId, entId))
 			}
 		} else {
-			ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d ,timestamp = %s, customer_service_access = %d WHERE user_id = %d and ent_id= %d", messageId, create_time, customer_service_access, userId, entId))
+			ok = IC.BaseMysql.UpdateOrDeleteBySql(fmt.Sprintf("UPDATE  socialize_summary SET message_id = %d ,timestamp = '%s', customer_service_access = %d WHERE user_id = %d and ent_id= %d", messageId, create_time, customer_service_access, userId, entId))
 		}
 		if ok > 0 && customerServiceId > 0 {
 			//判断客服用户表是否存在