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
6f4fb5f7
Commit
6f4fb5f7
authored
Nov 10, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
891ba3ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
SpecialRentController.java
...a/com/xxfc/platform/order/rest/SpecialRentController.java
+20
-1
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/SpecialRentController.java
View file @
6f4fb5f7
...
...
@@ -26,11 +26,14 @@ import com.xxfc.platform.order.pojo.order.add.AddRentVehicleDTO;
import
com.xxfc.platform.order.service.OrderRentVehicleService
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.feign.VehicleFeign
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.Data
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.persistence.Column
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_FALSE
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_TRUE
;
import
static
com
.
xxfc
.
platform
.
order
.
entity
.
SpecialRent
.*;
...
...
@@ -117,6 +120,12 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
Query
query
=
new
Query
(
dto
);
PageDataVO
<
SpecialRentVO
>
pages
=
PageDataVO
.
pageInfo
(
query
,
()
->
baseBiz
.
selectByWeekend
(
w
->
{
w
.
andIn
(
SpecialRent:
:
getStatus
,
CollUtil
.
newArrayList
(
STATUS_CRT
,
STATUS_AUTOCNL_ORDER
,
STATUS_AUTOCNL_TOPAY
,
STATUS_AUTOCNL_PAYED
));
if
(
null
!=
dto
.
getStartCityCode
())
{
w
.
andEqualTo
(
SpecialRent:
:
getStartCityCode
,
dto
.
getStartCityCode
());
}
if
(
null
!=
dto
.
getEndCityCode
())
{
w
.
andEqualTo
(
SpecialRent:
:
getEndCityCode
,
dto
.
getEndCityCode
());
}
return
w
;
},
" crt_time desc "
),
SpecialRentVO
.
class
);
...
...
@@ -226,8 +235,18 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
@Data
public
static
class
QueryDTO
extends
PageParam
{
Integer
userId
;
/**
* 开始城市编码
*/
@ApiModelProperty
(
value
=
"开始城市编码"
)
private
Integer
startCityCode
;
/**
* 结束城市编码
*/
@ApiModelProperty
(
value
=
"结束城市编码"
)
private
Integer
endCityCode
;
}
@Data
public
static
class
SpecialOrderDTO
extends
AddRentVehicleDTO
{
Integer
specialId
;
...
...
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