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
134ef7b9
Commit
134ef7b9
authored
Aug 28, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆节假日价格信息
parent
a5af6fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
VehicleHolidayPriceInfoController.java
...tform/vehicle/rest/VehicleHolidayPriceInfoController.java
+12
-15
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleHolidayPriceInfoController.java
View file @
134ef7b9
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.vehicle.biz.VehicleBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleHolidayPriceInfoBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleHolidayPriceInfoBiz
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleHolidayPriceInfo
;
import
com.xxfc.platform.vehicle.entity.VehicleHolidayPriceInfo
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleModelCalendarPriceDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleModelCalendarPriceDTO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
...
@@ -53,18 +50,18 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
...
@@ -53,18 +50,18 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
Integer
userId
=
Integer
.
valueOf
(
getCurrentUserId
());
Integer
userId
=
Integer
.
valueOf
(
getCurrentUserId
());
List
<
VehicleVO
>
vehicleVOS
=
CollUtil
.
newArrayList
();
List
<
VehicleVO
>
vehicleVOS
=
CollUtil
.
newArrayList
();
if
(
StrUtil
.
isNotBlank
(
vehicleIds
))
{
//
if(StrUtil.isNotBlank(vehicleIds)) {
String
[]
strs
=
StrUtil
.
split
(
vehicleIds
,
","
);
//
String[] strs = StrUtil.split(vehicleIds, ",");
List
<
Vehicle
>
vehicleList
=
vehicleBiz
.
selectByWeekend
(
w
->
{
//
List<Vehicle> vehicleList = vehicleBiz.selectByWeekend(w -> {
w
.
andIn
(
Vehicle:
:
getId
,
CollUtil
.
toList
(
strs
));
//
w.andIn(Vehicle::getId, CollUtil.toList(strs));
return
w
;
//
return w;
});
//
});
for
(
Vehicle
vehicle
:
vehicleList
)
{
//
for (Vehicle vehicle : vehicleList) {
VehicleVO
vehicleVO
=
BeanUtil
.
toBean
(
vehicle
,
VehicleVO
.
class
);
//
VehicleVO vehicleVO = BeanUtil.toBean(vehicle, VehicleVO.class);
vehicleVO
.
setPriceDTOS
(
baseBiz
.
getSynthesizePrice
(
vehicle
.
getId
(),
startDate
,
endDate
,
userId
,
companyId
));
//
vehicleVO.setPriceDTOS(baseBiz.getSynthesizePrice(vehicle.getId(), startDate, endDate, userId, companyId));
vehicleVOS
.
add
(
vehicleVO
);
//
vehicleVOS.add(vehicleVO);
}
//
}
}
//
}
return
ObjectRestResponse
.
succ
(
vehicleVOS
);
return
ObjectRestResponse
.
succ
(
vehicleVOS
);
}
}
...
...
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