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
604807fb
Commit
604807fb
authored
Nov 03, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加上下架设置
parent
9e982ec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+20
-0
AppVehicleController.java
.../com/xxfc/platform/vehicle/rest/AppVehicleController.java
+1
-2
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
604807fb
...
...
@@ -20,6 +20,7 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.google.common.base.Function
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.xxfc.platform.order.feign.OrderFeign
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.dto.SendMsgDTO
;
import
com.xxfc.platform.universal.entity.Dictionary
;
...
...
@@ -122,6 +123,9 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
@Autowired
VehicleManageApplyBiz
vehicleManageApplyBiz
;
@Autowired
OrderFeign
orderFeign
;
@Override
public
UserFeign
getUserFeign
()
{
return
userFeign
;
...
...
@@ -1793,6 +1797,22 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
public
ObjectRestResponse
updState
(
Vehicle
vehicle
){
ObjectRestResponse
<
Boolean
>
restResponse
=
orderFeign
.
checkHasSpecialRentFegin
(
vehicle
.
getId
());
if
(
restResponse
.
getData
()
==
null
){
return
restResponse
;
}
Boolean
flag
=
restResponse
.
getData
();
if
(
flag
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"已存在特惠租车无法上架"
);
}
updateSelectiveById
(
vehicle
);
return
ObjectRestResponse
.
succ
();
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/AppVehicleController.java
View file @
604807fb
...
...
@@ -44,8 +44,7 @@ public class AppVehicleController extends BaseController<VehicleBiz> {
@PostMapping
(
"updVehicle"
)
@ApiModelProperty
(
"更新商品信息"
)
public
ObjectRestResponse
updVehicle
(
@RequestBody
Vehicle
vehicle
)
{
baseBiz
.
updateSelectiveById
(
vehicle
);
return
ObjectRestResponse
.
succ
();
return
baseBiz
.
updState
(
vehicle
);
}
...
...
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