Files
FT363-INTERFACE/docs/mes-delivery-fields-20260908.md

16 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MES 配送申请字段
`insertDeliveryApplication` 的出库配送申请(deliveryDirection=0)保存 `deliveryPoint`,供 WMS 显示配送地点;`requiredTm` 是需求具体时间,为 null、空串或空白时兼容旧字段 `requireTime`;`isExpedited` 为 1(加急)或 0(正常)。以上信息保存至出库单主表,随原有归档流程进入历史表。
例如同一申请可传 `deliveryPoint="哈镘"`、`requiredTm="2026-09-08 15:30:00"`、`isExpedited=1`。旧 MES 请求未传新增信息时仍可接收。
先对共享数据库执行 `sql/20260908_order_management_fields.sql`,再发布 INTERFACE 和配套 WMS。两个仓库提供相同脚本,只需执行一次。迁移补齐业务表和历史表的新增字段,检查新增列的位置/类型与总列数,失败回滚。历史单据以前没有保存的配送地点不会自动补出。
使用 Java 8 构建。离线回归不启动应用、不连接数据库或 MES:
```text
mvn -B -pl ruoyi-admin -am -Dtest=DeliveryApplicationPortServiceTest -Dsurefire.failIfNoSpecifiedTests=false test
```
WMS 的展示、回传状态、托盘码和入库历史查询说明见配套 WMS 的 `docs/order-management-20260908.md`。