Commit 39aee282 by 111-PC\111

[+]pulsar消费服务

1 parent 741df71d
......@@ -28,6 +28,11 @@
</exclusions>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-alliance</artifactId>
</dependency>
......
......@@ -37,9 +37,9 @@
</commentGenerator>
<!-- jdbc连接-->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://192.168.3.227:3306/cyb_os?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false"
userId="dev_admin"
password="1f7e1ed2">
connectionURL="jdbc:mysql://192.168.1.39:3306/cyb_os?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false"
userId="os_user"
password="os#123">
<!--防止生成其他库同名表-->
<property name="nullCatalogMeansCurrent" value="true"/>
</jdbcConnection>
......@@ -68,7 +68,7 @@
</javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<table tableName="smart_devide_status" domainObjectName="SmartDevideStatus" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
<table tableName="smart_date" domainObjectName="SmartSceneData" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
enableSelectByExample="false" selectByExampleQueryId="false"/>
</context>
</generatorConfiguration>
\ No newline at end of file
......@@ -19,7 +19,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 id="findDevStatusByIdAndCode" resultMap="BaseResultMap">
select * from smart_device_status
where device_order_code=#{code} and device_id=#{devId}
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!