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
bdfea2f8
Commit
bdfea2f8
authored
May 10, 2021
by
tangzhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
职称补贴
parent
b43aaf28
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Performance.Subsidy/Performance.Subsidy.Api/Controllers/SubsidyController.cs
+6
-6
Performance.Subsidy/Performance.Subsidy.Services/SubsidyService.cs
+2
-3
No files found.
Performance.Subsidy/Performance.Subsidy.Api/Controllers/SubsidyController.cs
View file @
bdfea2f8
...
@@ -49,25 +49,25 @@ public class SubsidyController : ControllerBase
...
@@ -49,25 +49,25 @@ public class SubsidyController : ControllerBase
[
HttpPost
(
"{allotId}/jobtitle"
)]
[
HttpPost
(
"{allotId}/jobtitle"
)]
public
ApiResponse
SaveJobTitle
(
int
allotId
,[
FromBody
]
List
<
sub_jobtitle
>
sub_Jobtitle
)
public
ApiResponse
SaveJobTitle
(
int
allotId
,[
FromBody
]
List
<
sub_jobtitle
>
sub_Jobtitle
)
{
{
bool
a
=
_service
.
SaveJobTitle
(
allotId
,
sub_Jobtitle
);
bool
result
=
_service
.
SaveJobTitle
(
allotId
,
sub_Jobtitle
);
return
new
ApiResponse
(
Status
.
Ok
,
a
);
return
new
ApiResponse
(
Status
.
Ok
,
result
);
}
}
// 个人职称补贴结果查询
// 个人职称补贴结果查询
[
HttpGet
(
"{allotId}/jobtitle/subsidy"
)]
[
HttpGet
(
"{allotId}/jobtitle/subsidy"
)]
public
ApiResponse
GetJobTitleSubsidy
(
int
allotId
)
public
ApiResponse
GetJobTitleSubsidy
(
int
allotId
)
{
{
List
<
sub_subsidy
>
a
=
_service
.
GetJobTitleSubsidy
(
allotId
);
List
<
sub_subsidy
>
subsidies
=
_service
.
GetJobTitleSubsidy
(
allotId
);
return
new
ApiResponse
(
Status
.
Ok
,
a
);
return
new
ApiResponse
(
Status
.
Ok
,
subsidies
);
}
}
// 个人职称补贴结果保存
// 个人职称补贴结果保存
[
HttpPost
(
"{allotId}/jobtitle/subsidy"
)]
[
HttpPost
(
"{allotId}/jobtitle/subsidy"
)]
public
ApiResponse
SaveJobTitleSubsidy
(
int
allotId
,
[
FromBody
]
List
<
sub_subsidy
>
subsidys
)
public
ApiResponse
SaveJobTitleSubsidy
(
int
allotId
,
[
FromBody
]
List
<
sub_subsidy
>
subsidys
)
{
{
bool
a
=
_service
.
SaveJobTitleSubsidy
(
allotId
,
subsidys
);
bool
result
=
_service
.
SaveJobTitleSubsidy
(
allotId
,
subsidys
);
return
new
ApiResponse
(
Status
.
Ok
,
a
);
return
new
ApiResponse
(
Status
.
Ok
,
result
);
}
}
}
}
}
}
Performance.Subsidy/Performance.Subsidy.Services/SubsidyService.cs
View file @
bdfea2f8
...
@@ -38,9 +38,8 @@ public bool SaveJobTitle(int allotId, List<sub_jobtitle> jobtitle)
...
@@ -38,9 +38,8 @@ public bool SaveJobTitle(int allotId, List<sub_jobtitle> jobtitle)
var
CreateDefault
=
_factory
.
CreateDefault
();
var
CreateDefault
=
_factory
.
CreateDefault
();
var
result
=
jobtitle
.
Select
(
t
=>
new
{
AllotID
=
allotId
,
t
.
BasicPerforFee
,
t
.
JobTitle
});
var
result
=
jobtitle
.
Select
(
t
=>
new
{
AllotID
=
allotId
,
t
.
BasicPerforFee
,
t
.
JobTitle
});
var
modify
=
CreateDefault
.
Execute
(
$" update `sub_jobtitle` set BasicPerforFee =@BasicPerforFee WHERE AllotID=@allotId and JobTitle=@JobTitle; "
,
result
);
var
modify
=
CreateDefault
.
Execute
(
$" update `sub_jobtitle` set BasicPerforFee =@BasicPerforFee WHERE AllotID=@allotId and JobTitle=@JobTitle; "
,
result
);
var
storedProcedure
=
CreateDefault
.
Execute
(
"call proc_performance_subsidy(@allotId) ;"
,
result
);
CreateDefault
.
Execute
(
"call proc_performance_subsidy(@allotId) ;"
,
new
{
allotId
});
return
modify
>
0
&&
storedProcedure
>
0
;
return
modify
>
0
;
}
}
public
List
<
sub_subsidy
>
GetJobTitleSubsidy
(
int
allotId
)
public
List
<
sub_subsidy
>
GetJobTitleSubsidy
(
int
allotId
)
...
...
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