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
3a9956cc
Commit
3a9956cc
authored
Sep 15, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算主体ID
parent
53fc3ca9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
TConfigSalaryController.java
...us/v1/yifu/salary/controller/TConfigSalaryController.java
+1
-1
TConfigSalaryService.java
...oud/plus/v1/yifu/salary/service/TConfigSalaryService.java
+2
-1
TConfigSalaryServiceImpl.java
...v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
+6
-9
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TConfigSalaryController.java
View file @
3a9956cc
...
@@ -64,7 +64,7 @@ public class TConfigSalaryController {
...
@@ -64,7 +64,7 @@ public class TConfigSalaryController {
@Operation
(
description
=
"简单分页查询"
)
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
TConfigSalary
>>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
)
{
public
R
<
IPage
<
TConfigSalary
>>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
)
{
return
new
R
<>(
tConfigSalaryService
.
getTConfigSalaryPage
(
page
,
tConfigSalary
)
);
return
tConfigSalaryService
.
getTConfigSalaryPage
(
page
,
tConfigSalary
);
}
}
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TConfigSalaryService.java
View file @
3a9956cc
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.salary.service;
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.salary.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TConfigSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TConfigSalary
;
/**
/**
...
@@ -19,7 +20,7 @@ public interface TConfigSalaryService extends IService<TConfigSalary> {
...
@@ -19,7 +20,7 @@ public interface TConfigSalaryService extends IService<TConfigSalary> {
* @param tConfigSalary 工资报账配置
* @param tConfigSalary 工资报账配置
* @return
* @return
*/
*/
IPage
<
TConfigSalary
>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
);
R
<
IPage
<
TConfigSalary
>
>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
View file @
3a9956cc
...
@@ -34,26 +34,23 @@ public class TConfigSalaryServiceImpl extends ServiceImpl<TConfigSalaryMapper, T
...
@@ -34,26 +34,23 @@ public class TConfigSalaryServiceImpl extends ServiceImpl<TConfigSalaryMapper, T
* @return
* @return
*/
*/
@Override
@Override
public
IPage
<
TConfigSalary
>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
){
public
R
<
IPage
<
TConfigSalary
>
>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
){
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
TSettleDomainListVo
vo
=
null
;
TSettleDomainListVo
vo
=
null
;
if
(
Common
.
isNotNull
(
user
))
{
if
(
Common
.
isNotNull
(
user
))
{
R
<
TSettleDomainListVo
>
domainListVoR
=
archivesDaprUtil
.
getSettleDomainIdsByUserId
(
user
.
getId
());
R
<
TSettleDomainListVo
>
domainListVoR
=
archivesDaprUtil
.
getSettleDomainIdsByUserId
(
user
.
getId
());
if
(
Common
.
isEmpty
(
domainListVoR
))
{
if
(
Common
.
isEmpty
(
domainListVoR
))
{
throw
new
RuntimeException
(
"调用结算服务失败"
);
return
R
.
failed
(
"调用结算服务失败"
);
}
}
if
(
CommonConstants
.
SUCCESS
!=
domainListVoR
.
getCode
())
{
if
(
CommonConstants
.
SUCCESS
!=
domainListVoR
.
getCode
())
{
throw
new
RuntimeException
(
"调用结算服务返回失败"
);
return
R
.
failed
(
"调用结算服务返回失败"
);
}
}
vo
=
domainListVoR
.
getData
();
vo
=
domainListVoR
.
getData
();
if
(
Common
.
isEmpty
(
vo
)
||
!
Common
.
isNotEmpty
(
vo
.
getDeptIds
()))
{
throw
new
RuntimeException
(
"无项目权限"
);
}
}
if
(
Common
.
isNotNull
(
vo
)){
return
R
.
ok
(
baseMapper
.
getTConfigSalaryPage
(
page
,
tConfigSalary
,
vo
.
getDeptIds
()));
}
}
if
(
Common
.
isEmpty
(
vo
)){
return
R
.
ok
(
baseMapper
.
getTConfigSalaryPage
(
page
,
tConfigSalary
,
null
));
return
baseMapper
.
getTConfigSalaryPage
(
page
,
tConfigSalary
,
vo
.
getDeptIds
());
}
return
baseMapper
.
getTConfigSalaryPage
(
page
,
tConfigSalary
,
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