From 9d2e93a197a0babf0761d7517f43d9d83143218b Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期四, 30 五月 2024 14:12:47 +0800 Subject: [PATCH] 众毅 添加 OptSortType 校核 --- WebApi/Controllers/ZyPrjController.cs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/WebApi/Controllers/ZyPrjController.cs b/WebApi/Controllers/ZyPrjController.cs index e9ef32e..bb7de69 100644 --- a/WebApi/Controllers/ZyPrjController.cs +++ b/WebApi/Controllers/ZyPrjController.cs @@ -428,7 +428,11 @@ return new IStation.Dto.ApiResult() { Code = ApiResultCode.Error, Message = "鏈�澶у垏娉垫鏁� 璁剧疆杩囬暱" }; } model_setting.MaxPumpSwitchCountQ = dto.MaxPumpSwitchCount; + if(dto.OptSortType>=2) + { + return new IStation.Dto.ApiResult() { Code = ApiResultCode.Error, Message = "OptSortType 鍙兘璁剧疆 0 鎴栬�� 1, 0浠h〃 鐢ㄧ數閲忔渶灏� 1浠h〃 鐢佃垂鏈�灏�" }; + } model_setting.OptSortType = dto.OptSortType; if (dto.SwitchPumpIgnoreTimes != null) { -- Gitblit v1.9.3