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
b8c20be5
Commit
b8c20be5
authored
Nov 04, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改租车流程
parent
2fd68774
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
RentVehicleBookDTO.java
...va/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
+2
-0
UsableVeicleDTO.java
.../java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
+1
-0
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+1
-1
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+23
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
View file @
b8c20be5
...
...
@@ -154,6 +154,8 @@ public class RentVehicleBookDTO extends PageParam {
String
catasStr
;
@ApiModelProperty
(
value
=
"分类列表"
,
hidden
=
true
)
Map
<
Integer
,
List
<
VehiclePlatCata
>>
catas
;
@ApiModelProperty
(
value
=
"分类列表"
,
hidden
=
true
)
Map
<
Integer
,
List
<
VehiclePlatCata
>>
catas2
;
public
void
setBookStartDate
(
String
bookStartDate
)
{
this
.
bookStartDate
=
bookStartDate
;
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
View file @
b8c20be5
...
...
@@ -47,6 +47,7 @@ public class UsableVeicleDTO extends PageParam {
String
catasStr
;
@ApiModelProperty
(
value
=
"分类列表"
,
hidden
=
true
)
Map
<
Integer
,
List
<
VehiclePlatCata
>>
catas
;
@ApiModelProperty
(
"停靠公司"
)
Integer
parkBranchCompanyId
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
b8c20be5
...
...
@@ -252,7 +252,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
rbd
.
setBookEndDate
(
dto
.
getEndDate
());
rbd
.
setBookStartDateTime
(
dto
.
getStartDateTime
());
rbd
.
setBookEndDateTime
(
dto
.
getEndDateTime
());
rbd
.
setCatas
(
dto
.
getCatas
());
rbd
.
setCatas
2
(
dto
.
getCatas
());
rbd
.
setGoodsType
(
dto
.
getGoodsType
());
rbd
.
setRecordIntersection
(
Boolean
.
TRUE
);
rbd
.
setYearNo4Where
(
Boolean
.
TRUE
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
b8c20be5
...
...
@@ -1121,6 +1121,9 @@
<if
test=
"lon != null and lat != null"
>
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
</if>
<if
test=
" catas2 != null "
>
,vc.catas as catas
</if>
<!-- <if test=" yearMonthAndParam !=null ">-->
<!-- ,ifnull(vbi.booked_date,0) as booked_date-->
<!-- </if>-->
...
...
@@ -1141,6 +1144,23 @@
<if
test=
"categoryId != null "
>
and category_id = #{categoryId}
</if>
<!-- 循环 相同父级 数据做并集, 不同父级做或集 -->
<if
test=
" catas2 != null "
>
and ( 1
<foreach
collection=
"catas2"
index=
"key"
item=
"cataList"
>
&
(
<foreach
collection=
"cataList"
index=
"cIndex"
item=
"cata"
>
<if
test=
" cIndex != 0"
>
|
</if>
(case when FIND_IN_SET(#{cata.id},catas) > 0 then 1 else 0 end)
</foreach>
)
</foreach>
) > 0
</if>
<if
test=
"lon != null and lat != null"
>
order by
distance asc
...
...
@@ -1186,6 +1206,9 @@
<if
test=
" catas != null "
>
left join vehicle_cata vc on vm.id = vc.vehicle_model_id
</if>
<if
test=
" catas2 != null "
>
left join (select vehicle_id,GROUP_CONCAT(cata_id) as catas from vehicle_extension where is_del = 0 group by vehicle_id) vc on v.id = vc.vehicle_id
</if>
<where>
<!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 -->
...
...
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