WMS/HHWMS.Web/Models/Agv/AgvOption.cs
sunwang c76e7bb681 fix:永丰售后修复BUG,
1,物料库存获取不到ERP:重新调整触发查询逻辑
2,工序变更导致物料无法出库:配置旧工序
3,测试出库订单ERP推送,任务下发
2026-10-29 13:12:11 +08:00

52 lines
1.8 KiB
C#
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.

using System;
namespace HHWMS.Web.Models.Agv
{
/// <summary>
/// AGV 平库任务配置项(对应 appsettings.json 顶层 AgvOption 节点)
/// 参考《平库AGV方案流程(AGV自调度版).md》10.5
/// </summary>
public class AgvOption
{
/// <summary>
/// 模块总开关:false 时接单/回调接口统一拒绝并提示(灰度/紧急停用,不影响立库)
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// Mock 模式:不联网、直接返回约定成功报文,开发/联调用(无 AGV 可用)
/// </summary>
public bool MockEnabled { get; set; } = true;
/// <summary>
/// 对外调用超时(秒),默认 15s
/// </summary>
public int CallTimeoutSeconds { get; set; } = 15;
/// <summary>
/// 锁持有告警阈值(分钟):超时任务页面标红,由人工决定取消/继续等待
/// </summary>
public int LockTimeoutMinutes { get; set; } = 60;
/// <summary>
/// 超时监控阈值(分钟):超时监控 Job 周期扫描的判定线
/// </summary>
public int TimeoutMonitorMinutes { get; set; } = 30;
/// <summary>
/// 对账 Job 开关(默认关闭;开启后周期扫描已下发/执行中超时任务并查询 AGV 状态)
/// </summary>
public bool ReconcileEnabled { get; set; } = false;
/// <summary>
/// 对账周期(分钟)
/// </summary>
public int ReconcileMinutes { get; set; } = 10;
/// <summary>
/// AGV 联动写库存的系统账号(必须是真实存在的 FrameworkUser.ITCode,见方案 8.3)
/// </summary>
public string SysUser { get; set; } = "system";
}
}