This commit is contained in:
2025-12-19 17:15:52 +08:00
parent 8e3b06f929
commit 86b19c4662
3 changed files with 14 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ using Gatedge.ScanCode.Models.K3Request.SaveModel;
using Gatedge.ScanCode.Models.Vo;
using Gatedge.ScanCode.Services.IServices;
using Microsoft.IdentityModel.Tokens;
using Newtonsoft.Json;
namespace Gatedge.ScanCode.Services
{
@@ -89,7 +90,7 @@ namespace Gatedge.ScanCode.Services
billPush.TargetFormId = _TargetFormId; // 目标单据类型:采购入库单
billPush.IsEnableDefaultRule = false; // 不启用默认规则
billPush.IsDraftWhenSaveFail = false; // 保存失败,不自动暂存
var Params = new Dictionary<string, PushCustomParam>();
var paramList = new Dictionary<string, PushCustomParam>();
foreach (var item in barEntityList)
{
var pushCustomParams = new PushCustomParam()
@@ -101,9 +102,9 @@ namespace Gatedge.ScanCode.Services
FLot_Id = item.FLot_Id ?? 0, // 批号Id
FLot_Text = item.FLot_Text ?? string.Empty // 批号文本
};
Params.Add(item.FSrcEntryId ?? "0", pushCustomParams);
paramList.Add(item.FSrcEntryId ?? "0", pushCustomParams);
}
billPush.CustomParams.Add("PushCustomParams", Params);
billPush.CustomParams.Add("PushCustomParams", JsonConvert.SerializeObject(paramList));
// 执行下推