From 2577a348d234c714ccb9195b62d2637f8baa5b55 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期四, 30 十月 2025 19:55:57 +0800
Subject: [PATCH] 修改检验线体的选择,根据人员权限返回线体

---
 MESApplication/Controllers/QC/SJController.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 3a95d9e..9b91395 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -4,10 +4,12 @@
 using MES.Service.Dto.service;
 using MES.Service.Modes;
 using MES.Service.Modes.DingAPI;
+using MES.Service.service.ProductionOrder;
 using MES.Service.service.QC;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json.Linq;
+using SharpCompress.Common;
 using SqlSugar.Extensions;
 
 namespace MESApplication.Controllers.QC;
@@ -91,6 +93,15 @@
     [HttpPost("SavePlan")]
     public ResponseResult SavePlan([FromBody] JObject data)
     {
+        if (string.IsNullOrEmpty(data["pid"]?.ToString()))
+        {
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = "鐢熸垚鍗曟嵁鍓嶄笉淇濆瓨璐ㄦ鏂规"
+            };
+        }
         decimal pid = Convert.ToDecimal(data["pid"]);
         string planName = data["planName"].ToString();
         try

--
Gitblit v1.9.3