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
98bd3cb4
Commit
98bd3cb4
authored
Sep 19, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-modify-cutAmount' into dev
parents
dcf2761e
391a6c51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
OrderRentVehicleService.java
.../xxfc/platform/order/service/OrderRentVehicleService.java
+5
-4
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+9
-3
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderRentVehicleService.java
View file @
98bd3cb4
...
...
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
com.github.wxiaoqi.security.admin.constant.enumerate.MemberEnum
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
...
...
@@ -414,13 +415,13 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
*/
private
void
costDetail
(
RentVehiclePriceVO
vo
,
String
children
)
{
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
()
,
CollUtil
.
zip
(
CollUtil
.
newArrayList
(
"children"
,
"vehicleAmount"
,
"realAmount"
,
"paramJson"
)
,
CollUtil
.
newArrayList
(
children
,
vo
.
getVehicleAmount
()
,
vo
.
getRealAmount
(),
vo
.
getParamJson
()))));
,
CollUtil
.
newArrayList
(
children
,
vo
.
getVehicleAmount
(),
vo
.
getRealAmount
(),
""
))));
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
);
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
98bd3cb4
...
...
@@ -383,9 +383,6 @@
<if
test=
"numberPlate != null"
>
and v1.number_plate = #{numberPlate}
</if>
<if
test=
"keywords != null and keywords != ''"
>
and (v1.number_plate like concat('%', #{keywords}, '%') or v1.code like concat('%', #{keywords}, '%'))
</if>
<if
test=
"status != null"
>
and v1.status = #{status}
</if>
...
...
@@ -421,6 +418,9 @@
<if
test=
"code != null and code != ''"
>
and v1.code = #{code}
</if>
<if
test=
"keywords != null and keywords != ''"
>
and (v1.number_plate like concat('%', #{keywords}, '%') or v1.code like concat('%', #{keywords}, '%'))
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and v1.park_branch_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
...
...
@@ -485,6 +485,9 @@
<if
test=
"status != null"
>
and v1.status = #{status}
</if>
<if
test=
"code !=null"
>
and v1.code=#{code}
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and v1.park_branch_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
...
...
@@ -508,6 +511,9 @@
<if
test=
"status != null"
>
and v2.status = #{status}
</if>
<if
test=
"code !=null"
>
and v2.code=#{code}
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and v2.park_branch_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
...
...
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