From 592690c531e45d5c2bfa225a8f9c0c3fe6d4f1ac Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 22 Aug 2023 12:01:36 +0800 Subject: [PATCH] fix --- server/product/internal/logic/getfittingbypidlogic.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/product/internal/logic/getfittingbypidlogic.go b/server/product/internal/logic/getfittingbypidlogic.go index 18f76892..53db5460 100644 --- a/server/product/internal/logic/getfittingbypidlogic.go +++ b/server/product/internal/logic/getfittingbypidlogic.go @@ -70,6 +70,9 @@ func (l *GetFittingByPidLogic) GetFittingByPid(req *types.GetFittingByPidReq, us } partIds := make([]int64, 0, len(modelList)) for _, v := range modelList { + if v.PartId == nil { + continue + } partIds = append(partIds, *v.PartId) } //获取配件数据