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
0d27fdac
Commit
0d27fdac
authored
Apr 23, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'MVP1.5.3-SALARY' into MVP1.5.3
parents
9d059fbf
9742c078
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
6 deletions
+56
-6
CASproperties.java
...om/yifu/cloud/plus/v1/yifu/auth/config/CASproperties.java
+2
-0
PasswordDecoderFilter.java
...cloud/plus/v1/yifu/auth/filter/PasswordDecoderFilter.java
+3
-3
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+1
-1
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-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/config/CASproperties.java
View file @
0d27fdac
...
@@ -12,5 +12,7 @@ public class CASproperties {
...
@@ -12,5 +12,7 @@ public class CASproperties {
*/
*/
public
static
String
CAS_SERVER_PATH
=
"http://192.168.1.62:8443/cas"
;
public
static
String
CAS_SERVER_PATH
=
"http://192.168.1.62:8443/cas"
;
public
static
String
SPRING_SECURITY_CAS_SERVER
=
"http://192.168.1.62:8443/cas/v1/tickets"
;
public
static
String
SPRING_SECURITY_CAS_SERVER
=
"http://192.168.1.62:8443/cas/v1/tickets"
;
}
}
yifu-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/filter/PasswordDecoderFilter.java
View file @
0d27fdac
...
@@ -71,9 +71,9 @@ public class PasswordDecoderFilter extends UsernamePasswordAuthenticationFilter
...
@@ -71,9 +71,9 @@ public class PasswordDecoderFilter extends UsernamePasswordAuthenticationFilter
wholeForm
.
clear
();
wholeForm
.
clear
();
wholeForm
.
add
(
"service"
,
CASproperties
.
CLIENT_LOGIN_PAGE
);
wholeForm
.
add
(
"service"
,
CASproperties
.
CLIENT_LOGIN_PAGE
);
wholeForm
.
add
(
"ticket"
,
st
);
wholeForm
.
add
(
"ticket"
,
st
);
obj
=
restTemplate
.
exchange
(
CASproperties
.
CAS_SERVER_PATH
+
"/p3/serviceValidate?service="
+
CASproperties
.
CLIENT_LOGIN_PAGE
+
"&ticket="
+
st
+
"&format=JSON"
obj
=
restTemplate
.
getForEntity
(
CASproperties
.
CAS_SERVER_PATH
+
"/p3/serviceValidate?service="
+
CASproperties
.
CLIENT_LOGIN_PAGE
+
"&ticket="
+
st
+
"&format=JSON"
,
HttpMethod
.
GET
,
entity
,
String
.
class
);
,
String
.
class
,
CASproperties
.
CLIENT_LOGIN_PAGE
,
st
,
"JSON"
);
log
.
info
(
"cas返回用户信息》》》"
,
JSON
.
toJSONString
(
obj
));
log
.
info
(
"cas返回用户信息》》》"
,
JSON
.
toJSONString
(
obj
));
if
(
obj
.
getStatusCode
().
value
()
==
200
){
if
(
obj
.
getStatusCode
().
value
()
==
200
){
try
{
try
{
JSONObject
result
=
JSON
.
parseObject
(
obj
.
getBody
());
JSONObject
result
=
JSON
.
parseObject
(
obj
.
getBody
());
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
0d27fdac
...
@@ -134,7 +134,7 @@ emp.dispatch.fund.percent.not.exist=\u6D3E\u589E\u5F02\u5E38\uFF1A\u672A\u627E\u
...
@@ -134,7 +134,7 @@ emp.dispatch.fund.percent.not.exist=\u6D3E\u589E\u5F02\u5E38\uFF1A\u672A\u627E\u
emp.dispatch.social.and.fund.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
6B64
\u
4E3A
\u
793E
\u
4FDD
\u
516C
\u
79EF
\u
91D1
\u
6D3E
\u5355\u
6A21
\u
677F
\u
FF0C
\u5982\u5355\u
6D3E
\u6863\u6848\u
FF0C
\u
8BF7
\u
81F3
\u
201C
\u5728\u6863\u
4EBA
\u5458\u
201D
\u
83DC
\u5355\u5904\u
64CD
\u
4F5C
emp.dispatch.social.and.fund.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
6B64
\u
4E3A
\u
793E
\u
4FDD
\u
516C
\u
79EF
\u
91D1
\u
6D3E
\u5355\u
6A21
\u
677F
\u
FF0C
\u5982\u5355\u
6D3E
\u6863\u6848\u
FF0C
\u
8BF7
\u
81F3
\u
201C
\u5728\u6863\u
4EBA
\u5458\u
201D
\u
83DC
\u5355\u5904\u
64CD
\u
4F5C
emp.dispatch.project.not.found
=
\u
6D3E
\u
5
89E
\u
5F02
\u
5E38
\u
FF1A
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u9879\u
76EE
\u
7F16
\u7801\u
4FE1
\u
606F
emp.dispatch.project.not.found
=
\u
6D3E
\u5
355
\u
5F02
\u
5E38
\u
FF1A
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u9879\u
76EE
\u
7F16
\u7801\u
4FE1
\u
606F
emp.dispatch.add.emp.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
6D3E
\u5355\u
65B0
\u
589E
\u6863\u6848\u5931\u
8D25
\u
FF0C
\u
8BF7
\u
91CD
\u
8BD5
emp.dispatch.add.emp.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
6D3E
\u5355\u
65B0
\u
589E
\u6863\u6848\u5931\u
8D25
\u
FF0C
\u
8BF7
\u
91CD
\u
8BD5
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryAccountController.java
View file @
0d27fdac
...
@@ -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
;
...
@@ -412,4 +413,16 @@ public class TSalaryAccountController {
...
@@ -412,4 +413,16 @@ 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 @
0d27fdac
...
@@ -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 @
0d27fdac
...
@@ -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 @
0d27fdac
...
@@ -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