Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
c6d3bdbc
Commit
c6d3bdbc
authored
May 28, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤掉 "二年续期佣金",打印一些报错
parent
e81d4549
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
1 deletions
+72
-1
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
+15
-1
yd-api/src/main/java/com/yd/api/practitioner/vo/payscale/PayScaleInfo.java
+20
-0
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/SalaryDetails.java
+37
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
View file @
c6d3bdbc
...
@@ -482,6 +482,12 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -482,6 +482,12 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
}
}
private
void
handleYearsAndMonth
(
String
years
,
String
month
,
PayScaleInfo
payScaleInfo
)
{
private
void
handleYearsAndMonth
(
String
years
,
String
month
,
PayScaleInfo
payScaleInfo
)
{
System
.
out
.
println
(
"看看报错二"
);
System
.
out
.
println
(
years
);
System
.
out
.
println
(
month
);
System
.
out
.
println
(
payScaleInfo
);
Integer
mon
=
Integer
.
valueOf
(
month
);
Integer
mon
=
Integer
.
valueOf
(
month
);
Integer
year
=
Integer
.
valueOf
(
years
);
Integer
year
=
Integer
.
valueOf
(
years
);
if
(
mon
==
11
)
{
if
(
mon
==
11
)
{
...
@@ -712,6 +718,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -712,6 +718,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
QuerySalaryDetailResponseVO
responseVO
=
new
QuerySalaryDetailResponseVO
();
QuerySalaryDetailResponseVO
responseVO
=
new
QuerySalaryDetailResponseVO
();
if
(
"查询成功"
.
equals
(
salaryDetailsSearchResponseVO
.
getResponseHead
().
getMessage
()))
{
if
(
"查询成功"
.
equals
(
salaryDetailsSearchResponseVO
.
getResponseHead
().
getMessage
()))
{
SalaryDetailsSearchResponseBody
salaryDetails
=
salaryDetailsSearchResponseVO
.
getResponseBody
();
SalaryDetailsSearchResponseBody
salaryDetails
=
salaryDetailsSearchResponseVO
.
getResponseBody
();
this
.
createQuerySalaryDetailResponseVO
(
responseVO
,
salaryDetails
);
this
.
createQuerySalaryDetailResponseVO
(
responseVO
,
salaryDetails
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
...
@@ -823,12 +830,19 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -823,12 +830,19 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
if
(
CollectionUtils
.
isNotEmpty
(
salaryDetailsList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
salaryDetailsList
))
{
// 代扣个人所得税
// 代扣个人所得税
Double
total_tax
=
salaryDetailsList
.
get
(
0
).
getTotal_tax
();
Double
total_tax
=
salaryDetailsList
.
get
(
0
).
getTotal_tax
();
responseVO
.
setD
(
total_tax
.
toString
());
responseVO
.
setD
(
String
.
valueOf
(
total_tax
));
System
.
out
.
println
(
"看看报错1"
);
System
.
out
.
println
(
salaryDetailsList
.
get
(
0
));
// 预扣率
// 预扣率
String
rate
=
this
.
getRate
(
salaryDetailsList
.
get
(
0
).
getTotal_commission
());
String
rate
=
this
.
getRate
(
salaryDetailsList
.
get
(
0
).
getTotal_commission
());
responseVO
.
setRate
(
rate
);
responseVO
.
setRate
(
rate
);
// 佣金合计
// 佣金合计
for
(
SalaryDetails
item
:
salaryDetailsList
)
{
for
(
SalaryDetails
item
:
salaryDetailsList
)
{
if
(
"d771080c-5424-11e9-9745-00163e0040a8"
.
equals
(
item
.
getProject_id
()))
{
// 过滤掉salaryName: "二年续期佣金"
continue
;
}
abc
=
abc
.
add
(
BigDecimal
.
valueOf
(
item
.
getCommission
()));
abc
=
abc
.
add
(
BigDecimal
.
valueOf
(
item
.
getCommission
()));
}
}
responseVO
.
setAbc
(
abc
.
toString
());
responseVO
.
setAbc
(
abc
.
toString
());
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/payscale/PayScaleInfo.java
View file @
c6d3bdbc
...
@@ -127,4 +127,24 @@ public class PayScaleInfo {
...
@@ -127,4 +127,24 @@ public class PayScaleInfo {
public
void
setMonth
(
String
month
)
{
public
void
setMonth
(
String
month
)
{
this
.
month
=
month
;
this
.
month
=
month
;
}
}
@Override
public
String
toString
()
{
return
"PayScaleInfo{"
+
"monShId="
+
monShId
+
", salMstId='"
+
salMstId
+
'\''
+
", drpTitleCode='"
+
drpTitleCode
+
'\''
+
", monDtlType='"
+
monDtlType
+
'\''
+
", monDtlItem='"
+
monDtlItem
+
'\''
+
", monDtlPeriod='"
+
monDtlPeriod
+
'\''
+
", monDtlAmount="
+
monDtlAmount
+
", monDtlRAmount="
+
monDtlRAmount
+
", createDate='"
+
createDate
+
'\''
+
", createUser='"
+
createUser
+
'\''
+
", pdfOssPath='"
+
pdfOssPath
+
'\''
+
", loginName='"
+
loginName
+
'\''
+
", years='"
+
years
+
'\''
+
", month='"
+
month
+
'\''
+
'}'
;
}
}
}
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/SalaryDetails.java
View file @
c6d3bdbc
...
@@ -63,4 +63,41 @@ public class SalaryDetails {
...
@@ -63,4 +63,41 @@ public class SalaryDetails {
private
Double
total_tax
;
private
Double
total_tax
;
private
Double
personal_tax
;
private
Double
personal_tax
;
private
Double
after_tax_comis
;
private
Double
after_tax_comis
;
@Override
public
String
toString
()
{
return
"SalaryDetails{"
+
"Project_id='"
+
Project_id
+
'\''
+
", SalaryName='"
+
SalaryName
+
'\''
+
", Appl_No='"
+
Appl_No
+
'\''
+
", CustomerName='"
+
CustomerName
+
'\''
+
", SalaryType='"
+
SalaryType
+
'\''
+
", PayPeriod='"
+
PayPeriod
+
'\''
+
", Pol_Name_Chn='"
+
Pol_Name_Chn
+
'\''
+
", commission="
+
commission
+
", tax_commission="
+
tax_commission
+
", Tax="
+
Tax
+
", AfterTaxCommissionTax="
+
AfterTaxCommissionTax
+
", GrantDate='"
+
GrantDate
+
'\''
+
", Paid_Status='"
+
Paid_Status
+
'\''
+
", Year="
+
Year
+
", Month='"
+
Month
+
'\''
+
", RoleGroupDescription='"
+
RoleGroupDescription
+
'\''
+
", LoginName='"
+
LoginName
+
'\''
+
", StaffName='"
+
StaffName
+
'\''
+
", grade='"
+
grade
+
'\''
+
", AddFyc='"
+
AddFyc
+
'\''
+
", CheckStatus="
+
CheckStatus
+
", CheckDate='"
+
CheckDate
+
'\''
+
", sumcommission="
+
sumcommission
+
", tax_free_comis="
+
tax_free_comis
+
", value_add_tax="
+
value_add_tax
+
", total_commission="
+
total_commission
+
", total_personal_tax="
+
total_personal_tax
+
", total_paid="
+
total_paid
+
", total_tax="
+
total_tax
+
", personal_tax="
+
personal_tax
+
", after_tax_comis="
+
after_tax_comis
+
'}'
;
}
}
}
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