仓库接口
This commit is contained in:
@@ -50,21 +50,21 @@ namespace WMS.Web.Repositories
|
||||
return result.Data.ToList();
|
||||
}
|
||||
|
||||
public async Task<List<UcStockResponse>> GetSubUcStockAsync(int id, string name)
|
||||
public async Task<List<UcStockResponse>> GetSubUcStockAsync(int stockId)
|
||||
{
|
||||
var result = await _singleDataService.GetSysConfigData<ResultList<UcStockResponse>, SubStockRequest>
|
||||
(new SubStockRequest(id, name, _loginService.CompanyId),
|
||||
SysConfigAction.GetWareouseByCustomerAndCompany);
|
||||
(new SubStockRequest(stockId),
|
||||
SysConfigAction.GetChildWarehouseByPid);
|
||||
if (!result.Success)
|
||||
return null;
|
||||
return result.Data.ToList();
|
||||
}
|
||||
|
||||
public async Task<List<UcStockResponse>> GetUcStockAsync(string name, int companyId)
|
||||
public async Task<List<UcStockResponse>> GetUcStockAsync(string systemCode, string name, int companyId)
|
||||
{
|
||||
var result = await _singleDataService.GetSysConfigData<ResultList<UcStockResponse>, NameRequest>
|
||||
(new NameRequest(name, companyId),
|
||||
SysConfigAction.GetWarehouseByNameAndCompany);
|
||||
var result = await _singleDataService.GetSysConfigData<ResultList<UcStockResponse>, SystemCodeRequest>
|
||||
(new SystemCodeRequest(systemCode,name, companyId),
|
||||
SysConfigAction.GetWmsWarehouseBySystemCodeAndNameAndCompany);
|
||||
if (!result.Success)
|
||||
return null;
|
||||
return result.Data.ToList();
|
||||
|
||||
Reference in New Issue
Block a user