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
91312b8b
Commit
91312b8b
authored
Nov 10, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
068d69cb
658d642e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
BaseController.java
...m/github/wxiaoqi/security/common/rest/BaseController.java
+5
-0
ShuntApplyController.java
...va/com/xxfc/platform/order/rest/ShuntApplyController.java
+8
-4
Vehicle.java
...c/main/java/com/xxfc/platform/vehicle/entity/Vehicle.java
+4
-0
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/rest/BaseController.java
View file @
91312b8b
...
...
@@ -8,6 +8,7 @@ import com.github.wxiaoqi.security.common.util.Query;
import
com.github.wxiaoqi.security.common.util.ReflectionUtils
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.slf4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -24,6 +25,10 @@ import java.util.Map;
*/
@Slf4j
public
class
BaseController
<
Biz
extends
BaseBiz
,
Entity
>
extends
CommonBaseController
{
public
static
Logger
getLog
()
{
return
log
;
}
@Autowired
protected
Biz
baseBiz
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/ShuntApplyController.java
View file @
91312b8b
...
...
@@ -186,7 +186,6 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
@ResponseBody
@ApiOperation
(
value
=
"申请调车下单"
)
public
ObjectRestResponse
applyOrder
(
@RequestBody
ApplyOrderDTO
dto
)
{
//查询列表数据
if
(
StrUtil
.
isBlank
(
getCurrentUserId
()))
{
throw
new
BaseException
(
ResultCode
.
AJAX_WECHAT_NOTEXIST_CODE
);
...
...
@@ -311,7 +310,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
ShuntApply
shuntApply
=
baseBiz
.
selectById
(
dto
.
getApplyId
());
if
(
null
==
shuntApply
||
shuntApply
.
getStatus
()
!=
STATUS_CRT
)
{
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
);
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
,
Sets
.
newSet
(
"该需求已失效"
)
);
}
RentVehicleBO
detail
=
new
RentVehicleBO
();
...
...
@@ -331,8 +330,13 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
setBookEndDateTime
(
DateUtil
.
date
(
shuntApply
.
getEndTime
()).
toString
());
}});
try
{
//预约车辆
orderRentVehicleService
.
acquireVehicle
(
detail
,
null
,
null
);
}
catch
(
Exception
e
)
{
getLog
().
error
(
e
.
getMessage
(),
e
);
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
,
Sets
.
newSet
(
"无法选择该车辆"
));
}
shuntApply
.
setVehicleId
(
dto
.
getVehicleId
());
shuntApply
.
setStatus
(
STATUS_CONFIRM
);
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/Vehicle.java
View file @
91312b8b
...
...
@@ -13,9 +13,13 @@ import java.util.Date;
@Data
@Table
(
name
=
"vehicle"
)
public
class
Vehicle
{
/**
* 1--房车、2--机车、3--游艇、4--豪车
*/
public
static
final
int
GOODS_TYPE_RV
=
1
;
public
static
final
int
GOODS_TYPE_HM
=
2
;
public
static
final
int
GOODS_TYPE_YACHT
=
3
;
public
static
final
int
GOODS_TYPE_LUXURY
=
3
;
public
static
final
int
STATE_UP
=
1
;
public
static
final
int
STATE_DOWN
=
2
;
...
...
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