From 33f16fa49b6fa7e0a07999c228cf64cdebbb175f Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Fri, 29 Nov 2024 15:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/cmd_service/cmd_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/cmd_service/cmd_service.go b/app/services/cmd_service/cmd_service.go index be98468..8491535 100644 --- a/app/services/cmd_service/cmd_service.go +++ b/app/services/cmd_service/cmd_service.go @@ -131,7 +131,7 @@ func ListToRep(list []croncmdmodel.CronCmd) (cmdList []backend.CmdListResponse, dbMap, err := repository.InAndToMap[crondbmodel.CronDb, int](crondbmodel.GetInstance().GetDb(), "db_id", dbIdList) userMap, err := repository.InAndToMap[cronusermodel.CronUser, int](cronusermodel.GetInstance().GetDb(), "user_id", userIdList) - channelMap, err := repository.InAndToMap[cronreportchannelmodel.CronReportChannel, int](cronreportchannelmodel.GetInstance().GetDb(), "channel_id", channelList) + channelMap, err := repository.InAndToMap[cronreportchannelmodel.CronReportChannel, int](cronreportchannelmodel.GetInstance().GetDb(), "report_channel_id", channelList) cmdList = make([]backend.CmdListResponse, len(list)) linq.From(list).SelectT(func(in croncmdmodel.CronCmd) (d backend.CmdListResponse) { d.ResponseFromDb(in)