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
1c030b6c
Commit
1c030b6c
authored
Dec 20, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
6f265a18
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
TEmpChangeInfoController.java
...v1/yifu/archives/controller/TEmpChangeInfoController.java
+2
-2
TEmpChangeInfoService.java
.../plus/v1/yifu/archives/service/TEmpChangeInfoService.java
+1
-1
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+6
-4
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpChangeInfoController.java
View file @
1c030b6c
...
@@ -126,8 +126,8 @@ public class TEmpChangeInfoController {
...
@@ -126,8 +126,8 @@ public class TEmpChangeInfoController {
@Operation
(
description
=
"分页查询"
)
@Operation
(
description
=
"分页查询"
)
@GetMapping
(
"/getAllDeptPage"
)
@GetMapping
(
"/getAllDeptPage"
)
public
R
<
IPage
<
TSettleDomain
>>
getItemNamePage
(
Page
page
,
@RequestParam
(
required
=
false
)
String
departName
public
R
<
IPage
<
TSettleDomain
>>
getItemNamePage
(
Page
page
,
@RequestParam
(
required
=
false
)
String
departName
,
@RequestParam
(
required
=
false
)
String
customerId
)
{
,
@RequestParam
(
required
=
false
)
String
customerId
,
@RequestParam
(
required
=
false
)
String
flag
)
{
return
new
R
<>(
tEmpChangeInfoService
.
getAllDeptPage
(
page
,
departName
,
customerId
));
return
new
R
<>(
tEmpChangeInfoService
.
getAllDeptPage
(
page
,
departName
,
customerId
,
flag
));
}
}
/**
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpChangeInfoService.java
View file @
1c030b6c
...
@@ -70,5 +70,5 @@ public interface TEmpChangeInfoService extends IService<TEmpChangeInfo> {
...
@@ -70,5 +70,5 @@ public interface TEmpChangeInfoService extends IService<TEmpChangeInfo> {
*/
*/
R
<
List
<
TCustomerInfo
>>
getAllUint
(
String
customerName
);
R
<
List
<
TCustomerInfo
>>
getAllUint
(
String
customerName
);
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
);
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
,
String
flag
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
1c030b6c
...
@@ -315,12 +315,12 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -315,12 +315,12 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
* @Date 2022-07-26
* @Date 2022-07-26
*/
*/
@Override
@Override
public
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
)
{
public
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
customerId
,
String
flag
)
{
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
buildQueryWrapper
(
deptName
,
customerId
);
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
buildQueryWrapper
(
deptName
,
customerId
,
flag
);
return
tSettleDomainMapper
.
selectPage
(
page
,
wrapper
);
return
tSettleDomainMapper
.
selectPage
(
page
,
wrapper
);
}
}
private
LambdaQueryWrapper
buildQueryWrapper
(
String
deptName
,
String
customerId
)
{
private
LambdaQueryWrapper
buildQueryWrapper
(
String
deptName
,
String
customerId
,
String
flag
)
{
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
TSettleDomain
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
Common
.
isNotNull
(
deptName
))
{
if
(
Common
.
isNotNull
(
deptName
))
{
wrapper
.
like
(
TSettleDomain:
:
getDepartName
,
deptName
);
wrapper
.
like
(
TSettleDomain:
:
getDepartName
,
deptName
);
...
@@ -329,7 +329,9 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -329,7 +329,9 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
wrapper
.
eq
(
TSettleDomain:
:
getCustomerId
,
customerId
);
wrapper
.
eq
(
TSettleDomain:
:
getCustomerId
,
customerId
);
}
}
wrapper
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
);
wrapper
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
);
if
(
Common
.
isEmpty
(
flag
))
{
wrapper
.
eq
(
TSettleDomain:
:
getStopFlag
,
CommonConstants
.
ZERO_STRING
);
wrapper
.
eq
(
TSettleDomain:
:
getStopFlag
,
CommonConstants
.
ZERO_STRING
);
}
return
wrapper
;
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