feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能

This commit is contained in:
SunYF
2026-10-17 17:49:47 +08:00
parent f65a52d9e1
commit f743cf21fb
96 changed files with 6130 additions and 1781 deletions
@@ -19,9 +19,9 @@ import (
func taskCurrentHandler(ctx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
stationNo := atoi(strings.TrimSpace(r.URL.Query().Get("stationNo")), 0)
// 0=上线位为合法虚拟工位,仅负数视为未配置
if stationNo < 0 {
fail(w, http.StatusBadRequest, "缺少 stationNo 参数")
// 工位号须为正整数(原 0/13 虚拟位已废弃,业务定稿·一.10)
if stationNo <= 0 {
fail(w, http.StatusBadRequest, "缺少有效的 stationNo 参数")
return
}