Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林锐标
slm-bi
Commits
ad5666f7
Commit
ad5666f7
authored
May 31, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
6e197efb
8a8dd74b
Pipeline
#9400
passed with stages
in 1 minute 6 seconds
Changes
8
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
87 deletions
+75
-87
pom.xml
pom.xml
+7
-0
SlmBiApplication.java
src/main/java/com/syc/slm/slmbi/SlmBiApplication.java
+3
-0
application-dev.yml
src/main/resources/application-dev.yml
+12
-7
application-pre.yml
src/main/resources/application-pre.yml
+12
-0
application-prod.yml
src/main/resources/application-prod.yml
+12
-0
application-test.yml
src/main/resources/application-test.yml
+11
-7
application.yml
src/main/resources/application.yml
+4
-73
bootstrap.yml
src/main/resources/bootstrap.yml
+14
-0
No files found.
pom.xml
View file @
ad5666f7
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<mybatis-plus.version>
3.3.2
</mybatis-plus.version>
<mybatis-plus.version>
3.3.2
</mybatis-plus.version>
<knife4j.version>
3.0.2
</knife4j.version>
<knife4j.version>
3.0.2
</knife4j.version>
<tx.version>
5.2.12.RELEASE
</tx.version>
<tx.version>
5.2.12.RELEASE
</tx.version>
<nacos-config-spring-boot.version>
0.2.7
</nacos-config-spring-boot.version>
</properties>
</properties>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
@@ -180,6 +181,12 @@
...
@@ -180,6 +181,12 @@
<artifactId>
spring-tx
</artifactId>
<artifactId>
spring-tx
</artifactId>
<version>
${tx.version}
</version>
<version>
${tx.version}
</version>
</dependency>
</dependency>
<!-- nacos-config -->
<dependency>
<groupId>
com.alibaba.boot
</groupId>
<artifactId>
nacos-config-spring-boot-starter
</artifactId>
<version>
${nacos-config-spring-boot.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/java/com/syc/slm/slmbi/SlmBiApplication.java
View file @
ad5666f7
package
com
.
syc
.
slm
.
slmbi
;
package
com
.
syc
.
slm
.
slmbi
;
import
com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@MapperScan
(
"com.syc.**.dao"
)
@MapperScan
(
"com.syc.**.dao"
)
@NacosPropertySource
(
dataId
=
"slm-bi-base.yaml"
,
autoRefreshed
=
true
)
@NacosPropertySource
(
dataId
=
"slm-bi-data.yaml"
,
autoRefreshed
=
true
)
@SpringBootApplication
@SpringBootApplication
public
class
SlmBiApplication
{
public
class
SlmBiApplication
{
...
...
src/main/resources/application-dev.yml
View file @
ad5666f7
spring
:
spring
:
datasource
:
profiles
:
username
:
syc_dev
active
:
dev
password
:
Test123!
nacos
:
url
:
jdbc:mysql://${MYSQL_HOST:116.63.67.122}:${MYSQL_PORT:3306}/${MYSQL_DB:slm_bi}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
config
:
dc_client
:
server-addr
:
116.63.67.122:8849
host
:
http://139.9.194.252:2400/dc
#http://139.9.194.252:2400/dc # http://192.168.0.3:2400/dc # http://apidev.sycdev.com/dc
# nacos访问地址的用户名
\ No newline at end of file
username
:
syc_reader
# nacos访问地址的密码
password
:
syc@123
namespace
:
f0a7522b-34dc-4de9-8da5-448b91fe468b
src/main/resources/application-pre.yml
0 → 100644
View file @
ad5666f7
spring
:
profiles
:
active
:
pre
nacos
:
config
:
server-addr
:
116.63.67.122:8849
# nacos访问地址的用户名
username
:
syc_reader
# nacos访问地址的密码
password
:
syc@123
namespace
:
06155d6f-fced-4ba8-aabc-4ba90ae29996
\ No newline at end of file
src/main/resources/application-prod.yml
0 → 100644
View file @
ad5666f7
spring
:
profiles
:
active
:
prod
nacos
:
config
:
server-addr
:
192.168.0.21:98
# nacos访问地址的用户名
username
:
syc_reader
# nacos访问地址的密码
password
:
sYc$123!12
namespace
:
4683e897-e0be-44a6-abcc-4671075d1e69
\ No newline at end of file
src/main/resources/application-test.yml
View file @
ad5666f7
spring
:
spring
:
datasource
:
profiles
:
username
:
syc_test
active
:
test
password
:
Test123!
nacos
:
url
:
jdbc:mysql://${MYSQL_HOST:syc-test-001}:${MYSQL_PORT:3306}/${MYSQL_DB:slm_bi}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
config
:
dc_client
:
server-addr
:
116.63.67.122:8849
host
:
http://192.168.0.186:2400/dc
#http://139.9.194.252:2400/dc # http://192.168.0.3:2400/dc # http://apidev.sycdev.com/dc
# nacos访问地址的用户名
\ No newline at end of file
username
:
syc_reader
# nacos访问地址的密码
password
:
syc@123
namespace
:
b27c6547-21ca-4429-b0d6-a2c8b290a917
\ No newline at end of file
src/main/resources/application.yml
View file @
ad5666f7
spring
:
spring
:
application
:
name
:
slm-bi
profiles
:
profiles
:
active
:
active
:
test
-
dev
freemarker
:
cache
:
false
template-loader-path
:
classpath:/templates/ftl/
charset
:
utf-8
check-template-location
:
true
content-type
:
text/html
expose-request-attributes
:
true
expose-session-attributes
:
true
request-context-attribute
:
request
suffix
:
.ftl
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
hikari
:
minimum-idle
:
10
maximum-pool-size
:
200
auto-commit
:
true
connection-test-query
:
SELECT 1
idle-timeout
:
30000
pool-name
:
HikariCP
max-lifetime
:
1800000
connection-timeout
:
30000
messages
:
basename
:
i18n/messages,i18n/sys
mybatis-plus
:
# 默认本地调试地址
dialect
:
mysql
#dc_client:
configuration
:
# host: http://localhost:2400/dc
jdbc-type-for-null
:
null
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations
:
classpath*:/mapper/${mybatis-plus.dialect}/*.xml,classpath*:/mapper/${mybatis-plus.dialect}/**/*.xml
typeAliasesPackage
:
com.yeshirow.**.entity
global-config
:
db-config
:
id-type
:
uuid
logic-delete-value
:
0
logic-not-delete-value
:
1
server
:
servlet
:
context-path
:
/bi
port
:
2022
logging
:
config
:
classpath:logback.xml
syc-level
:
debug
dc_client
:
interfaces
:
positionListUrl
:
/{appId}/positions?positionName={positionName}
deptListUrl
:
/{appId}/departments?deptName={deptName}
userTree
:
/{appId}/users/list?userName={userName}
variableList
:
/{appId}/variables/slm/tag/list?token={token}&from={from}&varType={varType}&type={type}&equipmentId={equipmentId}&customerId={customerId}&name={name}&desc={desc}&unit={unit}&keyword={keyword}&isCustomer={isCustomer}¤t={current}&size={size}
deviceList
:
/{appId}/variables/device?token={token}&equipment_info_id={equipment_info_id}&q_name={q_name}&search_code={search_code}&warranty_status={warranty_status}&page_num={page_num}&page_size={page_size}
deptsRoles
:
/{appId}/users/depts-roles
businessFiledData
:
/{appId}/business/filed
businessDataFieldStatistics
:
/{appId}/business/data/field/statistics
# variableHistoryDataList: /{appId}/variables/history?deviceId={deviceId}&endTime={endTime}&startTime={startTime}&statisticsType={statisticsType}&variableCode={variableCode}&variableId={variableId}&x={x}&format={format}
# variableRealTimeDataList: /{appId}/variables/real-time?deviceId={deviceId}&endTime={endTime}&startTime={startTime}&variableCode={variableCode}&variableId={variableId}&format={format}
variableCodeHistoryList
:
/{appId}/variables/variable-code/history
variableAllDataList
:
/{appId}/variables/time-period/data
realTimeVariableDataList
:
/{appId}/variables/real-time/data
filedValue
:
/{appId}/business/{tableName}/{filed}/filed-value?current={current}&size={size}&name={name}
#/{appId}/business/{tableName}/{filed}/filed-value?current={current}&size={size}&name={name}
send
:
/{appId}/variables/monitor/device/commands
variableStatus
:
/{appId}/variables/{deviceId}/{variableId}/{variableCode}/status
variableHistoryStatus
:
/{appId}/variables/{deviceId}/{variableCode}/history-status?startTime={startTime}&endTime={endTime}
# historyCurve : /{appId}/variables/history-curve?deviceId={deviceId}&endTime={endTime}&startTime={startTime}&variableCode={variableCode}&variableId={variableId}&format={format}
# historyCurve : /{appId}/variables/history-curve
permissionCodeUrl
:
/{appId}/bi/permission/code
variableStatusRealTimeDataList
:
/{appId}/variables/status/real-time/data
companyAppId
:
/{appId}/bi/company/init/app-id
\ No newline at end of file
src/main/resources/bootstrap.yml
0 → 100644
View file @
ad5666f7
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
hikari
:
minimum-idle
:
10
maximum-pool-size
:
200
auto-commit
:
true
connection-test-query
:
SELECT 1
idle-timeout
:
30000
pool-name
:
HikariCP
max-lifetime
:
1800000
connection-timeout
:
30000
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment