fix: IoT 卡列表查询补充 virtual_no 字段
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m58s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m58s
standaloneListColumns 是为性能优化而手写的列选择列表, virtual_no 字段新增时只加了 model 和 DTO,遗漏了这里, 导致四条列表查询路径均未 SELECT virtual_no,字段始终为空。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -210,7 +210,7 @@ func (s *IotCardStore) List(ctx context.Context, opts *store.QueryOptions, filte
|
|||||||
|
|
||||||
// standaloneListColumns 列表查询只选取响应需要的列,避免 SELECT * 的宽行 I/O
|
// standaloneListColumns 列表查询只选取响应需要的列,避免 SELECT * 的宽行 I/O
|
||||||
var standaloneListColumns = []string{
|
var standaloneListColumns = []string{
|
||||||
"id", "iccid", "card_category", "carrier_id", "carrier_type", "carrier_name",
|
"id", "iccid", "virtual_no", "card_category", "carrier_id", "carrier_type", "carrier_name",
|
||||||
"imsi", "msisdn", "batch_no", "supplier", "status", "shop_id", "activated_at",
|
"imsi", "msisdn", "batch_no", "supplier", "status", "shop_id", "activated_at",
|
||||||
"activation_status", "real_name_status", "network_status", "data_usage_mb",
|
"activation_status", "real_name_status", "network_status", "data_usage_mb",
|
||||||
"current_month_usage_mb", "current_month_start_date", "last_month_total_mb",
|
"current_month_usage_mb", "current_month_start_date", "last_month_total_mb",
|
||||||
|
|||||||
Reference in New Issue
Block a user