This commit is contained in:
2026-03-26 14:44:30 +08:00
parent 58f23e59d1
commit 3ea6859aa4
8 changed files with 112 additions and 5 deletions
@@ -1,5 +1,6 @@
namespace BLL
{
using Model;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
//using System.Net.Http.Headers;
@@ -2052,6 +2053,44 @@
}
#endregion
#region
/// <summary>
/// 集团督查检查驳回整改
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
public static ResponeData RejectRectify(DCGLCheckRectifyReject data)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var respone = new ResponeData();
var rectifItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyItemId == data.CheckRectifyItemId);
rectifItem.RealEndDate = null;
rectifItem.Verification = data.Reason;
db.SubmitChanges();
var rectify = db.DCGL_Check_CheckRectify.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId);
if (rectify != null)
{
var getNoUpdateItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId && !x.RealEndDate.HasValue);
if (getNoUpdateItem == null)
{
rectify.HandleState = "3";
}
else
{
rectify.HandleState = "2";
}
db.SubmitChanges();
}
return respone;
}
}
#endregion
#region
/// <summary>