修复设备导入卡绑定查询映射
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 4m37s

This commit is contained in:
2026-09-20 10:53:06 +08:00
parent 58a81b245d
commit 28ab910e59

View File

@@ -196,7 +196,9 @@ func (s *DeviceSimBindingStore) GetBoundICCIDs(ctx context.Context, iccids []str
} }
if len(list19) > 0 { if len(list19) > 0 {
var rows []struct{ ICCID string } var rows []struct {
ICCID string `gorm:"column:iccid"`
}
if err := s.db.WithContext(ctx). if err := s.db.WithContext(ctx).
Table("tb_device_sim_binding b"). Table("tb_device_sim_binding b").
Select("c.iccid_19 AS iccid"). Select("c.iccid_19 AS iccid").
@@ -211,7 +213,9 @@ func (s *DeviceSimBindingStore) GetBoundICCIDs(ctx context.Context, iccids []str
} }
if len(list20) > 0 { if len(list20) > 0 {
var rows []struct{ ICCID string } var rows []struct {
ICCID string `gorm:"column:iccid"`
}
if err := s.db.WithContext(ctx). if err := s.db.WithContext(ctx).
Table("tb_device_sim_binding b"). Table("tb_device_sim_binding b").
Select("c.iccid_20 AS iccid"). Select("c.iccid_20 AS iccid").