订舱主表增加品名代码、品名字段

optimize
jianghaiqing 2 years ago
parent 0fb62cad62
commit aa2d7f86fe

@ -743,6 +743,18 @@ namespace Myshipping.Application.Entity
/// </summary> /// </summary>
[Description("付款方")] [Description("付款方")]
public string FREIGHTPAYER { get; set; } public string FREIGHTPAYER { get; set; }
/// <summary>
/// 品名代码
/// </summary>
[Description("品名代码")]
public string GOODSCODE { get; set; }
/// <summary>
/// 品名
/// </summary>
[Description("品名")]
public string GOODSNAME { get; set; }
/// <summary> /// <summary>
/// 租户名称 /// 租户名称
/// </summary> /// </summary>

@ -3327,6 +3327,16 @@
付款方 付款方
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.Entity.BookingOrder.GOODSCODE">
<summary>
品名代码
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.GOODSNAME">
<summary>
品名
</summary>
</member>
<member name="P:Myshipping.Application.Entity.BookingOrder.TenantName"> <member name="P:Myshipping.Application.Entity.BookingOrder.TenantName">
<summary> <summary>
租户名称 租户名称
@ -9783,6 +9793,11 @@
分类名称 分类名称
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.QueryBookingPrintTemplateInput.Type">
<summary>
类型FastReport、Excel模板等
</summary>
</member>
<member name="T:Myshipping.Application.BookingTemplateService"> <member name="T:Myshipping.Application.BookingTemplateService">
<summary> <summary>
订舱模板服务 订舱模板服务
@ -11801,6 +11816,31 @@
<param name="BusinessMsg"></param> <param name="BusinessMsg"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="T:Myshipping.Application.LaraPaperCalcInfo">
<summary>
提单纸计算
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperCalcInfo.Indx">
<summary>
顺序号
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperCalcInfo.MBLNo">
<summary>
主单号
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperCalcInfo.DraftNum">
<summary>
DRAFT页数
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperCalcInfo.PaperNum">
<summary>
提单用纸数
</summary>
</member>
<member name="T:Myshipping.Application.QueryTaskManageDto"> <member name="T:Myshipping.Application.QueryTaskManageDto">
<summary> <summary>
我的任务查询 我的任务查询
@ -12723,6 +12763,13 @@
<param name="PKIds">任务主键数组</param> <param name="PKIds">任务主键数组</param>
<returns>返回结果</returns> <returns>返回结果</returns>
</member> </member>
<member name="M:Myshipping.Application.ITaskManageService.LaraPaperCalc(System.String[])">
<summary>
提单纸页数计算
</summary>
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
<member name="T:Myshipping.Application.TaskManageService"> <member name="T:Myshipping.Application.TaskManageService">
<summary> <summary>
任务管理 任务管理
@ -12818,5 +12865,12 @@
<param name="PKIds">任务主键数组</param> <param name="PKIds">任务主键数组</param>
<returns>返回结果</returns> <returns>返回结果</returns>
</member> </member>
<member name="M:Myshipping.Application.TaskManageService.LaraPaperCalc(System.String[])">
<summary>
提单纸页数计算
</summary>
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
</members> </members>
</doc> </doc>

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 提单纸计算
/// </summary>
public class LaraPaperCalcInfo
{
/// <summary>
/// 顺序号
/// </summary>
public int Indx { get; set; }
/// <summary>
/// 主单号
/// </summary>
public string MBLNo { get; set; }
/// <summary>
/// DRAFT页数
/// </summary>
public int DraftNum { get; set; }
/// <summary>
/// 提单用纸数
/// </summary>
public int PaperNum { get; set; }
}
}

@ -70,5 +70,13 @@ namespace Myshipping.Application
/// <returns>返回结果</returns> /// <returns>返回结果</returns>
Task<TaskManageOrderResultDto> PendingTask(string[] PKIds); Task<TaskManageOrderResultDto> PendingTask(string[] PKIds);
/// <summary>
/// 提单纸页数计算
/// </summary>
/// <param name="PKIds">任务主键数组</param>
/// <returns>返回结果</returns>
Task<List<LaraPaperCalcInfo>> LaraPaperCalc(string[] PKIds);
} }
} }

@ -1098,6 +1098,42 @@ namespace Myshipping.Application
return result; return result;
} }
#endregion #endregion
/// <summary>
/// 提单纸页数计算
/// </summary>
/// <param name="PKIds">任务主键数组</param>
/// <returns>返回结果</returns>
public async Task<List<LaraPaperCalcInfo>> LaraPaperCalc(string[] PKIds)
{
List<LaraPaperCalcInfo> list = new List<LaraPaperCalcInfo>();
string batchNo = IDGen.NextID().ToString();
_logger.LogInformation("批次={no} ids={ids} 提单纸页数计算开始", batchNo, string.Join(",", PKIds));
try
{
//_taskBaseInfoRepository.AsQueryable().LeftJoin(_taskFileInfoRepository.AsQueryable(),)
//var taskList = _taskBaseInfoRepository.AsQueryable().Where(t => PKIds.Contains(t.PK_ID)).ToList();
//_logger.LogInformation("批次={no} 获取任务完成Num={Num}", batchNo, taskList.Count);
//taskList.ForEach(async tsk => {
// await InnerManualTask(batchNo, tsk, TaskOperTypeEnum.PENDING_TASK);
//});
}
catch (Exception ex)
{
throw Oops.Bah($"完成任务异常,{0}", ex.Message);
}
return list;
}
} }
} }

Loading…
Cancel
Save