From 263e0e39c18a4ade744b4d1111fe8dc9de7875e8 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期一, 29 九月 2025 17:11:20 +0800
Subject: [PATCH] 平板纠正措施单(推送部分暂未完成)
---
MESApplication/Controllers/QC/SJController.cs | 124 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 4cd6d0c..36f3636 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -1,6 +1,9 @@
锘縰sing System.Dynamic;
+using Masuit.Tools.Models;
+using MES.Service.DB;
using MES.Service.Dto.service;
using MES.Service.Modes;
+using MES.Service.Modes.DingAPI;
using MES.Service.service.QC;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
@@ -154,6 +157,127 @@
}
}
+ /// <summary>
+ /// 鑾峰彇琛屼笉鑹師鍥�
+ /// </summary>
+ /// <param name="data"></param>
+ /// <returns></returns>
+ [HttpPost("GetReason")]
+ public ResponseResult GetReason([FromBody] JObject data)
+ {
+ string billNo = data["billNo"].ToString();
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var tbBillList = new SJService();
+ var reasons = tbBillList.GetReason(billNo);
+ resultInfos.tbBillList = reasons;
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = reasons
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ [HttpPost("GetDingDept")]
+ public ResponseResult GetDingDept()
+ {
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var tbBillList = new SJService();
+ var depts = tbBillList.getDingDept();
+ resultInfos.tbBillList = depts;
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = depts
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ [HttpPost("GetDeptTree")]
+ public ResponseResult GetDeptTree()
+ {
+ try
+ {
+ var db = SqlSugarHelper.GetInstance();
+ var flatList = db.Queryable<DingDept>().ToList();
+ var tbBillList = new SJService();
+
+ // 杞崲涓烘爲
+ var tree = tbBillList.BuildDeptTree();
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = tree
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+
+ [HttpPost("GetDingUser")]
+ public ResponseResult GetDingUser()
+ {
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var tbBillList = new SJService();
+ var users = tbBillList.getDingUser();
+ resultInfos.tbBillList = users;
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = users
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ [HttpPost("DingJZCSD")]
+ public ResponseResult DingJZCSD(JzcsdData Indata)
+ {
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ var tbBillList = new SJService();
+ var depts = tbBillList.DingJZCSD(Indata);
+ resultInfos.tbBillList = depts;
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = depts
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+
[HttpPost("SetQSItemDetail")]
public ResponseResult SetQSItemDetail([FromBody] QsItemIpiItemDetail detail)
{
--
Gitblit v1.9.3