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
38dfa57c
Commit
38dfa57c
authored
Sep 01, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加车辆列表权限
parent
0962e039
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
VehiclePageQueryVo.java
...va/com/xxfc/platform/vehicle/pojo/VehiclePageQueryVo.java
+7
-1
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+1
-0
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+4
-4
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/VehiclePageQueryVo.java
View file @
38dfa57c
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
;
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
;
import
com.github.wxiaoqi.security.common.vo.DataInter
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
@Data
@Data
public
class
VehiclePageQueryVo
{
public
class
VehiclePageQueryVo
implements
DataInter
{
/**
/**
* 车辆编号,0-没有
* 车辆编号,0-没有
...
@@ -153,4 +155,8 @@ public class VehiclePageQueryVo {
...
@@ -153,4 +155,8 @@ public class VehiclePageQueryVo {
*/
*/
private
boolean
download
;
private
boolean
download
;
List
<
Integer
>
dataCompanyIds
;
List
<
Integer
>
dataCorporationIds
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
38dfa57c
...
@@ -1132,6 +1132,7 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -1132,6 +1132,7 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
* @throws Exception
* @throws Exception
*/
*/
public
PageDataVO
<
ResultVehicleVo
>
getByPage
(
VehiclePageQueryVo
vehiclePageQueryVo
)
throws
Exception
{
public
PageDataVO
<
ResultVehicleVo
>
getByPage
(
VehiclePageQueryVo
vehiclePageQueryVo
)
throws
Exception
{
setPowerData
(
vehiclePageQueryVo
);
Map
<
String
,
Object
>
params
=
PropertyUtils
.
describe
(
vehiclePageQueryVo
);
Map
<
String
,
Object
>
params
=
PropertyUtils
.
describe
(
vehiclePageQueryVo
);
Integer
pageSize
=
(
Integer
)
params
.
get
(
"limit"
);
Integer
pageSize
=
(
Integer
)
params
.
get
(
"limit"
);
params
.
remove
(
"pageSize"
);
params
.
remove
(
"pageSize"
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
38dfa57c
...
@@ -148,8 +148,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -148,8 +148,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
UserDTO
userDTO
=
userFeign
.
userinfoByToken
(
userAuthConfig
.
getToken
(
request
)).
getData
();
UserDTO
userDTO
=
userFeign
.
userinfoByToken
(
userAuthConfig
.
getToken
(
request
)).
getData
();
if
(
userDTO
!=
null
)
{
if
(
userDTO
!=
null
)
{
if
(
userDTO
.
getDataAll
()
==
2
)
{
if
(
userDTO
.
getDataAll
()
==
2
)
{
List
<
Integer
>
companyList
=
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
()
);
setPowerData
(
vehiclePageQueryVo
);
return
RestResponse
.
data
(
baseBiz
.
getByPageNotAllData
(
vehiclePageQueryVo
,
companyList
));
return
RestResponse
.
data
(
baseBiz
.
getByPageNotAllData
(
vehiclePageQueryVo
,
vehiclePageQueryVo
.
getDataCompanyIds
()
));
}
}
}
}
return
RestResponse
.
data
(
baseBiz
.
getByPage
(
vehiclePageQueryVo
));
return
RestResponse
.
data
(
baseBiz
.
getByPage
(
vehiclePageQueryVo
));
...
@@ -169,8 +169,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -169,8 +169,8 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
UserDTO
userDTO
=
userFeign
.
userinfoByUid
(
uid
).
getData
();
UserDTO
userDTO
=
userFeign
.
userinfoByUid
(
uid
).
getData
();
if
(
userDTO
!=
null
)
{
if
(
userDTO
!=
null
)
{
if
(
userDTO
.
getDataAll
()
==
2
)
{
if
(
userDTO
.
getDataAll
()
==
2
)
{
List
<
Integer
>
companyList
=
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
()
);
setPowerData
(
vehiclePageQueryVo
);
return
RestResponse
.
data
(
baseBiz
.
getByPageNotAllData
(
vehiclePageQueryVo
,
companyList
));
return
RestResponse
.
data
(
baseBiz
.
getByPageNotAllData
(
vehiclePageQueryVo
,
vehiclePageQueryVo
.
getDataCompanyIds
()
));
}
}
}
}
...
...
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