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
c1857fc2
Commit
c1857fc2
authored
Nov 10, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
0088e806
0572940d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
ActivityBiz.java
...main/java/com/xxfc/platform/activity/biz/ActivityBiz.java
+1
-1
SpecialRent.java
...main/java/com/xxfc/platform/order/entity/SpecialRent.java
+4
-0
SpecialRentController.java
...a/com/xxfc/platform/order/rest/SpecialRentController.java
+23
-3
No files found.
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityBiz.java
View file @
c1857fc2
...
...
@@ -59,7 +59,7 @@ public class ActivityBiz extends BaseBiz<ActivityMapper, Activity> {
Map
<
Integer
,
AppUserVo
>
userMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
appUserVos
)){
for
(
AppUserVo
appUserVo:
appUserVos
){
userMap
.
put
(
appUserVo
.
get
I
d
(),
appUserVo
);
userMap
.
put
(
appUserVo
.
get
Useri
d
(),
appUserVo
);
}
}
for
(
ActivityVo
activityVo
:
list
){
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/SpecialRent.java
View file @
c1857fc2
...
...
@@ -231,6 +231,10 @@ public class SpecialRent implements Serializable {
@ApiModelProperty
(
value
=
"商品信息json"
)
private
String
goodsJson
;
public
void
setGoodsJson
(
String
goodsJson
)
{
this
.
goodsJson
=
goodsJson
;
}
@Column
(
name
=
"brand_name"
)
@ApiModelProperty
(
"品牌名称"
)
private
String
brandName
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/SpecialRentController.java
View file @
c1857fc2
...
...
@@ -26,11 +26,15 @@ 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
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
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 +121,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
);
...
...
@@ -212,12 +222,12 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
@Data
public
static
class
SpecialRentVO
extends
SpecialRent
{
Vehicle
vehicle
;
Vehicle
VO
vehicle
;
@Override
public
void
setGoodsJson
(
String
goodsJson
)
{
super
.
setGoodsJson
(
goodsJson
);
if
(
StrUtil
.
isNotBlank
(
goodsJson
))
{
setVehicle
(
JSONUtil
.
toBean
(
goodsJson
,
Vehicle
.
class
));
setVehicle
(
JSONUtil
.
toBean
(
goodsJson
,
Vehicle
VO
.
class
));
super
.
setGoodsJson
(
null
);
}
}
...
...
@@ -226,8 +236,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