Go to file
caoqianming 45c61efdc6 fix:发货编号获取接口number_out_last兼容无横杠格式避免明细重复编号
number_out_last原按"前缀-数字"(带横杠)查询,LIKE prefix-%对无横杠
编号(如FS01/FS00025)命中0行返回null,前端遂每次从头重编导致同一
草稿明细出现重复对外编号。改为:
- LIKE去横杠(prefix%),用substring(...)~^[0-9]+$约束前缀后紧跟纯数字,
  既命中FS00025又排除FSM00027等更长前缀
- 按尾部数字数值排序取最大,避免补零位数不一致时取错
- lstrip(prefix)改为re.sub取尾部数字,与前端提取逻辑一致

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 13:25:12 +08:00
.claude/commands chore: 添加 release slash command 与 .claude 目录约定 2026-04-29 14:28:49 +08:00
apps fix:发货编号获取接口number_out_last兼容无横杠格式避免明细重复编号 2026-07-16 13:25:12 +08:00
config feat: base 将配置文件放到单独的config文件夹中防止误操作 2025-04-23 12:39:16 +08:00
docs feat: 开始添加设备管理模块 2023-05-22 15:55:32 +08:00
log vsc远程文件权限修改 2022-05-04 10:04:20 +08:00
media/default feat:恢复ichat 功能和 defaut 下的文件 2026-03-13 16:59:12 +08:00
out_service fix: 处理PG 连接泄漏隐患 2026-06-18 10:22:21 +08:00
scripts perf:大批计算提速与回刷脚本增强 2026-07-14 11:34:08 +08:00
server release: 3.1.2026071608 2026-07-16 08:05:16 +08:00
.gitignore chore: 添加 release slash command 与 .claude 目录约定 2026-04-29 14:28:49 +08:00
changelog.md release: 3.1.2026071608 2026-07-16 08:05:16 +08:00
manage.py vsc远程文件权限修改 2022-05-04 10:04:20 +08:00
requirements.txt feat: 固定依赖包 2026-01-08 10:40:00 +08:00
ruff.toml feat: mgroup 关联process 2023-09-27 09:37:57 +08:00
update_changelog.sh release: 3.1.2026031316 2026-03-13 16:40:12 +08:00