Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
zhangkb
indicators
Commits
ef20d533
Commit
ef20d533
authored
Jul 16, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需改短板管理和短板单元查询分页参数
parent
7c7fce42
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ShortboardRuleCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
+1
-1
ShortboardUnitCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardUnitCtrl.java
+1
-1
ShortboardRuleService.java
...e/indicators/service/hytobacco/ShortboardRuleService.java
+1
-1
ShortboardUnitService.java
...e/indicators/service/hytobacco/ShortboardUnitService.java
+1
-1
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
View file @
ef20d533
...
@@ -82,7 +82,7 @@ public class ShortboardRuleCtrl {
...
@@ -82,7 +82,7 @@ public class ShortboardRuleCtrl {
@PostMapping
(
value
=
"/getByCatalogId"
)
@PostMapping
(
value
=
"/getByCatalogId"
)
public
Map
<
String
,
Object
>
getByCatalogId
(
@RequestParam
Integer
catalogId
,
public
Map
<
String
,
Object
>
getByCatalogId
(
@RequestParam
Integer
catalogId
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"page"
,
required
=
false
,
defaultValue
=
"
1
"
)
int
page
,
@RequestParam
(
value
=
"page"
,
required
=
false
,
defaultValue
=
"
0
"
)
int
page
,
@RequestParam
(
value
=
"rows"
,
required
=
false
,
defaultValue
=
"10"
)
int
rows
){
@RequestParam
(
value
=
"rows"
,
required
=
false
,
defaultValue
=
"10"
)
int
rows
){
return
shortboardRuleService
.
getByCatalogId
(
catalogId
,
keyword
,
page
,
rows
);
return
shortboardRuleService
.
getByCatalogId
(
catalogId
,
keyword
,
page
,
rows
);
}
}
...
...
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardUnitCtrl.java
View file @
ef20d533
...
@@ -86,7 +86,7 @@ public class ShortboardUnitCtrl {
...
@@ -86,7 +86,7 @@ public class ShortboardUnitCtrl {
@PostMapping
(
value
=
"/getByCatalogId"
)
@PostMapping
(
value
=
"/getByCatalogId"
)
public
Map
<
String
,
Object
>
getByCatalogId
(
@RequestParam
Integer
catalogId
,
public
Map
<
String
,
Object
>
getByCatalogId
(
@RequestParam
Integer
catalogId
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"page"
,
required
=
false
,
defaultValue
=
"
1
"
)
int
page
,
@RequestParam
(
value
=
"page"
,
required
=
false
,
defaultValue
=
"
0
"
)
int
page
,
@RequestParam
(
value
=
"rows"
,
required
=
false
,
defaultValue
=
"10"
)
int
rows
){
@RequestParam
(
value
=
"rows"
,
required
=
false
,
defaultValue
=
"10"
)
int
rows
){
return
shortboardUnitService
.
getByCatalogId
(
catalogId
,
keyword
,
page
,
rows
);
return
shortboardUnitService
.
getByCatalogId
(
catalogId
,
keyword
,
page
,
rows
);
}
}
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardRuleService.java
View file @
ef20d533
...
@@ -71,7 +71,7 @@ public class ShortboardRuleService {
...
@@ -71,7 +71,7 @@ public class ShortboardRuleService {
}
}
int
count
=
0
;
int
count
=
0
;
//计算start
//计算start
int
start
=
(
page
-
1
)
*
rows
;
int
start
=
page
*
rows
;
count
=
shortboardRuleMapper
.
countByCatalogId
(
catalogId
,
keyword
);
count
=
shortboardRuleMapper
.
countByCatalogId
(
catalogId
,
keyword
);
List
<
ShortboardRule
>
datas
=
shortboardRuleMapper
.
findByCatalogId
(
catalogId
,
keyword
,
start
,
rows
);
List
<
ShortboardRule
>
datas
=
shortboardRuleMapper
.
findByCatalogId
(
catalogId
,
keyword
,
start
,
rows
);
// List<ShortboardRule> resultDatas = new ArrayList<>();
// List<ShortboardRule> resultDatas = new ArrayList<>();
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardUnitService.java
View file @
ef20d533
...
@@ -62,7 +62,7 @@ public class ShortboardUnitService {
...
@@ -62,7 +62,7 @@ public class ShortboardUnitService {
}
}
int
count
=
0
;
int
count
=
0
;
//计算start
//计算start
int
start
=
(
page
-
1
)
*
rows
;
int
start
=
page
*
rows
;
count
=
shortboardUnitMapper
.
countByCatalogId
(
catalogId
,
keyword
);
count
=
shortboardUnitMapper
.
countByCatalogId
(
catalogId
,
keyword
);
List
<
ShortboardUnit
>
datas
=
shortboardUnitMapper
.
findByCatalogId
(
catalogId
,
keyword
,
start
,
rows
);
List
<
ShortboardUnit
>
datas
=
shortboardUnitMapper
.
findByCatalogId
(
catalogId
,
keyword
,
start
,
rows
);
result
.
put
(
"count"
,
count
);
result
.
put
(
"count"
,
count
);
...
...
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