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
9571e0db
Commit
9571e0db
authored
Aug 28, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆节假日价格信息
parent
ad3606ab
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
2 deletions
+41
-2
VehicleHolidayPriceInfoVo.java
...c/platform/vehicle/pojo/vo/VehicleHolidayPriceInfoVo.java
+22
-0
VehicleHolidayPriceInfoBiz.java
...xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
+4
-0
VehicleHolidayPriceInfoMapper.java
...latform/vehicle/mapper/VehicleHolidayPriceInfoMapper.java
+4
-1
VehicleHolidayPriceInfoController.java
...tform/vehicle/rest/VehicleHolidayPriceInfoController.java
+6
-1
VehicleHolidayPriceInfoMapper.xml
...c/main/resources/mapper/VehicleHolidayPriceInfoMapper.xml
+5
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleHolidayPriceInfoVo.java
0 → 100644
View file @
9571e0db
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
vo
;
import
lombok.Data
;
import
java.math.BigDecimal
;
@Data
public
class
VehicleHolidayPriceInfoVo
{
private
Integer
festivalId
;
private
String
festivalDay
;
private
String
startTime
;
private
String
endTime
;
private
BigDecimal
rentPrice
;
private
Integer
rentFreeDay
;
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleHolidayPriceInfoBiz.java
View file @
9571e0db
...
@@ -228,6 +228,10 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
...
@@ -228,6 +228,10 @@ public class VehicleHolidayPriceInfoBiz extends BaseBiz<VehicleHolidayPriceInfoM
}
}
public
ObjectRestResponse
getAll
(
Integer
festivalId
)
{
return
ObjectRestResponse
.
succ
(
mapper
.
getAll
(
festivalId
));
}
public
static
Set
<
String
>
getAllDate
(
String
startDate
,
String
endDate
)
{
public
static
Set
<
String
>
getAllDate
(
String
startDate
,
String
endDate
)
{
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/VehicleHolidayPriceInfoMapper.java
View file @
9571e0db
package
com
.
xxfc
.
platform
.
vehicle
.
mapper
;
package
com
.
xxfc
.
platform
.
vehicle
.
mapper
;
import
com.xxfc.platform.vehicle.entity.VehicleHolidayPriceInfo
;
import
com.xxfc.platform.vehicle.entity.VehicleHolidayPriceInfo
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleHolidayPriceInfoVo
;
import
tk.mybatis.mapper.common.Mapper
;
import
tk.mybatis.mapper.common.Mapper
;
import
java.util.List
;
/**
/**
* 车辆节假日价格信息表
* 车辆节假日价格信息表
*
*
...
@@ -11,5 +14,5 @@ import tk.mybatis.mapper.common.Mapper;
...
@@ -11,5 +14,5 @@ import tk.mybatis.mapper.common.Mapper;
* @date 2020-05-11 09:16:23
* @date 2020-05-11 09:16:23
*/
*/
public
interface
VehicleHolidayPriceInfoMapper
extends
Mapper
<
VehicleHolidayPriceInfo
>
{
public
interface
VehicleHolidayPriceInfoMapper
extends
Mapper
<
VehicleHolidayPriceInfo
>
{
List
<
VehicleHolidayPriceInfoVo
>
getAll
(
Integer
festivalId
);
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleHolidayPriceInfoController.java
View file @
9571e0db
...
@@ -16,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -16,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@RestController
@RestController
@RequestMapping
(
"vehicleHolidayPriceInfo"
)
@RequestMapping
(
"vehicleHolidayPriceInfo"
)
...
@@ -78,4 +77,10 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
...
@@ -78,4 +77,10 @@ public class VehicleHolidayPriceInfoController extends BaseController<VehicleHol
public
ObjectRestResponse
getOne
(
Integer
id
)
{
public
ObjectRestResponse
getOne
(
Integer
id
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectById
(
id
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectById
(
id
));
}
}
@GetMapping
(
value
=
"getAll"
)
public
ObjectRestResponse
getAll
(
Integer
festivalId
)
{
return
baseBiz
.
getAll
(
festivalId
);
}
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleHolidayPriceInfoMapper.xml
View file @
9571e0db
...
@@ -3,5 +3,10 @@
...
@@ -3,5 +3,10 @@
<mapper
namespace=
"com.xxfc.platform.vehicle.mapper.VehicleHolidayPriceInfoMapper"
>
<mapper
namespace=
"com.xxfc.platform.vehicle.mapper.VehicleHolidayPriceInfoMapper"
>
<select
id=
"getAll"
resultType=
" com.xxfc.platform.vehicle.pojo.vo.VehicleHolidayPriceInfoVo"
>
select festival_id, festival_day, MIN(festival_date) as startTime, MAX(festival_date) as endTime, rent_price, rent_free_day from vehicle_holiday_price_info
GROUP BY festival_id,festival_day,rent_price, rent_free_day
HAVING festival_id = #{festivalId}
</select>
</mapper>
</mapper>
\ No newline at end of file
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