xiziwen 1 week ago
parent
commit
2bff4f66fd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/message.go

+ 2 - 2
controllers/message.go

@@ -276,7 +276,7 @@ func (c *MessageCommon) MessageList() {
 		}
 	}
 
-	for _, messageInfo := range list {
+	for i, messageInfo := range list {
 		approvalInfo := company_approval_message.ApprovalInfo{}
 		if messageInfo.SourceType == 1 {
 			if companyApproval, ok := companyApprovalMap[messageInfo.CompanyApprovalId]; ok {
@@ -321,7 +321,7 @@ func (c *MessageCommon) MessageList() {
 				if err != nil {
 					return
 				}
-				messageInfo.AffiliatedCompany = sealItem.AffiliatedCompany
+				list[i].AffiliatedCompany = sealItem.AffiliatedCompany
 			}
 		} else {
 			if newApproval, ok := newApprovalMap[messageInfo.CompanyApprovalId]; ok {