1、修改派车去掉订单booking_order的VERSION的更新动作

2、修改服务项目和状态去掉VERSION的赋值
optimize
jianghaiqing 1 year ago
parent adf7598ae6
commit 5051c9c075

@ -9645,7 +9645,7 @@ namespace Myshipping.Application
.First(a => a.Id == bookingId);
model.BSSTATUSNAME = maxStatus.ShowName;
model.VERSION = IDGen.NextID().ToString().Replace("-", "");
//model.VERSION = IDGen.NextID().ToString().Replace("-", "");
//更新订舱
_rep.AsUpdateable(model)
@ -9744,7 +9744,7 @@ namespace Myshipping.Application
model.BSSTATUSNAME = string.Empty;
}
model.VERSION = IDGen.NextID().ToString().Replace("-", "");
//model.VERSION = IDGen.NextID().ToString().Replace("-", "");
//更新订舱
_rep.AsUpdateable(model)

@ -1946,13 +1946,13 @@ namespace Myshipping.Application
bookingOrder.TRUCKERID = null;
bookingOrder.TRUCKER = null;
bookingOrder.VERSION = IDGen.NextID().ToString().Replace("-", "");
//bookingOrder.VERSION = IDGen.NextID().ToString().Replace("-", "");
_bookingOrderRepository.AsUpdateable(bookingOrder).UpdateColumns(it => new
{
it.TRUCKERID,
it.TRUCKER,
it.VERSION
//it.VERSION
}).ExecuteCommand();
var syncDongshengRlt = await _bookingOrderService.SendBookingOrder(new long[] { bookingTruckInfo.BookingId.Value });
@ -1978,13 +1978,13 @@ namespace Myshipping.Application
bookingOrder.TRUCKERID = info.TruckCode;
bookingOrder.TRUCKER = info.TruckName;
bookingOrder.VERSION = IDGen.NextID().ToString().Replace("-", "");
//bookingOrder.VERSION = IDGen.NextID().ToString().Replace("-", "");
_bookingOrderRepository.AsUpdateable(bookingOrder).UpdateColumns(it => new
{
it.TRUCKERID,
it.TRUCKER,
it.VERSION
//it.VERSION
}).ExecuteCommand();
//这里直接调用订舱服务的功能,担心有异常所以这里单独做了异常捕获

Loading…
Cancel
Save