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
b89c5212
Commit
b89c5212
authored
Jun 10, 2020
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '单元格修改' into 读取excel抽取
parents
52dcc918
92f7f024
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
55 deletions
+88
-55
performance/Performance.Api/Controllers/SecondAllotController.cs
+2
-2
performance/Performance.Services/SecondAllotService.cs
+86
-53
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
b89c5212
...
@@ -49,8 +49,8 @@ public ApiResponse List()
...
@@ -49,8 +49,8 @@ public ApiResponse List()
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
SaveValue
(
int
secondid
,
[
FromBody
]
List
<
ag_fixatitem
>
request
)
public
ApiResponse
SaveValue
(
int
secondid
,
[
FromBody
]
List
<
ag_fixatitem
>
request
)
{
{
if
(
secondid
!=
0
&&
(
request
==
null
||
request
.
Count
==
0
))
//
if (secondid != 0 && (request == null || request.Count == 0))
secondAllotService
.
DelValue
(
secondid
,
request
);
//
secondAllotService.DelValue(secondid, request);
var
allotCount
=
request
.
Where
(
t
=>
t
.
AllotId
>
0
).
Select
(
t
=>
t
.
AllotId
).
Distinct
().
Count
();
var
allotCount
=
request
.
Where
(
t
=>
t
.
AllotId
>
0
).
Select
(
t
=>
t
.
AllotId
).
Distinct
().
Count
();
if
(
allotCount
!=
1
||
request
.
Any
(
t
=>
t
.
AllotId
==
0
))
if
(
allotCount
!=
1
||
request
.
Any
(
t
=>
t
.
AllotId
==
0
))
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
b89c5212
This diff is collapsed.
Click to expand it.
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