|
|
@@ -21,7 +21,7 @@
|
|
|
- 组成商品有启用 SKU 时,`child_sku_id` 必填;否则拒绝保存。
|
|
|
- `ProductSku.update` 清除 `linked_product_id` 必须用 `LambdaUpdateWrapper.set(..., null)`(MyBatis-Plus `updateById` 忽略 null)。
|
|
|
- 后端编译:`cd /app/cfc/cfc-backend && mvn -q -DskipTests compile`。
|
|
|
-- 后端单测:`mvn -q test -Dtest=<Class>`。
|
|
|
+- 后端单测:`mvn test -Dtest=<Class>`。
|
|
|
- 前端测试:`cd /app/cfc/cfc-web && npx jest src/__tests__ --no-coverage`。
|
|
|
- 部署严格按 `AGENTS.md`:备份 → 部署 → 健康检查;禁止未确认改动 `/app/pro/cfc`。
|
|
|
|
|
|
@@ -374,7 +374,7 @@ class ProductSkuComboServiceTest {
|
|
|
|
|
|
- [ ] **Step 2: 运行测试确认失败**
|
|
|
|
|
|
-Run: `cd /app/cfc/cfc-backend && mvn -q test -Dtest=ProductSkuComboServiceTest`
|
|
|
+Run: `cd /app/cfc/cfc-backend && mvn test -Dtest=ProductSkuComboServiceTest -DskipTests=false`
|
|
|
Expected: 编译失败 / 方法不存在(`hasComboItems` 等未定义)
|
|
|
|
|
|
- [ ] **Step 3: 实现 Service**
|
|
|
@@ -510,7 +510,7 @@ Expected: 编译失败 / 方法不存在(`hasComboItems` 等未定义)
|
|
|
|
|
|
- [ ] **Step 4: 运行测试确认通过**
|
|
|
|
|
|
-Run: `cd /app/cfc/cfc-backend && mvn -q test -Dtest=ProductSkuComboServiceTest`
|
|
|
+Run: `cd /app/cfc/cfc-backend && mvn test -Dtest=ProductSkuComboServiceTest -DskipTests=false`
|
|
|
Expected: Tests run: 5, Failures: 0, Errors: 0
|
|
|
|
|
|
- [ ] **Step 5: 提交**
|
|
|
@@ -744,7 +744,7 @@ class ProductOrderComboStockTest {
|
|
|
|
|
|
- [ ] **Step 2: 运行测试确认失败**
|
|
|
|
|
|
-Run: `cd /app/cfc/cfc-backend && mvn -q test -Dtest=ProductOrderComboStockTest`
|
|
|
+Run: `cd /app/cfc/cfc-backend && mvn test -Dtest=ProductOrderComboStockTest -DskipTests=false`
|
|
|
Expected: 编译失败(`deductComboStock` / `restockComboOrder` 不存在)
|
|
|
|
|
|
- [ ] **Step 3: CartService 组合分支**
|
|
|
@@ -951,7 +951,7 @@ SKU 价格分支改为:
|
|
|
|
|
|
- [ ] **Step 8: 运行测试确认通过**
|
|
|
|
|
|
-Run: `cd /app/cfc/cfc-backend && mvn -q test -Dtest=ProductOrderComboStockTest`
|
|
|
+Run: `cd /app/cfc/cfc-backend && mvn test -Dtest=ProductOrderComboStockTest -DskipTests=false`
|
|
|
Expected: Tests run: 4, Failures: 0, Errors: 0
|
|
|
|
|
|
- [ ] **Step 9: 提交**
|
|
|
@@ -1231,7 +1231,7 @@ git commit -m "feat(web): SKU编辑器支持商品组合(多商品+数量+手
|
|
|
|
|
|
- [ ] **Step 1: 后端全量单测**
|
|
|
|
|
|
-Run: `cd /app/cfc/cfc-backend && mvn -q test`
|
|
|
+Run: `cd /app/cfc/cfc-backend && mvn test -DskipTests=false`
|
|
|
Expected: BUILD SUCCESS,0 failures
|
|
|
|
|
|
- [ ] **Step 2: 前端全量测试 + 构建**
|