From a2448a582f2baeabf32c4f8dd8ab447feb2538e6 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周五, 16 5月 2025 10:25:21 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/WorkPlanAppService.cs | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/WorkPlanAppService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/WorkPlanAppService.cs index 1372c83..ce8adc5 100644 --- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/WorkPlanAppService.cs +++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/WorkPlanAppService.cs @@ -11,6 +11,7 @@ using Volo.Abp.ObjectExtending; using Volo.Abp.ObjectMapping; using Volo.Abp.Users; +using CmsQueryExtensions.Entitys; namespace CMS.Plugin.PipeLineLems.Application.Implements; @@ -43,16 +44,6 @@ return ObjectMapper.Map<WorkPlan, WorkPlanDto>(await _workPlanRepository.GetAsync(id)); } - /// <summary> - /// 鎸夌収 鍘熸枡鏍囪 鏌ユ壘浣滀笟璁″垝琛� - /// </summary> - /// <param name="name"></param> - /// <param name="cancellationToken"></param> - /// <returns></returns> - public virtual async Task<List<WorkPlan>> FindByDataIdentifierAsync(string dataIdentifier) - { - return await _workPlanRepository.FindByDataIdentifierAsync(dataIdentifier); - } /// <summary> /// 鍒嗛〉鑾峰彇浣滀笟璁″垝琛� @@ -179,7 +170,7 @@ updateObj.ProductCode = input.ProductCode; updateObj.WorkstationCode = input.WorkstationCode; updateObj.EquipmentCode = input.EquipmentCode; - + updateObj.ProcessName = input.ProcessName; updateObj.PipeFittingCode = input.PipeFittingCode; updateObj.PreSerialNumber = input.PreSerialNumber; @@ -308,13 +299,13 @@ /// <param name="input"></param> /// <returns></returns> /// <exception cref="UserFriendlyException"></exception> - public async Task ImportAsync(WorkPlansImportModel input, string userId, string userAccount) + public async Task ImportAsync(WorkPlansImportModel input, MyCurrentUser myCurrentUser) { //杞崲鏁版嵁 var result = ObjectMapper.Map<List<WorkPlansImportModel.WorkPlanImportModel>, List<WorkPlanInput>>(input.WorkPlans); //await CreatebyApsAsync(result); - await _sharedService.CommonCreatebyApsAsync(result, _serviceProvider, this, userId, userAccount); + await _sharedService.CommonCreatebyApsAsync(result, _serviceProvider, this, myCurrentUser.UserId, myCurrentUser.UserAccount); // Check.NotNull(input, nameof(input)); // var workPlanCreateDtos = new List<(int RowIndex, WorkPlanCreateDto Item)>(); -- Gitblit v1.9.3