@@ -17,7 +17,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<!-- 平台模型与信封(DException/ErrorCode/BoaUser 等):从 Nexus nuget-group 引用(原为本地源项目引用) -->
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -68,22 +68,10 @@ namespace YhCore.Model.Dto
|
||||
/// <summary>全部字典类别(typeID, typeName),对齐旧 EnumConfig.Dictionary 的 Description。</summary>
|
||||
public static readonly (string Id, string Name)[] AllTypes =
|
||||
{
|
||||
("DEPT", "部门类别"),
|
||||
("BXBM", "报修部门"),
|
||||
("WYFL", "文印分类"),
|
||||
("YZBM", "印制版面"),
|
||||
("YZFL", "印制分类"),
|
||||
("LeaveType", "请假类别"),
|
||||
("FoodType", "物品类别"),
|
||||
("Unit", "单位"),
|
||||
("VenueType", "场馆类别"),
|
||||
("Vefacilities", "场馆设施"),
|
||||
("Time", "场馆时间"),
|
||||
("Repeat", "场馆重复"),
|
||||
("LevelOrder", "奖次"),
|
||||
("filetype", "文件类型"),
|
||||
("doclevel", "公文级别"),
|
||||
("XKCategory", "选课类型"),
|
||||
("filetype", "文件类型")
|
||||
};
|
||||
|
||||
/// <summary>GetSysDic 的 Type(int) → typeID;越界返回 null。</summary>
|
||||
|
||||
@@ -400,7 +400,7 @@ namespace YhCore.Service.Impl
|
||||
|
||||
#region 审核角色流程
|
||||
|
||||
public async Task<PageVO<SHRoleFlowListItem>> ListFlowAsync(string name, int pageSize, int pageIndex, string schSerId, int flowType, bool edit)
|
||||
public async Task<List<SHRoleFlowListItem>> ListFlowAsync(string name, int pageSize, int pageIndex, string schSerId, int flowType, bool edit)
|
||||
{
|
||||
var resultList = (await _flowinfo.FindAsync(m => m.flowType == flowType && m.schSerID == schSerId)).ToList();
|
||||
|
||||
@@ -422,8 +422,8 @@ namespace YhCore.Service.Impl
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
resultList = resultList.Where(m => m.flowname != null && m.flowname.IndexOf(name) >= 0).ToList();
|
||||
|
||||
var ordered = resultList.OrderBy(m => m.SerID).ToList();
|
||||
var items = ordered.Skip(pageSize * pageIndex).Take(pageSize)
|
||||
// 旧 ListFlow 的 Data 是纯数组(字段 SerID/flowname/deptid/typeid/enable/enablename/miaoshu/deitdate/ChaoSend/StepSend/WYPageGG 原样大小写),无总数包装
|
||||
return resultList.OrderBy(m => m.SerID).Skip(pageSize * pageIndex).Take(pageSize)
|
||||
.Select(item => new SHRoleFlowListItem
|
||||
{
|
||||
SerID = item.SerID.ToString(),
|
||||
@@ -439,8 +439,6 @@ namespace YhCore.Service.Impl
|
||||
WYPageGG = item.WYPageGG,
|
||||
})
|
||||
.ToList();
|
||||
|
||||
return PageVO<SHRoleFlowListItem>.Of(items, ordered.Count, pageIndex, pageSize);
|
||||
}
|
||||
|
||||
public async Task<string> EditFlowAsync(Common_flowinfo model)
|
||||
|
||||
@@ -31,7 +31,8 @@ namespace YhCore.Service.Interfaces
|
||||
Task<string> DelSHRoleAsync(string schSerId, List<decimal?> listSHRoleId);
|
||||
|
||||
// ---- 审核角色流程 ----
|
||||
Task<PageVO<SHRoleFlowListItem>> ListFlowAsync(string name, int pageSize, int pageIndex, string schSerId, int flowType, bool edit);
|
||||
/// <summary>旧 ListFlow 的 Data 为纯数组(非分页对象),此处保持裸 List 对齐旧 data 内容。</summary>
|
||||
Task<List<SHRoleFlowListItem>> ListFlowAsync(string name, int pageSize, int pageIndex, string schSerId, int flowType, bool edit);
|
||||
Task<string> EditFlowAsync(Common_flowinfo model);
|
||||
Task<string> StepCreateOfSHRoleAsync(Common_flowstep model);
|
||||
Task<SHRoleStepInfo> GetStepInfoAsync(string schSerId, decimal flowid);
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
<ItemGroup>
|
||||
<!-- 业务异常 DException / ErrorCode / IErrorCode:从 Nexus nuget-group 引用(原为本地源项目引用) -->
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.2" />
|
||||
<!-- 教务(SchClass)开放接口 SDK:教师/学校查询(C1 reviewprocess 教师类接口):从 Nexus nuget-group 引用(原为本地源项目引用) -->
|
||||
<PackageReference Include="Yh.SchClass.OpenApi" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.SchClass.OpenApi" Version="1.0.0-preview.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Yh.Platform.Abstractions;
|
||||
using Yh.SchClass.OpenApi;
|
||||
using Yh.SchClass.OpenApi.Model;
|
||||
using YhCore.Common;
|
||||
using YhCore.Common.Config;
|
||||
using YhCore.Common.UserContext;
|
||||
@@ -38,12 +39,11 @@ namespace YhCore.WebApi.Controllers.Api.Common
|
||||
}
|
||||
|
||||
|
||||
/// <summary>获取指定字典数据(Type 1~10)。</summary>
|
||||
//[HttpGet("GetSchoolAll")]
|
||||
//public async Task<List<DicOption>> GetSchoolAll([FromQuery] int type = 0)
|
||||
//{
|
||||
// return await _sch.S.GetSchTeaInfoAsync(SchSerID(), null);
|
||||
//}
|
||||
[HttpGet("GetSchoolAll")]
|
||||
public async Task<List<TeaTreeVo>> GetSchoolAll([FromQuery] int type = 0)
|
||||
{
|
||||
return await _sch.SchTree.GetTeaTreeAsync(SchSerID(), null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -118,9 +118,9 @@ namespace YhCore.WebApi.Controllers.Api.DocPrint
|
||||
|
||||
#region 审核角色流程
|
||||
|
||||
/// <summary>审核流程列表(旧 ListFlow)。</summary>
|
||||
/// <summary>审核流程列表(旧 ListFlow;data 与旧 Data 一致为纯数组,字段大小写原样)。</summary>
|
||||
[HttpGet("ListFlow")]
|
||||
public async Task<PageVO<SHRoleFlowListItem>> ListFlow(
|
||||
public async Task<List<SHRoleFlowListItem>> ListFlow(
|
||||
[FromQuery] string name = null,
|
||||
[FromQuery] int pageSize = 10,
|
||||
[FromQuery] int pageIndex = 0,
|
||||
|
||||
@@ -36,11 +36,11 @@
|
||||
|
||||
<ItemGroup>
|
||||
<!-- 平台基础(Abstractions/AppAuth/Auth/OpenApi + 教务 SDK):从 Nexus nuget-group 引用(原为本地源项目引用) -->
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.AppAuth" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.Auth" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.OpenApi" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.SchClass.OpenApi" Version="1.0.0-preview.1" />
|
||||
<PackageReference Include="Yh.Platform.Abstractions" Version="1.0.0-preview.2" />
|
||||
<PackageReference Include="Yh.Platform.AppAuth" Version="1.0.0-preview.2" />
|
||||
<PackageReference Include="Yh.Platform.Auth" Version="1.0.0-preview.2" />
|
||||
<PackageReference Include="Yh.Platform.OpenApi" Version="1.0.0-preview.2" />
|
||||
<PackageReference Include="Yh.SchClass.OpenApi" Version="1.0.0-preview.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user