| | |
| | | using System.Data; |
| | | using System.Web; |
| | | using System.Text; |
| | | using Furion.DatabaseAccessor; |
| | | using Mapster; |
| | | |
| | | namespace Admin.NET.Application; |
| | | /// <summary> |
| | | /// 批次数据服务 |
| | |
| | | return await _rep.GetFirstAsync(u => u.Id == input.Id); |
| | | } |
| | | |
| | | |
| | | [HttpPost] |
| | | [ApiDescriptionSettings(Name = "GetBatchOrderUPIList")] |
| | | [UnitOfWork] |
| | | [AllowAnonymous] |
| | | public async Task GetBatchOrderUPIList(List<GetBatchOrderUPIInput> input) |
| | | { |
| | | List<Mes_BatchOrderUPI_New> list = new List<Mes_BatchOrderUPI_New>(); |
| | | foreach (var item in input) |
| | | { |
| | | Mes_BatchOrderUPI_New task = new Mes_BatchOrderUPI_New(); |
| | | task = item.Adapt<Mes_BatchOrderUPI_New>(); |
| | | task.AreaCode = AreaCodeEnum.无区域; |
| | | task.UpiStatus = UpiStatusEnum.初始; |
| | | list.Add(task); |
| | | } |
| | | await _rep.InsertRangeAsync(list); |
| | | } |
| | | |
| | | |
| | | |