创建两条固定字符前缀相同的自动编码规则均成功保存, 但使用第二个规则生成编码时出现恒报「编码生成失败」

作者: dadiyang创建于 2026年9月26日更新于 2026年9月26日

The code is the prefix (fixed character segment concatenation) plus the serial number; the serial number is independent for each rule (Redis "mes:md:auto_code:{ruleId}"), and the check for duplication during generation ("selectByResult" in MesMdAutoCodeRecordMapper) is performed on the entire table without the prefix.

内容来源: YunaiV/ruoyi-vue-pro