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
9ee6a40c
Commit
9ee6a40c
authored
Dec 20, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
劳务费加暂停发
parent
3908cb9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+34
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
9ee6a40c
...
...
@@ -1601,15 +1601,46 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
tApprovalRecord
.
setApprovalTime
(
DateUtil
.
getCurrentDateTime
());
auditLogService
.
save
(
tApprovalRecord
);
TPauseSalary
ps
;
int
i
=
1
;
BigDecimal
money
;
LocalDateTime
nowTime
=
LocalDateTime
.
now
();
for
(
TSalaryAccount
account
:
aList
)
{
saiList
=
account
.
getSaiList
();
account
.
setSaiList
(
null
);
account
.
setOrderId
(
salary
.
getOrderId
());
account
.
setSalaryFormId
(
salary
.
getId
());
account
.
setRowIndex
(
i
);
i
++;
tSalaryAccountService
.
save
(
account
);
money
=
SalaryConstants
.
B_ZERO
;
for
(
TSalaryAccountItem
item
:
saiList
)
{
if
(
SalaryConstants
.
ACTUAL_SALARY_SUM_JAVA
.
equals
(
item
.
getJavaFiedName
()))
{
money
=
item
.
getSalaryMoney
();
}
item
.
setSalaryAccountId
(
account
.
getId
());
tSalaryAccountItemService
.
save
(
item
);
// 暂停发
}
//暂停发
if
(
SalaryConstants
.
SALARY_GIVE_TIME_VALUE
.
equals
(
account
.
getSalaryGiveTime
()))
{
ps
=
new
TPauseSalary
();
ps
.
setBalance
(
money
);
ps
.
setName
(
account
.
getEmpName
());
ps
.
setIdCard
(
account
.
getEmpIdcard
());
ps
.
setBankName
(
account
.
getBankName
());
ps
.
setBankNo
(
account
.
getBankNo
());
ps
.
setCreateTime
(
nowTime
);
ps
.
setCreateBy
(
user
.
getId
());
ps
.
setSettleDepartId
(
dept
.
getId
());
ps
.
setSettleDepartNo
(
dept
.
getDepartNo
());
ps
.
setSettleDepartName
(
dept
.
getDepartName
());
ps
.
setSalaryFormId
(
salary
.
getId
());
ps
.
setSalaryAccountId
(
account
.
getId
());
ps
.
setSalaryDate
(
account
.
getSalaryMonth
());
ps
.
setSettleDate
(
account
.
getSettlementMonth
());
ps
.
setType
(
SalaryConstants
.
PAUSE_TYPE
[
0
]);
tPauseSalaryService
.
save
(
ps
);
}
}
...
...
@@ -1881,12 +1912,15 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
tApprovalRecord
.
setApprovalTime
(
DateUtil
.
getCurrentDateTime
());
auditLogService
.
save
(
tApprovalRecord
);
int
i
=
1
;
for
(
TSalaryAccount
account
:
aList
)
{
saiList
=
account
.
getSaiList
();
account
.
setSaiList
(
null
);
account
.
setOrderId
(
salary
.
getOrderId
());
account
.
setSalaryFormId
(
salary
.
getId
());
account
.
setRowIndex
(
i
);
tSalaryAccountService
.
save
(
account
);
i
++;
for
(
TSalaryAccountItem
item
:
saiList
)
{
item
.
setSalaryAccountId
(
account
.
getId
());
tSalaryAccountItemService
.
save
(
item
);
...
...
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