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
aeb308c6
Commit
aeb308c6
authored
Aug 31, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-price' into dev-tiande
parents
1db7315e
0962e039
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
28 deletions
+30
-28
VehicleHolidayPriceInfoBiz.java
...xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
+1
-1
WebConfiguration.java
...va/com/xxfc/platform/vehicle/config/WebConfiguration.java
+2
-1
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+27
-26
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
View file @
aeb308c6
...
@@ -164,7 +164,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -164,7 +164,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
//Date currentDate = DateUtil.beginOfDay(DateUtil.parse(startDate));
//Date currentDate = DateUtil.beginOfDay(DateUtil.parse(startDate));
for
(
cn
.
hutool
.
core
.
date
.
DateTime
currentDate
=
DateUtil
.
beginOfDay
(
DateUtil
.
parse
(
startDate
));
for
(
cn
.
hutool
.
core
.
date
.
DateTime
currentDate
=
DateUtil
.
beginOfDay
(
DateUtil
.
parse
(
startDate
));
(
currentDate
.
isAfterOrEquals
(
beginOfStartDate
)
||
currentDate
.
isBeforeOrEquals
(
endOfStartDate
));
(
currentDate
.
isAfterOrEquals
(
beginOfStartDate
)
&&
currentDate
.
isBeforeOrEquals
(
endOfStartDate
));
currentDate
=
DateUtil
.
offsetDay
(
currentDate
,
1
))
{
currentDate
=
DateUtil
.
offsetDay
(
currentDate
,
1
))
{
cn
.
hutool
.
core
.
date
.
DateTime
finalCurrentDate
=
currentDate
;
cn
.
hutool
.
core
.
date
.
DateTime
finalCurrentDate
=
currentDate
;
VehicleModelCalendarPriceDTO
dto
=
new
VehicleModelCalendarPriceDTO
(){{
VehicleModelCalendarPriceDTO
dto
=
new
VehicleModelCalendarPriceDTO
(){{
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/config/WebConfiguration.java
View file @
aeb308c6
...
@@ -74,7 +74,8 @@ public class WebConfiguration implements WebMvcConfigurer {
...
@@ -74,7 +74,8 @@ public class WebConfiguration implements WebMvcConfigurer {
"/branchCompany/**"
,
"/branchCompany/**"
,
"/vehicleModel/**"
,
"/vehicleModel/**"
,
"/departure/**"
,
"/departure/**"
,
"/company/**"
"/company/**"
,
"/vehicleHolidayPriceInfo/**"
};
};
Collections
.
addAll
(
list
,
urls
);
Collections
.
addAll
(
list
,
urls
);
return
list
;
return
list
;
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
aeb308c6
...
@@ -864,7 +864,7 @@
...
@@ -864,7 +864,7 @@
<select
id=
"searchUsableModel"
parameterType=
"java.util.Map"
<select
id=
"searchUsableModel"
parameterType=
"java.util.Map"
resultMap=
"searchUsableModelMap"
>
resultMap=
"searchUsableModelMap"
>
(select distinct vm.id as model_id, bc.id as company_id, group_concat(v.id) vehicle_ids
(select distinct vm.id as model_id, bc.id as company_id, group_concat(v.id)
as
vehicle_ids
<if
test=
" catas != null "
>
<if
test=
" catas != null "
>
,GROUP_CONCAT(vc.cata_id) as catas
,GROUP_CONCAT(vc.cata_id) as catas
</if>
</if>
...
@@ -911,31 +911,32 @@
...
@@ -911,31 +911,32 @@
</if>
</if>
)
)
<!-- union 所有下架车型 -->
<!-- union 所有下架车型 -->
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
<!-- -->
union
<!-- <if test="startCompanyId != null or parkBranchCompanyId != null ">-->
(select vm.id as model_id, bc.id as company_id
<!-- union-->
<if
test=
" catas != null "
>
<!-- (select vm.id as model_id, bc.id as company_id-->
,null as catas
<!-- <if test=" catas != null ">-->
</if>
<!-- ,null as catas-->
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
<!-- </if>-->
,0 as hasVehicle
<!-- <if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">-->
</if>
<!-- ,0 as hasVehicle-->
<if
test=
"lon != null and lat != null"
>
<!-- </if>-->
<!-- 处理距离 -->
<!-- <if test="lon != null and lat != null">-->
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
<!-- <!– 处理距离 –>-->
</if>
<!-- ,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance-->
from vehicle_model vm
<!-- </if>-->
left join branch_company bc on
<!-- from vehicle_model vm-->
<choose>
<!-- left join branch_company bc on-->
<when
test=
"startCompanyId != null"
>
<!-- <choose>-->
bc.id = #{startCompanyId}
<!-- <when test="startCompanyId != null">-->
</when>
<!-- bc.id = #{startCompanyId}-->
<otherwise>
<!-- </when>-->
bc.id = #{parkBranchCompanyId}
<!-- <otherwise>-->
</otherwise>
<!-- bc.id = #{parkBranchCompanyId}-->
</choose>
<!-- </otherwise>-->
where vm.isdel = 0 and vm.status = 0 and vm.app_show = 1)
<!-- </choose>-->
</if>
<!-- where vm.isdel = 0 and vm.status = 0 and vm.app_show = 1)-->
<!-- </if>-->
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
order by
order by
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
...
...
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