| | |
| | | using CMS.Extensions.Abp.AspNetCore.Mvc.Filters; |
| | | using CMS.Plugin.HIAWms.Application.Contracts.Dtos.CommonDto; |
| | | using CMS.Plugin.HIAWms.Application.Contracts.Services; |
| | | using CmsQueryExtensions.Entitys; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("LMesCallMaterial")] |
| | | public async Task<List<CallMaterialOutput>> LMesCallMaterialAsync(List<LMesCallMaterialInput> input) |
| | | public async Task<CmsApiResponse<List<CallMaterialOutput>>> LMesCallMaterialAsync(List<LMesCallMaterialInput> input) |
| | | { |
| | | return await _mesOperateAppService.LMesCallMaterialAsync(input); |
| | | try |
| | | { |
| | | var list = await _mesOperateAppService.LMesCallMaterialAsync(input); |
| | | return new CmsApiResponse<List<CallMaterialOutput>>() |
| | | { |
| | | Data = list, |
| | | Code = 200, |
| | | Message = "LMes叫料成功" |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //throw; //不要抛出异常,否则对方会接收失败呢 |
| | | return new CmsApiResponse<List<CallMaterialOutput>>() |
| | | { |
| | | Data = null, |
| | | Code = 500, |
| | | Message = ex.Message |
| | | }; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |