From bc759f50f0b169b93766465e640373067ecfc9b2 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 25 七月 2025 15:15:16 +0800
Subject: [PATCH] 删除垃圾文件
---
项目代码/WMS/WMSServices/WIDESEA_WMSServer/Controllers/Approval/ApprovalTaskController.cs | 62 ------------------------------
1 files changed, 1 insertions(+), 61 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/Approval/ApprovalTaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/Approval/ApprovalTaskController.cs"
index df78d7d..306c5b7 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/Approval/ApprovalTaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/Approval/ApprovalTaskController.cs"
@@ -7,7 +7,6 @@
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Helper;
using WIDESEA_IApprovalService;
-using WIDESEA_ICheckRepository;
using WIDESEA_Model.Models;
namespace WIDESEA_WMSServer.Controllers.Approval
@@ -19,70 +18,11 @@
[ApiController]
public class ApprovalTaskController : ApiBaseController<IApprovalTaskService, Dt_ApprovalTask>
{
- private readonly ICheckOrderRepository _checkOrderRepository;
private readonly WebSocketServer _webSocketServer;
- public ApprovalTaskController(IApprovalTaskService service, ICheckOrderRepository checkOrderRepository, WebSocketServer webSocketServer) : base(service)
+ public ApprovalTaskController(IApprovalTaskService service, WebSocketServer webSocketServer) : base(service)
{
- _checkOrderRepository = checkOrderRepository;
_webSocketServer = webSocketServer;
- }
-
- /// <summary>
- /// 鍚屾剰瀹℃壒
- /// </summary>
- /// <param name="sourceKey"></param>
- /// <returns></returns>
- [HttpGet, HttpPost, Route("AuditAgree")]
- public WebResponseContent AuditAgree(int sourceKey)
- {
- return Service.AuditAgree(sourceKey);
- }
-
- /// <summary>
- /// 椹冲洖瀹℃壒
- /// </summary>
- /// <param name="sourceKey"></param>
- /// <returns></returns>
- [HttpGet, HttpPost, Route("AuditReject")]
- public WebResponseContent AuditReject(int sourceKey)
- {
- return Service.AuditReject(sourceKey);
- }
-
- /// <summary>
- /// 鎺ㄩ�佹祴璇�
- /// </summary>
- /// <returns></returns>
- [HttpGet, HttpPost, Route("PushTest"), AllowAnonymous]
- public WebResponseContent PushTest()
- {
- try
- {
- List<Dt_CheckOrder> checkOrders = _checkOrderRepository.Db.Queryable<Dt_CheckOrder>().Includes(x => x.Details).ToList();
-
- foreach (var checkOrder in checkOrders)
- {
- object obj = new
- {
- title = "IQC璐ㄦ缁撴灉瀹℃壒",
- formData = checkOrder,
- tableData = checkOrder.Details,
- message = "鎺ㄩ�佹祴璇曚俊鎭綋",
- date = DateTime.Now.ToString(),
- };
- JsonSerializerSettings settings = new JsonSerializerSettings()
- {
- ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
- };
- _webSocketServer.PublishAllClientPayload(JsonConvert.SerializeObject(obj, settings));
- }
- return WebResponseContent.Instance.OK();
- }
- catch (Exception ex)
- {
- return WebResponseContent.Instance.Error(ex.Message);
- }
}
}
}
--
Gitblit v1.9.3