修复设备导入卡绑定查询映射
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 11m30s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 11m30s
This commit is contained in:
@@ -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").
|
||||||
|
|||||||
Reference in New Issue
Block a user