|
|
@ -779,7 +779,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
|
|
|
|
public async Task AddOrUpdateMappingPackage([FromBody] MappingPackageDto dto)
|
|
|
|
public async Task AddOrUpdateMappingPackage([FromBody] MappingPackageDto dto)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var list = await _sysCacheService.GetAllMappingPackage();
|
|
|
|
var list = await _sysCacheService.GetAllMappingPackage();
|
|
|
|
var count = list.Where(x => x.Code == dto.Code && x.Module == dto.Module && 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);
|
|
|
|