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
+3 -3
View File
@@ -125,9 +125,9 @@ func StationChangePasswordInternalHandler(svcCtx *svc.ServiceContext) http.Handl
func StationTaskInternalHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
stationNo := atoiDefault(r.URL.Query().Get("stationNo"), 0)
// 0=上线位为合法虚拟工位,仅负数视为未配置
if stationNo < 0 {
httpx.BadRequest(w, "缺少 stationNo 参数")
// 工位号须为正整数(原 0/13 虚拟位已废弃,业务定稿·一.10)
if stationNo <= 0 {
httpx.BadRequest(w, "缺少有效的 stationNo 参数")
return
}
data, err := logic.New(svcCtx).StationTask(r.Context(), stationNo)