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
03eef406
Commit
03eef406
authored
Nov 04, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义列都改为文本类型
parent
557e86ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
performance/Performance.Services/ConfigService.cs
+13
-5
No files found.
performance/Performance.Services/ConfigService.cs
View file @
03eef406
...
...
@@ -1781,7 +1781,7 @@ public HandsonTable QueryHandsCustom(string tableName)
{
var
custom
=
perforReport
.
QueryCustomColumn
(
tableName
);
var
isExist
=
perforReport
.
QueryIsAllotId
(
tableName
);
if
(
custom
==
null
||
isExist
==
false
)
if
(
custom
==
null
||
isExist
==
false
)
return
null
;
var
dicCustom
=
new
List
<
string
>();
...
...
@@ -1799,6 +1799,14 @@ public HandsonTable QueryHandsCustom(string tableName)
Visible
=
1
}).
ToList
());
if
(
result
.
Columns
!=
null
&&
result
.
Columns
.
Any
())
{
foreach
(
var
column
in
result
.
Columns
)
{
column
.
Type
=
"text"
;
}
}
return
result
;
}
...
...
@@ -1806,13 +1814,13 @@ public HandsonTable QueryHandsCustom(string tableName)
public
bool
SaveCustomTable
(
SaveCustomData
request
)
{
var
custom
=
perforReport
.
QueryCustomColumn
(
request
.
TableName
);
var
dicCustom
=
new
Dictionary
<
string
,
object
>();
for
(
int
i
=
0
;
i
<
custom
.
Count
();
i
++)
{
var
dic
=
((
IDictionary
<
string
,
object
>)
custom
.
ElementAt
(
i
)).
Values
;
dicCustom
.
Add
(
dic
.
ElementAt
(
0
).
ToString
(),
dic
.
ElementAt
(
1
).
ToString
());
}
dicCustom
.
Add
(
dic
.
ElementAt
(
0
).
ToString
(),
dic
.
ElementAt
(
1
).
ToString
());
}
var
dicData
=
CreateCustomRow
(
request
.
AllotId
,
request
,
dicCustom
);
...
...
@@ -1837,7 +1845,7 @@ public CustomResponse QueryCustom(CustomPagingRequest request)
var
heads
=
perforReport
.
QueryCustomColumn
(
request
.
TableName
);
var
isExist
=
perforReport
.
QueryIsAllotId
(
request
.
TableName
);
if
(
isExist
==
false
||
heads
==
null
)
if
(
isExist
==
false
||
heads
==
null
)
{
result
.
isNorm
=
false
;
return
result
;
...
...
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