|
|
@ -574,10 +574,10 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
|
|
|
|
|
|
|
|
|
|
|
|
var list = await _sysCacheService.GetAllMappingYard();
|
|
|
|
var list = await _sysCacheService.GetAllMappingYard();
|
|
|
|
var count = list.Where(x => x.Code == dto.Code && x.Module == dto.Module && x.CarrierCode == dto.CarrierCode && x.GID != dto.GID).Count();
|
|
|
|
var count = list.Where(x => x.Code == dto.Code && x.Module == dto.Module && x.CarrierCode == dto.CarrierCode && x.GID != dto.GID).Count();
|
|
|
|
if (count > 0)
|
|
|
|
//if (count > 0)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
throw Oops.Bah(ErrorCode.D1006);
|
|
|
|
// throw Oops.Bah(ErrorCode.D1006);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
var entity = dto.Adapt<MappingYard>();
|
|
|
|
var entity = dto.Adapt<MappingYard>();
|
|
|
|
if (string.IsNullOrWhiteSpace(dto.GID))
|
|
|
|
if (string.IsNullOrWhiteSpace(dto.GID))
|
|
|
|
{
|
|
|
|
{
|
|
|
|