## 3.1.2026072713

- fix: 问题修复
  - unify workflow action permissions [caoqianming]
- other: 其他变更
  - docs: record Codex context migration plan [caoqianming]
  - docs: migrate project memory for Codex [caoqianming]
  - docs: add factory release skill [caoqianming]
  - docs: add Codex project instructions [caoqianming]
  - docs: design Claude to Codex context migration [caoqianming]
## 3.1.2026072316

- feat: 新增功能
  - 单个编号规则支持c_day按天占位与按天归零;并发生成加工序级advisory锁防重号;流水号宽度按规则解析并对齐排序截取;超上限报错;工序保存时校验编号规则 [caoqianming]
## 3.1.2026072309

- feat: 新增功能
  - 工艺路线Route创建/更新时未指定输出物料且工艺包无产品直接报错,不再静默生成残缺工序;补material_in_type字段供画布按物料真实类型着色 [caoqianming]
  - 工艺路线新增validate接口,供拖拽画布实时校验DAG结构(不存盘,返回valid/error) [caoqianming]
  - 物料新增入库检验方式test_mode_in(免检/必检,默认必检),生产领料检验卡点支持物料级免检,明细过滤器支持material__test_mode_in [caoqianming]
- other: 其他变更
  - docs:新增优化算法切入点分析(排产/补货/合批/装箱等可优化环节盘点) [caoqianming]
## 3.1.2026071614

- feat: 新增功能
  - 合格B类字段前端文案改为"记为合格"更准确表达 [caoqianming]
- fix: 问题修复
  - 发货编号获取接口number_out_last兼容无横杠格式避免明细重复编号 [caoqianming]
- other: 其他变更
  - perf:mlog/handover/mlogb列表消除N+1,select_related精简改prefetch,修Handover.handoverb属性绕过prefetch的bug [caoqianming]
  - 车间库存列表补齐关联字段select_related,消除剩余N+1 [caoqianming]
  - perf:销售发货批次隐藏可发数量为0的批次,并用子查询消除在途量N+1 [caoqianming]
## 3.1.2026071608

- feat: 新增功能
  - 物料新增set_safe接口设置安全库存上下限 [caoqianming]
  - 新增物料安全库存上限字段并支持仓库数量汇总报表 [caoqianming]
  - correct_zt_gxerp逐批打印计算结果 [caoqianming]
  - 出入库明细创建/导入时未传单价自动取物料主数据单价 [caoqianming]
  - batchst接口支持with_zt_big附带直通大批数据及zt_batch过滤 [caoqianming]
  - 拆批/报工改号提交时纯继承zt_batch归属 [caoqianming]
  - 新增直通良率专用回刷脚本correct_zt_gxerp [caoqianming]
  - 批次统计新增大批直通良率(gxerp) [caoqianming]
  - wpr/cquery返回子工序的使用设备 [shijing]
  - feat(cm): 新增大族激光打标机(Hanslaser)单件打标接口 [caoqianming]
  - feat(hrm): 完善员工导入导出 [zty]
  - get_tyy_data单独处理 [shijing]
  - feat(cd): get_tyy_data 支持并行获取维视智造SVS识别字符 [caoqianming]
  - feat(cd): out_service/cd.py 支持任意 host:port, 去掉 IP 白名单 [caoqianming]
  - send_to_coder 支持传入 coder_jobname 切换喷码机信息模板 [caoqianming]
  - wpm/mloguser返回设备名称 [shijing]
  - send_to_coder 统一走 CQI+JDI 队列, 单/批共用 tdata_list [caoqianming]
  - 写指令也短读0.3s捕获机器的ERR回包 [caoqianming]
  - 重写喷码通讯为伟迪捷1880 ASCII协议, 配置改由前端传入 [caoqianming]
  - 简化打码器 [caoqianming]
  - 修改光芯bug [TianyangZhang]
  - 标签模板增加打码器用户区配置, 支持同一信息内切换码型 [caoqianming]
  - mlog 提交支持 clear_defect，合格 B 类与合格品合并入库 [caoqianming]
  - 合批支持 clear_defect，合格品多 defect 合批后置空 [caoqianming]
  - mioitem 返回 defect/defect_name/okcate 并优化 mio 详情 items 序列化 [caoqianming]
  - inm 生产领料/入库支持带 defect 物料并按 okcate 推导 state [caoqianming]
  - cm 新增 1000 系列喷码机网口下发接口 [caoqianming]
  - mlog/mlogb 列表返回 wm_in 状态及缺陷标识 [caoqianming]
  - mlogb 列表返回 wm_in 缺陷标识 [caoqianming]
- fix: 问题修复
  - 销售发货获取编号number_out_last参数绑定错误导致500 [caoqianming]
  - 归属解析支持多级拆批爬链与未拆批直检大批 [caoqianming]
  - 白料回溯访问上限降为300 [caoqianming]
  - 白料回溯记忆化+访问上限, 入库兜底汇总原料性入库 [caoqianming]
  - 20260702光子科技开发测新修改,api/qm/ptest中testitem_name获取test_user.name [shijing]
  - 处理PG 连接泄漏隐患 [shijing]
  - 库存出入库记录mioitems创建时可以多选批次 [shijing]
  - fix(hrm): 导入部门改为仅新增必填，修复更新被拦截 [zty]
  - get_tyy_data返回数据 [shijing]
  - get_tyy_data方法调整 [shijing]
  - 喷码时偶尔出现不属于队列项的调整 [shijing]
  - 移除mlogbw pre_info [shijing]
  - pre_info可为空 [shijing]
  - 工装调整 [shijing]
  - wpr更新添加pre_info字段 [shijing]
  - 锁定 MIO 行，防止多人同时撤销不同明细时并发漏删 MIO,若该出入库记录已无明细，自动删除 [shijing]
  - 禅道413 [shijing]
  - 1880 无参查询指令(GST/GFT/GJD)去掉多余的 ' [']
  - 移除LabelTemplate不必要的字段 [caoqianming]
  - 工序添加clear_defect [shijing]
  - 分支提交测试 [shijing]
  - mlog 撤回后回退 utask 已提交状态避免无法删除 [caoqianming]
  - LabelTemplate 序列化器允许 coder_ip 为空字符串/null [caoqianming]
  - 撤回 is_fix 日志时兜底清理误带入的继承缺陷 [caoqianming]
  - is_fix 日志不再继承输入物料的缺陷标识 [caoqianming]
## 3.1.2026042912

- feat: 新增功能
  - mio 列表接口新增 total_price 返回明细金额合计 [caoqianming]
  - handover移除search包含id [caoqianming]
  - shift 视图改为完整 CRUD 以支持班次管理页 [caoqianming]
  - enm 修改重跑能源计算 不用从mplogx 开始计算 [TianyangZhang]
  - 光芯科技 主要修改采购功能 [TianyangZhang]
  - add contract settlement workflows [caoqianming]
  - batch_bxerp添加子工序操作人 [caoqianming]
  - 修改 hrm & rpm 代码 [TianyangZhang]
  - 修改光芯人员导入功能 [TianyangZhang]
- fix: 问题修复
  - 批次统计修复小/大日期反向并增强除零兜底 [caoqianming]
  - mlogdefect 空列表时仍同步继承缺陷 [caoqianming]
  - 重建wpr [caoqianming]
## 3.1.2026033008
- feat: 新增功能
  - WMaterialViewSet 添加手动来料创建和删除接口 [caoqianming]
  - Ptest添加中温粘度规格和结论字段 [caoqianming]
  - WMaterialViewSet 添加手动创建和删除接口 [caoqianming]
  - 修改光芯OA审批的BUG与新增导出功能 [TianyangZhang]
  - 恢复ichat 功能和 defaut 下的文件 [TianyangZhang]
- fix: 问题修复
  - WMaterialCreateSerializer 所有字段设为必填 [caoqianming]
## 3.1.2026031316
- feat: 新增功能
  - 删除-ichat [TianyangZhang]
  - mpr-物资管理模块（申购单、入库单、物料库存、领用记录） [TianyangZhang]
  - hrm-人员合同变更 [TianyangZhang]
  - hrm-migration 修改迁移文件 [TianyangZhang]
  - qctmat create update 校验唯一 [caoqianming]
  - gx-hrm-employee 人员导入功能 [TianyangZhang]
  - hrm-views 修改employee 人员导入 [TianyangZhang]
  - hrm-employee 增加人员导入功能 [TianyangZhang]
  - fmlog返回route_material_in [caoqianming]
  - 加工前不良当合格品处理 [caoqianming]
  - hrm - 修改 人员调岗后更新部门和岗位 [TianyangZhang]
  - 人员调岗申请 修改 [TianyangZhang]
  - hrm-新增人员岗位调动 [TianyangZhang]
  - wmaterial根据current_merged查询3 [caoqianming]
  - wmaterial根据current_merged查询2 [caoqianming]
  - wmaterial根据current_merged查询 [caoqianming]
  - handoverb添加oinfo_json字段 [caoqianming]
  - base user增加has_perm筛选条件 [caoqianming]
  - base 升级后同步数据库 [caoqianming]
  - 光子添加工段数据统计 [caoqianming]
  - with_source_near筛选体现在swagger里 [caoqianming]
  - base 调整asgi导入以保证正常启动 [caoqianming]
  - wpr 返回wpr_from_ [caoqianming]
  - base cquery支持add_info_for_list [caoqianming]
  - wpr 添加筛选条件wpr_from [caoqianming]
  - wpr_bxerp优化 [caoqianming]
  - 未有ftest的也触发单个统计 [caoqianming]
  - 交接记录子项需保证工段/车间一致2 [caoqianming]
  - 交接记录子项需保证工段/车间一致 [caoqianming]
  - mlog 并发优化 [caoqianming]
  - handover可以查看仅交接到车间的记录 [caoqianming]
  - handover_revert 并发优化 [caoqianming]
  - handover_submit 并发优化2 [caoqianming]
  - handover_submit 并发优化 [caoqianming]
  - base 添加locked_get_or_create [caoqianming]
  - 查询-n批次从正则改用like以优化性能 [caoqianming]
  - 固定依赖包 [caoqianming]
  - 升级依赖包 [caoqianming]
- fix: 问题修复
  - avoid duplicate rows in complex reverse queries [caoqianming]
  - base user_exist完善 [caoqianming]
  - batchst支持返回source_near修复 [caoqianming]
  - base complexquerymixin支持add_info_for_list [caoqianming]
  - base locked_get_or_create优化 [caoqianming]
  - mlog并发优化的bug [caoqianming]
## 3.0.2026010716
- feat: 新增功能
  - get_shift需要报错 [caoqianming]
  - 添加rem模块 [caoqianming]
  - 捕获除0异常 [caoqianming]
  - 按需求修改光芯批次统计分析 [caoqianming]
  - 批次统计数据支持返回source_near [caoqianming]
  - 光芯OA 审批系统新增报价单审核 [TianyangZhang]
  - get_batch_dag还是只返回直接前后级别 [caoqianming]
  - mlogbbpatch修改批次号 [caoqianming]
  - 出入库记录返回子表部分信息 [caoqianming]
  - 统一撤回和撤销的表述 [caoqianming]
  - 车间库存检验支持撤回 [caoqianming]
  - wpr添加material_name查询条件 [caoqianming]
  - 优化mlog_submit 返工后产品放在本工段下 [caoqianming]
  - mlogbin qct 可依据fix选择 [caoqianming]
  - base dept filter支持parent isnull查询 [caoqianming]
- fix: 问题修复
  - wpr list annotate明确number指向 [caoqianming]
  - 正常交接支持new_wm且支持不合格品 [caoqianming]
## 3.0.2025122514
- feat: 新增功能
  - mlogbw patch权限 [caoqianming]
  - 固定资产入库流程apply [caoqianming]
  - resignation ticket存入employee_name [caoqianming]
  - 新增人员交接单及其修改 人员交接时候反存校验 [TianyangZhang]
  - asm assetlogcreate [caoqianming]
  - base 提交时可变动工单title [caoqianming]
  - 车间库存支持传入count_all [caoqianming]
  - wmaterial search时去除material__number [caoqianming]
  - base ticketmixin 修改 ”perform_update“ bug [TianyangZhang]
  - wmaterial添加mlog_date_start筛选条件 [caoqianming]
  - 新增hrm --人员交接表 [TianyangZhang]
  - asm初步接口 [caoqianming]
  - base userfilter获取归属于该部门及以下部门的人 [caoqianming]
  - 玻纤添加mioitemw检验导入表 [caoqianming]
  - 修改mioitemw test的导入逻辑 [caoqianming]
  - 光子六车间批次生产合格率修改 [caoqianming]
  - 取消handover_submit无用校验 [caoqianming]
  - 合批时校验批次是否已存在 [caoqianming]
  - routepack删除时做一下校验 [caoqianming]
  - 维修记录初步完成 [caoqianming]
  - base ticketmixin传入other_data [caoqianming]
  - base 模板字段改为textfield [caoqianming]
  - 删除asm同步文件 [caoqianming]
  - 修改hrm/urls --EMPneed [TianyangZhang]
  - 新增模块固定资产 asm [TianyangZhang]
  - 添加员工需求表 [caoqianming]
  - route接口增加按product获取总图 [caoqianming]
  - base wf增加ticket_count接口添加分类 [caoqianming]
  - validate_dag检查检查未到达的物料 [caoqianming]
  - 自动生成物料的逻辑优化 [caoqianming]
  - cal_x_task_count默认使用target_quantity [caoqianming]
  - base wf 捕获expr is None的错误 [caoqianming]
  - validate_dag增加传入参数 [caoqianming]
  - 改版交接支持拆合批 [caoqianming]
  - translate_eval_formula 打印报错信息 [caoqianming]
  - base 优化safe_get_or_create [caoqianming]
  - base 增加statedetailserializer可返回节点操作人员 [caoqianming]
  - 获取batchlog dag数据支持临近节点返回 [caoqianming]
  - base ticket create支持transition非必传 [caoqianming]
  - 供应商审核通过后即可添加供应商 [caoqianming]
  - 校验SupplierAudit供应商名称已存在 [caoqianming]
  - material list filter low_inm优化 [caoqianming]
  - material list 如需获取库存数据需指定传参 [caoqianming]
  - 添加部分索引 [caoqianming]
  - base ticket create支持transition非必传 [caoqianming]
  - 供应商审核通过后即可添加供应商 [caoqianming]
  - 校验SupplierAudit供应商名称已存在 [caoqianming]
  - material list filter low_inm优化 [caoqianming]
  - material list 如需获取库存数据需指定传参 [caoqianming]
  - 添加部分索引 [caoqianming]
  - srm -model-Papersecret 增加 organization 申请部门字段 [TianyangZhang]
  - 优化mlogbw list接口速度 [caoqianming]
  - srm-patent修改字段类型 [TianyangZhang]
  - resignation添加ticketrelate_name [caoqianming]
  - base get_object加锁时注意is_deleted过滤采用base_manager [caoqianming]
  - base wf 调用方法支持静态方法 [caoqianming]
  - mlogbw关于wpr的校验修改以支持手动新增 [caoqianming]
  - resignatioin提交时调用的方法 [caoqianming]
  - ResignationSerializer create bug [caoqianming]
  - base ticketmixin添加ticket_auto_submit_on_create [caoqianming]
  - resignation添加ticketMixin [caoqianming]
  - base wfmixin 修改时校验 [caoqianming]
  - base ticketDetail添加create_by_name [caoqianming]
  - 短信发送功能未开启 [caoqianming]
  - 批次号格式错误的校验 [caoqianming]
  - mioitemcreate时接收count_send [caoqianming]
  - mioitemw增加筛选条件 [caoqianming]
  - wpr_bxerp优化mlogbw的获取 [caoqianming]
  - do_out报错更明确 [caoqianming]
  - 优化ana batchwork [caoqianming]
  - 改版交接支持new_wm [caoqianming]
  - ofm-models borrowRecord 增加借阅数量 [TianyangZhang]
  - ofm-models  fix bug [TianyangZhang]
  - feat : ofm -vehicle fix bug [TianyangZhang]
  - ofm 修改车辆model 字段 [TianyangZhang]
  - ofm-service  fix bug [TianyangZhang]
  - feat：ofm-service 修改 bug [TianyangZhang]
  - ofm -修改 view 字段 [TianyangZhang]
  - ofm 修改 ofm 字段 并重新生成迁移文件 [TianyangZhang]
  - base workflow添加分类字段 [caoqianming]
  - ofm-views 修改 车辆字段 [TianyangZhang]
  - ofm-vehicle 修改车辆审批申请 改完按时间段进行选择 [TianyangZhang]
  - mioitem添加count_send字段 [caoqianming]
  - 校验改版时选择的改版物料 [caoqianming]
  - 导入物料明细支持直接从名称等匹配 [caoqianming]
  - 增强新批次号校验 [caoqianming]
  - 提供修改编号的接口 [caoqianming]
  - supplieraudit采用新工作流挂载方式 [caoqianming]
  - base 添加ticketmixin可集成到viewset下以支持工作流 [caoqianming]
  - base 可跳过短信发送 [caoqianming]
  - 反向操作时忽略明细校验 [caoqianming]
  - 拦截new_batch的错误 [caoqianming]
  - fix 修改 srm 的 views [TianyangZhang]
  - base wfservice创建出工单时处理人为提交人 [caoqianming]
  - feat：srm fix serializer [TianyangZhang]
  - base handle_ticket 完善transition校验 [caoqianming]
  - DatasetRecord添加filter [caoqianming]
  - handover添加selectfield [caoqianming]
  - 交接记录返回material_changed_fname [caoqianming]
  - 改版交接必须为合批操作 [caoqianming]
  - base 创建数据时检验不包含id2 [caoqianming]
  - fix srm serializer [TianyangZhang]
  - srm-service 去掉 platform  belong_dept [TianyangZhang]
  - add new model platform '平台审批' [TianyangZhang]
  - base 创建数据时检验不包含id [caoqianming]
  - 添加供应商审核 [caoqianming]
  - base 开始编写ticketMixin可自动挂载 [caoqianming]
  - ResignationSerializer返回employee_id_number [caoqianming]
  - base 添加EuModelViewSet [caoqianming]
  - 离职申请支持删除 [caoqianming]
  - Resignationserializer返回employee_name [caoqianming]
  - base handle_ticket 默认参数 [caoqianming]
  - 优化bind_resignation [caoqianming]
  - base 优化wf create [caoqianming]
  - ResignationViewSet添加RetrieveModelMixin [caoqianming]
  - bind_resignation bug [caoqianming]
  - 返回TicketSimpleSerializer [caoqianming]
- fix: 问题修复
  - repair swaggger显示问题 [caoqianming]
  - 修改 ofm - vehicle 中的出发里程 [TianyangZhang]
  - handoverserializer 关于new_wm的处理 [caoqianming]
  - handovermerge时new_state未定义 [caoqianming]
  - 修改印章申请binging_seal [TianyangZhang]
  - update_mb_item时考虑检验的存在 [caoqianming]
  - hrm-用人需求修改标题模板 [TianyangZhang]
  - 先调整asm以启动服务 [caoqianming]
  - do_in bug [caoqianming]
  - base ticketmixin先创建再handle [caoqianming]
  - fix ：修改提交审批报错 RelatedManager' object has no attribute 'belong_dept [TianyangZhang]
  - fix : srm 修改 paperrecord 字段 cor_author 字段类型 [TianyangZhang]
  - fix：srm 修改论文审批 反存 论文台账 主要修改model 字段类型 [TianyangZhang]
  - srm 修改专利台账 [TianyangZhang]
  - base wfmixin gen_ticket_data保存t_id转为str [caoqianming]
  - fix : 修改ofm -views -vehicle && services [TianyangZhang]
  - format_json_with_placeholders 处理decimal [caoqianming]
  - base wf工作流分类接口detail错误 [caoqianming]
  - do_in 可直接取用wm [caoqianming]
  - material get_queryset忘记return qs [caoqianming]
  - material增加count__gt等查询条件 [caoqianming]
  - mioitem create时校验是否混批的bug [caoqianming]
  - base handle_ticket处理ticket_title [caoqianming]
  - bind_resignation bug [caoqianming]
  - clean_data关于material的处理 [caoqianming]
## 3.0.2025120109
- feat: 新增功能
  - 供应商审核通过后即可添加供应商 [caoqianming]
  - 校验SupplierAudit供应商名称已存在 [caoqianming]
  - material list 如需获取库存数据需指定传参 [caoqianming]
  - 添加部分索引 [caoqianming]
  - srm -model-Papersecret 增加 organization 申请部门字段 [TianyangZhang]
  - 优化mlogbw list接口速度 [caoqianming]
  - srm-patent修改字段类型 [TianyangZhang]
  - resignation添加ticketrelate_name [caoqianming]
  - base get_object加锁时注意is_deleted过滤采用base_manager [caoqianming]
  - base wf 调用方法支持静态方法 [caoqianming]
  - mlogbw关于wpr的校验修改以支持手动新增 [caoqianming]
  - resignatioin提交时调用的方法 [caoqianming]
  - ResignationSerializer create bug [caoqianming]
  - base ticketmixin添加ticket_auto_submit_on_create [caoqianming]
  - resignation添加ticketMixin [caoqianming]
  - base wfmixin 修改时校验 [caoqianming]
  - base ticketDetail添加create_by_name [caoqianming]
  - 短信发送功能未开启 [caoqianming]
  - 批次号格式错误的校验 [caoqianming]
  - mioitemcreate时接收count_send [caoqianming]
  - mioitemw增加筛选条件 [caoqianming]
  - wpr_bxerp优化mlogbw的获取 [caoqianming]
  - do_out报错更明确 [caoqianming]
  - 优化ana batchwork [caoqianming]
  - 改版交接支持new_wm [caoqianming]
  - ofm-models borrowRecord 增加借阅数量 [TianyangZhang]
  - ofm-models  fix bug [TianyangZhang]
  - feat : ofm -vehicle fix bug [TianyangZhang]
  - ofm 修改车辆model 字段 [TianyangZhang]
  - ofm-service  fix bug [TianyangZhang]
  - feat：ofm-service 修改 bug [TianyangZhang]
  - ofm -修改 view 字段 [TianyangZhang]
  - ofm 修改 ofm 字段 并重新生成迁移文件 [TianyangZhang]
  - base workflow添加分类字段 [caoqianming]
  - ofm-views 修改 车辆字段 [TianyangZhang]
  - ofm-vehicle 修改车辆审批申请 改完按时间段进行选择 [TianyangZhang]
  - mioitem添加count_send字段 [caoqianming]
  - 校验改版时选择的改版物料 [caoqianming]
  - 导入物料明细支持直接从名称等匹配 [caoqianming]
  - 增强新批次号校验 [caoqianming]
  - 提供修改编号的接口 [caoqianming]
  - supplieraudit采用新工作流挂载方式 [caoqianming]
  - base 添加ticketmixin可集成到viewset下以支持工作流 [caoqianming]
  - base 可跳过短信发送 [caoqianming]
  - 反向操作时忽略明细校验 [caoqianming]
  - 拦截new_batch的错误 [caoqianming]
  - fix 修改 srm 的 views [TianyangZhang]
  - base wfservice创建出工单时处理人为提交人 [caoqianming]
  - feat：srm fix serializer [TianyangZhang]
  - base handle_ticket 完善transition校验 [caoqianming]
  - DatasetRecord添加filter [caoqianming]
  - handover添加selectfield [caoqianming]
  - 交接记录返回material_changed_fname [caoqianming]
  - 改版交接必须为合批操作 [caoqianming]
  - fix srm serializer [TianyangZhang]
  - srm-service 去掉 platform  belong_dept [TianyangZhang]
  - add new model platform '平台审批' [TianyangZhang]
  - base 创建数据时检验不包含id [caoqianming]
  - 添加供应商审核 [caoqianming]
  - base 开始编写ticketMixin可自动挂载 [caoqianming]
  - ResignationSerializer返回employee_id_number [caoqianming]
  - base 添加EuModelViewSet [caoqianming]
  - 离职申请支持删除 [caoqianming]
  - Resignationserializer返回employee_name [caoqianming]
  - base handle_ticket 默认参数 [caoqianming]
  - 优化bind_resignation [caoqianming]
  - base 优化wf create [caoqianming]
  - ResignationViewSet添加RetrieveModelMixin [caoqianming]
  - bind_resignation bug [caoqianming]
  - 返回TicketSimpleSerializer [caoqianming]
- fix: 问题修复
  - fix : srm 修改 paperrecord 字段 cor_author 字段类型 [TianyangZhang]
  - fix：srm 修改论文审批 反存 论文台账 主要修改model 字段类型 [TianyangZhang]
  - srm 修改专利台账 [TianyangZhang]
  - base wfmixin gen_ticket_data保存t_id转为str [caoqianming]
  - fix : 修改ofm -views -vehicle && services [TianyangZhang]
  - format_json_with_placeholders 处理decimal [caoqianming]
  - base wf工作流分类接口detail错误 [caoqianming]
  - do_in 可直接取用wm [caoqianming]
  - material get_queryset忘记return qs [caoqianming]
  - material增加count__gt等查询条件 [caoqianming]
  - mioitem create时校验是否混批的bug [caoqianming]
  - base handle_ticket处理ticket_title [caoqianming]
  - bind_resignation bug [caoqianming]
  - clean_data关于material的处理 [caoqianming]
## 3.0.2025110710
- feat: 新增功能
  - material count字段完全由计算可得 [caoqianming]
  - 移除material count字段 [caoqianming]
  - revert_and_del时触发物料统计 [caoqianming]
  - ofm-serializer borrow_file 修改 [TianyangZhang]
  - 添加离职记录表 [caoqianming]
  - ofm-models vehicle 修改model 字段类型 [TianyangZhang]
  - srm -add models 平台审批表 [TianyangZhang]
  - srm 修改接口信息 [TianyangZhang]
  - srm 增加论文台账接口 [TianyangZhang]
  - srm 修改serializer [TianyangZhang]
  - 优化gen_number_with_rule的m_model的校验 [caoqianming]
  - srm 修改 views [TianyangZhang]
  - srm 修改models [TianyangZhang]
  - srm -views 修改patentrecord 的 搜索字段 [TianyangZhang]
  - ofm-models 修改model 字段 [TianyangZhang]
  - ofm-views 修改视图集名称 [TianyangZhang]
  - check_wpr_number 优化 [caoqianming]
  - fix enm-models 修改 enm 字段 [TianyangZhang]
  - 编号生成后在提交时进行校验 [caoqianming]
  - gen_number_with_rule 添加校验 [caoqianming]
  - base clean_timescaledb_job_his 优化2 [caoqianming]
  - base execute_raw_sql 增加timeout参数可传none不限时 [caoqianming]
  - base clean_timescaledb_job_his 优化 [caoqianming]
  - base execute_raw_sql 增加timeout参数 [caoqianming]
  - base clean_timescaledb_job_his [caoqianming]
  - feat : ofm-models 修改字段 [TianyangZhang]
  - ofm-models 修改字段 [TianyangZhang]
  - 执行数据库备份时排除指定超表 [caoqianming]
  - backup_database 使用 sudo -u postgres [caoqianming]
  - ofm-models 修改专利patent 字段 [zty]
  - ofm-models 修改专利model patentInfo 字段 [zty]
  - mio 添加查询条件 [caoqianming]
  - mloguser添加字段 [caoqianming]
  - 修改mroombooking表约束 [caoqianming]
  - base 获取流转时排序按attribute_type倒序 [caoqianming]
  - base workflow添加view_path2字段 [caoqianming]
  - ofm-services 修改绑定反存的接口 [zty]
  - base 获取流转时排序按attribute_type2 [caoqianming]
  - base 获取流转时排序按attribute_type [caoqianming]
  - ofm-views 修改文件列表排序 [zty]
  - ofm-BorrowRecord - 档案借阅反存ticket-data [zty]
  - ofm-service-vehicle 用车管理反存 实际归还里程树 [zty]
  - ofm-service 反向存储ticket_data 到 Lendingseal [zty]
  - mio增加筛选条件inout_date [caoqianming]
  - do_out和do_in在处理into_wm不应直接忽略 [caoqianming]
  - ofm-views 修改时间倒叙 [zty]
  - material添加create_time的排序条件 [caoqianming]
  - ofm-service-pulicity 反存ticket_data 到 obj [zty]
  - ofm-service-pulicity 反存ticket_data 到 obj [zty]
  - ofm--Alter field publicity_opinion on publicity [zty]
  - ofm-models 修改字段属性 [zty]
  - ofm-models -pulicity 修改字段属性 [zty]
  - 修改 ofm-moedels - pulicity字段为空值 [zty]
  - ofm-models 增加字段 [zty]
- fix: 问题修复
  - ftestprocess 在create和update时保持一致 [caoqianming]
  - wpr change_or_new wpr_from 配置 [caoqianming]
  - ofm- papersecret 修改论文申密的model 名字 [TianyangZhang]
  - wpr_bxerp 数据统计在mlogbw存在才继续 [caoqianming]
  - gen_number_with_rule bug [caoqianming]
  - mlogbw defect 分配 bug [caoqianming]
  - fix : ofm-models-publicity 修改记录编号自动生成 [zty]
  - work_start_time 可不填 [caoqianming]
  - handle_date和shift可传 [caoqianming]
## 2.8.2025101011
- feat: 新增功能
  - Ptest val_xj可为空 [caoqianming]
  - quick调用serializer时传入request [caoqianming]
  - ofm-修改model [zty]
  - Mroombooking添加字段 [caoqianming]
  - base add_info_for_item 可复用list逻辑 [caoqianming]
  - 添加wpr查询参数 [caoqianming]
  - base cquery支持annotate [caoqianming]
  - mroombooking 返回slots [caoqianming]
- fix: 问题修复
  - p_create_after 自动创建mlogbw时关于exclude语句导致的查询错误 [caoqianming]
## 2.8.2025092816
- feat: 新增功能
  - handover revert撤回时做校验 [caoqianming]
  - ofm-models 修改车辆表的字段信息 [zty]
  - iofm-serializer 增加ticket_ [zty]
  - 会议室预定修改 [caoqianming]
  - p_create_after 优化 [caoqianming]
  - mlog quick增加wprs_in传参 [caoqianming]
  - 车间领料时完善提示添加物料名 [caoqianming]
  - ofm-修改会议室信息 [zty]
  - 改版需提供新批次号 [caoqianming]
  - ofm 修改publicity 的model [zty]
  - 修改ofm-services.py [zty]
  - base send_sms auto_log send_mail使用False [caoqianming]
  - 优化bind_routepack [caoqianming]
  - base 优化wf通知发送 [caoqianming]
  - routepack_ticket_change 变为创建中状态 [caoqianming]
  - route增加查询条件以支持获取后续工段的信息 [caoqianming]
  - 导入物料优化一下 [caoqianming]
  - 优化的mplogxview [caoqianming]
  - base sql querydict可传入是否格式化时间参数 [caoqianming]
  - base workflow list 添加并返回view_path [caoqianming]
  - 优化handover list接口 [caoqianming]
  - 玻纤拉丝采集问题 [caoqianming]
  - base system和wf优化事务处理 [caoqianming]
  - 优化cd.py [caoqianming]
  - wpr list 返回process_name [caoqianming]
- fix: 问题修复
  - mroombooking 创建时未create_by [caoqianming]
## 2.8.2025091616
- feat: 新增功能
  - mioitem处理事务处理 [caoqianming]
  - base 移除基础model层事务 [caoqianming]
  - inm和wpm关于事务处理的修改 [caoqianming]
  - 批次的DAG数据只获取直接的上下级 [caoqianming]
  - wpm优化事务和悲观锁 [caoqianming]
  - cdview优化校验 [caoqianming]
  - base 优化get_object [caoqianming]
  - mlogbout serializer update校验mlog [caoqianming]
  - 生产日志子表全部加mlog锁 [caoqianming]
  - ofm-serializer fix [zty]
  - base 优化get_object事务 [caoqianming]
  - ofm-修改字段 [zty]
  - ofm - 档案管理修改 serializer [zty]
  - ofm-档案管理-serializer 更新 [zty]
  - wpm修改为自动事务 [caoqianming]
  - 修改wpm事务 [caoqianming]
  - wpm 取消 transaction [caoqianming]
  - base CustomGenericViewSet 添加自动事务 [caoqianming]
  - ofm-修改  -档案借 filterset_class [zty]
  - ofm 增加档案台账模糊查询 [zty]
  - 默认提交时间为结束时间 [caoqianming]
  - 快速报工的bug [caoqianming]
  - base 日志默认记录耗时大于2s的 [caoqianming]
  - ofm 增加档案台账 [zty]
  - mlog submit/revert 改用乐观锁 [caoqianming]
  - ofm 修改车辆model [zty]
  - ofm 修改 车辆model [zty]
  - wpr list 返回wm_material_ofrom_name [caoqianming]
  - wpr list 返回wm_material_name [caoqianming]
  - wpr list 返回material_start_name [caoqianming]
  - vehicle 增加serializer 返回字段 [zty]
  - wpr list返回batch [caoqianming]
  - 增加wpr tag查询条件以支持todo等 [caoqianming]
  - 修改车辆的字段 [zty]
  - ofm 车辆管理迁移文件 [zty]
  - ofm 车辆审批 [zty]
  - 出入库记录和交接记录提交处理时都进行单个的强校验 [caoqianming]
  - 添加物料明细与批次不匹配的校验2 [caoqianming]
  - 添加物料明细与批次不匹配的校验 [caoqianming]
  - gen_number_with_rule 优化一下 [caoqianming]
  - handover_submit增强校验 [caoqianming]
  - mlog list 支持返回mlogbw number [caoqianming]
  - gen_number_with_rule按生产日志中的工段过滤 [caoqianming]
  - gen_number_with_rule 完善 [caoqianming]
  - 工段未配置班次提醒 [caoqianming]
  - 板段号生成逻辑修改 [caoqianming]
  - ofm-印章绑定审批修改 [zty]
- fix: 问题修复
  - wpm取消事务时出现的缩进bug [caoqianming]
  - 次批作为输入不会影响输出批次号 [caoqianming]
  - lock_and_check_can_update [caoqianming]
  - lock_and_check_can_update [caoqianming]
  - base 在create update destroy添加自动事务 [caoqianming]
  - base 修改_should_use_transaction [caoqianming]
  - 产生编号时存在bug [caoqianming]
  - 交接记录已提交不可变动 [caoqianming]
  - mlog change 导致的bug问题 [caoqianming]
  - wpr list filter bug [caoqianming]
  - 出入库记录和交接记录提交处理时都进行单个的强校验 [caoqianming]
## 2.8.2025090815
- feat: 新增功能
  - batch bxerp含缺陷统计 [caoqianming]
  - mlog list 添加update_time筛选 [caoqianming]
  - 工艺步骤中辅料使用的校验 [caoqianming]
  - mlogb添加parent isnull查询 [caoqianming]
  - 次批触发输出产生 [caoqianming]
  - 修改印章的model 和 serializer [zty]
  - 修改 ofm sevice 印章模块 [zty]
  - base 优化safe_get_or_create [caoqianming]
  - 修改ofm seal 过滤查询功能 [zty]
  - 行政管理 -印章管理 [zty]
  - ftest默认为合格 [caoqianming]
  - mlogbdefect添加count_has 字段及处理 [caoqianming]
  - update_mb_item defect处理更严谨 [caoqianming]
  - 取消最后一步产出与工艺包不一致 的校验 [caoqianming]
  - 出入库记录添加乐观锁 [caoqianming]
  - batch_bxerp考虑mlogbw_from [caoqianming]
  - mlog_submit mlogbdefect增加筛选条件 [caoqianming]
  - 导入物料明细时可默认批次号为无 [caoqianming]
  - 光芯批次统计增加班次返回 [caoqianming]
  - mlog_submit 进行操作时间校验 [caoqianming]
  - route update 时from_route存在则不可修改关键信息 [caoqianming]
  - mlogchange支持work_start_time [caoqianming]
  - route采用引用方式允许重复创建 [caoqianming]
  - MlogSerializer 处理 work_start_time 的 bug [caoqianming]
  - 修改能管采集的点位 [zty]
  - mlog work_start_time必填 [caoqianming]
  - ftestwork submit支持mb [zty]
  - toggle_state 使用 routepack.update权限 [caoqianming]
  - ftestwork支持对materialbatch检查 [caoqianming]
  - batchst返回material_start相关信息 [caoqianming]
- fix: 问题修复
  - ftestwork submit 校验wm和mb bug [caoqianming]
  - MlogbInUpdateSerializer 联动count_use 和 count_real [caoqianming]
  - batchlog batches_to 优化 [caoqianming]
## 2.7.2025082816
- feat: 新增功能
  - 添加定时任务以标记mtask为已完成 [caoqianming]
  - update_mtask 不再触发状态改变 [caoqianming]
  - 子任务提交会触发大任务提交 [caoqianming]
  - 优化mlog list查询 [caoqianming]
  - 增加直接userid获取token的接口 [caoqianming]
  - mlog 添加索引 [caoqianming]
  - 增加mlogbw start_test接口以优化批量操作 [caoqianming]
  - 优化mlogbw bulk update [caoqianming]
## 2.7.2025082616
- feat: 新增功能
  - 添加mlog和handover的锁 [caoqianming]
  - base 添加悲观锁及其装饰器 [caoqianming]
  - number_to_batch 支持结合工序 [caoqianming]
  - 物料清单的导出 [caoqianming]
  - mlogbw create 优化 [caoqianming]
  - material添加img字段 [caoqianming]
  - 过滤来料未完成的优化 [caoqianming]
  - mlog quick添加mlogb [caoqianming]
  - batch_gzerp添加库存等字段 [caoqianming]
  - check_sql_safe 优化一下 [caoqianming]
  - quick返回mlogId [caoqianming]
  - mlog submit revert支持放置到车间 [caoqianming]
  - 可根据work_start_time 推出handle_date [caoqianming]
  - MlogInitSerializer 可传入handle_date [caoqianming]
  - 去除commands命令权限 [caoqianming]
  - 交接记录在审批状态下对撤销的处理 [caoqianming]
  - base retreat 撤回功能提到wfservice里 [caoqianming]
- fix: 问题修复
  - mlogbw create 调换一下if顺序 [caoqianming]
  - base ComplexQueryMixin 默认null值排最后 [caoqianming]
## 2.7.2025081813
- feat: 新增功能
  - 导入出入库明细 [caoqianming]
  - mlogbw增加type查询区分inout [caoqianming]
  - 快速创建日志接口 [caoqianming]
  - 添加wamterial ava_qs方法 [caoqianming]
  - mlogbw添加排序以支持直接展示 [caoqianming]
  - WMaterialFilter filter tag优化 [caoqianming]
  - mlogbw添加筛选条件 [caoqianming]
  - MIOItemCreateSerializer 添加pack_index [caoqianming]
## 2.7.2025080716
- feat: 新增功能
  - MaterialBatch返回can_mio [caoqianming]
  - wpr 不做删除 [caoqianming]
  - wpr number_out_last 改为原始sql查询 [caoqianming]
  - base query_one_dict优化 [caoqianming]
  - mioitemw 返回wpr_number_out [caoqianming]
  - mlogbw返回wpr_number_out [caoqianming]
  - 获取物料的缺陷项列表 [caoqianming]
  - route添加params_json字段 [caoqianming]
  - wpr增加can_use筛选条件 [caoqianming]
  - mlog 创建和编辑时可变更team字段 [caoqianming]
  - get_qct 未有检验模板 [caoqianming]
  - ftestwork_submit 触发批次统计分析 [caoqianming]
  - 光子批次统计增加组合件信息 [caoqianming]
  - wmaterial添加筛选条件defect__isnull [caoqianming]
  - mioitem 返回信息时展示组合件信息 [caoqianming]
  - 仅合格品支持退回 [caoqianming]
## 2.7.2025080409
- feat: 新增功能
  - 出入库记录支持对子件批次 的搜索 [caoqianming]
  - 装箱字段简化 [caoqianming]
  - 支持消耗物料的检验 [caoqianming]
  - WproutSerializer 支持传入none [caoqianming]
  - assgin_number_out 支持置空 [caoqianming]
- fix: 问题修复
  - ftestwork_submit 关于不合格逻辑的bug [caoqianming]
  - mioitem 检索bug [caoqianming]
  - 销售发货时update_mb_item的bug [caoqianming]
## 2.7.2025073110
- feat: 新增功能
  - 通过fmlog查询batch [caoqianming]
  - 优化number_out_last [caoqianming]
  - MIOItem序列化器添加note [caoqianming]
  - wpr分配出库对外编号 [caoqianming]
  - 来料未完成的筛选控制物料类型为半成品、成品 [caoqianming]
  - 销售发货时可以设置对外编号 [caoqianming]
  - 物料导入模板及逻辑修改 [caoqianming]
  - mio创建时type得传入并校验 [caoqianming]
  - 支持领用出库和退还入库 [caoqianming]
  - wm todo排除repaired [caoqianming]
  - 交接记录关联审批暂不支持撤销 [caoqianming]
  - handover返回ticket_字段 [caoqianming]
  - dataset添加enabled字段 [caoqianming]
  - 支持采购退货 [caoqianming]
  - 交接记录添加审批工单 [caoqianming]
  - 批次统计分析时logerror后return [caoqianming]
  - qct增加筛选条件 [caoqianming]
  - qctmat添加字段以支持消耗物料参数填写 [caoqianming]
  - mlogbw编辑时可删除ftest [caoqianming]
  - wpr_bxerp调整 [caoqianming]
  - mlogbw返回equip相关信息 [caoqianming]
  - 批次统计分析中关于decimal的处理 [caoqianming]
  - batch_bxerp优化 [caoqianming]
  - 修改batchst data默认为dict [caoqianming]
  - 优化cd.py [caoqianming]
  - 单个统计优化 [caoqianming]
  - gx bx的批次统计添加大小日期 [caoqianming]
  - 批次统计分析重构 [caoqianming]
- fix: 问题修复
  - purout操作后续的bug [caoqianming]
  - 出入库类型错误bug [caoqianming]
  - mlogbw返回equip相关信息 [caoqianming]
## 2.7.2025071516
- feat: 新增功能
  - ftestwork添加cbatch查询条件 [caoqianming]
  - 出入库记录缺少明细不让操作 [caoqianming]
  - 光子batch统计增加大小日期 [caoqianming]
  - 导入daoru_mioitem_test单元格公式的处理 [caoqianming]
  - ftestprocess update 支持新的检测项和缺陷项 [caoqianming]
  - 数采做成单独服务 [caoqianming]
  - 测试cd [caoqianming]
  - gen_number_with_rule 偏离6小时 [caoqianming]
  - base complexquery value支持多种类型 支持isnull [caoqianming]
  - wpr 增加复杂查询接口 [caoqianming]
  - 返工不限制物料选择 [caoqianming]
  - mlog添加操作时间校验 [caoqianming]
  - 按个选入消耗时统计mlog数据 [caoqianming]
  - BatchSt.g_create取消传入check_mat [caoqianming]
  - 优化ana_wpr [caoqianming]
  - wpr_bxerp返回批号 [caoqianming]
  - 获取该批次的DAG图数据 支持仅直接关系 [caoqianming]
  - 批次追踪链优化 [caoqianming]
- fix: 问题修复
  - 生成dag时为防止边重复给edge设置ID [caoqianming]
  - batchst并发创建的处理 [caoqianming]
  - 日志多步骤导致的返工填写bug [caoqianming]
  - 正常交接收料工段与送料工段不能相同 [caoqianming]
## 2.7.2025070310
- feat: 新增功能
  - ana_wpr忽略模块导入错误 [caoqianming]
  - 生产日志返回提交人姓名 [caoqianming]
  - 正常交接收料工段与送料工段不能相同 [caoqianming]
  - handover_revert自己交给自己无需处理 [caoqianming]
  - base ticket list 添加create_by_name [caoqianming]
  - 单日志支持多工艺步骤 [caoqianming]
  - 单个统计的触发 [caoqianming]
  - wpr data字段数据库同步 [caoqianming]
  - 优化wpr change_or_new [caoqianming]
  - mlog添加cnumber查询条件 [caoqianming]
  - 出入库明细支持撤回并删除 [caoqianming]
  - batch_gxerp添加count_notok [caoqianming]
  - handover_revert尝试支持全部类型的撤回 [caoqianming]
  - batch_gxerp 添加need_inout查询条件 [caoqianming]
  - wpr添加对外编号字段 [caoqianming]
  - batch_gxerp添加count_pn_jgqbl [caoqianming]
  - ofm 完善1 [caoqianming]
  - sql查询有风险提示更完善 [caoqianming]
- fix: 问题修复
  - batch_gxerp添加count_pn_jgqbl 2 [caoqianming]
  - 光子get_alldata_with_batch 其他入库和人员获取获取错误 [caoqianming]
## 2.7.2025062414
- feat: 新增功能
  - 光子get_alldata_with_batch优化 [caoqianming]
  - 添加行政管理App [caoqianming]
  - cd 设置清空缓冲区 [caoqianming]
  - enm/service修改排班记录生成时间 [zty]
  - mlogbout单个产品不支持直接修改 [caoqianming]
  - mioitem添加material__type查询条件 [caoqianming]
## 2.6.2025062015
- feat: 新增功能
  - 增加交接撤回功能 [caoqianming]
  - mlogbin的bug [caoqianming]
  - mioitem返回mio数据添加单价字段 [caoqianming]
  - 物料增加主库位号 [caoqianming]
  - wmaterial添加can_handover字段 [caoqianming]
- fix: 问题修复
  - wpr不合格的话先save再创建wm.defect [caoqianming]
  - wpm/service 优化煤粉热值获取方式 [zty]
  - mioitem price 计算bug [caoqianming]
## 2.6.2025061715
- feat: 新增功能
  - mlogbin的编辑与mlogbout的联动 [caoqianming]
  - mlogb首次创建需要更新count_ok_full [caoqianming]
  - 支持从wpr处获取切片数 [caoqianming]
  - workchain通过线程执行 [caoqianming]
  - mlogbin 和 update时cal_count_notok cal_mlog传False [caoqianming]
  - ichat 添加workchain接口 [caoqianming]
  - 优化get_tyy_data [caoqianming]
  - batch_gxerp添加加工前缺陷 [caoqianming]
  - 增加check_sql_safe 稳定性 [caoqianming]
  - 放开出入库的物料匹配 [caoqianming]
  - 采购入库节点可复用 [caoqianming]
- fix: 问题修复
  - mlogbinupdate时的bug [caoqianming]
  - mlogserializer需要同步count_real [caoqianming]
  - cal_mlog_count_from_mlogb 需要传参触发 [caoqianming]
  - mlog 数值计算bug [caoqianming]
  - wmaterial get在传入query参数时完善can_do的逻辑 [caoqianming]
## 2.6.2025060913
- feat: 新增功能
  - inm 和 wpm添加wpr number的查询条件 [caoqianming]
  - 优化设备采集cd [caoqianming]
  - mlogb cal_count_pn_jgqbl [caoqianming]
## 2.6.2025060617
- feat: 新增功能
  - mlogbw也进行mlogb.cal_count_notok() [caoqianming]
  - 优化batches_to [caoqianming]
  - cal_count_notok 完全合格数有bug [caoqianming]
  - batch_gxerp 全工段查询 [caoqianming]
  - cd BrokenPipeError时尝试再建立连接 [caoqianming]
  - 获取到重复的缺陷项 打日志 [caoqianming]
  - can_fix 排除维修完成品 [caoqianming]
  - batchst 添加first_time isnull筛选 [caoqianming]
  - 获取first_time, last_time独立出一个方法 [caoqianming]
- fix: 问题修复
  - mlog 的cal_count_notok_full的bug [caoqianming]
  - 光芯批次统计"尺寸检验_完全合格率" [caoqianming]
  - handover_submit batches获取bug [caoqianming]
  - update_mb_item在检验时只做负数校验 [caoqianming]
  - handover_submit batches获取bug [caoqianming]
## 2.6.2025060409
- feat: 新增功能
  - 修改gen_number_with_rule 以获取的最后编号为准 [caoqianming]
  - handover拆批时校验批次号是否可用 [caoqianming]
  - 优化batches_to以达到自然排序功能及获取已指向的批次号 [caoqianming]
  - get_qct接口进行校验 [caoqianming]
  - get_tyy_data优化保持socket连接 [caoqianming]
  - wmaterial提供canfix的tag查询 [caoqianming]
  - base ComplexQueryMixin 支持order查询 [caoqianming]
- fix: 问题修复
  - 自动生成物料bug [caoqianming]
  - 优化 gen_material_out 防止自引用 [caoqianming]
  - batchst reuse_node逻辑完善 [caoqianming]
  - base 复杂查询ordering排序错误 [caoqianming]
## 2.6.2025052615
- feat: 新增功能
  - bachst添加复杂查询接口 [caoqianming]
  - base 独立出ComplexQueryMixin [caoqianming]
  - base with_children查询去除限制 [caoqianming]
  - 处理dag时返回edge更多信息 [caoqianming]
  - base 性能优化调整位置 [caoqianming]
  - 所有batch设为textfield并添加索引 [caoqianming]
  - mb添加batch查询条件 [caoqianming]
  - ana batch时等待10s [caoqianming]
  - batchst复用节点仅限mio创建的 [caoqianming]
  - 各工段批次生产进度统计 [caoqianming]
  - 导入棒管检验测试通过 [caoqianming]
  - 修改导入权限 [caoqianming]
  - enm 修改采集保存时间到秒 [zty]
  - auth1 utils enm 修改阿里云发送短信引入方式 [zty]
  - daoru棒管test [caoqianming]
  - mlog和handover添加cbatch查询条件 [caoqianming]
  - mloginit支持handle_users [caoqianming]
- fix: 问题修复
  - batchlog创建时避免回环 [caoqianming]
  - batch_gxerp 优化 [caoqianming]
  - 取消提交日志时时间校验 [caoqianming]
  - is_fix支持个到个的bug [caoqianming]
## 2.6.2025051913
- feat: 新增功能
  - batch_gxerp调整 [caoqianming]
  - qct排序支持number [caoqianming]
  - 添加变更服务器时间的接口 [caoqianming]
  - wpr detail [caoqianming]
  - mlogbw添加wpr等查询条件 [caoqianming]
  - wpr增加自动编号逻辑 [caoqianming]
  - get_tyy_data优化 [caoqianming]
  - mlog添加b_mlog__batch查询条件 [caoqianming]
## 2.6.2025051609
- feat: 新增功能
  - 车间库存不足提示更准确 [caoqianming]
  - batchst追加查询data__has_key条件 [caoqianming]
  - mlogb_summary选用need_inout为True的数据 [caoqianming]
  - equip_last_mlog增加报错提示 [caoqianming]
  - wpr获取material_start初始物料字段 [caoqianming]
  - mlog返回子级详情 [caoqianming]
  - ichat  修改大模型的提问 [zty]
  - 触发批次统计分析在线程里sleep下 [caoqianming]
  - qct获取通用检验表 [caoqianming]
  - wpr获取新编号 [caoqianming]
  - ichat /增加ichat模块，优化对话流处理 [zty]
- fix: 问题修复
  - count_ok_full为None的批次处理 [caoqianming]
  - need_inout 传true时也得处理 [caoqianming]
  - wpr获取mb的state [caoqianming]
## 2.6.2025051208
- feat: 新增功能
  - 光芯质检表格 [caoqianming]
  - base 短信发送功能启动抛出异常 [caoqianming]
  - batchst字段同步数据库 [caoqianming]
## 2.6.2025050816
- feat: 新增功能
  - batchst添加字段并更新光子的统计 [caoqianming]
  - 由输入转输出需考虑到加工前不良的影响 [caoqianming]
  - 初步添加光芯的批次分析函数 [caoqianming]
  - myjsonfield优化 [caoqianming]
  - mioitem添加排序字段 [caoqianming]
  - 标签物料根据模板打印功能 [caoqianming]
  - ichat 修改接口去掉langchain [zty]
- fix: 问题修复
  - gen_commands bug [caoqianming]
  - labeltemplate filter bug [caoqianming]
  - 标签模板筛选bug [caoqianming]
## 2.6.2025043014
- feat: 新增功能
  - 生产入库和领料支持b类合格品 [caoqianming]
  - 添加标签模板接口 [caoqianming]
  - 完善光子批次统计数据 [caoqianming]
  - 组合件和入库检验追加统计分析 [caoqianming]
  - get_alldata_with_batch添加内容 [caoqianming]
- fix: 问题修复
  - mio_saleout缺少import [caoqianming]
## 2.6.2025042816
- feat: 新增功能
  - 支持个号转批号及配置 [caoqianming]
  - 批次追踪链条还是可以复用批次 [caoqianming]
  - mlog结合工序支持批到个 [caoqianming]
  - mlogbw支持批量创建 [caoqianming]
  - mlogbwcreate校验增加wm所属 [caoqianming]
  - ichat 修改LLM 的接口 [zty]
  - wmaterial筛选条件优化来料已完成 [caoqianming]
  - 获取该批次的dag数据需要传入version [caoqianming]
  - 单填写mlog支持返工 [caoqianming]
  - ichat 修改大模型接口 [zty]
  - mlogbupdate支持变更批号 [caoqianming]
  - 6车间合格率统计decimal invalid [caoqianming]
  - 修改大模型文件 [zty]
  - model add note [zty]
  - ichat添加表 [caoqianming]
  - 缺陷项分类字段数据库约束放开 [caoqianming]
  - 通过django settings延迟获取BASE_PROJECT_CODE [caoqianming]
  - base 将配置文件放到单独的config文件夹中防止误操作 [caoqianming]
- fix: 问题修复
  - wpr复用number的bug [caoqianming]
  - cal_count_notok锁定mlogb以防止并发修改 [caoqianming]
  - 获取batchst时默认使用version=1 [caoqianming]
  - mloginit在返工时不接收route [caoqianming]
  - 生产入库时存入生产车间 [caoqianming]
  - 返工校验输入物料选择错误 [caoqianming]
  - 完善负数校验 [caoqianming]
  - mlogbupdate时attrs遍历时修改的bug [caoqianming]
  - batchst的version字段bug [caoqianming]
## 2.6.2025042311
- feat: 新增功能
  - 切分工序切分数量支持1 [caoqianming]
  - mlog增加team字段 [caoqianming]
  - mlog的need_inout逻辑 [caoqianming]
  - 批次关系链时创建新批次支持使用已有批次号 [caoqianming]
  - mlogb添加test_user/need_inout字段用于处理抽检逻辑 [caoqianming]
  - 工艺步骤返回组合而成的name [caoqianming]
  - 校验只有合并时才能提供新批次号 [caoqianming]
  - 交接查询可查询子批次号 [caoqianming]
  - 日志完善负值校验 [caoqianming]
  - 批号追加工段标识 [caoqianming]
  - base增加PositiveDecimalField [caoqianming]
  - 改版交接需要触发统计数量 [caoqianming]
  - 物料统计数量接口 [caoqianming]
  - update_material_count时更新组合件数量 [caoqianming]
  - 采购和其他入库可入已有批次 [caoqianming]
  - 交接需要校验物料是否一致 [caoqianming]
  - 返工可选择不合格品/根据工艺路线决定返工后是合格不合格还是返修完成 [caoqianming]
  - 检验项和缺陷项删除的时候同步删除qct [caoqianming]
  - fmlog添加工艺步骤字段及相应返回数据 [caoqianming]
- fix: 问题修复
  - mlog的need_inout逻辑 [caoqianming]
  - count_working获取逻辑优化 [caoqianming]
  - mlogbin解决负值校验存在的bug [caoqianming]
  - 日志和交接记录操作数正值校验 [caoqianming]
  - inm校验非正数 [caoqianming]
  - 其他入库时batchst.g_create传参错误 [caoqianming]
  - : 交接记录提交时校验count>0 [caoqianming]
  - 正常交接后的物料状态不变 [caoqianming]
  - 存在fmlog时将route带给mlog并进行物料校验 [caoqianming]
  - do_in保证production_dept赋值 [caoqianming]
  - 订单检索条件错误 [caoqianming]
  - fmlog填写mtask或route即可 [caoqianming]
## 2.6.2025041613
- feat: 新增功能
  - 添加count_json_from字段及相应逻辑 [caoqianming]
  - 车间库存按任务筛选时count>0 [caoqianming]
  - 工艺步骤增加排序字段 [caoqianming]
  - 物料筛选low_inm进行优化 [caoqianming]
  - 变更order状态 [caoqianming]
  - 扣减库存不足增加提示 [caoqianming]
  - update_inm关于销售发货/其他出库的bug2 [caoqianming]
  - update_inm关于销售发货/其他出库的bug [caoqianming]
  - fmlog添加is_fix字段校验 [caoqianming]
  - fmlog添加is_fix字段 [caoqianming]
  - 单个日志填写时带入wm_in的batch [caoqianming]
  - 添加ichat以支持AI对话 [caoqianming]
  - ptest性能检验样品编号字段更改为text [caoqianming]
  - 添加MyJSONEncoder以支持decimal [caoqianming]
  - copy时matin matout不自动生成 [caoqianming]
  - 通过指定mat_in/mat_out复制工艺路线 [caoqianming]
  - 销售发货编号非必填 [caoqianming]
- fix: 问题修复
  - 交接分批bug/加工前不良的bug [caoqianming]
  - mio_saleout时正确计算delivered_count [caoqianming]
  - 返修交接后物料状态都变为返修品 [caoqianming]
  - handover拆批请选择车间库存2 [caoqianming]
  - handover拆批请选择车间库存 [caoqianming]
  - get_alldata_with_batch中小数计算异常捕获 [caoqianming]
  - 光子综合查询对小数和None的处理 [caoqianming]
  - 来料加工和完成筛选完善 [caoqianming]
  - decimal存入json字段时使用myjsondecoder [caoqianming]
  - cal_x_task_count分配任务数的bug [caoqianming]
  - ftest当is_ok为True时设置defect为空 [caoqianming]
  - ftest当is_ok为false时才设置defect_main [caoqianming]
  - material_out_tracking获取时对None的情况进行处理 [caoqianming]
  - get_dag时matin matout为空时不报错 [caoqianming]
  - 通过指定mat_in/mat_out复制工艺路线 bug2 [caoqianming]
  - 通过指定mat_in/mat_out复制工艺路线 bug1 [caoqianming]
  - get_alldata_with_batch_and_store时保存json数据采用DjangoJSONEncoder以处理decimal [caoqianming]
  - 组合件入库后未添加count的bug [caoqianming]
## 2.6.2025041113
- feat: 新增功能
  - ptest性能检验样品编号字段更改为text [caoqianming]
- fix: 问题修复
  - get_alldata_with_batch中小数计算异常捕获 [caoqianming]
  - 光子综合查询对小数和None的处理 [caoqianming]
## 2.6.2025040913
- feat: 新增功能
  - 添加MyJSONEncoder以支持decimal [caoqianming]
- fix: 问题修复
  - 来料加工和完成筛选完善 [caoqianming]
  - decimal存入json字段时使用myjsondecoder [caoqianming]
  - cal_x_task_count分配任务数的bug [caoqianming]
## 2.6.2025040813
- fix: 问题修复
  - ftest当is_ok和defect_main进行幂等 [caoqianming]
  - material_out_tracking获取时对None的情况进行处理 [caoqianming]
## 2.6.2025040710
- feat: 新增功能
  - copy时matin matout不自动生成 [caoqianming]
- fix: 问题修复
  - get_dag时matin matout为空时不报错 [caoqianming]
## 2.6.2025040316
- feat: 新增功能
  - 通过指定mat_in/mat_out复制工艺路线 [caoqianming]
  - 销售发货编号非必填 [caoqianming]
- fix: 问题修复
  - get_alldata_with_batch_and_store时保存json数据采用DjangoJSONEncoder以处理decimal [caoqianming]
  - 组合件入库后未添加count的bug [caoqianming]
## 2.6.2025040211
- feat: 新增功能
  - HTML_BASE_URL 前缀统一修改 [caoqianming]
  - sysbaseview返回系统版本号 [caoqianming]
- fix: 问题修复
  - base log delay=True减少冲突 [caoqianming]
  - get_can_save_from_save_expr的match转为str [caoqianming]
## 2.6.2025040115
- feat: 新增功能
  - handover数据库变动/初步更新批次数据关系链 [caoqianming]
  - 添加mio,mlog,handover关于batch的查询条件 [caoqianming]
  - get_batch_dag节点排序改动 [caoqianming]
  - 支持退料交接 [caoqianming]
  - mlogchangeserializer增加生产设备选择 [caoqianming]
- fix: 问题修复
  - 该工艺步骤已存在的校验bug [caoqianming]
## 2.6.2025033109
- feat: 功能新增
    - 建立及完善批次号数据链 [caoqianming]
    - 添加子工序以完善同一日志的记录 [caoqianming]
    - wpr产品追溯上游链 [caoqianming]
    - 工艺路线routepack支持子图逻辑及任务量算法 [caoqianming]
    - 出入库及任务编号非必填及自动生成逻辑 [caoqianming]
- fix: 问题修复
    - 车间库存检索bug [caoqianming]
    - wpr产品创建oinfo的bug [caoqianming]
    - 其他已知的bug [caoqianming]
## 2.6.2025031919
- 初始版本