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
cfecb544
Commit
cfecb544
authored
Nov 19, 2020
by
ilal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into develop
parents
4b56f6ac
8f34ce01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+22
-6
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
cfecb544
...
@@ -2194,6 +2194,22 @@ public class SalaryManagementController {
...
@@ -2194,6 +2194,22 @@ public class SalaryManagementController {
//#(上月)# 对应薪资月的-1 个税对标数据 (九月工资:对应8月的个税来计算九月的个税)
//#(上月)# 对应薪资月的-1 个税对标数据 (九月工资:对应8月的个税来计算九月的个税)
XcglAssoGsjsmx
sygs
=
XcglAssoGsjsmx
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
XcglAssoGsjsmx
>().
lambda
().
eq
(
XcglAssoGsjsmx:
:
getUserNum
,
gsus
).
eq
(
XcglAssoGsjsmx:
:
getQyid
,
orgcode
)
XcglAssoGsjsmx
sygs
=
XcglAssoGsjsmx
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
XcglAssoGsjsmx
>().
lambda
().
eq
(
XcglAssoGsjsmx:
:
getUserNum
,
gsus
).
eq
(
XcglAssoGsjsmx:
:
getQyid
,
orgcode
)
.
eq
(
XcglAssoGsjsmx:
:
getSalaryMonth
,
SalaryTool
.
getfirstlastMo
(
salary_month
+
"-01 00:00:00"
)));
.
eq
(
XcglAssoGsjsmx:
:
getSalaryMonth
,
SalaryTool
.
getfirstlastMo
(
salary_month
+
"-01 00:00:00"
)));
boolean
status
=
salary_month
.
contains
(
"-01"
);
double
childrenedu_
=
0
;
//累计子女教育
double
houseloans_
=
0
;
//累计住房贷款利息
double
houserents_
=
0
;
//累计住房租金
double
supportolder_
=
0
;
//累计赡养老人
double
continueedu_
=
0
;
//累计继续教育
double
totalmoney_
=
0
;
//累计专项附加扣除
if
(!
status
&&
sygs
!=
null
)
{
childrenedu_
=
sygs
.
getCumZljy
();
houseloans_
=
sygs
.
getCumZfdklx
();
houserents_
=
sygs
.
getCumZfzj
();
supportolder_
=
sygs
.
getCumSylr
();
continueedu_
=
sygs
.
getCumJxjy
();
totalmoney_
=
sygs
.
getCumZxfjkc
();
}
YgglMainEmp
yh
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
gsus
).
eq
(
YgglMainEmp:
:
getOrgCode
,
orgcode
));
YgglMainEmp
yh
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
gsus
).
eq
(
YgglMainEmp:
:
getOrgCode
,
orgcode
));
//对应算薪月份的专项附加扣除
//对应算薪月份的专项附加扣除
XcglAssoZxfjkc
zxf
=
XcglAssoZxfjkc
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
XcglAssoZxfjkc
>().
lambda
().
eq
(
XcglAssoZxfjkc:
:
getUserid
,
gsus
)
XcglAssoZxfjkc
zxf
=
XcglAssoZxfjkc
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
XcglAssoZxfjkc
>().
lambda
().
eq
(
XcglAssoZxfjkc:
:
getUserid
,
gsus
)
...
@@ -2212,12 +2228,12 @@ public class SalaryManagementController {
...
@@ -2212,12 +2228,12 @@ public class SalaryManagementController {
taxmonth
=
SalaryTool
.
getfirstnextMo
(
salary_month
+
"-01 00:00:00"
);
taxmonth
=
SalaryTool
.
getfirstnextMo
(
salary_month
+
"-01 00:00:00"
);
}
}
gsmx
.
setTaxMonth
(
taxmonth
);
//税款所属月份
gsmx
.
setTaxMonth
(
taxmonth
);
//税款所属月份
gsmx
.
setCumZljy
(
zxf
==
null
?
0
:
(
zxf
.
getChildrenedu
()
==
null
?
0
:
zxf
.
getChildrenedu
()));
//累计子女教育
gsmx
.
setCumZljy
(
zxf
==
null
?
0
:
(
zxf
.
getChildrenedu
()
==
null
?
0
:
zxf
.
getChildrenedu
())
+
childrenedu_
);
//累计子女教育
gsmx
.
setCumZfdklx
(
zxf
==
null
?
0
:
(
zxf
.
getHouseloans
()
==
null
?
0
:
zxf
.
getHouseloans
()));
//累计住房贷款利息
gsmx
.
setCumZfdklx
(
zxf
==
null
?
0
:
(
zxf
.
getHouseloans
()
==
null
?
0
:
zxf
.
getHouseloans
())
+
houseloans_
);
//累计住房贷款利息
gsmx
.
setCumZfzj
(
zxf
==
null
?
0
:
(
zxf
.
getHouserents
()
==
null
?
0
:
zxf
.
getHouserents
()));
//累计住房租金
gsmx
.
setCumZfzj
(
zxf
==
null
?
0
:
(
zxf
.
getHouserents
()
==
null
?
0
:
zxf
.
getHouserents
())
+
houserents_
);
//累计住房租金
gsmx
.
setCumSylr
(
zxf
==
null
?
0
:
(
zxf
.
getSupportolder
()
==
null
?
0
:
zxf
.
getSupportolder
()));
//累计赡养老人
gsmx
.
setCumSylr
(
zxf
==
null
?
0
:
(
zxf
.
getSupportolder
()
==
null
?
0
:
zxf
.
getSupportolder
())
+
supportolder_
);
//累计赡养老人
gsmx
.
setCumJxjy
(
zxf
==
null
?
0
:
(
zxf
.
getContinueedu
()
==
null
?
0
:
zxf
.
getContinueedu
()));
//累计继续教育
gsmx
.
setCumJxjy
(
zxf
==
null
?
0
:
(
zxf
.
getContinueedu
()
==
null
?
0
:
zxf
.
getContinueedu
())
+
continueedu_
);
//累计继续教育
gsmx
.
setCumZxfjkc
(
zxf
==
null
?
0
:
(
zxf
.
getTotalmoney
()
==
null
?
0
:
zxf
.
getTotalmoney
()));
//累计专项附加扣除
gsmx
.
setCumZxfjkc
(
zxf
==
null
?
0
:
(
zxf
.
getTotalmoney
()
==
null
?
0
:
zxf
.
getTotalmoney
())
+
totalmoney_
);
//累计专项附加扣除
gsmx
.
setTaxType
(
"工资薪金所得"
);
//计税类型
gsmx
.
setTaxType
(
"工资薪金所得"
);
//计税类型
gsmx
.
setCurrentIncome
(
wages_payable
);
//本期收入 【应发工资】
gsmx
.
setCurrentIncome
(
wages_payable
);
//本期收入 【应发工资】
SbgjjAssoYjzd
cuspde
=
sbgjjassoyjzdmapper
.
IndividualTotalsbgjj
(
gsus
,
orgcode
,
salary_month
);
SbgjjAssoYjzd
cuspde
=
sbgjjassoyjzdmapper
.
IndividualTotalsbgjj
(
gsus
,
orgcode
,
salary_month
);
...
...
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