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
b4c30a60
Commit
b4c30a60
authored
Nov 05, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-chw' into dev-chw
parents
8c23cb83
12609f7f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
21 deletions
+38
-21
UserCommentFindDTO.java
...github/wxiaoqi/security/admin/dto/UserCommentFindDTO.java
+2
-0
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+11
-12
OrderVehicleCrosstownBiz.java
...com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
+9
-9
OrderTourController.java
...ava/com/xxfc/platform/order/rest/OrderTourController.java
+1
-0
AppVehicleApplyController.java
...xxfc/platform/vehicle/rest/AppVehicleApplyController.java
+15
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/UserCommentFindDTO.java
View file @
b4c30a60
...
@@ -35,5 +35,7 @@ public class UserCommentFindDTO extends PageParam{
...
@@ -35,5 +35,7 @@ public class UserCommentFindDTO extends PageParam{
private
Integer
isShow
;
private
Integer
isShow
;
private
Integer
commentId
;
private
Integer
isDesc
;
private
Integer
isDesc
;
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
b4c30a60
...
@@ -276,24 +276,19 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
...
@@ -276,24 +276,19 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
orderPageVo
.
setUsername
(
appUserVo
.
getRealname
());
orderPageVo
.
setUsername
(
appUserVo
.
getRealname
());
orderPageVo
.
setPositionName
(
appUserVo
.
getPositionName
());
orderPageVo
.
setPositionName
(
appUserVo
.
getPositionName
());
}
}
List
<
BranchCompany
>
branchCompanies
=
vehicleFeign
.
companyAll
(
userDTO
.
getDataAll
(),
userDTO
.
getDataCompany
(),
userDTO
.
getDataZone
());
List
<
Integer
>
companyIds
=
userDTO
.
getCompanyIds
();
List
<
Integer
>
companyIds
=
branchCompanies
.
stream
().
map
(
BranchCompany:
:
getId
).
collect
(
Collectors
.
toList
());
if
(
orderPageVo
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
orderPageVo
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(!
companyIds
.
contains
(
orderPageVo
.
getOrderRentVehicleDetail
().
getStartCompanyId
())
&&
!
companyIds
.
contains
(
orderPageVo
.
getOrderRentVehicleDetail
().
getEndCompanyId
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
YOU_AUTH_FAIL
.
getCode
(),
ResCode
.
YOU_AUTH_FAIL
.
getDesc
());
}
if
(
userDTO
.
getCompanyId
()
==
orderPageVo
.
getOrderRentVehicleDetail
().
getEndCompanyId
())
{
orderPageVo
.
setUserCompanyStatus
(
true
);
}
if
(
orderPageVo
.
getStatus
()
==
4
)
{
//未交车
if
(
orderPageVo
.
getStatus
()
==
4
)
{
//未交车
// boolean flag = getTodayTime(orderPageVo.getOrderRentVehicleDetail().getStartTime());
if
(
companyIds
.
contains
(
orderPageVo
.
getOrderRentVehicleDetail
().
getStartCompanyId
()))
{
// if (!flag) {
orderPageVo
.
setUserCompanyStatus
(
true
);
// return ObjectRestResponse.createFailedResult(3501, "今日不是交车日期");
}
// }
getDriverInfo
(
orderPageVo
);
getDriverInfo
(
orderPageVo
);
}
else
if
(
orderPageVo
.
getStatus
()
>=
5
||
orderPageVo
.
getStatus
()
==
-
1
)
{
//出行中 已交车
}
else
if
(
orderPageVo
.
getStatus
()
>=
5
||
orderPageVo
.
getStatus
()
==
-
1
)
{
//出行中 已交车
if
(
companyIds
.
contains
(
orderPageVo
.
getOrderRentVehicleDetail
().
getEndCompanyId
()))
{
orderPageVo
.
setUserCompanyStatus
(
true
);
}
//设置违约金金额
//设置违约金金额
getDriverInfo
(
orderPageVo
);
getDriverInfo
(
orderPageVo
);
getUserLicense
(
orderPageVo
);
getUserLicense
(
orderPageVo
);
...
@@ -359,6 +354,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
...
@@ -359,6 +354,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
// System.out.println(a);
// System.out.println(a);
// }
// }
/**
* 计算延期费用
* @param orderPageVO
*/
public
void
updateCrossRefund
(
OrderPageVO
orderPageVO
)
{
public
void
updateCrossRefund
(
OrderPageVO
orderPageVO
)
{
//计算延期费用
//计算延期费用
DedDetailDTO
dedDetailDTO
=
new
DedDetailDTO
();
DedDetailDTO
dedDetailDTO
=
new
DedDetailDTO
();
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
View file @
b4c30a60
...
@@ -110,15 +110,15 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
...
@@ -110,15 +110,15 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
}
}
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
if
(
value
!=
null
&&
value
.
getOrperaterId
()
!=
null
&&
value
.
getType
()
!=
1
)
{
//
if (value != null && value.getOrperaterId() != null && value.getType() != 1) {
UserDTO
userDTO
=
userFeign
.
userinfoByUid
(
value
.
getOrperaterId
()).
getData
();
//
UserDTO userDTO = userFeign.userinfoByUid(value.getOrperaterId()).getData();
if
(
userDTO
!=
null
)
{
//
if (userDTO != null) {
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
userDTO
.
getCompanyId
()).
getData
();
//
CompanyDetail branchCompany = vehicleFeign.getCompanyDetail(userDTO.getCompanyId()).getData();
if
(
branchCompany
!=
null
)
{
//
if (branchCompany != null) {
value
.
setCustomerPhone
(
branchCompany
.
getVehiceServicePhone
());
//
value.setCustomerPhone(branchCompany.getVehiceServicePhone());
}
//
}
}
//
}
}
//
}
if
(
value
.
getType
()
==
2
||
value
.
getType
()
==
3
)
{
if
(
value
.
getType
()
==
2
||
value
.
getType
()
==
3
)
{
List
<
Coupon
>
c
=
baseOrderBiz
.
getReturnCouponByOrderId
(
value
.
getOrderId
());
List
<
Coupon
>
c
=
baseOrderBiz
.
getReturnCouponByOrderId
(
value
.
getOrderId
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/OrderTourController.java
View file @
b4c30a60
...
@@ -49,6 +49,7 @@ public class OrderTourController extends BaseController<OrderTourDetailBiz, Orde
...
@@ -49,6 +49,7 @@ public class OrderTourController extends BaseController<OrderTourDetailBiz, Orde
OrderTourReceivedStatisticsBiz
orderTourReceivedStatisticsBiz
;
OrderTourReceivedStatisticsBiz
orderTourReceivedStatisticsBiz
;
@Autowired
@Autowired
TourFeign
tourFeign
;
TourFeign
tourFeign
;
@Autowired
@Autowired
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/AppVehicleApplyController.java
View file @
b4c30a60
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.BeanUtils
;
import
com.xxfc.platform.vehicle.biz.VehicleApplyBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleApplyBiz
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleApply
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleApplyFindDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleApplyFindDTO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -50,6 +52,19 @@ public class AppVehicleApplyController extends BaseController<VehicleApplyBiz> {
...
@@ -50,6 +52,19 @@ public class AppVehicleApplyController extends BaseController<VehicleApplyBiz> {
}
}
@GetMapping
(
"apply/detail/{id}"
)
@ApiModelProperty
(
"商品审核详情"
)
public
ObjectRestResponse
detail
(
@PathVariable
(
"id"
)
Integer
id
)
{
VehicleApply
vehicleApply
=
baseBiz
.
selectById
(
id
);
Vehicle
vehicle
=
new
Vehicle
();
BeanUtils
.
copyProperties
(
vehicleApply
,
vehicle
);
vehicle
.
setId
(
vehicleApply
.
getVehicleId
());
vehicle
.
setVehicleApplyId
(
vehicleApply
.
getId
());
vehicle
.
setIsDel
(
0
);
return
ObjectRestResponse
.
succ
(
vehicle
);
}
...
...
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