Commit 917528d7 by 111-PC\111

[+]pulsar消费服务

1 parent 331ff052
......@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
//@Component
@Component
@Slf4j
public class TuyaComsumer implements CommandLineRunner {
......
......@@ -4,7 +4,7 @@ import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "smart_devide_status")
@Table(name = "smart_device_status")
public class SmartDevideStatus implements Serializable {
@Id
private Integer id;
......
......@@ -4,14 +4,11 @@ import cn.com.glsx.consumer.entity.DeviceStatus;
import cn.com.glsx.consumer.entity.DeviceStatusDetail;
import cn.com.glsx.consumer.entity.SmartDevideStatus;
import cn.com.glsx.consumer.mapper.SmartDevideStatusMapper;
import cn.com.glsx.consumer.utils.DateUtils;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.jetbrains.annotations.TestOnly;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.security.ssl.Record;
import java.util.ArrayList;
import java.util.Date;
......
......@@ -2,7 +2,7 @@
spring.application.name=glsx-rest-admin-pulsar
#日志路径(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配置中心
spring.cloud.nacos.config.server-addr=192.168.0.63:8848
......
......@@ -20,7 +20,7 @@
id, device_id, device_order_code, device_order_value, createtime, updatetime, product_key
</sql>
<select id="findDevStatusByIdAndCode" resultType="cn.com.glsx.consumer.entity.SmartDevideStatus">
select * from smart_devide_status
select * from smart_device_status
where device_order_code=#{code} and device_id=#{devId}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!