Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9e0f1611
authored
May 07, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码规范
1 parent
3731de6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
src/main/java/cn/com/glsx/consumer/service/DeviceEventService.java
src/main/java/cn/com/glsx/consumer/service/DeviceService.java
src/main/java/cn/com/glsx/consumer/service/InfoService.java
src/main/java/cn/com/glsx/consumer/service/DeviceEventService.java
View file @
9e0f161
...
@@ -8,6 +8,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
...
@@ -8,6 +8,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -22,10 +23,10 @@ import java.util.List;
...
@@ -22,10 +23,10 @@ import java.util.List;
@Service
@Service
public
class
DeviceEventService
{
public
class
DeviceEventService
{
@
Resource
@
Autowired
private
InfoService
infoService
;
private
InfoService
infoService
;
@
Resource
@
Autowired
private
DeviceService
deviceService
;
private
DeviceService
deviceService
;
/**
/**
...
...
src/main/java/cn/com/glsx/consumer/service/DeviceService.java
View file @
9e0f161
...
@@ -5,6 +5,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
...
@@ -5,6 +5,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
import
cn.com.glsx.consumer.utils.HttpUtil
;
import
cn.com.glsx.consumer.utils.HttpUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -19,7 +20,7 @@ import java.util.HashMap;
...
@@ -19,7 +20,7 @@ import java.util.HashMap;
@Slf4j
@Slf4j
public
class
DeviceService
{
public
class
DeviceService
{
@
Resource
@
Autowired
private
SceneClient
sceneClient
;
private
SceneClient
sceneClient
;
@Value
(
"${getDeviceNameUrl}"
)
@Value
(
"${getDeviceNameUrl}"
)
...
...
src/main/java/cn/com/glsx/consumer/service/InfoService.java
View file @
9e0f161
...
@@ -25,9 +25,9 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -25,9 +25,9 @@ import com.alibaba.fastjson.JSONObject;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -41,25 +41,25 @@ import java.util.stream.Collectors;
...
@@ -41,25 +41,25 @@ import java.util.stream.Collectors;
@Slf4j
@Slf4j
public
class
InfoService
{
public
class
InfoService
{
@
Resource
@
Autowired
private
SmartDevideStatusMapper
smartDevideStatusMapper
;
private
SmartDevideStatusMapper
smartDevideStatusMapper
;
@
Resource
@
Autowired
private
SmartSceneDataMapper
smartSceneDataMapper
;
private
SmartSceneDataMapper
smartSceneDataMapper
;
@
Resource
@
Autowired
private
DayInfoMapper
dayInfoMapper
;
private
DayInfoMapper
dayInfoMapper
;
@
Resource
@
Autowired
private
ConditionStrategy
conditionStrategy
;
private
ConditionStrategy
conditionStrategy
;
@
Resource
@
Autowired
private
SceneClient
sceneClient
;
private
SceneClient
sceneClient
;
@
Resource
@
Autowired
private
RedisService
redisService
;
private
RedisService
redisService
;
@
Resource
@
Autowired
private
DeviceService
deviceService
;
private
DeviceService
deviceService
;
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment