From 727ed59c834554dfea2afc77a883f1545c9165a5 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 12 5月 2025 14:56:10 +0800
Subject: [PATCH] 222

---
 PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs |   40 +++++++++++++++++++++++++++++++++++-----
 1 files changed, 35 insertions(+), 5 deletions(-)

diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
index b56150f..5a25ab4 100644
--- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
+++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
@@ -16,6 +16,9 @@
 using CMS.Plugin.PipeLineLems.Domain.WorkPlan;
 using CMS.Plugin.PipeLineLems.Domain.CallMaterialOrderRecord;
 using Volo.Abp.Users;
+using CmsQueryExtensions.Entitys;
+using CMS.Unit.RuntimeValue.Abstractions;
+using CMS.Extensions.Variable;
 
 namespace CMS.Plugin.PipeLineLems.Application.Implements;
 
@@ -24,6 +27,34 @@
 /// </summary> 
 public class SharedService : CMSPluginAppService
 {
+
+
+    public async Task<MesOrderResponse> CommonPick(IServiceProvider _serviceProvider, PickInput input, MyCurrentUser myCurrentUser)
+    {
+        //1銆佽褰曞垎鎷h褰曡〃
+        //2銆佹洿鏂颁綔涓氳鍒掕〃鐨勭姸鎬� =宸插垎鎷�
+        //3銆佸啓鍏� 鍒嗘嫞鍙橀噺
+
+        VariableService _variableService = _serviceProvider.GetRequiredService<VariableService>();
+
+        Dictionary<string, object?> keyValuePairs = new Dictionary<string, object?>
+                    {
+                        { "鍒嗘嫞鎵樼洏鍙�","鎵樼洏1"},
+                        { "鍒嗘嫞鏂瑰悜", "鐭瑁呴厤"},
+                        { "鍒嗘嫞浜�", myCurrentUser.UserAccount }
+                    };
+        _variableService.WriteValueAsync(keyValuePairs);
+        var response = new MesOrderResponse
+        {
+            Code = "000000",
+            Data = "",
+            Fail = false,
+            Mesg = "澶勭悊鎴愬姛",
+            Success = true,
+            Time = DateTime.UtcNow
+        };
+        return response;
+    }
     /// <summary>
     /// 鍒涘缓浣滀笟璁″垝
     /// </summary>
@@ -34,11 +65,11 @@
     /// <exception cref="UserFriendlyException"></exception>
 
     public async Task<MesOrderResponse> CommonCreatebyApsAsync(List<WorkPlanInput> input, IServiceProvider _serviceProvider,
-        WorkPlanAppService workPlanAppService,
-        string userId, string userAccount
-        )
+    WorkPlanAppService workPlanAppService,
+    string userId, string userAccount
+    )
     {
-      
+
         if (input == null)
         {
             throw new UserFriendlyException("杈撳叆鍙傛暟涓嶈兘涓虹┖");
@@ -198,7 +229,6 @@
                 insertObj.CallMaterialStatus = Domain.Shared.Enums.CallMaterialStatusEnum.鏈墽琛�;
                 insertObj.WorkPlanStatus = Domain.Shared.Enums.WorkPlanStatusEnum.鏈敓浜�;
                 insertObj.Sort = 1;
-                insertObj.CreatorId = userId;
                 insertObj.CreatorName = userAccount;
                 await workPlanAppService.CreateAsync(insertObj);
             }

--
Gitblit v1.9.3