wet 1 year ago
commit 82ef7cc6e1

@ -71,7 +71,8 @@ namespace Myshipping.Application.Job
{ {
x.Id, x.Id,
x.MBLNO, x.MBLNO,
x.ParentId x.ParentId,
x.VERSION
}) })
.ToList(); .ToList();
@ -82,7 +83,8 @@ namespace Myshipping.Application.Job
.Select(x => new HCDataCompareSendSubModel .Select(x => new HCDataCompareSendSubModel
{ {
Id = x.Id, Id = x.Id,
MBLNO = x.MBLNO MBLNO = x.MBLNO,
VERSION = x.VERSION
}) })
.ToList(); .ToList();
} }
@ -98,7 +100,8 @@ namespace Myshipping.Application.Job
.Select(x => new HCDataCompareSendModel .Select(x => new HCDataCompareSendModel
{ {
Id = x.Id, Id = x.Id,
MBLNO = x.MBLNO MBLNO = x.MBLNO,
VERSION = x.VERSION
}) })
.ToList(); .ToList();
@ -171,6 +174,8 @@ namespace Myshipping.Application.Job
public string MBLNO { get; set; } public string MBLNO { get; set; }
public string VERSION { get; set; }
public List<HCDataCompareSendSubModel> Sub { get; set; } public List<HCDataCompareSendSubModel> Sub { get; set; }
} }
@ -179,5 +184,7 @@ namespace Myshipping.Application.Job
public long Id { get; set; } public long Id { get; set; }
public string MBLNO { get; set; } public string MBLNO { get; set; }
public string VERSION { get; set; }
} }
} }

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 派车任务台账保存
/// </summary>
public class TruckPageDto
{
/// <summary>
/// 任务主键
/// </summary>
public string TaskPKId { get; set; }
/// <summary>
/// 车队ID
/// </summary>
public Nullable<long> TruckId { get; set; }
/// <summary>
/// 车队代码
/// </summary>
public string TruckCode { get; set; }
/// <summary>
/// 车队代码
/// </summary>
public string TruckName { get; set; }
}
}

@ -1369,5 +1369,57 @@ namespace Myshipping.Application
return rtn; return rtn;
} }
/// <summary>
/// 派车任务台账保存
/// </summary>
/// <param name="model">请求详情</param>
/// <returns>返回回执</returns>
[HttpPost("/TaskManageTruck/SaveTruckByPage")]
public async Task<TaskManageOrderResultDto> SaveTruckByPage([FromBody] TruckPageDto model)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
try
{
var entity = _taskTruckRepository.AsQueryable().First(a => a.TASK_ID == model.TaskPKId);
if (model == null)
throw Oops.Oh($"派车信息获取失败,派车信息不存在或已作废");
//校验
ValidateTruck(OperateTypeEnum.Save, new TaskTruckInfo[] { entity });
entity.TruckId = model.TruckId;
entity.TruckCode = model.TruckCode;
entity.TruckName = model.TruckName;
entity.UpdatedTime = DateTime.Now;
entity.UpdatedUserId = UserManager.UserId;
entity.UpdatedUserName = UserManager.Name;
//更新
await _taskTruckRepository.AsUpdateable(entity).UpdateColumns(it => new
{
it.TruckId,
it.TruckCode,
it.TruckName,
it.UpdatedTime,
it.UpdatedUserId,
it.UpdatedUserName
}).ExecuteCommandAsync();
result.succ = true;
result.msg = "保存成功";
}
catch (Exception ex)
{
result.succ = false;
result.msg = $"{ex.Message}";
}
return result;
}
} }
} }

@ -11111,6 +11111,11 @@
客服 客服
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Core.Service.DjyCustomerOutput.TIDANINFO">
<summary>
提单信息
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerOutput.ServiceItem"> <member name="P:Myshipping.Core.Service.DjyCustomerOutput.ServiceItem">
<summary> <summary>
服务项目 服务项目

@ -156,6 +156,10 @@ namespace Myshipping.Core.Service
/// </summary> /// </summary>
public string CUSTSERVICE { get; set; } public string CUSTSERVICE { get; set; }
/// <summary> /// <summary>
/// 提单信息
/// </summary>
public string TIDANINFO { get; set; }
/// <summary>
/// 服务项目 /// 服务项目
/// </summary> /// </summary>
public string ServiceItem { get; set; } public string ServiceItem { get; set; }

@ -297,10 +297,10 @@ namespace Myshipping.Report.Controllers
private string GetBookingJson(long bookingId) private string GetBookingJson(long bookingId)
{ {
log.Debug($"准备获取订舱数据:{bookingId}"); log.Debug($"准备获取订舱数据:{bookingId}");
var order = sqlSugarClient.Queryable<BookingOrder>().First(x => x.Id == bookingId); var order = sqlSugarClient.Queryable<BookingOrder>().First(x => x.Id == bookingId && x.IsDeleted == false);
var ctns = sqlSugarClient.Queryable<BookingCtn>().Where(x => x.BILLID == bookingId).ToList(); var ctns = sqlSugarClient.Queryable<BookingCtn>().Where(x => x.BILLID == bookingId && x.IsDeleted == false).ToList();
var bookingEdi = sqlSugarClient.Queryable<BookingEDIExt>().First(x => x.BookingId == bookingId); var bookingEdi = sqlSugarClient.Queryable<BookingEDIExt>().First(x => x.BookingId == bookingId && x.IsDeleted == false);
var letterYard = sqlSugarClient.Queryable<BookingLetteryard>().First(x => x.BookingId == bookingId); var letterYard = sqlSugarClient.Queryable<BookingLetteryard>().First(x => x.BookingId == bookingId && x.IsDeleted == false);
long uid = 0; long uid = 0;
if (!string.IsNullOrEmpty(order.OPID)) if (!string.IsNullOrEmpty(order.OPID))

Loading…
Cancel
Save