Commit aeb308c6 authored by 周健威's avatar 周健威

Merge branch 'master-vehicle-price' into dev-tiande

parents 1db7315e 0962e039
...@@ -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(){{
......
...@@ -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;
......
...@@ -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 <!-- &lt;!&ndash; 处理距离 &ndash;&gt;-->
</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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment