schangxiang@126.com
2025-05-10 8372214fbc4db844645b846b286c441c1822af3d
PipeLineLems/server/src/CMS.Plugin.PipeLineLems/Controller/WorkPlanController.cs
@@ -1,7 +1,10 @@
using Ao.Lang; 
using AutoMapper.Internal.Mappers;
using CMS.Extensions.Abp.AspNetCore.Mvc.Filters; 
using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkPlan; 
using CMS.Plugin.PipeLineLems.Application.Contracts.Services; 
using CMS.Plugin.PipeLineLems.Application.Implements;
using CMS.Plugin.PipeLineLems.Domain.WorkPlan;
using Microsoft.AspNetCore.Authorization; 
using Microsoft.AspNetCore.Http; 
using Microsoft.AspNetCore.Mvc; 
@@ -24,6 +27,19 @@
    public class WorkPlanController : ControllerBase 
    { 
        private readonly IWorkPlanAppService _workPlanAppService; 
        /// <summary>
        /// 获取生产计划.
        /// </summary>
        /// <param name="input">标识符.</param>
        /// <returns></returns>
        [HttpPost]
        [Route("GetWorkPlanByAps")]
        public virtual async Task<MesOrderResponse> CreateWorkPlanByApsAsync([FromBody] List<WorkPlanInput> input)
        {
            return await _workPlanAppService.CreatebyApsAsync(input);
        }
 
        /// <summary> 
        /// Initializes a new instance of the <see cref="WorkPlanController"/> class. 
@@ -155,6 +171,7 @@
                throw new UserFriendlyException("请检查导入的表格"); 
            } 
 
            await _workPlanAppService.ImportAsync(new WorkPlansImportModel 
            { 
                WorkPlans = workPlanRows,