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
85603177
Commit
85603177
authored
Oct 15, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
9e0d35c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+11
-5
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
85603177
...
...
@@ -212,10 +212,10 @@ public class SalaryManagementController {
/**
* 获取薪资组信息
*/
@GetMapping
(
value
=
"/paylist"
)
@GetMapping
(
value
=
"/paylist
/{yemon}
"
)
@ApiOperation
(
value
=
"获取薪资组信息"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
ResponseResult
selectpaylist
(
@CurrentUser
UserBean
userBean
)
{
List
<
XcglAdminXzz
>
xcgladminxzz
=
new
LambdaQueryChainWrapper
<
XcglAdminXzz
>(
xcgladminxzzmapper
).
eq
(
XcglAdminXzz:
:
getQyid
,
userBean
.
getOrgCode
()).
list
();
public
ResponseResult
selectpaylist
(
@CurrentUser
UserBean
userBean
,
@PathVariable
String
yemon
)
{
List
<
XcglAdminXzz
>
xcgladminxzz
=
new
LambdaQueryChainWrapper
<
XcglAdminXzz
>(
xcgladminxzzmapper
).
eq
(
XcglAdminXzz:
:
getQyid
,
userBean
.
getOrgCode
()).
eq
(
XcglAdminXzz:
:
getMonthtime
,
yemon
).
list
();
return
new
ResponseResult
().
success
(
"获取薪资组信息成功"
,
xcgladminxzz
);
}
...
...
@@ -1477,12 +1477,18 @@ public class SalaryManagementController {
}
/**
* 计算薪资
* @param userBean
* @param calcomtiondto
* @return
*/
@PostMapping
(
value
=
"/salary_calculation"
)
@ApiOperation
(
value
=
"计算薪资"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
SalaryCalculation
(
@CurrentUser
UserBean
userBean
,
@RequestBody
CalculatingCompensationDto
calcomtiondto
)
{
//#1、计算个税 (薪资组id、薪资月份)
//查询出薪资组内成员
List
<
XcglAssoXzury
>
paygrlist
=
XcglAssoXzury
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
XcglAssoXzury
>().
lambda
().
eq
(
XcglAssoXzury:
:
getXzzid
,
calcomtiondto
.
getPay_group_id
()));
int
[]
noperincuser
=
new
int
[
paygrlist
.
size
()];
//用来储存没有个税的用户id
...
...
@@ -1495,7 +1501,7 @@ public class SalaryManagementController {
i
++;
}
}
//循环计算
没有
//循环计算
当前薪资月没有个税的用户
for
(
int
gsus
:
noperincuser
)
{
// XcglAssoGsjsmx gsjs = XcglAssoGsjsmx.builder().build().
}
...
...
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