feat(shop): 优化商品与优惠券逻辑;修复礼品相关映射;补充接口测试
This commit is contained in:
@@ -210,6 +210,7 @@ class PlayCommodityInfoApiTest extends WxCustomOrderApiTestSupport {
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(jsonPath("$.code").value(200));
|
||||
|
||||
ensureTenantContext();
|
||||
PlayCommodityAndLevelInfoEntity pricing = commodityAndLevelInfoService.lambdaQuery()
|
||||
.eq(PlayCommodityAndLevelInfoEntity::getCommodityId, child.getId())
|
||||
.eq(PlayCommodityAndLevelInfoEntity::getLevelId, ApiTestDataSeeder.DEFAULT_CLERK_LEVEL_ID)
|
||||
@@ -266,6 +267,7 @@ class PlayCommodityInfoApiTest extends WxCustomOrderApiTestSupport {
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(jsonPath("$.code").value(200));
|
||||
|
||||
ensureTenantContext();
|
||||
PlayCommodityInfoEntity updated = commodityInfoService.getById(child.getId());
|
||||
assertThat(updated.getAutomaticSettlementDuration())
|
||||
.isEqualTo(AutomaticSettlementPolicy.TEN_MINUTES.getSeconds());
|
||||
|
||||
Reference in New Issue
Block a user