feat(京东数据库): 撤销按公司隔离回归全平台共享采集池+后管商品目录改京东平台类目平铺
客户口径(2026-11-26):「采集的数据可以重复被操作分类,大家一起采集,但分类后的 数据就自己看,所以会有数据副本」「被分类后按组 id 绑定拷贝数据副本,原来的数据 也要留着」。 - 可见口径:商品行全平台共享(2026-11-23 的按公司隔离整批撤销),读侧撤 companyId 谓词(列表/类目下拉/候选店铺/详情/导出),写侧撤 assertRowsInCompany 行级公司闸——越权由端点级 requireJdProductWrite(仅平台超管+公司超管)兜住。 「副本」落在 V203 归属行上:同一商品可多组各一条 owner_group_id,分类列/分类 筛选各看各的;原商品行一条不删不藏,别组分过类的在本组仍显示未分类、可再分。 - 用户端选品 pageInScope 不再按 companyId 收窄(只认可见分组下的归属行)。 - 后管左栏「商品目录」:授权类目树/内置花屿巷快照退役,改为 /categories 的 category_path 平铺(末级类目名+商品数),点行=末级名等值过滤;删 jd-category-tree.ts / jd-shop-category-api.ts 及其测试,JdDatabasePage 不再取树。 - 判据:AdminJdProductControllerTest 34、JdProductMapperSqlTest 5、 JdGroupShopServiceTest 10、JdProductQueryServiceUserPageTest 7 全绿; 后管 node --test 1963/vitest 250/vue-tsc rc=0。
This commit is contained in:
@@ -34,10 +34,6 @@ import {
|
||||
jdOwnershipSelectValue,
|
||||
toJdProductListParams,
|
||||
} from '../src/pages/jd/jd-product-filter.ts'
|
||||
import {
|
||||
jdCategoryChildren,
|
||||
jdCategoryRoots,
|
||||
} from '../src/pages/jd/jd-category-tree.ts'
|
||||
import {
|
||||
JD_PRODUCT_DEFAULT_SIZE,
|
||||
jdPriceRange,
|
||||
@@ -46,20 +42,6 @@ import {
|
||||
toJdProductItem,
|
||||
} from '../src/pages/jd/jd-product-model.ts'
|
||||
|
||||
test('类目级联静态导航树——服饰内衣二级与京麦面板样本逐字同源,一级集非空且无重名', () => {
|
||||
// 京麦面板真机样本(2026-11-16 客户截图):服饰内衣下就是这五个二级,改名即红。
|
||||
assert.deepEqual(jdCategoryChildren(['服饰内衣']).map(node => node.name), ['服饰配件', '内衣', '女装', '男装', '定制服装/工装'])
|
||||
assert.deepEqual(jdCategoryChildren(['不存在的类目']), [], '未知一级回落空子级(面板不出第二栏)')
|
||||
|
||||
const roots = jdCategoryRoots().map(node => node.name)
|
||||
assert.deepEqual(roots, ['服饰内衣', '母婴', '运动户外'], '一级导航与京麦授权类目一致')
|
||||
assert.equal(new Set(roots).size, roots.length, '一级类目名不得重复')
|
||||
for (const root of roots) {
|
||||
const children = jdCategoryChildren([root]).map(node => node.name)
|
||||
assert.equal(new Set(children).size, children.length, `${root} 的二级不得重复`)
|
||||
}
|
||||
})
|
||||
|
||||
test('京东列表参数——snake 形状:keyword/店铺/价格下发,旧编码标题两框停发、日期空白/非法不下发', () => {
|
||||
const full = toJdProductListParams(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user