gaoluyang
12 小时以前 e40a608ef9bf51db294d8eefada6a8e2e80cebca
fix(mdm): 物料列表改按物料编码排序

- 分页排序去掉先按物料分类(category_id)分组,改为纯按物料编码 code 升序;原来同一分类的物料才挨在一起,跨分类看编码是乱序
- 配套数据调整:mdm_item 创建时间已按编码顺序重排,仅落在 2026-09-17 / 09-18 两天(改前快照见 backups/mom-hm-mdm-item-create-time-20261015/)

Co-Authored-By: Claude Code <noreply@anthropic.com>
已修改1个文件
2 ■■■■■ 文件已修改
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/item/MdmItemMapper.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/item/MdmItemMapper.java
@@ -30,7 +30,7 @@
                .eqIfPresent(MdmItemDO::getBrandId, reqVO.getBrandId())
                .eqIfPresent(MdmItemDO::getStatus, reqVO.getStatus())
                .betweenIfPresent(MdmItemDO::getCreateTime, reqVO.getCreateTime())
                .orderByAsc(MdmItemDO::getCategoryId)
                // 列表按物料编码排序(原来先按物料分类分组再按编码,同一分类的物料才排在一起,跨分类看编码是乱序的)
                .orderByAsc(MdmItemDO::getCode));
    }