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
e9280203
Commit
e9280203
authored
Aug 31, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一车一价前台接口、下单 修改bug
parent
a3db44da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
30 deletions
+31
-30
VehicleHolidayPriceInfoBiz.java
...xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
+1
-1
WebConfiguration.java
...va/com/xxfc/platform/vehicle/config/WebConfiguration.java
+2
-1
VehicleHolidayPriceInfoController.java
...tform/vehicle/rest/VehicleHolidayPriceInfoController.java
+1
-2
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 @
e9280203
...
...
@@ -150,7 +150,7 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
//Date 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
))
{
cn
.
hutool
.
core
.
date
.
DateTime
finalCurrentDate
=
currentDate
;
VehicleModelCalendarPriceDTO
dto
=
new
VehicleModelCalendarPriceDTO
(){{
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/config/WebConfiguration.java
View file @
e9280203
...
...
@@ -74,7 +74,8 @@ public class WebConfiguration implements WebMvcConfigurer {
"/branchCompany/**"
,
"/vehicleModel/**"
,
"/departure/**"
,
"/company/**"
"/company/**"
,
"/vehicleHolidayPriceInfo/**"
};
Collections
.
addAll
(
list
,
urls
);
return
list
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleHolidayPriceInfoController.java
View file @
e9280203
...
...
@@ -47,8 +47,7 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
return
ObjectRestResponse
.
succ
(
baseBiz
.
getSynthesizePrice
(
vehicleId
,
startDate
,
endDate
,
userId
,
companyId
));
}
@GetMapping
(
value
=
"multiCalendarPrice"
)
@IgnoreUserToken
@GetMapping
(
value
=
"/multiCalendarPrice"
)
public
ObjectRestResponse
<
List
<
VehicleVO
>>
multiCalendarPrice
(
String
vehicleIds
,
String
startDate
,
String
endDate
,
Integer
companyId
)
{
Integer
userId
=
Integer
.
valueOf
(
getCurrentUserId
());
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
e9280203
...
...
@@ -850,7 +850,7 @@
<select
id=
"searchUsableModel"
parameterType=
"java.util.Map"
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 "
>
,GROUP_CONCAT(vc.cata_id) as catas
</if>
...
...
@@ -897,31 +897,32 @@
</if>
)
<!-- union 所有下架车型 -->
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
union
(select vm.id as model_id, bc.id as company_id
<if
test=
" catas != null "
>
,null as catas
</if>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
,0 as hasVehicle
</if>
<if
test=
"lon != null and lat != null"
>
<!-- 处理距离 -->
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
</if>
from vehicle_model vm
left join branch_company bc on
<choose>
<when
test=
"startCompanyId != null"
>
bc.id = #{startCompanyId}
</when>
<otherwise>
bc.id = #{parkBranchCompanyId}
</otherwise>
</choose>
where vm.isdel = 0 and vm.status = 0 and vm.app_show = 1)
</if>
<!-- -->
<!-- <if test="startCompanyId != null or parkBranchCompanyId != null ">-->
<!-- union-->
<!-- (select vm.id as model_id, bc.id as company_id-->
<!-- <if test=" catas != null ">-->
<!-- ,null as catas-->
<!-- </if>-->
<!-- <if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">-->
<!-- ,0 as hasVehicle-->
<!-- </if>-->
<!-- <if test="lon != null and lat != null">-->
<!-- <!– 处理距离 –>-->
<!-- ,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance-->
<!-- </if>-->
<!-- from vehicle_model vm-->
<!-- left join branch_company bc on-->
<!-- <choose>-->
<!-- <when test="startCompanyId != null">-->
<!-- bc.id = #{startCompanyId}-->
<!-- </when>-->
<!-- <otherwise>-->
<!-- bc.id = #{parkBranchCompanyId}-->
<!-- </otherwise>-->
<!-- </choose>-->
<!-- where vm.isdel = 0 and vm.status = 0 and vm.app_show = 1)-->
<!-- </if>-->
<if
test=
"lon != null and lat != null"
>
order by
<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