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
8e683c89
Commit
8e683c89
authored
Oct 24, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目分页接口,添加客户id查询;
parent
c143ecbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
TEmpChangeInfoController.java
...v1/yifu/archives/controller/TEmpChangeInfoController.java
+3
-2
TEmpChangeInfoService.java
.../plus/v1/yifu/archives/service/TEmpChangeInfoService.java
+1
-1
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+6
-3
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpChangeInfoController.java
View file @
8e683c89
...
...
@@ -125,8 +125,9 @@ public class TEmpChangeInfoController {
*/
@Operation
(
description
=
"分页查询"
)
@GetMapping
(
"/getAllDeptPage"
)
public
R
<
IPage
<
TSettleDomain
>>
getItemNamePage
(
Page
page
,
String
departName
)
{
return
new
R
<>(
tEmpChangeInfoService
.
getAllDeptPage
(
page
,
departName
));
public
R
<
IPage
<
TSettleDomain
>>
getItemNamePage
(
Page
page
,
@RequestParam
(
required
=
false
)
String
departName
,
@RequestParam
(
required
=
false
)
String
customerId
)
{
return
new
R
<>(
tEmpChangeInfoService
.
getAllDeptPage
(
page
,
departName
,
customerId
));
}
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpChangeInfoService.java
View file @
8e683c89
...
...
@@ -68,5 +68,5 @@ public interface TEmpChangeInfoService extends IService<TEmpChangeInfo> {
*/
R
<
List
<
TCustomerInfo
>>
getAllUint
();
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
);
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
8e683c89
...
...
@@ -304,16 +304,19 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
* @Date 2022-07-26
*/
@Override
public
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
)
{
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
buildQueryWrapper
(
deptName
);
public
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
)
{
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
buildQueryWrapper
(
deptName
,
customerId
);
return
tSettleDomainMapper
.
selectPage
(
page
,
wrapper
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
String
deptName
)
{
private
LambdaQueryWrapper
buildQueryWrapper
(
String
deptName
,
String
customerId
)
{
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
Common
.
isNotNull
(
deptName
))
{
wrapper
.
like
(
TSettleDomain:
:
getDepartName
,
deptName
);
}
if
(
Common
.
isNotNull
(
customerId
))
{
wrapper
.
eq
(
TSettleDomain:
:
getCustomerId
,
customerId
);
}
wrapper
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
);
wrapper
.
eq
(
TSettleDomain:
:
getStopFlag
,
CommonConstants
.
ZERO_STRING
);
return
wrapper
;
...
...
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