feat: 重构顺运宝规格主链路 (#88)
This commit is contained in:
@@ -31,6 +31,7 @@ type ShopeeProductView struct {
|
||||
// `[必须]` > 0 时整行标黄(沿用 .row-warn)——聚合成商品级之后,
|
||||
// "部分失败"的商品数字看起来完全正常,坏数据会被吃掉,见 #41。
|
||||
PendingCount int
|
||||
SourceText string
|
||||
|
||||
// PddURL 为空且 PddMissing 为 true 时,模板显示"未填写"并标红——
|
||||
// 这是最需要操作员注意的状态,见 §4.2。
|
||||
@@ -108,6 +109,7 @@ func ListShopeeProducts(db *sql.DB, filter repository.ShopeeFilter, page int) (*
|
||||
SizeCount: r.SizeCount,
|
||||
SKUCount: r.SKUCount,
|
||||
PendingCount: r.PendingCount,
|
||||
SourceText: shopeeSourceText(r.Source),
|
||||
UpdatedAt: formatLocalTime(r.UpdatedAt),
|
||||
}
|
||||
|
||||
@@ -131,6 +133,13 @@ func ListShopeeProducts(db *sql.DB, filter repository.ShopeeFilter, page int) (*
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func shopeeSourceText(source string) string {
|
||||
if source == "syb" {
|
||||
return "顺运宝骨架"
|
||||
}
|
||||
return "蝦皮报表"
|
||||
}
|
||||
|
||||
// ---------- 状态筛选 ----------
|
||||
|
||||
// shopeeStatusTexts 是状态筛选下拉框每个取值对应的中文文字,
|
||||
|
||||
Reference in New Issue
Block a user