|
|
@ -18,6 +18,7 @@ using Microsoft.Extensions.Logging;
|
|
|
|
using Myshipping.Application.Helper;
|
|
|
|
using Myshipping.Application.Helper;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Globalization;
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -327,14 +328,14 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
{
|
|
|
|
{
|
|
|
|
placeOfReceipt = new MSKAPIBookingRouteDetailsBase
|
|
|
|
placeOfReceipt = new MSKAPIBookingRouteDetailsBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UNLocationCode = model.isSendNoSchedule ? model.userPlaceOfReceiptUnLocCode
|
|
|
|
UNLocationCode = model.userPlaceOfReceiptUnLocCode
|
|
|
|
: model.placeOfReceiptUnLocCode,
|
|
|
|
//: model.placeOfReceiptUnLocCode,
|
|
|
|
//cityName = model.placeOfReceiptCityName,
|
|
|
|
//cityName = model.placeOfReceiptCityName,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
placeOfDelivery = new MSKAPIBookingRouteDetailsBase
|
|
|
|
placeOfDelivery = new MSKAPIBookingRouteDetailsBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UNLocationCode = model.isSendNoSchedule ? model.userPlaceOfDeliveryUnLocCode
|
|
|
|
UNLocationCode = model.userPlaceOfDeliveryUnLocCode
|
|
|
|
: model.placeOfDeliveryUnLocCode,
|
|
|
|
//: model.placeOfDeliveryUnLocCode,
|
|
|
|
//cityName = model.placeOfDeliveryCityName,
|
|
|
|
//cityName = model.placeOfDeliveryCityName,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectedRoute = new MSKAPIBookingRoute
|
|
|
|
selectedRoute = new MSKAPIBookingRoute
|
|
|
@ -356,14 +357,14 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
startLocation = new MSKAPIBookingRouteDetailsBase
|
|
|
|
startLocation = new MSKAPIBookingRouteDetailsBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//cityName = model.placeOfReceiptCityName,
|
|
|
|
//cityName = model.placeOfReceiptCityName,
|
|
|
|
UNLocationCode = model.isSendNoSchedule ? model.userPlaceOfReceiptUnLocCode
|
|
|
|
UNLocationCode = model.userPlaceOfReceiptUnLocCode
|
|
|
|
: model.placeOfReceiptUnLocCode
|
|
|
|
//: model.placeOfReceiptUnLocCode
|
|
|
|
},
|
|
|
|
},
|
|
|
|
endLocation = new MSKAPIBookingRouteDetailsBase
|
|
|
|
endLocation = new MSKAPIBookingRouteDetailsBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//cityName = model.placeOfDeliveryCityName,
|
|
|
|
//cityName = model.placeOfDeliveryCityName,
|
|
|
|
UNLocationCode = model.isSendNoSchedule ? model.userPlaceOfDeliveryUnLocCode
|
|
|
|
UNLocationCode = model.userPlaceOfDeliveryUnLocCode
|
|
|
|
: model.placeOfDeliveryUnLocCode
|
|
|
|
//: model.placeOfDeliveryUnLocCode
|
|
|
|
},
|
|
|
|
},
|
|
|
|
transportModeCode = model.transportMode
|
|
|
|
transportModeCode = model.transportMode
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -977,6 +978,18 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
//这里因为返回给前端的台账数据是DTO,所以这里排序时候需要转换成Entity对应的字段
|
|
|
|
//这里因为返回给前端的台账数据是DTO,所以这里排序时候需要转换成Entity对应的字段
|
|
|
|
if (!string.IsNullOrWhiteSpace(QuerySearch.SortField))
|
|
|
|
if (!string.IsNullOrWhiteSpace(QuerySearch.SortField))
|
|
|
|
entityOrderCol = MapsterExtHelper.GetAdaptProperty<BookingDeliveryRecordDto, BookingDeliveryRecord>(QuerySearch.SortField);
|
|
|
|
entityOrderCol = MapsterExtHelper.GetAdaptProperty<BookingDeliveryRecordDto, BookingDeliveryRecord>(QuerySearch.SortField);
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
//菜单375504048771141=我的任务台账
|
|
|
|
|
|
|
|
List<long> userlist = await _sysDataUserMenuService.GetDataScopeList(MenuConst.MenuTaskManage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userlist == null)
|
|
|
|
|
|
|
|
userlist = new List<long> { UserManager.UserId };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userlist.Count > 0)
|
|
|
|
|
|
|
|
userlist = userlist.Distinct().ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation("任务台账权限范围 {list}", userlist);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
var entities = await _bookingDeliveryRecordRep.AsQueryable()
|
|
|
|
var entities = await _bookingDeliveryRecordRep.AsQueryable()
|
|
|
|
.WhereIF(createBegin != DateTime.MinValue, t => t.CreatedTime.HasValue && t.CreatedTime.Value >= createBegin)
|
|
|
|
.WhereIF(createBegin != DateTime.MinValue, t => t.CreatedTime.HasValue && t.CreatedTime.Value >= createBegin)
|
|
|
|