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
391a6c51
Commit
391a6c51
authored
Sep 19, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master-modify-cutAmount' into master-modify-cutAmount
parents
d79090af
e123b96e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
OrderRentVehicleService.java
.../xxfc/platform/order/service/OrderRentVehicleService.java
+5
-4
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderRentVehicleService.java
View file @
391a6c51
...
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
...
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.github.wxiaoqi.security.admin.constant.enumerate.MemberEnum
;
import
com.github.wxiaoqi.security.admin.constant.enumerate.MemberEnum
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
...
@@ -414,13 +415,13 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
...
@@ -414,13 +415,13 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
*/
*/
private
void
costDetail
(
RentVehiclePriceVO
vo
,
String
children
)
{
private
void
costDetail
(
RentVehiclePriceVO
vo
,
String
children
)
{
OrderTemplate
template
=
orderTemplateBiz
.
selectByCode
(
OrderCostEnum
.
RENT_VEHICLE
.
getCode
());
OrderTemplate
template
=
orderTemplateBiz
.
selectByCode
(
OrderCostEnum
.
RENT_VEHICLE
.
getCode
());
// (Map<String, String>)CollUtil.zip(CollUtil.newArrayList("children", "vehicleAmount", "realAmount", "paramJson")
// , CollUtil.newArrayList(children, vo.getVehicleAmount()+"", vo.getRealAmount()+"", vo.getParamJson()));
template
.
setTemplate
(
orderTemplateBiz
.
result
(
template
.
getTemplate
()
template
.
setTemplate
(
orderTemplateBiz
.
result
(
template
.
getTemplate
()
,
CollUtil
.
zip
(
CollUtil
.
newArrayList
(
"children"
,
"vehicleAmount"
,
"realAmount"
,
"paramJson"
)
,
CollUtil
.
zip
(
CollUtil
.
newArrayList
(
"children"
,
"vehicleAmount"
,
"realAmount"
,
"paramJson"
)
,
CollUtil
.
newArrayList
(
children
,
vo
.
getVehicleAmount
()
,
CollUtil
.
newArrayList
(
children
,
vo
.
getVehicleAmount
(),
vo
.
getRealAmount
(),
""
))));
,
vo
.
getRealAmount
(),
vo
.
getParamJson
()))));
String
result
=
orderTemplateBiz
.
result
(
template
,
Dict
.
parse
(
vo
));
String
result
=
orderTemplateBiz
.
result
(
template
,
Dict
.
parse
(
vo
));
JSONObject
jsonObject
=
JSONUtil
.
parseObj
(
result
);
jsonObject
.
put
(
"paramJson"
,
vo
.
getParamJson
());
result
=
JSONUtil
.
toJsonStr
(
jsonObject
);
vo
.
setCostDetail
(
result
);
vo
.
setCostDetail
(
result
);
}
}
...
...
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