refactor 简单优化
- 使用DepartmentDto替换DepartmentEntity - 命名使用rider配置规范
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Dlhis.Basic.Organization.Dto;
|
||||
using Dlhis.Entity.Basic.Entity;
|
||||
using Dlhis.Entity.Device.Entities;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
@@ -47,7 +48,7 @@ public static class RecursionHelper
|
||||
}
|
||||
|
||||
|
||||
public static List<string> HandlerDepartmentNextCodes(string current, List<DepartmentEntity> data)
|
||||
public static List<string> HandlerDepartmentNextCodes(string current, List<DepartmentDto> data)
|
||||
{
|
||||
var result = new List<string> { current };
|
||||
|
||||
@@ -55,7 +56,7 @@ public static class RecursionHelper
|
||||
|
||||
return result;
|
||||
|
||||
static void InternalHandlerCodes(string internalCurrent, List<DepartmentEntity> internalData, List<string> internalResult)
|
||||
static void InternalHandlerCodes(string internalCurrent, List<DepartmentDto> internalData, List<string> internalResult)
|
||||
{
|
||||
var next = internalData.Where(x => x.PNo == internalCurrent);
|
||||
foreach (var item in next)
|
||||
@@ -66,7 +67,7 @@ public static class RecursionHelper
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> HandlerDepartmentPreviousCodes(string current, List<DepartmentEntity> data)
|
||||
public static List<string> HandlerDepartmentPreviousCodes(string current, List<DepartmentDto> data)
|
||||
{
|
||||
var result = new List<string> { current };
|
||||
|
||||
@@ -74,7 +75,7 @@ public static class RecursionHelper
|
||||
|
||||
return result;
|
||||
|
||||
static void InternalHandlerCodes(string internalCurrent, List<DepartmentEntity> internalData, List<string> internalResult)
|
||||
static void InternalHandlerCodes(string internalCurrent, List<DepartmentDto> internalData, List<string> internalResult)
|
||||
{
|
||||
var pno = internalData.FirstOrDefault(x => x.No == internalCurrent)?.PNo;
|
||||
if (pno.IsEmpty())
|
||||
|
||||
Reference in New Issue
Block a user