修改参数保存增加验证

optimize
jianghaiqing 2 years ago
parent 067b2ac07c
commit d742209b3f

@ -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>
租户名称 租户名称
@ -8483,6 +8493,16 @@
EDI扩展信息 EDI扩展信息
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.BookingOrderDto.GOODSCODE">
<summary>
品名代码
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderDto.GOODSNAME">
<summary>
品名
</summary>
</member>
<member name="T:Myshipping.Application.BookingOrderInput"> <member name="T:Myshipping.Application.BookingOrderInput">
<summary> <summary>
订舱主表输入参数 订舱主表输入参数
@ -9967,32 +9987,32 @@
</summary> </summary>
<example>测试1</example> <example>测试1</example>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateTime"> <member name="P:Myshipping.Application.ParaContractNoShowDto.CreateTime">
<summary> <summary>
创建时间 创建时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateTime"> <member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateTime">
<summary> <summary>
更新时间 更新时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateUserId"> <member name="P:Myshipping.Application.ParaContractNoShowDto.CreateUserId">
<summary> <summary>
创建者Id 创建者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateUserName"> <member name="P:Myshipping.Application.ParaContractNoShowDto.CreateUserName">
<summary> <summary>
创建者名称 创建者名称
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateUserId"> <member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateUserId">
<summary> <summary>
修改者Id 修改者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateUserName"> <member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateUserName">
<summary> <summary>
修改者名称 修改者名称
</summary> </summary>
@ -10012,32 +10032,32 @@
品名分类名称 品名分类名称
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateTime"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateTime">
<summary> <summary>
创建时间 创建时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateTime"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateTime">
<summary> <summary>
更新时间 更新时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateUserId"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateUserId">
<summary> <summary>
创建者Id 创建者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateUserName"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateUserName">
<summary> <summary>
创建者名称 创建者名称
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateUserId"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateUserId">
<summary> <summary>
修改者Id 修改者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateUserName"> <member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateUserName">
<summary> <summary>
修改者名称 修改者名称
</summary> </summary>
@ -10084,32 +10104,32 @@
</summary> </summary>
<example>红酒</example> <example>红酒</example>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateTime"> <member name="P:Myshipping.Application.ParaGoodsShowDto.CreateTime">
<summary> <summary>
创建时间 创建时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateTime"> <member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateTime">
<summary> <summary>
更新时间 更新时间
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateUserId"> <member name="P:Myshipping.Application.ParaGoodsShowDto.CreateUserId">
<summary> <summary>
创建者Id 创建者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateUserName"> <member name="P:Myshipping.Application.ParaGoodsShowDto.CreateUserName">
<summary> <summary>
创建者名称 创建者名称
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateUserId"> <member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateUserId">
<summary> <summary>
修改者Id 修改者Id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateUserName"> <member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateUserName">
<summary> <summary>
修改者名称 修改者名称
</summary> </summary>
@ -11806,6 +11826,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>
我的任务查询 我的任务查询
@ -12728,6 +12773,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>
任务管理 任务管理
@ -12823,5 +12875,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>

@ -79,6 +79,9 @@ namespace Myshipping.Application
{ {
info = await _paraGoodsInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id)); info = await _paraGoodsInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id));
if(info == null)
throw Oops.Oh($"品名信息获取失败,请确认{model.Id}对应记录是否存在");
info.GOODS_CODE = model.GoodsCode; info.GOODS_CODE = model.GoodsCode;
info.GOODS_NAME_CN = model.GoodsNameCN; info.GOODS_NAME_CN = model.GoodsNameCN;
info.GOODS_NAME_EN = model.GoodsNameEN; info.GOODS_NAME_EN = model.GoodsNameEN;
@ -330,6 +333,9 @@ namespace Myshipping.Application
{ {
info = await _paraGoodsCategoryInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id)); info = await _paraGoodsCategoryInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id));
if (info == null)
throw Oops.Oh($"品名分类获取失败,请确认{model.Id}对应记录是否存在");
//如果填写了品名分配需要确认根据库中数据一致 //如果填写了品名分配需要确认根据库中数据一致
if (!info.GOODS_CATEGORY.Equals(model.GoodsCategory, StringComparison.OrdinalIgnoreCase)) if (!info.GOODS_CATEGORY.Equals(model.GoodsCategory, StringComparison.OrdinalIgnoreCase))
{ {
@ -596,6 +602,10 @@ namespace Myshipping.Application
{ {
info = await _paraContractNoInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id)); info = await _paraContractNoInfoRepository.AsQueryable().FirstAsync(t => t.Id == long.Parse(model.Id));
if (info == null)
throw Oops.Oh($"约号获取失败,请确认{model.Id}对应记录是否存在");
info.CONTRACT_NO = model.ContractNo; info.CONTRACT_NO = model.ContractNo;
info.CONTRACT_NAME = model.ContractName; info.CONTRACT_NAME = model.ContractName;
info.CONTRACT_NAME = model.ContractName; info.CONTRACT_NAME = model.ContractName;

Loading…
Cancel
Save