optimize
wet 2 years ago
parent 23e9cd0c9d
commit afa8bf587d

@ -119,7 +119,7 @@ namespace Myshipping.Application
ctn.PId = entity.Id;
if (ctn.CTNALL.Length==4) {
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(0, 2) : "";
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
ctn.CTN = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
}
await _seaeedictn.InsertAsync(ctn);
@ -151,7 +151,7 @@ namespace Myshipping.Application
if (ctn.CTNALL.Length == 4)
{
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(0, 2) : "";
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
ctn.CTN = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
}
await _seaeedictn.InsertAsync(ctn);

Loading…
Cancel
Save