Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
4f0b1254
Commit
4f0b1254
authored
Apr 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改条件
parent
a318bb33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
PersonBasicMapper.java
.../amos/boot/module/jxiop/api/mapper/PersonBasicMapper.java
+2
-2
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+4
-4
PersonBasicController.java
...ot/module/jxiop/biz/controller/PersonBasicController.java
+2
-2
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/PersonBasicMapper.java
View file @
4f0b1254
...
@@ -19,11 +19,11 @@ public interface PersonBasicMapper extends BaseMapper<PersonBasic> {
...
@@ -19,11 +19,11 @@ public interface PersonBasicMapper extends BaseMapper<PersonBasic> {
List
<
UserMapperDto
>
queryPage
(
Long
current
,
Long
size
,
List
<
UserMapperDto
>
queryPage
(
Long
current
,
Long
size
,
String
name
,
String
name
,
String
accountName
,
String
accountName
,
String
project
Id
);
String
project
Name
);
List
<
UserMapperDto
>
queryPagecount
(
List
<
UserMapperDto
>
queryPagecount
(
String
name
,
String
name
,
String
accountName
,
String
accountName
,
String
project
Id
);
String
project
Name
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
4f0b1254
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat(#{accountName},'%')
AND person_account.account_name like concat(#{accountName},'%')
</if>
</if>
<if
test=
"project
Id != null and projectId
!= ''"
>
<if
test=
"project
Name != null and projectName
!= ''"
>
AND person_ascription.project_
id = #{projectId}
AND person_ascription.project_
name like concat(#{projectName},'%')
</if>
</if>
</where>
</where>
ORDER BY person_basic.rec_date DESC
ORDER BY person_basic.rec_date DESC
...
@@ -53,8 +53,8 @@
...
@@ -53,8 +53,8 @@
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat(#{accountName},'%')
AND person_account.account_name like concat(#{accountName},'%')
</if>
</if>
<if
test=
"project
Id != null and projectId
!= ''"
>
<if
test=
"project
Name != null and projectName
!= ''"
>
AND person_ascription.project_
id = #{projectId}
AND person_ascription.project_
name like concat(#{projectName},'%')
</if>
</if>
</where>
</where>
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonBasicController.java
View file @
4f0b1254
...
@@ -102,7 +102,7 @@ public class PersonBasicController extends BaseController {
...
@@ -102,7 +102,7 @@ public class PersonBasicController extends BaseController {
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"accountName"
,
required
=
false
)
String
accountName
,
@RequestParam
(
value
=
"accountName"
,
required
=
false
)
String
accountName
,
@RequestParam
(
value
=
"project
Id"
,
required
=
false
)
String
projectId
@RequestParam
(
value
=
"project
Name"
,
required
=
false
)
String
projectName
)
{
)
{
Page
<
UserMapperDto
>
page
=
new
Page
<
UserMapperDto
>();
Page
<
UserMapperDto
>
page
=
new
Page
<
UserMapperDto
>();
...
@@ -110,7 +110,7 @@ public class PersonBasicController extends BaseController {
...
@@ -110,7 +110,7 @@ public class PersonBasicController extends BaseController {
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
personBasicServiceImpl
.
queryPage
(
page
,
name
,
return
ResponseHelper
.
buildResponse
(
personBasicServiceImpl
.
queryPage
(
page
,
name
,
accountName
,
accountName
,
project
Id
));
project
Name
));
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
4f0b1254
...
@@ -123,13 +123,13 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -123,13 +123,13 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
public
Page
<
UserMapperDto
>
queryPage
(
Page
<
UserMapperDto
>
page
,
public
Page
<
UserMapperDto
>
queryPage
(
Page
<
UserMapperDto
>
page
,
String
name
,
String
name
,
String
accountName
,
String
accountName
,
String
project
Id
)
{
String
project
Name
)
{
List
<
UserMapperDto
>
list
=
personBasicMapper
.
queryPage
((
page
.
getCurrent
()-
1
)
*
page
.
getSize
(),
page
.
getSize
(),
name
,
List
<
UserMapperDto
>
list
=
personBasicMapper
.
queryPage
((
page
.
getCurrent
()-
1
)
*
page
.
getSize
(),
page
.
getSize
(),
name
,
accountName
,
accountName
,
project
Id
);
project
Name
);
List
<
UserMapperDto
>
listcount
=
personBasicMapper
.
queryPagecount
(
name
,
List
<
UserMapperDto
>
listcount
=
personBasicMapper
.
queryPagecount
(
name
,
accountName
,
accountName
,
project
Id
);
project
Name
);
page
.
setTotal
(
listcount
.
size
());
page
.
setTotal
(
listcount
.
size
());
page
.
setRecords
(
list
);
page
.
setRecords
(
list
);
return
page
;
return
page
;
...
...
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