From 595df5dac0a782bfdadab766b4dd62d326b0a383 Mon Sep 17 00:00:00 2001
From: 小飞侠 <8277136+liaoxujun@user.noreply.gitee.com>
Date: 星期二, 21 十月 2025 14:53:04 +0800
Subject: [PATCH] 增加川印设备维修回写

---
 cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
index 18dd22f..33c4b21 100644
--- a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
+++ b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
@@ -2,6 +2,7 @@
 using cylsg.Model.utilityViewModel;
 using ECTESTOA;
 using Furion.LinqBuilder;
+using Models;
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -224,6 +225,15 @@
                         data.Operator = Permissions.Name;
                        await  _SugarClient.Updateable(data).ExecuteCommandAsync();
 
+                        //璁剧疆璁惧weixiu鐘舵�佷负鎷掔粷
+                        var shenpis = await _SugarClient.Queryable<OA_ShebeiWeixiu>().Where(x => x.FukuanShebeiId == data.Keyid).FirstAsync();
+                        if (shenpis != null)
+                        {
+                            shenpis.ApprovalStatus = (int )PlanStatusType.No;
+
+                            await _SugarClient.Updateable(shenpis).ExecuteCommandAsync();
+                        }
+
                     }
 
                     shenpi = new OaWorkPlanShenpi()

--
Gitblit v1.9.1