using BPA.SAAS.Manage.Application.DataBase.Dtos.Batching; using BPA.SAAS.Manage.Application.DataBase.Interface; using BPA.SAAS.Manage.Core.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Application.DataBase { [ApiDescriptionSettings("Batching", Tag = "物料基础信息")] public class BatchingServices: IDynamicApiController { IBatchingService _batchingService; public BatchingServices(IBatchingService batchingService) { _batchingService= batchingService; } /// /// 分页查询 /// /// /// [HttpPost("/api/batching/getpage")] public async Task GetBatchingList(BatchingListQuery dto) { return await _batchingService.GetBatchingList(dto); } /// /// 添加 /// /// /// [HttpPost("/api/batching/add")] public async Task AddBatching(BatchingInfoDto dto) { return await _batchingService.AddBatching(dto); } /// /// 修改 /// /// /// [HttpPost("/api/batching/update")] public async Task UpdateBatching(BatchingInfoDto dto) { return await _batchingService.UpdateBatching(dto); } /// /// 删除 /// /// /// [HttpPost("/api/batching/delete")] public async Task BatchDelBatching(List Ids) { return await _batchingService.BatchDelBatching(Ids); } /// /// 物料列表 /// /// [HttpGet("/api/batching/getbatchinglist")] public async Task> GetBatchingList() { return await _batchingService.GetBatchingList(); } /// /// 物料列表 /// /// [HttpGet("/api/batching/getbatchingselectlist")] public async Task> GetBatchingSelectList() { return await _batchingService.GetBatchingSelectList(); } [HttpPost("/api/batching/updatebatchingstatus")] public async Task UpdateBatchingStatus(BatchingStatusDto dto) { return await _batchingService.UpdateBatchingStatus(dto); } /// /// 物料类型列表 /// /// [HttpGet("/api/batching/getbatchingtypelist")] public async Task> GetBatchingTypeList() { return await _batchingService.GetBatchingTypeList(); } /// /// 添加物料类型 /// /// /// [HttpPost("/api/batching/addbatchingtype")] public async Task AddBatchingType(BatchingTypeDto dto) { return await _batchingService.AddBatchingType(dto); } /// /// 删除物料类型 /// /// /// [HttpGet("/api/batching/batchtypedel")] public async Task BatchTypeDel(string id) { return await _batchingService.BatchTypeDel(id); } /// /// 物料单位列表 /// /// [HttpGet("/api/batching/getbatchinguintList")] public async Task> GetBatchingUintList() { return await _batchingService.GetBatchingUintList(); } /// /// 查询物料单位(外部接口) /// /// [HttpGet("/api/batching/getbatchinguintlist_alm")] [AllowAnonymous] public async Task> GetBatchingUintList_alm() { return await _batchingService.GetBatchingUintList_alm(); } /// /// 查询物料分类(外部接口) /// /// [HttpGet("/api/batching/getbatchingtypelist_alm")] [AllowAnonymous] public async Task> GetBatchingTypeList_alm() { return await _batchingService.GetBatchingTypeList_alm(); } /// /// 添加物料物料单位 /// /// /// [HttpPost("/api/batching/addbatchinguint")] public async Task AddBatchingUint(BatchingUintDto dto) { return await _batchingService.AddBatchingUint(dto); } /// /// 删除物料单位 /// /// /// [HttpGet("/api/batching/batchinguintdel")] public async Task BatchingUintDel(string id) { return await _batchingService.BatchingUintDel(id); } [HttpGet("/api/batching/getbytypebatching")] public async Task> GetByTypeBatching() { return await _batchingService.GetByTypeBatching(); } } }