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
e041efcc
Commit
e041efcc
authored
Aug 15, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
3701f70d
4ea4cb29
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
+37
-3
BackStageOrderController.java
...om/xxfc/platform/order/rest/BackStageOrderController.java
+1
-0
QueryVehicleWarningMsgVo.java
.../xxfc/platform/vehicle/pojo/QueryVehicleWarningMsgVo.java
+4
-0
VehicleWarningMsgBiz.java
...a/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
+24
-1
VehicleWarningMsgMapper.xml
...ver/src/main/resources/mapper/VehicleWarningMsgMapper.xml
+8
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BackStageOrderController.java
View file @
e041efcc
...
@@ -199,6 +199,7 @@ public class BackStageOrderController extends CommonBaseController implements Us
...
@@ -199,6 +199,7 @@ public class BackStageOrderController extends CommonBaseController implements Us
companyIds
.
add
(
dto
.
getStartCompanyId
());
companyIds
.
add
(
dto
.
getStartCompanyId
());
}
}
}
}
dto
.
setCompanyIds
(
companyIds
);
Query
query
=
new
Query
(
dto
);
Query
query
=
new
Query
(
dto
);
PageDataVO
<
OrderPageVO
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
baseOrderBiz
.
getRentVehicle
(
query
.
getSuper
()));
PageDataVO
<
OrderPageVO
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
baseOrderBiz
.
getRentVehicle
(
query
.
getSuper
()));
for
(
OrderPageVO
orderPageVO
:
pageDataVO
.
getData
())
{
for
(
OrderPageVO
orderPageVO
:
pageDataVO
.
getData
())
{
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/QueryVehicleWarningMsgVo.java
View file @
e041efcc
...
@@ -2,6 +2,8 @@ package com.xxfc.platform.vehicle.pojo;
...
@@ -2,6 +2,8 @@ package com.xxfc.platform.vehicle.pojo;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
/**
/**
*车辆相关预警消息
*车辆相关预警消息
*
*
...
@@ -31,4 +33,6 @@ public class QueryVehicleWarningMsgVo {
...
@@ -31,4 +33,6 @@ public class QueryVehicleWarningMsgVo {
private
Integer
limit
;
private
Integer
limit
;
private
Integer
colorType
;
private
Integer
colorType
;
private
List
<
Integer
>
companyIds
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
View file @
e041efcc
...
@@ -4,6 +4,9 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,9 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONException
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
...
@@ -44,7 +47,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -44,7 +47,7 @@ import java.util.concurrent.TimeUnit;
@Slf4j
@Slf4j
@Service
@Service
public
class
VehicleWarningMsgBiz
extends
BaseBiz
<
VehicleWarningMsgMapper
,
VehicleWarningMsg
>
{
public
class
VehicleWarningMsgBiz
extends
BaseBiz
<
VehicleWarningMsgMapper
,
VehicleWarningMsg
>
implements
UserRestInterface
{
private
static
final
Integer
CHECK_BATCH_SIZE_VEHICLE
=
100
;
//每批次检查多少辆车
private
static
final
Integer
CHECK_BATCH_SIZE_VEHICLE
=
100
;
//每批次检查多少辆车
...
@@ -67,7 +70,15 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
...
@@ -67,7 +70,15 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
@Autowired
@Autowired
private
RedisTemplate
customRedisTemplate
;
private
RedisTemplate
customRedisTemplate
;
@Autowired
UserFeign
userFeign
;
@Autowired
VehicleBiz
vehicleBiz
;
@Override
public
UserFeign
getUserFeign
()
{
return
userFeign
;
}
/**
/**
* 增加自定义预警消息
* 增加自定义预警消息
* @param addVehicleWarningMsgVo
* @param addVehicleWarningMsgVo
...
@@ -94,6 +105,17 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
...
@@ -94,6 +105,17 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
try
{
try
{
QueryVehicleWarningMsgVo
queryVehicleWarningMsgVo
=
JSON
.
parseObject
(
queryVehicleWarningMsgVoJson
,
QueryVehicleWarningMsgVo
.
class
);
QueryVehicleWarningMsgVo
queryVehicleWarningMsgVo
=
JSON
.
parseObject
(
queryVehicleWarningMsgVoJson
,
QueryVehicleWarningMsgVo
.
class
);
PageHelper
.
startPage
(
queryVehicleWarningMsgVo
.
getPage
(),
queryVehicleWarningMsgVo
.
getLimit
());
PageHelper
.
startPage
(
queryVehicleWarningMsgVo
.
getPage
(),
queryVehicleWarningMsgVo
.
getLimit
());
UserDTO
userDTO
=
getAdminUserInfo
();
if
(
userDTO
!=
null
)
{
if
(
userDTO
.
getDataAll
()
==
2
)
{
List
<
Integer
>
companyList
=
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
());
if
(
companyList
!=
null
&&
companyList
.
size
()
>
0
)
{
queryVehicleWarningMsgVo
.
setCompanyIds
(
companyList
);
}
}
}
else
{
return
RestResponse
.
codeAndMessage
(
1032
,
"token失效"
);
}
List
<
VehicleWarningMsg
>
vehicleWarningMsgs
=
mapper
.
getByPage
(
queryVehicleWarningMsgVo
);
List
<
VehicleWarningMsg
>
vehicleWarningMsgs
=
mapper
.
getByPage
(
queryVehicleWarningMsgVo
);
PageInfo
<
VehicleWarningMsg
>
vehicleWarningMsgPageInfo
=
new
PageInfo
<>(
vehicleWarningMsgs
);
PageInfo
<
VehicleWarningMsg
>
vehicleWarningMsgPageInfo
=
new
PageInfo
<>(
vehicleWarningMsgs
);
return
RestResponse
.
data
(
PageDataVO
.
pageInfo
(
vehicleWarningMsgPageInfo
));
return
RestResponse
.
data
(
PageDataVO
.
pageInfo
(
vehicleWarningMsgPageInfo
));
...
@@ -230,4 +252,5 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
...
@@ -230,4 +252,5 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
return
list
;
return
list
;
}
}
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleWarningMsgMapper.xml
View file @
e041efcc
...
@@ -22,10 +22,16 @@
...
@@ -22,10 +22,16 @@
and v.number_plate = #{numberPlate}
and v.number_plate = #{numberPlate}
</if>
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
and v.type = #{type}
and v
wn
.type = #{type}
</if>
</if>
<if
test=
"colorType != null"
>
<if
test=
"colorType != null"
>
and color_type = #{colorType}
and vwn.color_type = #{colorType}
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and v.park_branch_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
</if>
</select>
</select>
...
...
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