v3.4.6
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Const;
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Core.Manager.Files;
|
||||
using JNPF.Common.Enums;
|
||||
using JNPF.Common.Extension;
|
||||
@@ -225,7 +226,7 @@ public class FlowEngineService : IFlowEngineService, IDynamicApiController, ITra
|
||||
{
|
||||
var formTemplateBase = new TemplateParsingBase(entity.FormTemplateJson, entity.Tables, true);
|
||||
formDataFieldList = formTemplateBase.SingleFormData
|
||||
.Where(x => x.__config__.jnpfKey != "relationForm" && x.__config__.jnpfKey != "relationFlow")
|
||||
.Where(x => x.__config__.jnpfKey != JnpfKeyConst.RELATIONFORM && x.__config__.jnpfKey != "relationFlow")
|
||||
.Select(x => new FlowEngineFieldOutput() { vmodel = x.__vModel__, label = x.__config__.label }).ToList();
|
||||
}
|
||||
|
||||
@@ -543,21 +544,6 @@ public class FlowEngineService : IFlowEngineService, IDynamicApiController, ITra
|
||||
FormData = entity.FormTemplateJson
|
||||
};
|
||||
var res = await _visualDevService.NoTblToTable(devEntity, mTableName);
|
||||
entity.Tables = res.Tables;
|
||||
entity.FormTemplateJson = res.FormData;
|
||||
var entityData = await _runService.GetInfo(entity.Id);
|
||||
if (entityData != null && entityData.Data != null)
|
||||
{
|
||||
var sqlList = _visualDevService.DataToInsertSql(mTableName, entityData.Data);
|
||||
if (sqlList.Any())
|
||||
{
|
||||
var link = await _flowTaskRepository.GetLinkInfo(entity.DbLinkId) ?? _dataBaseManager.GetTenantDbLink(_userManager.TenantId, _userManager.TenantDbName);
|
||||
foreach (var item in sqlList)
|
||||
{
|
||||
await _dataBaseManager.ExecuteSql(link, item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user