|
|
|
@ -48,10 +48,7 @@ namespace Myshipping.Core.Service
|
|
|
|
|
if (string.IsNullOrWhiteSpace(input.ParaName)) {
|
|
|
|
|
throw Oops.Oh(ErrorCode.Param002);
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(input.Type))
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh(ErrorCode.Param002);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var list=await _rep.FirstOrDefaultAsync(x => x.ParaCode == input.ParaCode && x.Type == input.Type);
|
|
|
|
|
if (list!=null) {
|
|
|
|
@ -80,10 +77,7 @@ namespace Myshipping.Core.Service
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh(ErrorCode.Param002);
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(input.Type))
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh(ErrorCode.Param002);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var list = await _rep.FirstOrDefaultAsync(x => x.ParaCode == input.ParaCode && x.Type == input.Type&&x.Id!=input.Id);
|
|
|
|
|
if (list != null)
|
|
|
|
|
{
|
|
|
|
@ -298,15 +292,14 @@ namespace Myshipping.Core.Service
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 删除租户参数类别表
|
|
|
|
|
///删除租户参数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/DJYTenantParam/deleteParamValue")]
|
|
|
|
|
[SqlSugarUnitOfWork]
|
|
|
|
|
public async Task DeleteParamValue(long Id)
|
|
|
|
|
{
|
|
|
|
|
var entity = await _itemrep.FirstOrDefaultAsync(u => u.Id == Id);
|
|
|
|
|
await _valuerep.DeleteAsync(entity);
|
|
|
|
|
await _valuerep.DeleteAsync(u => u.Id == Id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|