Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
63cc39b5
Commit
63cc39b5
authored
Oct 22, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
5846e517
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+15
-2
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
63cc39b5
...
...
@@ -3402,13 +3402,26 @@ public class SalaryManagementController {
@PostMapping
(
value
=
"/pushpayslip"
)
@ApiOperation
(
value
=
"发送工资条"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
PushPayslip
(
@CurrentUser
UserBean
userBean
,
@RequestBody
PushPayslipDto
pays
)
{
public
Result
<
Object
>
PushPayslip
(
@CurrentUser
UserBean
userBean
,
@RequestBody
APPPayslipPeriodDto
apppays
)
{
PushPayslipDto
pays
=
new
PushPayslipDto
();
XcglAssoGztzt
gzt
=
XcglAssoGztzt
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
XcglAssoGztzt
>().
lambda
().
eq
(
XcglAssoGztzt:
:
getUserid
,
apppays
.
getUserid
())
.
eq
(
XcglAssoGztzt:
:
getXzyf
,
apppays
.
getXzyf
()).
eq
(
XcglAssoGztzt:
:
getQyid
,
userBean
.
getOrgCode
()));
if
(
gzt
!=
null
)
{
pays
.
setGztid
(
gzt
.
getId
());
pays
.
setXzzid
(
gzt
.
getXzzid
());
pays
.
setUserid
(
gzt
.
getUserid
());
pays
.
setXzyf
(
gzt
.
getXzyf
());
}
String
strY
=
new
SimpleDateFormat
(
"yyyy"
).
format
(
new
Date
());
// double prescription = 8;
//顶层
AppPayslipDetailsDto
top
=
new
AppPayslipDetailsDto
();
//工资条数据
XcglAssoGztzt
gzt
=
XcglAssoGztzt
.
builder
().
id
(
pays
.
getGztid
()).
build
().
selectById
();
//
XcglAssoGztzt gzt = XcglAssoGztzt.builder().id(pays.getGztid()).build().selectById();
if
(
gzt
!=
null
&&
gzt
.
getFsType
()
==
1
)
{
//已发送的工资条
top
.
setId
(
gzt
.
getId
());
top
.
setNetsalary
(
gzt
.
getSfgz
());
//实发工资
...
...
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