去除引用common.props
This commit is contained in:
@@ -194,7 +194,7 @@ public class FlowBeforeService : IDynamicApiController, ITransient
|
||||
var flowJson = _flowTaskRepository.GetFlowTemplateJsonInfo(x => x.Id == item.FlowId && x.DeleteMark == null);
|
||||
if (flowJson.IsNotEmptyOrNull())
|
||||
{
|
||||
output.Add(new { id = flowJson.Id, fullName =string.Format("{0}(v{1})", flowJson.FullName, flowJson.Version), flowTemplateJson= flowJson.FlowTemplateJson });
|
||||
output.Add(new { id = flowJson.Id, fullName = string.Format("{0}(v{1})", flowJson.FullName, flowJson.Version), flowTemplateJson = flowJson.FlowTemplateJson });
|
||||
}
|
||||
}
|
||||
return output.Distinct();
|
||||
@@ -304,7 +304,7 @@ public class FlowBeforeService : IDynamicApiController, ITransient
|
||||
[HttpGet("Suspend/{taskId}")]
|
||||
public async Task<dynamic> Suspend(string taskId)
|
||||
{
|
||||
return await _flowTaskRepository.AnyFlowTask(x => x.ParentId == taskId && x.IsAsync == 1 && x.DeleteMark == null);
|
||||
return await _flowTaskRepository.AnyFlowTask(x => x.ParentId == taskId && x.IsAsync == 1 && x.DeleteMark == null);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -491,7 +491,7 @@ public class FlowBeforeService : IDynamicApiController, ITransient
|
||||
/// <param name="flowHandleModel">审批参数.</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("Suspend/{taskId}")]
|
||||
public async Task Suspend(string taskId,[FromBody] FlowHandleModel flowHandleModel)
|
||||
public async Task Suspend(string taskId, [FromBody] FlowHandleModel flowHandleModel)
|
||||
{
|
||||
var flowTaskParamter = await _flowTaskRepository.GetTaskParamterByTaskId(taskId, flowHandleModel);
|
||||
await _flowTaskManager.Suspend(flowTaskParamter);
|
||||
|
||||
@@ -182,7 +182,7 @@ public class FlowDelegateService : IDynamicApiController, ITransient
|
||||
public async Task<dynamic> GetFlowList([FromQuery] string flowId)
|
||||
{
|
||||
var userList = await _repository.AsSugarClient()
|
||||
.Queryable<FlowTemplateJsonEntity, FlowDelegateEntity, UserEntity>((a, b, c) => new JoinQueryInfos(JoinType.Left, b.FlowId.Contains(a.TemplateId)||b.FlowName=="全部流程", JoinType.Left, b.UserId == c.Id))
|
||||
.Queryable<FlowTemplateJsonEntity, FlowDelegateEntity, UserEntity>((a, b, c) => new JoinQueryInfos(JoinType.Left, b.FlowId.Contains(a.TemplateId) || b.FlowName == "全部流程", JoinType.Left, b.UserId == c.Id))
|
||||
.Where((a, b, c) => a.Id == flowId && b.Type == "0" && b.ToUserId == _userManager.UserId && b.EndTime > DateTime.Now && b.StartTime < DateTime.Now).Select((a, b, c) => new UserListOutput
|
||||
{
|
||||
id = c.Id,
|
||||
|
||||
@@ -147,7 +147,7 @@ public class FlowEngineService : IFlowEngineService, IDynamicApiController, ITra
|
||||
data = data.FindAll(o => o.fullName.Contains(input.keyword) || o.enCode.Contains(input.keyword));
|
||||
var pageList = new SqlSugarPagedList<FlowEngineListOutput>()
|
||||
{
|
||||
list = data.Skip((input.currentPage - 1)* input.pageSize).Take(input.pageSize).ToList(),
|
||||
list = data.Skip((input.currentPage - 1) * input.pageSize).Take(input.pageSize).ToList(),
|
||||
pagination = new Pagination()
|
||||
{
|
||||
CurrentPage = input.currentPage,
|
||||
@@ -619,7 +619,7 @@ public class FlowEngineService : IFlowEngineService, IDynamicApiController, ITra
|
||||
sortCode = a.SortCode,
|
||||
type = c.Type,
|
||||
visibleType = c.VisibleType,
|
||||
parentId = SqlFunc.Subqueryable<DictionaryDataEntity>().Where(d => d.EnCode == c.Category && d.DictionaryTypeId== "507f4f5df86b47588138f321e0b0dac7").Select(d => d.Id),
|
||||
parentId = SqlFunc.Subqueryable<DictionaryDataEntity>().Where(d => d.EnCode == c.Category && d.DictionaryTypeId == "507f4f5df86b47588138f321e0b0dac7").Select(d => d.Id),
|
||||
}).MergeTable().OrderBy(a => a.sortCode).OrderBy(a => a.creatorTime, OrderByType.Desc)
|
||||
.OrderBy(a => a.lastModifyTime, OrderByType.Desc).ToListAsync();
|
||||
}
|
||||
|
||||
@@ -7,18 +7,15 @@ using JNPF.Common.Security;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.DynamicApiController;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Entitys.Dto.ModuleForm;
|
||||
using JNPF.Systems.Entitys.Model.DataBase;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using JNPF.VisualDev.Engine.Core;
|
||||
using JNPF.VisualDev.Engine.Model;
|
||||
using JNPF.VisualDev.Interfaces;
|
||||
using JNPF.WorkFlow.Entitys.Dto.FlowEngine;
|
||||
using JNPF.WorkFlow.Entitys.Dto.FlowForm;
|
||||
using JNPF.WorkFlow.Entitys.Entity;
|
||||
using JNPF.WorkFlow.Interfaces.Repository;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
@@ -80,7 +80,7 @@ public class FlowLaunchService : IDynamicApiController, ITransient
|
||||
if (await _flowTaskRepository.AnyFlowTask(x => flowTaskParamter.flowTaskEntity.Id == x.ParentId && x.DeleteMark == null && x.Suspend == 1)) throw Oops.Oh(ErrorCode.WF0046);
|
||||
if (flowTaskParamter.flowTaskEntity.Status != 1)
|
||||
throw Oops.Oh(ErrorCode.WF0011);
|
||||
if (flowTaskParamter.flowTaskEntity.ParentId.IsNotEmptyOrNull()&& !flowTaskParamter.flowTaskEntity.ParentId.Equals("0"))
|
||||
if (flowTaskParamter.flowTaskEntity.ParentId.IsNotEmptyOrNull() && !flowTaskParamter.flowTaskEntity.ParentId.Equals("0"))
|
||||
throw Oops.Oh(ErrorCode.WF0015);
|
||||
await _flowTaskManager.Revoke(flowTaskParamter);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ using JNPF.FriendlyException;
|
||||
using JNPF.WorkFlow.Entitys.Model;
|
||||
using JNPF.WorkFlow.Interfaces.Manager;
|
||||
using JNPF.WorkFlow.Interfaces.Service;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace JNPF.WorkFlow.Service;
|
||||
|
||||
@@ -11,9 +11,7 @@ using JNPF.FriendlyException;
|
||||
using JNPF.LinqBuilder;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
using JNPF.Systems.Interfaces.Permission;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using JNPF.VisualDev.Entitys;
|
||||
using JNPF.WorkFlow.Entitys.Dto.FlowTemplate;
|
||||
using JNPF.WorkFlow.Entitys.Entity;
|
||||
using JNPF.WorkFlow.Entitys.Model;
|
||||
|
||||
Reference in New Issue
Block a user