Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
d8a7dca0
Commit
d8a7dca0
authored
Aug 19, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
劳务费导入修改
parent
1ca2b4b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+21
-19
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+1
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
d8a7dca0
...
@@ -172,8 +172,8 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -172,8 +172,8 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
Map
<
String
,
Integer
>
checkMap
=
tSalaryAccountService
.
getAccountCheckMap
(
dept
.
getId
(),
DateUtil
.
addMonth
(
configSalary
.
getSalaryMonth
()));
Map
<
String
,
Integer
>
checkMap
=
tSalaryAccountService
.
getAccountCheckMap
(
dept
.
getId
(),
DateUtil
.
addMonth
(
configSalary
.
getSalaryMonth
()));
List
<
String
>
checkListY
=
new
ArrayList
<>();
List
<
String
>
checkListY
=
new
ArrayList
<>();
if
(
CommonConstants
.
THREE_STRING
.
equals
(
salaryType
))
{
// 劳务费和稿酬 薪资类型互斥校验Map格式:本年度#身份证号
// 薪资类型互斥校验Map格式:本年度#身份证号_报表类型
if
(
CommonConstants
.
THREE_STRING
.
equals
(
salaryType
)
||
CommonConstants
.
FOUR_STRING
.
equals
(
salaryType
))
{
if
(
Common
.
isNotNull
(
configSalary
))
{
if
(
Common
.
isNotNull
(
configSalary
))
{
checkListY
=
tSalaryAccountService
.
getAccountYearCheckMap
(
dept
.
getId
());
checkListY
=
tSalaryAccountService
.
getAccountYearCheckMap
(
dept
.
getId
());
}
}
...
@@ -1574,12 +1574,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -1574,12 +1574,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
for
(
int
j
=
0
;
j
<
savList
.
get
(
i
).
getSaiList
().
size
();
j
++)
{
for
(
int
j
=
0
;
j
<
savList
.
get
(
i
).
getSaiList
().
size
();
j
++)
{
sai
=
new
TSalaryAccountItem
();
sai
=
new
TSalaryAccountItem
();
SalaryAccountUtil
.
reflectionAttr
(
savList
.
get
(
i
).
getSaiList
().
get
(
j
),
sai
);
SalaryAccountUtil
.
reflectionAttr
(
savList
.
get
(
i
).
getSaiList
().
get
(
j
),
sai
);
//工资应发
if
(
SalaryConstants
.
RELAY_SALARY_JAVA
.
equals
(
sai
.
getJavaFiedName
()))
{
relaySalary
=
sai
.
getSalaryMoney
();
relaySalarySum
=
relaySalarySum
.
add
(
sai
.
getSalaryMoney
());
}
SalaryAccountUtil
.
reflectionAttr
(
savList
.
get
(
i
).
getSaiList
().
get
(
j
),
sai
);
//个人实发合计
//个人实发合计
if
(
SalaryConstants
.
ACTUAL_SALARY_SUM_JAVA
.
equals
(
sai
.
getJavaFiedName
()))
{
if
(
SalaryConstants
.
ACTUAL_SALARY_SUM_JAVA
.
equals
(
sai
.
getJavaFiedName
()))
{
actualSalarySum
=
actualSalarySum
.
add
(
sai
.
getSalaryMoney
());
actualSalarySum
=
actualSalarySum
.
add
(
sai
.
getSalaryMoney
());
...
@@ -1611,6 +1605,19 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -1611,6 +1605,19 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
}
}
salary
.
setOwnNums
(
ownNum
);
salary
.
setOwnNums
(
ownNum
);
salary
.
setOwnMoney
(
ownMoney
);
salary
.
setOwnMoney
(
ownMoney
);
for
(
TSalaryAccount
account
:
aList
)
{
relaySalarySum
=
relaySalarySum
.
add
(
account
.
getRelaySalaryUnit
());
saiList
=
account
.
getSaiList
();
account
.
setSaiList
(
null
);
account
.
setSalaryFormId
(
salary
.
getId
());
tSalaryAccountService
.
save
(
account
);
for
(
TSalaryAccountItem
item
:
saiList
)
{
item
.
setSalaryAccountId
(
account
.
getId
());
tSalaryAccountItemService
.
save
(
item
);
}
}
TSalaryDetailVo
salaryDetailVo
=
new
TSalaryDetailVo
();
TSalaryDetailVo
salaryDetailVo
=
new
TSalaryDetailVo
();
salaryDetailVo
.
setSalaryAccountList
(
aList
);
salaryDetailVo
.
setSalaryAccountList
(
aList
);
salary
.
setSettlementAmount
(
relaySalarySum
);
salary
.
setSettlementAmount
(
relaySalarySum
);
...
@@ -1637,16 +1644,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -1637,16 +1644,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
salaryDetailVo
.
setSalary
(
salary
);
salaryDetailVo
.
setSalary
(
salary
);
for
(
TSalaryAccount
account
:
aList
)
{
saiList
=
account
.
getSaiList
();
account
.
setSaiList
(
null
);
account
.
setSalaryFormId
(
salary
.
getId
());
tSalaryAccountService
.
save
(
account
);
for
(
TSalaryAccountItem
item
:
saiList
)
{
item
.
setSalaryAccountId
(
account
.
getId
());
tSalaryAccountItemService
.
save
(
item
);
}
}
return
R
.
ok
(
salaryDetailVo
);
return
R
.
ok
(
salaryDetailVo
);
}
}
...
@@ -1709,6 +1706,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -1709,6 +1706,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
a
.
setActualSalary
(
actualSalarySumNow
);
a
.
setActualSalary
(
actualSalarySumNow
);
}
}
a
.
setRelaySalaryUnit
(
relaySalary
);
a
.
setRelaySalaryUnit
(
relaySalary
);
a
.
setRelaySalary
(
actualSalarySumNow
);
// 本次个人应发合计
// 本次个人应发合计
TSalaryAccountItem
sai
=
new
TSalaryAccountItem
();
TSalaryAccountItem
sai
=
new
TSalaryAccountItem
();
sai
.
setCnName
(
SalaryConstants
.
RELAY_SALARY
);
sai
.
setCnName
(
SalaryConstants
.
RELAY_SALARY
);
...
@@ -1716,7 +1714,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -1716,7 +1714,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
sai
.
setIsTax
(
CommonConstants
.
ZERO_INT
);
sai
.
setIsTax
(
CommonConstants
.
ZERO_INT
);
sai
.
setSalaryMoney
(
relaySalary
);
sai
.
setSalaryMoney
(
relaySalary
);
saiList
.
add
(
sai
);
saiList
.
add
(
sai
);
return
nowTaxT
;
if
(
CommonConstants
.
ONE_STRING
.
equals
(
a
.
getIsPersonTax
()))
{
return
nowTaxT
;
}
else
{
return
nowTaxY
;
}
}
}
public
static
BigDecimal
getNowTax
(
BigDecimal
actualSalarySum
)
{
public
static
BigDecimal
getNowTax
(
BigDecimal
actualSalarySum
)
{
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
d8a7dca0
...
@@ -308,7 +308,7 @@ public class SalaryAccountUtil implements Serializable {
...
@@ -308,7 +308,7 @@ public class SalaryAccountUtil implements Serializable {
if
(
Common
.
isNotNull
(
checkListY
)
&&
checkListY
.
contains
(
entity
.
getEmpIdcard
()))
{
if
(
Common
.
isNotNull
(
checkListY
)
&&
checkListY
.
contains
(
entity
.
getEmpIdcard
()))
{
entity
.
setHaveSalaryFlag
(
CommonConstants
.
ONE_INT
);
entity
.
setHaveSalaryFlag
(
CommonConstants
.
ONE_INT
);
}
}
if
(
null
==
error
)
{
if
(
!
Common
.
isNotNull
(
errorList
)
)
{
if
(
Common
.
isNotNull
(
entity
.
getSalaryStyle
()))
{
if
(
Common
.
isNotNull
(
entity
.
getSalaryStyle
()))
{
salaryStyle
=
entity
.
getSalaryStyle
();
salaryStyle
=
entity
.
getSalaryStyle
();
}
else
if
(
configSalary
.
getGrantType
()
!=
null
)
{
}
else
if
(
configSalary
.
getGrantType
()
!=
null
)
{
...
...
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