master
zhangxiaofeng 3 weeks ago
commit 4775230bc1

@ -137,10 +137,32 @@ namespace Myshipping.Application.EDI.SITC
e.unit = "C";
if (!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY))
{
//湿度等于0时湿度空着不传值
if (InttrEdi.BSLIST[0].HUMIDITY.Trim() != "0")
{
e.humdity = $"{InttrEdi.BSLIST[0].HUMIDITY}%";
}
else
{
e.humdity = "";
}
}
if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].REEFERF))
{
//通风等于0时通风传CLOSED
if (InttrEdi.BSLIST[0].REEFERF.Trim() != "0")
{
e.vent = $"{InttrEdi.BSLIST[0].REEFERF}CBM/H";
}
else
{
e.vent = "CLOSED";
}
}
postModel.extras.Add(e);
}

@ -574,10 +574,10 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
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();
if (count > 0)
{
throw Oops.Bah(ErrorCode.D1006);
}
//if (count > 0)
//{
// throw Oops.Bah(ErrorCode.D1006);
//}
var entity = dto.Adapt<MappingYard>();
if (string.IsNullOrWhiteSpace(dto.GID))
{

Loading…
Cancel
Save