This commit is contained in:
DEVICE8\12494
2023-04-06 14:11:00 +08:00
5 changed files with 9 additions and 30 deletions

View File

@@ -4,9 +4,9 @@
<NoWarn>$(NoWarn);CS1591;CA1307;CS8625;CS8600;CS8601;CS8604;CS8618;</NoWarn>
</PropertyGroup>
<!--<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>-->
</PropertyGroup>
</Project>

View File

@@ -14,9 +14,6 @@ namespace JNPF.Systems;
/// <summary>
/// 高级查询方案管理
/// 版 本V3.4
/// 版 权拓通智联科技有限公司http://www.tuotong-tech.com
/// 日 期2022-06-07.
/// </summary>
[ApiDescriptionSettings(Tag = "System", Name = "AdvancedQuery", Order = 202)]
[Route("api/system/[controller]")]

View File

@@ -318,18 +318,7 @@ public class FormDataParsing : ITransient
else conversionData = data;
break;
default:
//modify by ly on 20230327
var temp = data.ToString();
Regex re = new Regex("(?<=\").*?(?=\")", RegexOptions.None);
if (!re.IsMatch(temp))
{
temp = $"\"{data}\"";
}
if (!temp.StartsWith("[") && !temp.EndsWith("]"))
{
temp = $"[{temp}]";
}
conversionData = temp.ToObject<List<object>>();
conversionData = data.ToString().ToObject<List<object>>();
break;
}
}

View File

@@ -147,9 +147,4 @@ public interface IRunService
/// <param name="formData">表单数据.</param>
/// <param name="isSubFlow">是否子流程.</param>
Task<Dictionary<string, object>> SaveDataToDataByFId(string oldFId, string newFId, List<Dictionary<string, string>> mapRule, Dictionary<string, object> formData, bool isSubFlow = false);
//Task<List<string>> GetUpdateSqlByTemplate(TemplateParsingBase templateInfo, VisualDevModelDataUpInput visualdevModelDataUpForm, string id);
//Task<Dictionary<string, List<Dictionary<string, object>>>> GetCreateSqlByTemplate(TemplateParsingBase templateInfo, VisualDevModelDataCrInput dataInput, string mainId);
}

View File

@@ -166,11 +166,11 @@ public class FlowTemplateService : IFlowTemplateService, IDynamicApiController,
/// </summary>
/// <param name="input">请求参数.</param>
/// <returns></returns>
[HttpGet("FlowJsonList/{id}")]
[HttpGet("{id}/FlowJsonList")]
public async Task<dynamic> GetFlowJsonList(string id, [FromQuery] FlowTemplateListQuery input)
{
var whereLambda = LinqExpression.And<FlowTemplateJsonEntity>();
whereLambda = whereLambda.And(x => x.DeleteMark == null && x.Id == id);
whereLambda = whereLambda.And(x => x.DeleteMark == null && x.TemplateId == id);
var start = new DateTime();
var end = new DateTime();
if (input.endTime != null && input.startTime != null)
@@ -617,7 +617,7 @@ public class FlowTemplateService : IFlowTemplateService, IDynamicApiController,
await _repository.AsSugarClient().Insertable(visibleList).CallEntityMethod(m => m.Creator()).ExecuteCommandAsync();
#region
GetFormIdList(flowTemplateJson.ToObject<List<FlowTemplateModel>>().First().flowTemplateJson, formIdList);
GetFormIdList(flowTemplateJson.ToObject<FlowTemplateJsonModel>(), formIdList);
foreach (var item in formIdList)
{
var formRelationEntity = new FlowFormRelationEntity
@@ -700,7 +700,7 @@ public class FlowTemplateService : IFlowTemplateService, IDynamicApiController,
}
if (visibleList.Count > 0)
await _repository.AsSugarClient().Insertable(visibleList).CallEntityMethod(m => m.Creator()).ExecuteCommandAsync();
GetFormIdList(flowTemplateJson.ToObject<List<FlowTemplateModel>>().First().flowTemplateJson, formIdList);
GetFormIdList(flowTemplateJson.ToObject<FlowTemplateJsonModel>(), formIdList);
foreach (var item in formIdList)
{
var formRelationEntity = new FlowFormRelationEntity
@@ -739,10 +739,8 @@ public class FlowTemplateService : IFlowTemplateService, IDynamicApiController,
var output = new List<FlowEngineVisibleEntity>();
if (josnStr.IsNotEmptyOrNull())
{
// 发起节点属性.
var flow = josnStr.ToObject<List<FlowTemplateModel>>();
var pro = flow.First().flowTemplateJson.properties.ToObject<StartProperties>();
//var pro = josnStr.ToObject<FlowTemplateJsonModel>().properties.ToObject<StartProperties>();
// 发起节点属性.
var pro = josnStr.ToObject<FlowTemplateJsonModel>().properties.ToObject<StartProperties>();
if (pro.initiator.Any())
{
var list = pro.initiator.Select(x => new FlowEngineVisibleEntity() { OperatorId = x, OperatorType = "user" }).ToList();