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
27cb471c
Commit
27cb471c
authored
Jul 23, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发现排序
parent
bd107f65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
VehicleWarningMsgBiz.java
...a/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
+5
-6
VehicleWarningRuleBiz.java
.../com/xxfc/platform/vehicle/biz/VehicleWarningRuleBiz.java
+10
-0
VehicleWarningMsgController.java
...fc/platform/vehicle/rest/VehicleWarningMsgController.java
+10
-5
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
View file @
27cb471c
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONException;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.google.common.collect.Maps
;
import
com.xxfc.platform.vehicle.common.CustomIllegalParamException
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
...
...
@@ -17,13 +18,11 @@ import com.xxfc.platform.vehicle.entity.VehicleWarningMsg;
import
com.xxfc.platform.vehicle.entity.VehicleWarningRule
;
import
com.xxfc.platform.vehicle.mapper.VehicleMapper
;
import
com.xxfc.platform.vehicle.mapper.VehicleWarningMsgMapper
;
import
com.xxfc.platform.vehicle.mapper.VehicleWarningRuleMapper
;
import
com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo
;
import
com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo
;
import
com.xxfc.platform.vehicle.pojo.VehicleWarningMsgQueryVo
;
import
com.xxfc.platform.vehicle.pojo.dto.VehiclePlanDto
;
import
com.xxfc.platform.vehicle.util.JSUtil
;
import
com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.lang.StringUtils
;
...
...
@@ -61,7 +60,7 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
@Autowired
private
VehicleWarningRule
Mapper
vehicleWarningRuleMapper
;
private
VehicleWarningRule
Biz
vehicleWarningRuleBiz
;
@Autowired
private
VehicleMapper
vehicleMapper
;
...
...
@@ -135,7 +134,7 @@ public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, Vehic
}
log
.
info
(
"[预警信息检查]任务开始。"
);
//获取所有检查规则
List
<
VehicleWarningRule
>
vehicleWarningRules
=
vehicleWarningRule
Mapper
.
selec
tAll
();
List
<
VehicleWarningRule
>
vehicleWarningRules
=
vehicleWarningRule
Biz
.
selectLis
tAll
();
if
(
CollectionUtils
.
isEmpty
(
vehicleWarningRules
)){
log
.
info
(
"[预警信息检查]当前不存在任何预警规则,不执行预警信息检查"
);
return
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleWarningRuleBiz.java
0 → 100644
View file @
27cb471c
package
com
.
xxfc
.
platform
.
vehicle
.
biz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.xxfc.platform.vehicle.entity.VehicleWarningRule
;
import
com.xxfc.platform.vehicle.mapper.VehicleWarningRuleMapper
;
import
org.springframework.stereotype.Service
;
@Service
public
class
VehicleWarningRuleBiz
extends
BaseBiz
<
VehicleWarningRuleMapper
,
VehicleWarningRule
>
{
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleWarningMsgController.java
View file @
27cb471c
...
...
@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.PostConstruct
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -21,19 +22,23 @@ public class VehicleWarningMsgController{
@Autowired
VehicleWarningMsgBiz
vehicleWarningMsgBiz
;
// @Autowired
// VehicleWarningMsgBiz vehicleWarningMsgBiz;
private
static
VehicleWarningMsgController
vehicleWarningMsgController
;
@PostConstruct
//通过@PostConstruct实现初始化bean之前进行的操作
public
void
init
()
{
vehicleWarningMsgController
=
this
;
vehicleWarningMsgController
.
vehicleWarningMsgBiz
=
this
.
vehicleWarningMsgBiz
;
// 初使化时将已静态化的testService实例化
}
@RequestMapping
(
value
=
"{id}"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
VehicleWarningMsg
>
get
(
@PathVariable
Integer
id
)
throws
Exception
{
return
RestResponse
.
codeAndData
(
RestResponse
.
SUC_CODE
,
vehicleWarningMsgBiz
.
selectById
(
id
));
return
RestResponse
.
codeAndData
(
RestResponse
.
SUC_CODE
,
vehicleWarningMsg
Controller
.
vehicleWarningMsg
Biz
.
selectById
(
id
));
}
@RequestMapping
(
value
=
"page"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
private
RestResponse
<
PageDataVO
<
VehicleWarningMsg
>>
getByPage
(
@RequestParam
String
queryVehicleWarningMsgVoJson
)
throws
Exception
{
return
vehicleWarningMsgBiz
.
getByPage
(
queryVehicleWarningMsgVoJson
);
return
vehicleWarningMsg
Controller
.
vehicleWarningMsg
Biz
.
getByPage
(
queryVehicleWarningMsgVoJson
);
}
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
...
...
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