去除引用common.props
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Aspose.Cells.Drawing;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.DynamicApiController;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.BasicData.Entities.Enums;
|
||||
using Tnb.BasicData.Interfaces;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
|
||||
@@ -32,19 +25,27 @@ namespace Tnb.BasicData
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetUnStoreLocationListByCarryId([FromRoute]string carryId)
|
||||
public async Task<dynamic> GetUnStoreLocationListByCarryId([FromRoute] string carryId)
|
||||
{
|
||||
|
||||
var items = await _db.Queryable<BasLocation>().Where(it => !string.IsNullOrEmpty(it.is_type) && Convert.ToInt32(it.is_type) != (int)EnumLocationType.存储库位).ToListAsync();
|
||||
|
||||
List<BasLocation> items = await _db.Queryable<BasLocation>().Where(it => !string.IsNullOrEmpty(it.is_type) && Convert.ToInt32(it.is_type) != (int)EnumLocationType.存储库位).ToListAsync();
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
public async Task<List<BasLocation>> GetLocationInfobyIds(IEnumerable<string> locIds)
|
||||
{
|
||||
if (locIds == null) throw new ArgumentNullException(nameof(locIds));
|
||||
if (!locIds.Any()) throw new ArithmeticException($"parameter locIds.Count is not be empty");
|
||||
var items = await _db.Queryable<BasLocation>().Where(it => locIds.Contains(it.id)).ToListAsync();
|
||||
if (locIds == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(locIds));
|
||||
}
|
||||
|
||||
if (!locIds.Any())
|
||||
{
|
||||
throw new ArithmeticException($"parameter locIds.Count is not be empty");
|
||||
}
|
||||
|
||||
List<BasLocation> items = await _db.Queryable<BasLocation>().Where(it => locIds.Contains(it.id)).ToListAsync();
|
||||
return items;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user