Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
cceff117
Commit
cceff117
authored
Jul 08, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优质车型
parent
5179b3c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
VehicleModelBiz.java
...n/java/com/xxfc/platform/vehicle/biz/VehicleModelBiz.java
+5
-1
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+6
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleModelBiz.java
View file @
cceff117
...
...
@@ -105,7 +105,11 @@ public class VehicleModelBiz extends BaseBiz<VehicleModelMapper, VehicleModel> {
Page
<
VehicleModel
>
pages
=
PageHelper
.
startPage
(
page
,
limit
);
Example
example
=
Example
.
builder
(
VehicleModel
.
class
)
.
where
(
WeekendSqls
.<
VehicleModel
>
custom
().
andEqualTo
(
VehicleModel:
:
getIsdel
,
0
)).
orderByDesc
(
"hot_sign"
).
build
();
.
where
(
WeekendSqls
.<
VehicleModel
>
custom
()
.
andEqualTo
(
VehicleModel:
:
getIsdel
,
0
)
.
andEqualTo
(
VehicleModel:
:
getHotSign
,
1
)
).
orderByDesc
(
"id"
).
build
();
selectByExample
(
example
);
PageInfo
<
VehicleModel
>
pageInfo
=
PageInfo
.
of
(
pages
.
getResult
());
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
cceff117
...
...
@@ -281,7 +281,12 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectList
(
vehicleModel
));
}
/**
* 优质车型
* @param page
* @param limit
* @return
*/
@ApiOperation
(
"优质车型"
)
@GetMapping
(
value
=
"/goodList"
)
public
List
<
GoodDataVO
>
goodList
(
@RequestParam
(
"page"
)
Integer
page
,
@RequestParam
(
"limit"
)
Integer
limit
){
...
...
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