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
285eade3
Commit
285eade3
authored
Nov 26, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询所有消防人员的分页接口
parent
4c98ebdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
FirefightersServiceImpl.java
...dule/common/biz/service/impl/FirefightersServiceImpl.java
+6
-2
FirefightersController.java
...oot/module/jcs/biz/controller/FirefightersController.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FirefightersServiceImpl.java
View file @
285eade3
...
@@ -4,6 +4,7 @@ import java.util.Collection;
...
@@ -4,6 +4,7 @@ import java.util.Collection;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
...
@@ -166,11 +167,14 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
...
@@ -166,11 +167,14 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
return
this
.
baseMapper
.
selectMaps
(
wrapper
);
return
this
.
baseMapper
.
selectMaps
(
wrapper
);
}
}
public
List
<
Map
<
String
,
Object
>>
getAllFirefightersPerson
(
)
{
public
Object
getAllFirefightersPerson
(
int
size
,
int
current
,
String
jobCode
)
{
LambdaQueryWrapper
<
Firefighters
>
wrapper
=
new
LambdaQueryWrapper
<
Firefighters
>();
LambdaQueryWrapper
<
Firefighters
>
wrapper
=
new
LambdaQueryWrapper
<
Firefighters
>();
wrapper
.
eq
(
Firefighters:
:
getIsDelete
,
false
);
wrapper
.
eq
(
Firefighters:
:
getIsDelete
,
false
);
wrapper
.
eq
(
Firefighters:
:
getStateCode
,
"94"
);
//在职
wrapper
.
eq
(
Firefighters:
:
getStateCode
,
"94"
);
//在职
wrapper
.
select
(
Firefighters:
:
getName
,
Firefighters:
:
getEmployeeNumber
);
if
(
StringUtils
.
isNotBlank
(
jobCode
))
{
wrapper
.
eq
(
Firefighters:
:
getJobTitleCode
,
jobCode
);
}
wrapper
.
last
(
"limit "
+
current
+
","
+
size
);
return
this
.
baseMapper
.
selectMaps
(
wrapper
);
return
this
.
baseMapper
.
selectMaps
(
wrapper
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersController.java
View file @
285eade3
...
@@ -334,7 +334,7 @@ public class FirefightersController extends BaseController {
...
@@ -334,7 +334,7 @@ public class FirefightersController extends BaseController {
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/all/fire/person"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/all/fire/person"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有的消防人员"
,
notes
=
"所有的消防人员"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有的消防人员"
,
notes
=
"所有的消防人员"
)
public
ResponseModel
<
Object
>
getAllFirefightersPerson
(
)
throws
Exception
{
public
ResponseModel
<
Object
>
getAllFirefightersPerson
(
@RequestParam
int
size
,
@RequestParam
int
current
,
@RequestParam
(
required
=
false
)
String
jobCode
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iFirefightersService
.
getAllFirefightersPerson
());
return
ResponseHelper
.
buildResponse
(
iFirefightersService
.
getAllFirefightersPerson
(
size
,
current
,
jobCode
));
}
}
}
}
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