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
eb94c37b
Commit
eb94c37b
authored
Dec 17, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
f0edb061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
VehicleDaysPriceBiz.java
...va/com/xxfc/platform/vehicle/biz/VehicleDaysPriceBiz.java
+11
-0
AppVehicleController.java
.../com/xxfc/platform/vehicle/rest/AppVehicleController.java
+24
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleDaysPriceBiz.java
View file @
eb94c37b
...
@@ -63,6 +63,17 @@ public class VehicleDaysPriceBiz extends BaseBiz<VehicleDaysPriceMapper, Vehicle
...
@@ -63,6 +63,17 @@ public class VehicleDaysPriceBiz extends BaseBiz<VehicleDaysPriceMapper, Vehicle
}
}
public
VehicleDaysPrice
getInfoV2
(
String
vehicleId
){
Example
example
=
new
Example
(
VehicleDaysPrice
.
class
);
example
.
createCriteria
().
andEqualTo
(
"vehicleId"
,
vehicleId
).
andEqualTo
(
"isDel"
,
0
);
List
<
VehicleDaysPrice
>
list
=
selectByExample
(
example
);
if
(
list
.
size
()
>
0
){
return
list
.
get
(
0
);
}
return
null
;
}
public
List
<
VehicleDaysPriceVo
>
getListByVehicleId
(
String
vehicleId
){
public
List
<
VehicleDaysPriceVo
>
getListByVehicleId
(
String
vehicleId
){
VehicleDaysPrice
vehicleDaysPrice
=
getInfo
(
vehicleId
);
VehicleDaysPrice
vehicleDaysPrice
=
getInfo
(
vehicleId
);
List
<
VehicleDaysPriceVo
>
priceVos
=
null
;
List
<
VehicleDaysPriceVo
>
priceVos
=
null
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/AppVehicleController.java
View file @
eb94c37b
...
@@ -6,12 +6,15 @@ import com.github.wxiaoqi.security.common.util.process.ResultCode;
...
@@ -6,12 +6,15 @@ import com.github.wxiaoqi.security.common.util.process.ResultCode;
import
com.xxfc.platform.vehicle.aop.GlobalLog
;
import
com.xxfc.platform.vehicle.aop.GlobalLog
;
import
com.xxfc.platform.vehicle.biz.VehicleApplyBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleApplyBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleDaysPriceBiz
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleApply
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleFindDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleFindDTO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,6 +29,10 @@ import java.util.List;
...
@@ -26,6 +29,10 @@ import java.util.List;
public
class
AppVehicleController
extends
BaseController
<
VehicleBiz
>
{
public
class
AppVehicleController
extends
BaseController
<
VehicleBiz
>
{
@Autowired
VehicleDaysPriceBiz
vehicleDaysPriceBiz
;
...
@@ -81,6 +88,23 @@ public class AppVehicleController extends BaseController<VehicleBiz> {
...
@@ -81,6 +88,23 @@ public class AppVehicleController extends BaseController<VehicleBiz> {
@PostMapping
(
"setDaysPrice"
)
@ApiModelProperty
(
"设置价格"
)
public
ObjectRestResponse
setDaysPrice
(
@RequestBody
VehicleApply
vehicle
)
{
baseBiz
.
addOrUpd
(
vehicle
);
return
ObjectRestResponse
.
succ
();
}
@GetMapping
(
"daysPriceInfo"
)
@ApiModelProperty
(
"商品详情"
)
public
ObjectRestResponse
info
(
@RequestParam
(
value
=
"vehicleId"
)
String
vehicleId
)
{
return
ObjectRestResponse
.
succ
(
vehicleDaysPriceBiz
.
getInfoV2
(
vehicleId
));
}
...
...
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