From 78d6aded9b479a7450e34cf745c8754e82740331 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 8 Apr 2026 11:56:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DIoT=E5=8D=A1=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=97=B6=E6=9C=AA=E5=86=99=E5=85=A5carrier=5Ftype?= =?UTF-8?q?=E5=92=8Ccarrier=5Fname=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit processBatch 构建 IotCard 时只写了 CarrierID,遗漏了 CarrierType 和 CarrierName, 导致导入后所有卡的运营商名称和运营商类型为空,影响 /api/admin/iot-cards/standalone 和 /api/admin/assets/resolve/{identifier} 接口返回结果 Co-authored-by: Sisyphus --- internal/task/iot_card_import.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/task/iot_card_import.go b/internal/task/iot_card_import.go index d5f56ba..6ba6517 100644 --- a/internal/task/iot_card_import.go +++ b/internal/task/iot_card_import.go @@ -350,6 +350,8 @@ func (h *IotCardImportHandler) processBatch(ctx context.Context, task *model.Iot MSISDN: card.MSISDN, VirtualNo: card.VirtualNo, CarrierID: task.CarrierID, + CarrierType: task.CarrierType, + CarrierName: task.CarrierName, BatchNo: task.BatchNo, Status: constants.IotCardStatusInStock, CardCategory: constants.CardCategoryNormal,