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
48c8cf7e
Commit
48c8cf7e
authored
Aug 15, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加积分补充接口
parent
6d60d149
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
QueryVehicleWarningMsgVo.java
.../xxfc/platform/vehicle/pojo/QueryVehicleWarningMsgVo.java
+4
-0
VehicleWarningMsgBiz.java
...a/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
+22
-1
VehicleWarningMsgMapper.xml
...ver/src/main/resources/mapper/VehicleWarningMsgMapper.xml
+6
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/QueryVehicleWarningMsgVo.java
View file @
48c8cf7e
...
@@ -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 @
48c8cf7e
...
@@ -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,15 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
...
@@ -94,6 +105,15 @@ 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
);
}
}
}
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 +250,5 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
...
@@ -230,4 +250,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 @
48c8cf7e
...
@@ -27,6 +27,12 @@
...
@@ -27,6 +27,12 @@
<if
test=
"colorType != null"
>
<if
test=
"colorType != null"
>
and vwn.color_type = #{colorType}
and vwn.color_type = #{colorType}
</if>
</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>
</select>
</select>
<select
id=
"getMsgByVehicle"
parameterType=
"java.util.Map"
resultType=
"com.xxfc.platform.vehicle.entity.VehicleWarningMsg"
>
<select
id=
"getMsgByVehicle"
parameterType=
"java.util.Map"
resultType=
"com.xxfc.platform.vehicle.entity.VehicleWarningMsg"
>
...
...
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