Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
1827f5d5
Commit
1827f5d5
authored
Apr 12, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
45709e57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
34 deletions
+3
-34
performance/Performance.DtoModels/Response/CheckLogResponse.cs
+0
-18
performance/Performance.Services/AllotService.cs
+3
-16
No files found.
performance/Performance.DtoModels/Response/CheckLogResponse.cs
deleted
100644 → 0
View file @
45709e57
using
Performance.EntityModels
;
using
System.Collections.Generic
;
namespace
Performance.DtoModels
{
public
class
CheckLogResponse
{
/// <summary>
/// 1、信息(info)2、警告(warn)3、错误(error)
/// </summary>
public
string
Level
{
get
;
set
;
}
/// <summary>
/// log_check集合
/// </summary>
public
List
<
log_check
>
Row
{
get
;
set
;
}
}
}
performance/Performance.Services/AllotService.cs
View file @
1827f5d5
...
...
@@ -284,25 +284,12 @@ public List<AgainAllotResponse> GetAgainAllotNotSucceed(per_allot allot)
/// </summary>
/// <param name="allot"></param>
/// <returns></returns>
public
List
<
CheckLogResponse
>
AllotCheckResult
(
per_allot
allot
)
public
List
<
log_check
>
AllotCheckResult
(
per_allot
allot
)
{
List
<
CheckLogResponse
>
result
=
new
List
<
CheckLogResponse
>();
var
list
=
perforLogcheckRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
list
!=
null
)
{
//list = list.OrderBy(t => t.Type).ThenBy(t => t.ID).ToList();
Dictionary
<
int
,
string
>
keyValues
=
new
Dictionary
<
int
,
string
>
{
{
1
,
"info"
},
{
2
,
"warn"
},
{
3
,
"error"
}
};
foreach
(
var
item
in
keyValues
)
{
CheckLogResponse
data
=
new
CheckLogResponse
{
Level
=
item
.
Value
,
Row
=
list
.
Where
(
t
=>
t
.
Level
==
item
.
Key
).
OrderBy
(
t
=>
t
.
Type
).
ThenBy
(
t
=>
t
.
ID
).
ToList
()
};
result
.
Add
(
data
);
}
}
return
result
;
list
=
list
.
OrderBy
(
t
=>
t
.
Titile
).
ThenBy
(
t
=>
t
.
ID
).
ToList
();
return
list
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment