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] 增加川印设备维修回写

---
 .gitignore                                                   |    1 
 cylsg/cylsg.Application/CyOS/CyOSBaoXiaoJingLiController.cs  |   18 ++++
 cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs |   10 ++
 cylsg/cylsg.Model/ECTEModel/OA_ShebeiWeixiu.cs               |  172 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 200 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index 6d86cfb..82bdfed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,4 @@
 cylsg/ECTESTOA/bin/
 >>>>>>> cyronghe
 *.log
+sqlsugar 浠g爜鐢熸垚鍣�/
diff --git a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoJingLiController.cs b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoJingLiController.cs
index 7823af8..821e15c 100644
--- a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoJingLiController.cs
+++ b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoJingLiController.cs
@@ -166,7 +166,7 @@
                         ApprovalContent = param.ApprovalContent,
                         ApprovalStatus = param.ApprovalStatus,
                         ApprovalTime = DateTime.Now,
-                        ///鎬荤粡鐞嗗鎵逛负2
+                        //鎬荤粡鐞嗗鎵逛负2
                         Buzhou = 2,
                         CreateTime = DateTime.Now,
                         Operator = Permissions.Name,
@@ -196,6 +196,15 @@
 
 
                 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 ) data.ApprovalStatus;
+
+                    await _SugarClient.Updateable(shenpis).ExecuteCommandAsync();
+                }
                 await _SugarClient.AsTenant().CommitTranAsync();
                 return true;
             }
@@ -284,7 +293,14 @@
                     item.ApprovalContent = param.ApprovalContent;
                     item.LastUpdateTime = DateTime.Now;
 
+                    //璁剧疆璁惧weixiu鐘舵��
+                    var shenpis = await _SugarClient.Queryable<OA_ShebeiWeixiu>().Where(x => x.FukuanShebeiId == item.Keyid).FirstAsync();
+                    if (shenpis != null)
+                    {
+                        shenpis.ApprovalStatus = (int)item.ApprovalStatus;
 
+                        await _SugarClient.Updateable(shenpis).ExecuteCommandAsync();
+                    }
 
 
                     await _SugarClient.Updateable(item).ExecuteCommandAsync();
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()
diff --git a/cylsg/cylsg.Model/ECTEModel/OA_ShebeiWeixiu.cs b/cylsg/cylsg.Model/ECTEModel/OA_ShebeiWeixiu.cs
new file mode 100644
index 0000000..f3127d6
--- /dev/null
+++ b/cylsg/cylsg.Model/ECTEModel/OA_ShebeiWeixiu.cs
@@ -0,0 +1,172 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using SqlSugar;
+namespace Models
+{
+    /// <summary>
+    /// 璁惧缁翠慨琛�
+    ///</summary>
+    [SugarTable("OA_ShebeiWeixiu")]
+    public class OA_ShebeiWeixiu
+    {
+        
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Keyid" ,IsPrimaryKey = true,IsIdentity = true) ]
+        public int Keyid  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="MemberId" ) ]
+        public Guid? MemberId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="ShebeiId" ) ]
+        public int? ShebeiId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="WeixiuTime" ) ]
+        public DateTime? WeixiuTime  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="CateId" ) ]
+        public int? CateId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Anzhuangdidian" ) ]
+        public string? Anzhuangdidian  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Name" ) ]
+        public string? Name  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Remark" ) ]
+        public string? Remark  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="WeixiuPrice" ) ]
+        public decimal? WeixiuPrice  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Zerenren" ) ]
+        public int? Zerenren  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="ZerenrenName" ) ]
+        public string? ZerenrenName  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="DanzePrice" ) ]
+        public decimal? DanzePrice  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="WeixiuShebeiId" ) ]
+        public int? WeixiuShebeiId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="FukuanShebeiId" ) ]
+        public int? FukuanShebeiId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="FukuanshenqingId" ) ]
+        public int? FukuanshenqingId  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Shifoufufei" ) ]
+        public int? Shifoufufei  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="CreateTime" ) ]
+        public DateTime? CreateTime  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Creator" ) ]
+        public string? Creator  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="LastUpdateTime" ) ]
+        public DateTime? LastUpdateTime  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Operator" ) ]
+        public string? Operator  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:瀹℃壒缁撴灉
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="ApprovalStatus" ) ]
+        public int? ApprovalStatus  { get; set;  } 
+     
+        /// <summary>
+        /// 澶�  娉�:
+        /// 榛樿鍊�:
+        ///</summary>
+        [SugarColumn(ColumnName="Fukuanfangshi" ) ]
+        public string? Fukuanfangshi  { get; set;  } 
+    
+
+    }
+    
+}
\ No newline at end of file

--
Gitblit v1.9.1