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
8623aca9
Commit
8623aca9
authored
Oct 23, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历价格
parent
ad22d194
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
VehicleFeign.java
...in/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
+7
-9
VehicleModelCalendarPriceDTO.java
...atform/vehicle/pojo/dto/VehicleModelCalendarPriceDTO.java
+0
-1
VehicleModelCalendarPriceController.java
...orm/vehicle/rest/VehicleModelCalendarPriceController.java
+7
-6
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
View file @
8623aca9
...
@@ -12,12 +12,10 @@ import com.xxfc.platform.vehicle.pojo.vo.AccompanyingItemVo;
...
@@ -12,12 +12,10 @@ import com.xxfc.platform.vehicle.pojo.vo.AccompanyingItemVo;
import
com.xxfc.platform.vehicle.pojo.vo.BranComanyLeaderVo
;
import
com.xxfc.platform.vehicle.pojo.vo.BranComanyLeaderVo
;
import
com.xxfc.platform.vehicle.pojo.vo.BranchCompanyListVO
;
import
com.xxfc.platform.vehicle.pojo.vo.BranchCompanyListVO
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
/**
/**
* Created by ace on 2017/9/15.
* Created by ace on 2017/9/15.
...
@@ -190,11 +188,11 @@ public interface VehicleFeign {
...
@@ -190,11 +188,11 @@ public interface VehicleFeign {
* @param userId
* @param userId
* @return
* @return
*/
*/
@GetMapping
(
"/vehicle_model/calendar_price/app/unauth/price"
)
@GetMapping
(
value
=
"/vehicle_model/calendar_price/app/unauth/price"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
List
<
VehicleModelCalendarPriceDTO
>
findVehicleModelCalendarPriceByDate
(
@RequestParam
(
value
=
"startDate"
)
Date
startDate
,
ObjectRestResponse
<
List
<
VehicleModelCalendarPriceDTO
>
>
findVehicleModelCalendarPriceByDate
(
@RequestParam
(
value
=
"startDate"
)
Date
startDate
,
@RequestParam
(
value
=
"endDate"
)
Date
endDate
,
@RequestParam
(
value
=
"endDate"
)
Date
endDate
,
@RequestParam
(
value
=
"vehicleModelId"
)
Integer
vehicleModelId
,
@RequestParam
(
value
=
"vehicleModelId"
)
Integer
vehicleModelId
,
@RequestParam
(
value
=
"userId"
)
Integer
userId
);
@RequestParam
(
value
=
"userId"
)
Integer
userId
);
@GetMapping
(
value
=
"/bookRecord/get"
)
@GetMapping
(
value
=
"/bookRecord/get"
)
public
ObjectRestResponse
<
List
<
BookRecordUpdateLog
>>
get
(
@RequestParam
(
value
=
"bookRecordId"
)
Long
bookRecordId
);
public
ObjectRestResponse
<
List
<
BookRecordUpdateLog
>>
get
(
@RequestParam
(
value
=
"bookRecordId"
)
Long
bookRecordId
);
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/dto/VehicleModelCalendarPriceDTO.java
View file @
8623aca9
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
dto
;
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelCalendarPriceController.java
View file @
8623aca9
...
@@ -12,6 +12,7 @@ import lombok.RequiredArgsConstructor;
...
@@ -12,6 +12,7 @@ import lombok.RequiredArgsConstructor;
import
lombok.SneakyThrows
;
import
lombok.SneakyThrows
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
...
@@ -51,13 +52,13 @@ public class VehicleModelCalendarPriceController {
...
@@ -51,13 +52,13 @@ public class VehicleModelCalendarPriceController {
return
ObjectRestResponse
.
succ
(
vehicleModelCalendarPriceVos
);
return
ObjectRestResponse
.
succ
(
vehicleModelCalendarPriceVos
);
}
}
@GetMapping
(
"/price"
)
@GetMapping
(
value
=
"/price"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
List
<
VehicleModelCalendarPriceDTO
>
findVehicleModelCalendarPriceByDate
(
@RequestParam
(
value
=
"startDate"
)
Date
startDate
,
public
ObjectRestResponse
<
List
<
VehicleModelCalendarPriceDTO
>
>
findVehicleModelCalendarPriceByDate
(
@RequestParam
(
value
=
"startDate"
)
Date
startDate
,
@RequestParam
(
value
=
"endDate"
)
Date
endDate
,
@RequestParam
(
value
=
"endDate"
)
Date
endDate
,
@RequestParam
(
value
=
"vehicleModelId"
)
Integer
vehicleModelId
,
@RequestParam
(
value
=
"vehicleModelId"
)
Integer
vehicleModelId
,
@RequestParam
(
value
=
"userId"
)
Integer
userId
)
{
@RequestParam
(
value
=
"userId"
)
Integer
userId
)
{
startDate
=
Date
.
from
(
startDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
().
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
startDate
=
Date
.
from
(
startDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
().
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
endDate
=
Date
.
from
(
endDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
().
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
endDate
=
Date
.
from
(
endDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
().
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
return
vehicleModelCalendarPriceBiz
.
findVehicleModelCalendarPriceByDateAndVehilceIdAndUserId
(
startDate
,
endDate
,
vehicleModelId
,
userId
);
return
ObjectRestResponse
.
succ
(
vehicleModelCalendarPriceBiz
.
findVehicleModelCalendarPriceByDateAndVehilceIdAndUserId
(
startDate
,
endDate
,
vehicleModelId
,
userId
)
);
}
}
}
}
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