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
76d1ccb0
Commit
76d1ccb0
authored
Jun 11, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改合并
parent
525708c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
VehicleWarningMsgMapper.java
...xxfc/platform/vehicle/mapper/VehicleWarningMsgMapper.java
+2
-0
VehicleActiveController.java
...m/xxfc/platform/vehicle/rest/VehicleActiveController.java
+20
-0
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+22
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/VehicleWarningMsgMapper.java
View file @
76d1ccb0
...
@@ -11,6 +11,8 @@ public interface VehicleWarningMsgMapper extends Mapper<VehicleWarningMsg> {
...
@@ -11,6 +11,8 @@ public interface VehicleWarningMsgMapper extends Mapper<VehicleWarningMsg> {
public
List
<
VehicleWarningMsg
>
getByPage
(
QueryVehicleWarningMsgVo
queryVehicleWarningMsgVo
);
public
List
<
VehicleWarningMsg
>
getByPage
(
QueryVehicleWarningMsgVo
queryVehicleWarningMsgVo
);
public
List
<
VehicleWarningMsg
>
getByPages
(
QueryVehicleWarningMsgVo
queryVehicleWarningMsgVo
);
public
List
<
VehicleWarningMsg
>
getMsgByVehicle
(
String
vehicleId
);
public
List
<
VehicleWarningMsg
>
getMsgByVehicle
(
String
vehicleId
);
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleActiveController.java
View file @
76d1ccb0
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.xxfc.platform.vehicle.biz.VehicleActiveService
;
import
com.xxfc.platform.vehicle.biz.VehicleActiveService
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
...
@@ -37,6 +38,25 @@ public class VehicleActiveController {
...
@@ -37,6 +38,25 @@ public class VehicleActiveController {
return
RestResponse
.
suc
();
return
RestResponse
.
suc
();
}
}
/**
* 发车
*
* @return
*/
@PostMapping
(
"small/departure"
)
@IgnoreUserToken
public
RestResponse
departureBySmall
(
@RequestBody
VehicleDepartureVo
departureVo
)
{
if
(
departureVo
==
null
||
departureVo
.
getVehicleId
()
==
null
||
departureVo
.
getMileage
()
==
null
||
departureVo
.
getDepartureBranchCompanyId
()
==
null
||
departureVo
.
getExpectArrivalBranchCompanyId
()
==
null
)
{
return
RestResponse
.
codeAndMessage
(
ResCode
.
INVALID_REST_REQ_PARAM
.
getCode
(),
ResCode
.
INVALID_REST_REQ_PARAM
.
getDesc
());
}
vehicleActiveService
.
departure
(
departureVo
);
return
RestResponse
.
suc
();
}
/**
/**
* 还车
* 还车
*
*
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
76d1ccb0
...
@@ -116,6 +116,28 @@ public class VehicleController extends BaseController<VehicleBiz> {
...
@@ -116,6 +116,28 @@ public class VehicleController extends BaseController<VehicleBiz> {
}
}
}
}
// @RequestMapping(value = "/small/page", method = RequestMethod.GET)
// @IgnoreUserToken
// public RestResponse<PageDataVO<QueryVehicleVo>> getByPageBySmall(@RequestParam String vehiclePageQueryVoJson,@RequestParam Integer uid) throws Exception {
// VehiclePageQueryVo vehiclePageQueryVo = null;
// try {
// vehiclePageQueryVo = JSON.parseObject(vehiclePageQueryVoJson, VehiclePageQueryVo.class);
// UserDTO userDTO = userFeign.userinfoByUid(uid).getData();
// if (userDTO != null) {
// if (userDTO.getDataAll() == 2) {
// List<Integer> companyList = vehicleBiz.dataCompany(userDTO.getDataZone(), userDTO.getDataCompany());
// return RestResponse.data(baseBiz.getByPageNotAllData(vehiclePageQueryVo, companyList));
// }
// }
//
// return RestResponse.data(baseBiz.getByPage(vehiclePageQueryVo));
// } catch (JSONException ex) {
// return RestResponse.code(ResCode.INVALID_REST_REQ_PARAM.getCode());
// } catch (CustomIllegalParamException ex) {
// return RestResponse.code(ResCode.INVALID_REST_REQ_PARAM.getCode());
// }
// }
@RequestMapping
(
value
=
"/upload/drivingLicense"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/upload/drivingLicense"
,
method
=
RequestMethod
.
POST
)
public
RestResponse
uploadDrivingLicense
(
@RequestParam
(
"file"
)
MultipartFile
file
)
public
RestResponse
uploadDrivingLicense
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
Exception
{
throws
Exception
{
...
...
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