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
7da8e31f
Commit
7da8e31f
authored
Dec 10, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_chw_zjw' into master-chw
parents
11c83063
6acbe832
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
7 deletions
+47
-7
UserRestInterface.java
.../wxiaoqi/security/admin/feign/rest/UserRestInterface.java
+13
-0
SpecialRentBiz.java
...main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
+2
-1
ShuntApplyController.java
...va/com/xxfc/platform/order/rest/ShuntApplyController.java
+3
-2
SpecialRentController.java
...a/com/xxfc/platform/order/rest/SpecialRentController.java
+4
-2
BgSpecialRentController.java
...atform/order/rest/background/BgSpecialRentController.java
+1
-1
VehicleVO.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
+4
-0
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+20
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/rest/UserRestInterface.java
View file @
7da8e31f
...
@@ -126,6 +126,19 @@ public interface UserRestInterface {
...
@@ -126,6 +126,19 @@ public interface UserRestInterface {
return
null
;
return
null
;
}
}
default
Integer
getBusinessUserCompanyId
(){
return
getBusinessUserCompanyIds
()
==
null
?
null
:
getBusinessUserCompanyIds
().
get
(
0
);
}
default
Integer
getBgUserCompanyId
(){
UserDTO
userDTO
=
getAdminUserInfoV2
();
if
(
userDTO
!=
null
&&
CollUtil
.
isNotEmpty
(
userDTO
.
getCompanyIds
()))
{
return
userDTO
.
getCompanyIds
().
get
(
0
);
}
else
{
return
null
;
}
}
default
UserDTO
getBusinessUserByAppUser
(){
default
UserDTO
getBusinessUserByAppUser
(){
String
currentUserName
=
BaseContextHandler
.
getUsername
();
String
currentUserName
=
BaseContextHandler
.
getUsername
();
if
(
StrUtil
.
isNotBlank
(
currentUserName
)){
if
(
StrUtil
.
isNotBlank
(
currentUserName
)){
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
View file @
7da8e31f
...
@@ -93,7 +93,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -93,7 +93,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
* @param specialRent
* @param specialRent
* @param userDTO
* @param userDTO
*/
*/
public
void
addRent
(
@RequestBody
SpecialRent
specialRent
,
UserDTO
userDTO
)
{
public
void
addRent
(
@RequestBody
SpecialRent
specialRent
,
UserDTO
userDTO
,
Integer
currentCompanyId
)
{
AssertUtils
.
isBlank
(
userDTO
);
AssertUtils
.
isBlank
(
userDTO
);
AssertUtils
.
isBlank
(
specialRent
.
getUnitPrice
());
AssertUtils
.
isBlank
(
specialRent
.
getUnitPrice
());
if
(
StrUtil
.
isBlank
(
specialRent
.
getVehicleId
()))
{
if
(
StrUtil
.
isBlank
(
specialRent
.
getVehicleId
()))
{
...
@@ -123,6 +123,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -123,6 +123,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
specialRent
.
setCategoryId
(
vehicle
.
getCategoryId
());
specialRent
.
setCategoryId
(
vehicle
.
getCategoryId
());
specialRent
.
setGoodsType
(
vehicle
.
getGoodsType
());
specialRent
.
setGoodsType
(
vehicle
.
getGoodsType
());
specialRent
.
setPriceType
(
vehicle
.
getPriceType
());
specialRent
.
setPriceType
(
vehicle
.
getPriceType
());
specialRent
.
setPublishCompanyId
(
currentCompanyId
);
//缓存商品信息
//缓存商品信息
specialRent
.
setGoodsJson
(
JSONUtil
.
parse
(
vehicle
).
toString
());
specialRent
.
setGoodsJson
(
JSONUtil
.
parse
(
vehicle
).
toString
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/ShuntApplyController.java
View file @
7da8e31f
...
@@ -231,6 +231,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
...
@@ -231,6 +231,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
setStatus
(
ShuntApply
.
STATUS_ORDER
);
setStatus
(
ShuntApply
.
STATUS_ORDER
);
setOrderStatus
(
ShuntApply
.
ORDER_STATUS_TOPAY
);
setOrderStatus
(
ShuntApply
.
ORDER_STATUS_TOPAY
);
setRealAmount
(
bo
.
getOrder
().
getRealAmount
());
setRealAmount
(
bo
.
getOrder
().
getRealAmount
());
setOrderId
(
bo
.
getOrder
().
getId
());
}});
}});
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
}
}
...
@@ -363,7 +364,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
...
@@ -363,7 +364,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
shuntApply
.
setOrderNo
(
detail
.
getOrder
().
getNo
());
shuntApply
.
setOrderNo
(
detail
.
getOrder
().
getNo
());
shuntApply
.
setOverTime
(
DateUtil
.
offsetHour
(
DateUtil
.
date
(),
1
).
getTime
());
shuntApply
.
setOverTime
(
DateUtil
.
offsetHour
(
DateUtil
.
date
(),
1
).
getTime
());
shuntApply
.
setConfirmUserId
(
userDTO
.
getId
());
shuntApply
.
setConfirmUserId
(
userDTO
.
getId
());
shuntApply
.
setConfirmCompanyId
(
userDTO
.
get
CompanyId
());
shuntApply
.
setConfirmCompanyId
(
getBusinessUser
CompanyId
());
shuntApply
.
setBookRecordId
(
detail
.
getBookRecordId
());
shuntApply
.
setBookRecordId
(
detail
.
getBookRecordId
());
baseBiz
.
updateSelectiveByIdRe
(
shuntApply
);
baseBiz
.
updateSelectiveByIdRe
(
shuntApply
);
...
@@ -432,7 +433,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
...
@@ -432,7 +433,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
UserDTO
userDTO
=
getBusinessUserByAppUser
();
UserDTO
userDTO
=
getBusinessUserByAppUser
();
AssertUtils
.
isBlank
(
userDTO
);
AssertUtils
.
isBlank
(
userDTO
);
PageDataVO
<
ShuntApplyController
.
ShuntApplyVO
>
pages
=
PageDataVO
.
pageInfo
(
dto
.
initQuery
(),
()
->
baseBiz
.
selectByWeekend
(
w
->
{
PageDataVO
<
ShuntApplyController
.
ShuntApplyVO
>
pages
=
PageDataVO
.
pageInfo
(
dto
.
initQuery
(),
()
->
baseBiz
.
selectByWeekend
(
w
->
{
w
.
andEqualTo
(
ShuntApply:
:
getConfirm
UserId
,
userDTO
.
get
Id
());
w
.
andEqualTo
(
ShuntApply:
:
getConfirm
CompanyId
,
getBusinessUserCompany
Id
());
w
.
andEqualTo
(
ShuntApply:
:
getIsBizdel
,
SYS_FALSE
);
w
.
andEqualTo
(
ShuntApply:
:
getIsBizdel
,
SYS_FALSE
);
if
(
StrUtil
.
isNotBlank
(
dto
.
getMultiStatus
()))
{
if
(
StrUtil
.
isNotBlank
(
dto
.
getMultiStatus
()))
{
w
.
andIn
(
ShuntApply:
:
getStatus
,
CollUtil
.
toList
(
dto
.
getMultiStatus
().
split
(
","
)));
w
.
andIn
(
ShuntApply:
:
getStatus
,
CollUtil
.
toList
(
dto
.
getMultiStatus
().
split
(
","
)));
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/SpecialRentController.java
View file @
7da8e31f
...
@@ -68,7 +68,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
...
@@ -68,7 +68,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
public
ObjectRestResponse
appBusinessAddRent
(
@RequestBody
SpecialRent
specialRent
)
{
public
ObjectRestResponse
appBusinessAddRent
(
@RequestBody
SpecialRent
specialRent
)
{
UserDTO
userDTO
=
getBusinessUserByAppUser
();
UserDTO
userDTO
=
getBusinessUserByAppUser
();
baseBiz
.
addRent
(
specialRent
,
userDTO
);
baseBiz
.
addRent
(
specialRent
,
userDTO
,
getBusinessUserCompanyId
()
);
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
...
@@ -152,7 +152,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
...
@@ -152,7 +152,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
Query
query
=
new
Query
(
dto
);
Query
query
=
new
Query
(
dto
);
PageDataVO
<
SpecialRentVO
>
pages
=
PageDataVO
.
pageInfo
(
query
,
()
->
baseBiz
.
selectByWeekend
(
w
->
{
PageDataVO
<
SpecialRentVO
>
pages
=
PageDataVO
.
pageInfo
(
query
,
()
->
baseBiz
.
selectByWeekend
(
w
->
{
w
.
andEqualTo
(
SpecialRent:
:
getIsDel
,
SYS_FALSE
);
w
.
andEqualTo
(
SpecialRent:
:
getIsDel
,
SYS_FALSE
);
w
.
andEqualTo
(
SpecialRent:
:
getPublish
UserId
,
userDTO
.
get
Id
());
w
.
andEqualTo
(
SpecialRent:
:
getPublish
CompanyId
,
getBusinessUserCompany
Id
());
return
w
;
return
w
;
},
" crt_time desc "
),
SpecialRentVO
.
class
);
},
" crt_time desc "
),
SpecialRentVO
.
class
);
...
@@ -208,6 +208,8 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
...
@@ -208,6 +208,8 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
setId
(
specialRent
.
getId
());
setId
(
specialRent
.
getId
());
setStatus
(
SpecialRent
.
STATUS_ORDER
);
setStatus
(
SpecialRent
.
STATUS_ORDER
);
setOrderStatus
(
SpecialRent
.
ORDER_STATUS_TOPAY
);
setOrderStatus
(
SpecialRent
.
ORDER_STATUS_TOPAY
);
setJoinUserId
(
getCurrentUserIdInt
());
setOrderId
(
bo
.
getOrder
().
getId
());
}});
}});
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
}
}
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/background/BgSpecialRentController.java
View file @
7da8e31f
...
@@ -67,7 +67,7 @@ public class BgSpecialRentController extends BaseController<SpecialRentBiz, Spec
...
@@ -67,7 +67,7 @@ public class BgSpecialRentController extends BaseController<SpecialRentBiz, Spec
@ApiOperation
(
value
=
"添加特惠租车"
)
@ApiOperation
(
value
=
"添加特惠租车"
)
public
ObjectRestResponse
businessAddRent
(
@RequestBody
SpecialRent
specialRent
)
{
public
ObjectRestResponse
businessAddRent
(
@RequestBody
SpecialRent
specialRent
)
{
UserDTO
userDTO
=
getAdminUserInfoV2
();
UserDTO
userDTO
=
getAdminUserInfoV2
();
baseBiz
.
addRent
(
specialRent
,
userDTO
);
baseBiz
.
addRent
(
specialRent
,
userDTO
,
getBgUserCompanyId
()
);
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
View file @
7da8e31f
...
@@ -72,6 +72,10 @@ public class VehicleVO extends Vehicle {
...
@@ -72,6 +72,10 @@ public class VehicleVO extends Vehicle {
private
List
<
VehicleExtensionVO
>
vehicleExtensions
;
private
List
<
VehicleExtensionVO
>
vehicleExtensions
;
public
void
setExtensionVOS
(
List
<
VehicleExtensionVO
>
extensionVOS
)
{
this
.
extensionVOS
=
extensionVOS
;
}
private
String
manageProvinceName
;
private
String
manageProvinceName
;
private
String
manageCityName
;
private
String
manageCityName
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
7da8e31f
...
@@ -100,6 +100,9 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -100,6 +100,9 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
@Autowired
@Autowired
VehicleHolidayPriceInfoBiz
vehicleHolidayPriceInfoBiz
;
VehicleHolidayPriceInfoBiz
vehicleHolidayPriceInfoBiz
;
@Autowired
VehicleExtensionBiz
extensionBiz
;
public
UserFeign
getUserFeign
()
{
public
UserFeign
getUserFeign
()
{
return
userFeign
;
return
userFeign
;
}
}
...
@@ -704,10 +707,25 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -704,10 +707,25 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
return
ObjectRestResponse
.
succ
(
baseBiz
.
appSelectList
(
vehicleFindAppDTO
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
appSelectList
(
vehicleFindAppDTO
));
}
}
@GetMapping
(
"app/unauth/website/selectList"
)
@ApiModelProperty
(
"店铺商品列表(官网)"
)
@IgnoreUserToken
public
ObjectRestResponse
<
PageDataVO
<
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
vo
.
VehicleVO
>>
websiteSelectList
(
VehicleFindAppDTO
vehicleFindAppDTO
)
{
vehicleFindAppDTO
.
setState
(
Vehicle
.
STATE_UP
);
vehicleFindAppDTO
.
setIsMinPrice
(
SYS_TRUE
);
PageDataVO
<
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
vo
.
VehicleVO
>
pageVo
=
baseBiz
.
appSelectList
(
vehicleFindAppDTO
);
if
(
CollUtil
.
isNotEmpty
(
pageVo
.
getData
()))
{
pageVo
.
getData
().
forEach
(
v
->
{
v
.
setVehicleExtensions
(
extensionBiz
.
getTree
(
v
.
getId
()));
});
}
return
ObjectRestResponse
.
succ
(
pageVo
);
}
@GetMapping
(
"app/unauth/shop/headSelectList"
)
@GetMapping
(
"app/unauth/shop/headSelectList"
)
@ApiModelProperty
(
"店铺商品列表(头部输入框)"
)
@ApiModelProperty
(
"店铺商品列表(头部输入框)"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
PageDataVO
<
VehicleVO
>>
shopHeadSelectList
(
VehicleFindAppDTO
vehicleFindAppDTO
)
{
public
ObjectRestResponse
<
PageDataVO
<
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
vo
.
VehicleVO
>>
shopHeadSelectList
(
VehicleFindAppDTO
vehicleFindAppDTO
)
{
vehicleFindAppDTO
.
setState
(
Vehicle
.
STATE_UP
);
vehicleFindAppDTO
.
setState
(
Vehicle
.
STATE_UP
);
vehicleFindAppDTO
.
setIsMinPrice
(
SYS_TRUE
);
vehicleFindAppDTO
.
setIsMinPrice
(
SYS_TRUE
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
appSelectList
(
vehicleFindAppDTO
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
appSelectList
(
vehicleFindAppDTO
));
...
@@ -723,6 +741,7 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
...
@@ -723,6 +741,7 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
static
public
class
VehicleVO
extends
Vehicle
{
static
public
class
VehicleVO
extends
Vehicle
{
private
VehicleModel
vehicleModel
;
private
VehicleModel
vehicleModel
;
private
List
<
VehiclePlatCata
>
vehiclePlatCatas
;
private
List
<
VehiclePlatCata
>
vehiclePlatCatas
;
private
List
<
VehicleModelCalendarPriceDTO
>
priceDTOS
;
private
List
<
VehicleModelCalendarPriceDTO
>
priceDTOS
;
/**
/**
* 价格开始日期
* 价格开始日期
...
...
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