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
46460565
Commit
46460565
authored
Oct 29, 2020
by
unset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw-vehicle' into dev-chw
parents
17aabf5e
80591de0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
VehiclePlatCataBiz.java
...ava/com/xxfc/platform/vehicle/biz/VehiclePlatCataBiz.java
+6
-3
VehicleCataController.java
...com/xxfc/platform/vehicle/rest/VehicleCataController.java
+1
-1
BgVehicleCataController.java
.../platform/vehicle/rest/admin/BgVehicleCataController.java
+3
-2
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehiclePlatCataBiz.java
View file @
46460565
...
@@ -203,11 +203,11 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
...
@@ -203,11 +203,11 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
* @param limit
* @param limit
* @return
* @return
*/
*/
public
ObjectRestResponse
getCascades
(
Integer
page
,
Integer
limit
,
Integer
sort
,
Integer
goodsType
)
{
public
ObjectRestResponse
getCascades
(
Integer
page
,
Integer
limit
,
Integer
sort
,
Integer
goodsType
,
String
name
)
{
try
{
try
{
//标签列表页面
//标签列表页面
if
(
sort
==
null
||
sort
==
0
)
{
if
(
sort
==
null
||
sort
==
0
)
{
return
getPage
(
page
,
limit
,
goodsType
);
return
getPage
(
page
,
limit
,
goodsType
,
name
);
}
}
//增加车型页面
//增加车型页面
...
@@ -239,7 +239,7 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
...
@@ -239,7 +239,7 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
}
}
@Cache
(
key
=
RedisKey
.
BRANCH_COMPANY_CATA_PAGE
)
@Cache
(
key
=
RedisKey
.
BRANCH_COMPANY_CATA_PAGE
)
private
ObjectRestResponse
getPage
(
Integer
page
,
Integer
limit
,
Integer
goodsType
)
{
private
ObjectRestResponse
getPage
(
Integer
page
,
Integer
limit
,
Integer
goodsType
,
String
name
)
{
//获取一级标签
//获取一级标签
WeekendSqls
<
VehiclePlatCata
>
weekendSqls
=
WeekendSqls
.<
VehiclePlatCata
>
custom
();
WeekendSqls
<
VehiclePlatCata
>
weekendSqls
=
WeekendSqls
.<
VehiclePlatCata
>
custom
();
if
(
null
!=
goodsType
){
if
(
null
!=
goodsType
){
...
@@ -247,6 +247,9 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
...
@@ -247,6 +247,9 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
}
}
weekendSqls
.
andEqualTo
(
VehiclePlatCata:
:
getParentId
,
0
)
weekendSqls
.
andEqualTo
(
VehiclePlatCata:
:
getParentId
,
0
)
.
andEqualTo
(
VehiclePlatCata:
:
getState
,
0
);
.
andEqualTo
(
VehiclePlatCata:
:
getState
,
0
);
if
(
StringUtils
.
isNotBlank
(
name
))
{
weekendSqls
.
andLike
(
VehiclePlatCata:
:
getName
,
name
);
}
Example
example
=
Example
.
builder
(
VehiclePlatCata
.
class
)
Example
example
=
Example
.
builder
(
VehiclePlatCata
.
class
)
.
where
(
weekendSqls
)
.
where
(
weekendSqls
)
.
orderByAsc
(
"rank"
)
.
orderByAsc
(
"rank"
)
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleCataController.java
View file @
46460565
...
@@ -98,7 +98,7 @@ public class VehicleCataController extends VehicleBaseController<VehiclePlatCata
...
@@ -98,7 +98,7 @@ public class VehicleCataController extends VehicleBaseController<VehiclePlatCata
,
@PathVariable
Integer
limit
,
@PathVariable
Integer
limit
,
@PathVariable
Integer
sort
){
,
@PathVariable
Integer
sort
){
return
baseBiz
.
getCascades
(
page
,
limit
,
sort
,
null
);
return
baseBiz
.
getCascades
(
page
,
limit
,
sort
,
null
,
null
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/BgVehicleCataController.java
View file @
46460565
...
@@ -90,7 +90,7 @@ public class BgVehicleCataController extends VehicleBaseController<VehiclePlatCa
...
@@ -90,7 +90,7 @@ public class BgVehicleCataController extends VehicleBaseController<VehiclePlatCa
*/
*/
@GetMapping
(
value
=
"/operation/getCascades"
)
@GetMapping
(
value
=
"/operation/getCascades"
)
public
ObjectRestResponse
getCascades
(
PageDTO
dto
){
public
ObjectRestResponse
getCascades
(
PageDTO
dto
){
return
baseBiz
.
getCascades
(
dto
.
getPage
(),
dto
.
getLimit
(),
dto
.
getSort
(),
dto
.
getGoodsType
());
return
baseBiz
.
getCascades
(
dto
.
getPage
(),
dto
.
getLimit
(),
dto
.
getSort
(),
dto
.
getGoodsType
()
,
dto
.
getName
()
);
}
}
/**
/**
...
@@ -103,13 +103,14 @@ public class BgVehicleCataController extends VehicleBaseController<VehiclePlatCa
...
@@ -103,13 +103,14 @@ public class BgVehicleCataController extends VehicleBaseController<VehiclePlatCa
@GetMapping
(
value
=
"/business/getCascades"
)
@GetMapping
(
value
=
"/business/getCascades"
)
public
ObjectRestResponse
getBusinessCascades
(
PageDTO
dto
){
public
ObjectRestResponse
getBusinessCascades
(
PageDTO
dto
){
dto
.
setSort
(
1
);
dto
.
setSort
(
1
);
return
baseBiz
.
getCascades
(
dto
.
getPage
(),
dto
.
getLimit
(),
dto
.
getSort
(),
dto
.
getGoodsType
());
return
baseBiz
.
getCascades
(
dto
.
getPage
(),
dto
.
getLimit
(),
dto
.
getSort
(),
dto
.
getGoodsType
()
,
dto
.
getName
()
);
}
}
@Data
@Data
public
static
class
PageDTO
extends
PageParam
{
public
static
class
PageDTO
extends
PageParam
{
Integer
sort
;
Integer
sort
;
Integer
goodsType
;
Integer
goodsType
;
String
name
;
}
}
...
...
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