master
zhangxiaofeng 3 weeks ago
commit 4775230bc1

@ -136,11 +136,33 @@ namespace Myshipping.Application.EDI.SITC
e.tempSetting = InttrEdi.BSLIST[0].TEMPSET; e.tempSetting = InttrEdi.BSLIST[0].TEMPSET;
e.unit = "C"; e.unit = "C";
if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY)) if (!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY))
e.humdity = $"{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)) if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].REEFERF))
e.vent = $"{InttrEdi.BSLIST[0].REEFERF}CBM/H"; {
//通风等于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); postModel.extras.Add(e);
} }

@ -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))
{ {

Loading…
Cancel
Save