optimize
wet 2 years ago
parent 8a885bbd8b
commit f7daccb4a6

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

Loading…
Cancel
Save