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 917528d7
authored
Mar 19, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
331ff052
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
7 deletions
src/main/java/cn/com/glsx/consumer/comsumers/TuyaComsumer.java
src/main/java/cn/com/glsx/consumer/entity/SmartDevideStatus.java
src/main/java/cn/com/glsx/consumer/service/TuyaConmsumerService.java
src/main/resources/bootstrap.properties
src/main/resources/mapper/SmartDevideStatusMapper.xml
src/main/java/cn/com/glsx/consumer/comsumers/TuyaComsumer.java
View file @
917528d
...
@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
//
@Component
@Component
@Slf4j
@Slf4j
public
class
TuyaComsumer
implements
CommandLineRunner
{
public
class
TuyaComsumer
implements
CommandLineRunner
{
...
...
src/main/java/cn/com/glsx/consumer/entity/SmartDevideStatus.java
View file @
917528d
...
@@ -4,7 +4,7 @@ import java.io.Serializable;
...
@@ -4,7 +4,7 @@ import java.io.Serializable;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.*
;
import
javax.persistence.*
;
@Table
(
name
=
"smart_devi
d
e_status"
)
@Table
(
name
=
"smart_devi
c
e_status"
)
public
class
SmartDevideStatus
implements
Serializable
{
public
class
SmartDevideStatus
implements
Serializable
{
@Id
@Id
private
Integer
id
;
private
Integer
id
;
...
...
src/main/java/cn/com/glsx/consumer/service/TuyaConmsumerService.java
View file @
917528d
...
@@ -4,14 +4,11 @@ import cn.com.glsx.consumer.entity.DeviceStatus;
...
@@ -4,14 +4,11 @@ import cn.com.glsx.consumer.entity.DeviceStatus;
import
cn.com.glsx.consumer.entity.DeviceStatusDetail
;
import
cn.com.glsx.consumer.entity.DeviceStatusDetail
;
import
cn.com.glsx.consumer.entity.SmartDevideStatus
;
import
cn.com.glsx.consumer.entity.SmartDevideStatus
;
import
cn.com.glsx.consumer.mapper.SmartDevideStatusMapper
;
import
cn.com.glsx.consumer.mapper.SmartDevideStatusMapper
;
import
cn.com.glsx.consumer.utils.DateUtils
;
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.jetbrains.annotations.TestOnly
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
sun.security.ssl.Record
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
...
src/main/resources/bootstrap.properties
View file @
917528d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
spring.application.name
=
glsx-rest-admin-pulsar
spring.application.name
=
glsx-rest-admin-pulsar
#日志路径(logback-spring.xml读取,不要加入配置中心)
#日志路径(logback-spring.xml读取,不要加入配置中心)
logging.path
=
/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
#
logging.path=/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
#nacos配置中心
#nacos配置中心
spring.cloud.nacos.config.server-
addr
=
192.168.0.63:8848
spring.cloud.nacos.config.server-
addr
=
192.168.0.63:8848
...
...
src/main/resources/mapper/SmartDevideStatusMapper.xml
View file @
917528d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
id, device_id, device_order_code, device_order_value, createtime, updatetime, product_key
id, device_id, device_order_code, device_order_value, createtime, updatetime, product_key
</sql>
</sql>
<select
id=
"findDevStatusByIdAndCode"
resultType=
"cn.com.glsx.consumer.entity.SmartDevideStatus"
>
<select
id=
"findDevStatusByIdAndCode"
resultType=
"cn.com.glsx.consumer.entity.SmartDevideStatus"
>
select * from smart_devi
d
e_status
select * from smart_devi
c
e_status
where device_order_code=#{code} and device_id=#{devId}
where device_order_code=#{code} and device_id=#{devId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
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