修改参数保存增加验证

optimize
jianghaiqing 2 years ago
parent 067b2ac07c
commit d742209b3f

@ -3327,6 +3327,16 @@
付款方
</summary>
</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">
<summary>
租户名称
@ -8483,6 +8493,16 @@
EDI扩展信息
</summary>
</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">
<summary>
订舱主表输入参数
@ -9967,32 +9987,32 @@
</summary>
<example>测试1</example>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateTime">
<member name="P:Myshipping.Application.ParaContractNoShowDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateTime">
<member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateTime">
<summary>
更新时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateUserId">
<member name="P:Myshipping.Application.ParaContractNoShowDto.CreateUserId">
<summary>
创建者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.CreateUserName">
<member name="P:Myshipping.Application.ParaContractNoShowDto.CreateUserName">
<summary>
创建者名称
</summary>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateUserId">
<member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateUserId">
<summary>
修改者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaContractNoDto.UpdateUserName">
<member name="P:Myshipping.Application.ParaContractNoShowDto.UpdateUserName">
<summary>
修改者名称
</summary>
@ -10012,32 +10032,32 @@
品名分类名称
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateTime">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateTime">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateTime">
<summary>
更新时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateUserId">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateUserId">
<summary>
创建者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.CreateUserName">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.CreateUserName">
<summary>
创建者名称
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateUserId">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateUserId">
<summary>
修改者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsCategoryDto.UpdateUserName">
<member name="P:Myshipping.Application.ParaGoodsCategoryShowDto.UpdateUserName">
<summary>
修改者名称
</summary>
@ -10084,32 +10104,32 @@
</summary>
<example>红酒</example>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateTime">
<member name="P:Myshipping.Application.ParaGoodsShowDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateTime">
<member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateTime">
<summary>
更新时间
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateUserId">
<member name="P:Myshipping.Application.ParaGoodsShowDto.CreateUserId">
<summary>
创建者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.CreateUserName">
<member name="P:Myshipping.Application.ParaGoodsShowDto.CreateUserName">
<summary>
创建者名称
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateUserId">
<member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateUserId">
<summary>
修改者Id
</summary>
</member>
<member name="P:Myshipping.Application.ParaGoodsDto.UpdateUserName">
<member name="P:Myshipping.Application.ParaGoodsShowDto.UpdateUserName">
<summary>
修改者名称
</summary>
@ -11806,6 +11826,31 @@
<param name="BusinessMsg"></param>
<returns></returns>
</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">
<summary>
我的任务查询
@ -12728,6 +12773,13 @@
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</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">
<summary>
任务管理
@ -12823,5 +12875,12 @@
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
<member name="M:Myshipping.Application.TaskManageService.LaraPaperCalc(System.String[])">
<summary>
提单纸页数计算
</summary>
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
</members>
</doc>

@ -79,6 +79,9 @@ namespace Myshipping.Application
{
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_NAME_CN = model.GoodsNameCN;
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));
if (info == null)
throw Oops.Oh($"品名分类获取失败,请确认{model.Id}对应记录是否存在");
//如果填写了品名分配需要确认根据库中数据一致
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));
if (info == null)
throw Oops.Oh($"约号获取失败,请确认{model.Id}对应记录是否存在");
info.CONTRACT_NO = model.ContractNo;
info.CONTRACT_NAME = model.ContractName;
info.CONTRACT_NAME = model.ContractName;

Loading…
Cancel
Save