feat(db): H001 改名 S001,新增 S002(空库存版)

S001: 含完整入库/出库/库存历史数据
S002: 基础数据相同(商品/供应商/仓库),入库/出库/库存均为空,模拟新门店

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-04-07 23:43:21 +08:00
parent 92bcad086b
commit 14e285e756
5 changed files with 97 additions and 15 deletions
+2 -2
View File
@@ -112,10 +112,10 @@ func main() {
// ═══════════════════════════════════════════════════
// 门店
// ═══════════════════════════════════════════════════
shop := upsert(db, &model.Shop{}, "code = ?", "H001", func() any {
shop := upsert(db, &model.Shop{}, "code = ?", "S001", func() any {
return &model.Shop{
Name: "测试酒库门店",
Code: "H001",
Code: "S001",
Address: "北京市朝阳区酒仙桥路甲1号",
Phone: "010-12345678",
ManagerName: "张三",