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 39aee282
authored
Apr 12, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
741df71d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
pom.xml
src/main/resources/config/generatorConfig.xml
src/main/resources/mapper/SmartDevideStatusMapper.xml
pom.xml
View file @
39aee28
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
</exclusions>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.google.protobuf
</groupId>
<artifactId>
protobuf-java
</artifactId>
<version>
2.5.0
</version>
</dependency>
<dependency>
<groupId>
com.glsx
</groupId>
<groupId>
com.glsx
</groupId>
<artifactId>
rest-admin-alliance
</artifactId>
<artifactId>
rest-admin-alliance
</artifactId>
</dependency>
</dependency>
...
...
src/main/resources/config/generatorConfig.xml
View file @
39aee28
...
@@ -37,9 +37,9 @@
...
@@ -37,9 +37,9 @@
</commentGenerator>
</commentGenerator>
<!-- jdbc连接-->
<!-- jdbc连接-->
<jdbcConnection
driverClass=
"com.mysql.cj.jdbc.Driver"
<jdbcConnection
driverClass=
"com.mysql.cj.jdbc.Driver"
connectionURL=
"jdbc:mysql://192.168.
3.227
:3306/cyb_os?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
connectionURL=
"jdbc:mysql://192.168.
1.39
:3306/cyb_os?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
userId=
"
dev_admin
"
userId=
"
os_user
"
password=
"
1f7e1ed2
"
>
password=
"
os#123
"
>
<!--防止生成其他库同名表-->
<!--防止生成其他库同名表-->
<property
name=
"nullCatalogMeansCurrent"
value=
"true"
/>
<property
name=
"nullCatalogMeansCurrent"
value=
"true"
/>
</jdbcConnection>
</jdbcConnection>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</javaClientGenerator>
</javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<table
tableName=
"smart_d
evide_status"
domainObjectName=
"SmartDevideStatus
"
enableCountByExample=
"false"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
<table
tableName=
"smart_d
ate"
domainObjectName=
"SmartSceneData
"
enableCountByExample=
"false"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
/>
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
/>
</context>
</context>
</generatorConfiguration>
</generatorConfiguration>
\ No newline at end of file
\ No newline at end of file
src/main/resources/mapper/SmartDevideStatusMapper.xml
View file @
39aee28
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,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"
result
Type=
"cn.com.glsx.consumer.entity.SmartDevideStatus
"
>
<select
id=
"findDevStatusByIdAndCode"
result
Map=
"BaseResultMap
"
>
select * from smart_device_status
select * from smart_device_status
where device_order_code=#{code} and device_id=#{devId}
where device_order_code=#{code} and device_id=#{devId}
</select>
</select>
...
...
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