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
74902a1b
Commit
74902a1b
authored
Aug 09, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into feature-zjw
parents
20ab8208
00c7168a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
20 deletions
+30
-20
AppUserRelationController.java
...xiaoqi/security/admin/rest/AppUserRelationController.java
+1
-2
AppHomeController.java
...in/java/com/xxfc/platform/app/rest/AppHomeController.java
+1
-1
DepositRefundRecord.java
...a/com/xxfc/platform/order/entity/DepositRefundRecord.java
+9
-0
OrderFeign.java
...c/main/java/com/xxfc/platform/order/feign/OrderFeign.java
+3
-3
OrderDepositRefundRecordBiz.java
.../xxfc/platform/order/biz/OrderDepositRefundRecordBiz.java
+1
-1
VehicleFeign.java
...in/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
+1
-1
VehicleActiveService.java
...a/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
+8
-4
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+2
-3
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+4
-5
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserRelationController.java
View file @
74902a1b
...
@@ -43,10 +43,9 @@ public class AppUserRelationController extends BaseController<AppUserRelationBiz
...
@@ -43,10 +43,9 @@ public class AppUserRelationController extends BaseController<AppUserRelationBiz
@ApiModelProperty
(
"app分享绑定"
)
@ApiModelProperty
(
"app分享绑定"
)
public
ObjectRestResponse
bind
(
public
ObjectRestResponse
bind
(
@RequestParam
(
value
=
"code"
,
defaultValue
=
""
)
String
code
,
@RequestParam
(
value
=
"code"
,
defaultValue
=
""
)
String
code
,
@RequestParam
(
value
=
"userid"
,
defaultValue
=
"0"
)
Integer
userid
,
HttpServletRequest
request
){
HttpServletRequest
request
){
try
{
try
{
//
Integer userid = Integer.parseInt(userAuthUtil.getInfoFromToken(userAuthConfig.getToken(request)).getId());
Integer
userid
=
Integer
.
parseInt
(
userAuthUtil
.
getInfoFromToken
(
userAuthConfig
.
getToken
(
request
)).
getId
());
return
baseBiz
.
appBindRelation
(
userid
,
code
);
return
baseBiz
.
appBindRelation
(
userid
,
code
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/AppHomeController.java
View file @
74902a1b
...
@@ -52,7 +52,7 @@ public class AppHomeController extends BaseController<CofigBiz,Cofig> {
...
@@ -52,7 +52,7 @@ public class AppHomeController extends BaseController<CofigBiz,Cofig> {
}
else
if
(
type
==
3
){
}
else
if
(
type
==
3
){
list
=
campsiteFeign
.
goodList
(
page
,
limit
);
list
=
campsiteFeign
.
goodList
(
page
,
limit
);
}
else
if
(
type
==
4
){
}
else
if
(
type
==
4
){
list
=
vehicleFeign
.
goodList
(
page
,
limit
);
return
vehicleFeign
.
goodList
(
page
,
limit
);
}
}
return
new
ObjectRestResponse
<>().
rel
(
true
).
data
(
list
);
return
new
ObjectRestResponse
<>().
rel
(
true
).
data
(
list
);
}
}
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/DepositRefundRecord.java
View file @
74902a1b
...
@@ -63,6 +63,15 @@ public class DepositRefundRecord {
...
@@ -63,6 +63,15 @@ public class DepositRefundRecord {
*/
*/
@Transient
@Transient
OrderViolation
orderViolation
;
OrderViolation
orderViolation
;
/**
* 剩余押金预计到账时间
*/
@Transient
@Transient
Long
rentDepositAutoRefundTime
;
Long
rentDepositAutoRefundTime
;
/**
* 客服电话
*/
@Transient
private
String
customerPhone
;
}
}
\ No newline at end of file
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/feign/OrderFeign.java
View file @
74902a1b
...
@@ -17,8 +17,8 @@ import java.util.Set;
...
@@ -17,8 +17,8 @@ import java.util.Set;
/**
/**
* Created by ace on 2017/9/15.
* Created by ace on 2017/9/15.
*/
*/
@FeignClient
(
name
=
"
vehicle
"
)
@FeignClient
(
name
=
"
order
"
)
public
interface
OrderFeign
{
public
interface
OrderFeign
{
@GetMapping
(
"/baseOrder/entityList"
)
//
@GetMapping("/baseOrder/entityList")
public
ObjectRestResponse
<
List
<
BaseOrder
>>
baseOrderEntityList
(
@RequestParam
(
"entity"
)
Map
<
String
,
Object
>
entity
);
//
public ObjectRestResponse<List<BaseOrder>> baseOrderEntityList(@RequestParam("entity") Map<String, Object> entity);
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderDepositRefundRecordBiz.java
View file @
74902a1b
...
@@ -94,8 +94,8 @@ public class OrderDepositRefundRecordBiz extends BaseBiz<DepositRefundRecordMapp
...
@@ -94,8 +94,8 @@ public class OrderDepositRefundRecordBiz extends BaseBiz<DepositRefundRecordMapp
public
List
<
DepositRefundRecord
>
selectByCrossId
(
Integer
cross
)
{
public
List
<
DepositRefundRecord
>
selectByCrossId
(
Integer
cross
)
{
List
<
DepositRefundRecord
>
list
=
mapper
.
selectByCrossId
(
cross
);
List
<
DepositRefundRecord
>
list
=
mapper
.
selectByCrossId
(
cross
);
for
(
DepositRefundRecord
depositRefundRecord
:
list
)
{
for
(
DepositRefundRecord
depositRefundRecord
:
list
)
{
OrderVehicleCrosstown
orderVehicleCrosstown
=
orderVehicleCrosstownBiz
.
selectById
(
depositRefundRecord
.
getCrosstownId
());
if
(
depositRefundRecord
.
getIscomplete
()
==
true
&&
depositRefundRecord
.
getStatus
()
==
DepositRefundStatus
.
VIOLATIONARRIVAL
.
getCode
())
{
//查询违章记录
if
(
depositRefundRecord
.
getIscomplete
()
==
true
&&
depositRefundRecord
.
getStatus
()
==
DepositRefundStatus
.
VIOLATIONARRIVAL
.
getCode
())
{
//查询违章记录
OrderVehicleCrosstown
orderVehicleCrosstown
=
orderVehicleCrosstownBiz
.
selectById
(
depositRefundRecord
.
getCrosstownId
());
if
(
orderVehicleCrosstown
!=
null
)
{
if
(
orderVehicleCrosstown
!=
null
)
{
BaseOrder
baseOrder
=
baseOrderBiz
.
selectById
(
orderVehicleCrosstown
.
getOrderId
());
BaseOrder
baseOrder
=
baseOrderBiz
.
selectById
(
orderVehicleCrosstown
.
getOrderId
());
if
(
baseOrder
!=
null
)
{
if
(
baseOrder
!=
null
)
{
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
View file @
74902a1b
...
@@ -86,7 +86,7 @@ public interface VehicleFeign {
...
@@ -86,7 +86,7 @@ public interface VehicleFeign {
* @return 返回
* @return 返回
*/
*/
@GetMapping
(
"/vehicleModel/goodList"
)
@GetMapping
(
"/vehicleModel/goodList"
)
List
<
GoodDataVO
>
goodList
(
@RequestParam
(
value
=
"page"
)
Integer
page
,
@RequestParam
(
"limit"
)
Integer
limit
);
ObjectRestResponse
<
List
<
GoodDataVO
>
>
goodList
(
@RequestParam
(
value
=
"page"
)
Integer
page
,
@RequestParam
(
"limit"
)
Integer
limit
);
/**
/**
* 根据一个id获取城市
* 根据一个id获取城市
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
View file @
74902a1b
...
@@ -37,10 +37,10 @@ public class VehicleActiveService {
...
@@ -37,10 +37,10 @@ public class VehicleActiveService {
VehicleUpkeepLogMapper
vehicleUpkeepLogMapper
;
VehicleUpkeepLogMapper
vehicleUpkeepLogMapper
;
@Autowired
@Autowired
Vehicle
BookRecordBiz
vehicleBookRecordBiz
;
Vehicle
UpkeepItemMapper
vehicleUpkeepItemMapper
;
@Autowired
@Autowired
Vehicle
UpkeepItemMapper
vehicleUpkeepItemMapper
;
Vehicle
BookRecordBiz
vehicleBookRecordBiz
;
@Value
(
"${vehicle.mileage}"
)
@Value
(
"${vehicle.mileage}"
)
private
Integer
Mileage
;
private
Integer
Mileage
;
...
@@ -118,6 +118,10 @@ public class VehicleActiveService {
...
@@ -118,6 +118,10 @@ public class VehicleActiveService {
throw
new
BaseException
(
ResCode
.
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
.
getDesc
(),
throw
new
BaseException
(
ResCode
.
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
.
getDesc
(),
ResCode
.
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
.
getCode
());
ResCode
.
VEHICLE_BOOKED_RECORD_MILEAGE_CHANGED
.
getCode
());
}
}
}
}
@Transactional
@Transactional
...
@@ -195,7 +199,6 @@ public class VehicleActiveService {
...
@@ -195,7 +199,6 @@ public class VehicleActiveService {
public
void
updateBookRecordStatus
(
Integer
bookRecordId
,
Integer
type
)
{
public
void
updateBookRecordStatus
(
Integer
bookRecordId
,
Integer
type
)
{
VehicleBookRecord
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookRecordId
);
VehicleBookRecord
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookRecordId
);
if
(
vehicleBookRecord
!=
null
)
{
if
(
vehicleBookRecord
!=
null
)
{
vehicleBookRecord
.
setStatus
(
VehicleBookRecordStatus
.
LIFTED
.
getCode
());
if
(
type
==
1
)
{
if
(
type
==
1
)
{
vehicleBookRecord
.
setActualStartDate
(
new
Date
());
vehicleBookRecord
.
setActualStartDate
(
new
Date
());
}
else
{
}
else
{
...
@@ -209,6 +212,7 @@ public class VehicleActiveService {
...
@@ -209,6 +212,7 @@ public class VehicleActiveService {
}
}
/**
/**
* 车辆保养
* 车辆保养
* @param vehicleUpkeepVo
* @param vehicleUpkeepVo
...
@@ -223,7 +227,7 @@ public class VehicleActiveService {
...
@@ -223,7 +227,7 @@ public class VehicleActiveService {
}
}
if
(!
vehicle
.
getStatus
().
equals
(
VehicleStatus
.
NORMAL
.
getCode
()))
{
if
(!
vehicle
.
getStatus
().
equals
(
VehicleStatus
.
NORMAL
.
getCode
()))
{
// 车辆非正常状态
// 车辆非正常状态
throw
new
BaseException
(
ResCode
.
VEHICLE_UPKEEP_VEHICLE_DISABLE
.
getDesc
()
+
vehicle
.
getStatus
()
,
throw
new
BaseException
(
ResCode
.
VEHICLE_UPKEEP_VEHICLE_DISABLE
.
getDesc
(),
ResCode
.
VEHICLE_UPKEEP_VEHICLE_DISABLE
.
getCode
());
ResCode
.
VEHICLE_UPKEEP_VEHICLE_DISABLE
.
getCode
());
}
}
Integer
lastMileage
=
vehicleUpkeepVo
.
getMileage
();
Integer
lastMileage
=
vehicleUpkeepVo
.
getMileage
();
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
74902a1b
...
@@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil;
...
@@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
...
@@ -297,8 +296,8 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
...
@@ -297,8 +296,8 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
@ApiOperation
(
"优质车型"
)
@ApiOperation
(
"优质车型"
)
@GetMapping
(
value
=
"/goodList"
)
@GetMapping
(
value
=
"/goodList"
)
@IgnoreUserToken
@IgnoreUserToken
public
List
<
GoodDataVO
>
goodList
(
@RequestParam
(
value
=
"page"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
)
Integer
limit
)
{
public
ObjectRestResponse
<
List
<
GoodDataVO
>>
goodList
(
@RequestParam
(
value
=
"page"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
)
Integer
limit
)
{
return
baseBiz
.
goodList
(
page
,
limit
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
goodList
(
page
,
limit
)
);
}
}
@ApiOperation
(
"上下架"
)
@ApiOperation
(
"上下架"
)
@PutMapping
(
value
=
"/setStatus/{id}/{status}"
)
@PutMapping
(
value
=
"/setStatus/{id}/{status}"
)
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
74902a1b
...
@@ -584,10 +584,6 @@
...
@@ -584,10 +584,6 @@
left join vehicle_cata vc on vm.id = vc.vehicle_model_id
left join vehicle_cata vc on vm.id = vc.vehicle_model_id
</if>
</if>
<where>
<where>
<!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 -->
(abr.to_lift_company = null or (abr.to_lift_company = ))
<!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 -->
<if
test=
" yearMonthAndParam !=null and yearNo4Where == null"
>
<if
test=
" yearMonthAndParam !=null and yearNo4Where == null"
>
...
@@ -596,6 +592,9 @@
...
@@ -596,6 +592,9 @@
<include
refid=
"yearMonthAndParamSql"
></include>
<include
refid=
"yearMonthAndParamSql"
></include>
</foreach>
</foreach>
</if>
</if>
<!-- 若需根据预定日期条件查询,针对换为位操作 -->
<!-- yearNo4Where 标识时间参数是否用于where条件 -->
<if
test=
"startCompanyId != null and endCompanyId != null "
>
<if
test=
"startCompanyId != null and endCompanyId != null "
>
and (
and (
(abr.to_lift_company = null or abr.to_lift_company = #{startCompanyId})
(abr.to_lift_company = null or abr.to_lift_company = #{startCompanyId})
...
@@ -638,7 +637,7 @@
...
@@ -638,7 +637,7 @@
left join vehicle_book_record vbre
left join vehicle_book_record vbre
on sevbr.vehicle_id = vbre.vehicle_id and sevbr.max_book_end_date = vbre.book_end_date and vbre.status != 4 and vbre.status != 6
on sevbr.vehicle_id = vbre.vehicle_id and sevbr.max_book_end_date = vbre.book_end_date and vbre.status != 4 and vbre.status != 6
left join vehicle_book_record vbrs
left join vehicle_book_record vbrs
on sevbr.vehicle_id = vbrs.vehicle_id and sevbr.min_book_start_date = vbrs.book_start_date and vbrs.status != 4 and vbrs.status != 6
;
on sevbr.vehicle_id = vbrs.vehicle_id and sevbr.min_book_start_date = vbrs.book_start_date and vbrs.status != 4 and vbrs.status != 6
</sql>
</sql>
</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