From 4a9dbc3e065480357de6a0fceb38813d252b476c Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 28 Nov 2024 09:14:23 +0800 Subject: [PATCH] update --- app/svc/im/svc_send_message.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/svc/im/svc_send_message.go b/app/svc/im/svc_send_message.go index 769d5db..c111da6 100644 --- a/app/svc/im/svc_send_message.go +++ b/app/svc/im/svc_send_message.go @@ -212,7 +212,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { var customerServiceWithUsers []model.CustomerServiceWithUser err = db.DbIm.Table("user"). Join("INNER", "customer_service", "customer_service.id = user.customer_id"). - In("phone", phoneIds). + In("phone_number", phoneIds). Where("customer_service.state = 1"). Find(&customerServiceWithUsers) if err != nil { @@ -260,7 +260,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { var customerServiceWithUsers []model.CustomerServiceWithUser err = db.DbIm.Table("user"). Join("INNER", "customer_service", "customer_service.id = user.customer_id"). - In("phone", tempPhoneList). + In("phone_number", tempPhoneList). Where("customer_service.state = 1"). Find(&customerServiceWithUsers) if err != nil { @@ -323,7 +323,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { var customerServiceWithUsers []model.CustomerServiceWithUser err = db.DbIm.Table("user"). Join("INNER", "customer_service", "customer_service.id = user.customer_id"). - In("phone", phoneIds). + In("phone_number", phoneIds). Where("customer_service.state = 1"). Find(&customerServiceWithUsers) for _, customerServiceWithUser := range customerServiceWithUsers {