diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index 480ac3d9..d5fdfa70 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -1287,6 +1287,7 @@ namespace Myshipping.Application entity.LANENAME = lanename; entity.LineName = linename; entity.CUSTNO = model.BOOKINGNO; + entity.VOYNOINNER = model.VOYNO; entity.BOOKINGNO = Yitter.IdGenerator.YitIdHelper.NextId().ToString(); entity.CreatedUserId = user.Id; entity.CreatedUserName = user.Name.ToString(); @@ -1435,6 +1436,7 @@ namespace Myshipping.Application } } fdentity.CUSTNO = item.BOOKINGNO; + fdentity.VOYNOINNER = item.VOYNO; fdentity.LANENAME = fenlanename; fdentity.LineName = fenlinename; fdentity.BOOKINGNO = Yitter.IdGenerator.YitIdHelper.NextId().ToString(); @@ -1649,6 +1651,7 @@ namespace Myshipping.Application entity.LANENAME = lanename; entity.LineName = linename; entity.CUSTNO = model.BOOKINGNO; + entity.VOYNOINNER = model.VOYNO; await _rep.AsUpdateable(entity).IgnoreColumns(it => new { it.BOOKINGNO, @@ -1911,9 +1914,10 @@ namespace Myshipping.Application }); } } - entity.CUSTNO = item.BOOKINGNO; + fdentity.CUSTNO = item.BOOKINGNO; fdentity.LANENAME = fenlanename; fdentity.LineName = fenlinename; + fdentity.VOYNOINNER = item.VOYNO; await _rep.AsUpdateable(fdentity).IgnoreColumns(it => new { it.BOOKINGNO, @@ -2113,7 +2117,7 @@ namespace Myshipping.Application /// 爬虫上传船期 /// /// - [HttpGet("/DataSync/SaveSyncVesselDate"), ApiUser(ApiCode = "SaveSyncVesselDate")] + [HttpPost("/DataSync/SaveSyncVesselDate"), ApiUser(ApiCode = "SaveSyncVesselDate")] [SqlSugarUnitOfWork] public async Task SaveSyncVesselDate(List dto) {