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
f7c2c6d0
Commit
f7c2c6d0
authored
Oct 23, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
e9613285
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+8
-0
AdminVehicleController.java
...c/platform/vehicle/rest/admin/AdminVehicleController.java
+0
-8
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
f7c2c6d0
...
...
@@ -1662,6 +1662,14 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
}
public
ObjectRestResponse
selectList
(
VehicleFindDTO
vehicleFindDTO
){
Integer
type
=
vehicleFindDTO
.
getType
()
==
null
?
0
:
vehicleFindDTO
.
getType
();
if
(
type
>
0
){
List
<
Integer
>
dataCompanyIds
=
vehicleFindDTO
.
getDataCompanyIds
()
==
null
?
new
ArrayList
<>()
:
vehicleFindDTO
.
getDataCompanyIds
();
if
(
vehicleFindDTO
.
getBranchId
()
!=
null
&&
vehicleFindDTO
.
getBranchId
()
>
0
){
dataCompanyIds
.
add
(
vehicleFindDTO
.
getBranchId
());
vehicleFindDTO
.
setDataCompanyIds
(
dataCompanyIds
);
}
}
PageHelper
.
startPage
(
vehicleFindDTO
.
getPage
(),
vehicleFindDTO
.
getLimit
());
PageInfo
<
VehicleVO
>
pageInfo
=
new
PageInfo
<>(
getList
(
vehicleFindDTO
));
return
ObjectRestResponse
.
succ
(
PageDataVO
.
pageInfo
(
pageInfo
));
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/AdminVehicleController.java
View file @
f7c2c6d0
...
...
@@ -54,14 +54,6 @@ public class AdminVehicleController extends BaseController<VehicleBiz>{
@ApiModelProperty
(
"店铺商品列表"
)
public
ObjectRestResponse
shopSelectList
(
VehicleFindDTO
vehicleFindDTO
)
{
setPowerData
(
vehicleFindDTO
);
Integer
type
=
vehicleFindDTO
.
getType
()
==
null
?
0
:
vehicleFindDTO
.
getType
();
if
(
type
>
0
){
List
<
Integer
>
dataCompanyIds
=
vehicleFindDTO
.
getDataCompanyIds
()
==
null
?
new
ArrayList
<>()
:
vehicleFindDTO
.
getDataCompanyIds
();
if
(
vehicleFindDTO
.
getBranchId
()
!=
null
&&
vehicleFindDTO
.
getBranchId
()
>
0
){
dataCompanyIds
.
add
(
vehicleFindDTO
.
getBranchId
());
vehicleFindDTO
.
setDataCompanyIds
(
dataCompanyIds
);
}
}
return
baseBiz
.
selectList
(
vehicleFindDTO
);
}
...
...
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