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
9742c078
Commit
9742c078
authored
Apr 18, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.3-salary薪资
parent
b8f6ecb7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
2 deletions
+50
-2
TSalaryAccountController.java
...s/v1/yifu/salary/controller/TSalaryAccountController.java
+13
-0
TSalaryStandardController.java
.../v1/yifu/salary/controller/TSalaryStandardController.java
+7
-2
TSalaryStandardService.java
...d/plus/v1/yifu/salary/service/TSalaryStandardService.java
+8
-0
TSalaryStandardServiceImpl.java
.../yifu/salary/service/impl/TSalaryStandardServiceImpl.java
+22
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryAccountController.java
View file @
9742c078
...
@@ -42,6 +42,7 @@ import com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountItemService;
...
@@ -42,6 +42,7 @@ import com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountItemService;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.util.SalaryCommonUtil
;
import
com.yifu.cloud.plus.v1.yifu.salary.util.SalaryCommonUtil
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountSumVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryDetailVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryDetailVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.WageProofDto
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.WageProofDto
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
...
@@ -411,5 +412,17 @@ public class TSalaryAccountController {
...
@@ -411,5 +412,17 @@ public class TSalaryAccountController {
}
}
return
R
.
ok
(
tSalaryAccountService
.
allYearExport
(
tSalaryAccount
));
return
R
.
ok
(
tSalaryAccountService
.
allYearExport
(
tSalaryAccount
));
}
}
/**
* @param salaryId
* @Description: 提交时获取应发实发
* @Author: hgw
* @Date: 2023/4/18 16:30
**/
@Operation
(
description
=
"提交时获取应发实发"
)
@GetMapping
(
"/getAccountSumBySalaryId"
)
public
R
<
TSalaryAccountSumVo
>
getAccountSumBySalaryId
(
@RequestParam
String
salaryId
)
{
return
R
.
ok
(
tSalaryAccountService
.
getAccountSumBySalaryId
(
salaryId
));
}
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryStandardController.java
View file @
9742c078
...
@@ -192,10 +192,15 @@ public class TSalaryStandardController {
...
@@ -192,10 +192,15 @@ public class TSalaryStandardController {
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
// 添加流程进展明细
// 添加流程进展明细
tSalaryStandardService
.
saveRecordLog
(
s
,
user
,
CommonConstants
.
TWO_STRING
,
"提交
审核
"
);
tSalaryStandardService
.
saveRecordLog
(
s
,
user
,
CommonConstants
.
TWO_STRING
,
"提交
,并自动生成收入
"
);
tSalaryStandard
.
setSubmitTime
(
new
Date
());
tSalaryStandard
.
setSubmitTime
(
new
Date
());
tSalaryStandard
.
setStatus
(
CommonConstants
.
ONE_INT
);
tSalaryStandard
.
setStatus
(
CommonConstants
.
dingleDigitIntArray
[
11
]);
tSalaryStandard
.
setIncomeStartTime
(
new
Date
());
tSalaryStandardService
.
updateById
(
tSalaryStandard
);
tSalaryStandardService
.
updateById
(
tSalaryStandard
);
tSalaryStandard
=
tSalaryStandardService
.
getById
(
tSalaryStandard
.
getId
());
// 生成收入
tSalaryStandardService
.
doIncome
(
tSalaryStandard
);
return
R
.
ok
(
"提交成功!"
);
return
R
.
ok
(
"提交成功!"
);
}
else
{
}
else
{
return
R
.
failed
(
"请登录!"
);
return
R
.
failed
(
"请登录!"
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TSalaryStandardService.java
View file @
9742c078
...
@@ -125,4 +125,12 @@ public interface TSalaryStandardService extends IService<TSalaryStandard> {
...
@@ -125,4 +125,12 @@ public interface TSalaryStandardService extends IService<TSalaryStandard> {
**/
**/
R
<
String
>
saveSalaryDiff
(
List
<
AccountByEkpDiffVo
>
voList
);
R
<
String
>
saveSalaryDiff
(
List
<
AccountByEkpDiffVo
>
voList
);
/**
* @Description: 提交后触发生成收入
* @Author: hgw
* @Date: 2023/4/18 16:44
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
doIncome
(
TSalaryStandard
tSalaryStandard
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardServiceImpl.java
View file @
9742c078
...
@@ -242,6 +242,28 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
...
@@ -242,6 +242,28 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
}
}
@Override
public
R
<
String
>
doIncome
(
TSalaryStandard
tSalaryStandard
)
{
if
(
Common
.
isNotNull
(
tSalaryStandard
))
{
R
<
TSettleDomainSelectVo
>
sdr
=
HttpDaprUtil
.
invokeMethodPost
(
archivesProperties
.
getAppUrl
(),
archivesProperties
.
getAppId
()
,
"/tsettledomain/inner/getSettleDomainVoById"
,
tSalaryStandard
.
getDeptId
()
,
TSettleDomainSelectVo
.
class
,
SecurityConstants
.
FROM_IN
);
// 结算主体
TSettleDomainSelectVo
dept
;
if
(
sdr
!=
null
&&
sdr
.
getData
()
!=
null
)
{
dept
=
sdr
.
getData
();
}
else
{
return
R
.
failed
(
"获取项目信息失败,请联管理员!"
);
}
List
<
TSalaryAccount
>
salaryAccountList
=
salaryAccountService
.
getListByIncome
(
tSalaryStandard
.
getId
());
if
(
salaryAccountList
!=
null
&&
!
salaryAccountList
.
isEmpty
())
{
// 异步-收入相关
doSalaryAsync
.
doIncomeDetail
(
dept
,
salaryAccountList
,
tSalaryStandard
.
getId
(),
tSalaryStandard
);
}
}
return
R
.
ok
();
}
/**
/**
* @Description: 删除
* @Description: 删除
* @Author: hgw
* @Author: hgw
...
...
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