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
fd276dab
Commit
fd276dab
authored
Aug 02, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改分页接口
parent
7cc26ee3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
JyjcInspectionApplicationController.java
...c/biz/controller/JyjcInspectionApplicationController.java
+4
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+7
-4
inspection.json
...le-statistics-biz/src/main/resources/json/inspection.json
+1
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionApplicationController.java
View file @
fd276dab
...
...
@@ -149,8 +149,10 @@ public class JyjcInspectionApplicationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/selectOneForBigScreenEqu/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
selectOneForBigScreenEqu
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
selectOneForBigScreenEqu
(
sequenceNbr
,
getSelectedOrgInfo
().
getCompany
().
getCompanyType
()));
public
ResponseModel
<
Page
>
selectOneForBigScreenEqu
(
@PathVariable
Long
sequenceNbr
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
selectOneForBigScreenEqu
(
current
,
size
,
sequenceNbr
,
getSelectedOrgInfo
().
getCompany
().
getCompanyType
()));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
fd276dab
...
...
@@ -625,12 +625,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultMap
.
put
(
"keyParams"
,
jsonData
);
return
resultMap
;
}
public
Map
<
String
,
Object
>
selectOneForBigScreenEqu
(
Long
sequenceNbr
,
String
companyType
)
{
public
Page
selectOneForBigScreenEqu
(
int
current
,
int
size
,
Long
sequenceNbr
,
String
companyType
)
{
// 设备
List
<
Map
<
String
,
Object
>>
arrayList
=
getEquipInfoList
(
sequenceNbr
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"records"
,
arrayList
);
return
resultMap
;
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setTotal
(
arrayList
.
size
());
page
.
setRecords
(
arrayList
.
subList
((
current
-
1
)
*
size
,
arrayList
.
size
()
>
current
*
size
?
current
*
size
:
arrayList
.
size
()));
return
page
;
}
private
List
<
FormValue
>
getJsonData
(
Resource
resource
)
{
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/inspection.json
View file @
fd276dab
...
...
@@ -23,8 +23,7 @@
"apiPath"
:
"/jyjc/jyjc-inspection-application/selectOneForBigScreenEqu/{sequenceNbr}"
,
"params"
:
{
"current"
:
1
,
"size"
:
10
,
"sequenceNbr"
:
"{sequenceNbr}"
"size"
:
10
}
}
},
...
...
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