Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
f2968d1e
Commit
f2968d1e
authored
Nov 09, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加liquibase
parent
95455d43
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
2 deletions
+67
-2
ESElevatorServiceImpl.java
...ot/module/tzs/biz/service/impl/ESElevatorServiceImpl.java
+0
-2
pom.xml
amos-boot-system-tzs/pom.xml
+4
-0
application.properties
...boot-system-tzs/src/main/resources/application.properties
+4
-0
changelog-master.xml
...-tzs/src/main/resources/db/changelog/changelog-master.xml
+10
-0
problemRecord.md
...stem-tzs/src/main/resources/db/changelog/problemRecord.md
+2
-0
tzs-1.0.0.0.xml
...ystem-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
+47
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ESElevatorServiceImpl.java
View file @
f2968d1e
...
...
@@ -282,7 +282,6 @@ public class ESElevatorServiceImpl {
if
(
isSingle
)
{
size
=
400
;
}
System
.
out
.
println
(
boolMust
.
toString
());
// 创建查询构造器
NativeSearchQueryBuilder
queryBuilder
=
new
NativeSearchQueryBuilder
()
...
...
@@ -401,7 +400,6 @@ public class ESElevatorServiceImpl {
//过滤条件
.
withQuery
(
boolMust
).
addAggregation
(
new
GeoHashGridAggregationBuilder
(
"96333"
).
precision
(
esSpecialEquipmentDto
.
getPrecision
()).
field
(
"location"
));
System
.
out
.
println
(
constantScore
.
toString
());
SearchHits
<
EsElevator
>
searchHits
=
elasticsearchTemplate
.
search
(
queryBuilder
.
build
(),
EsElevator
.
class
);
Aggregations
aggregations
=
searchHits
.
getAggregations
();
ParsedGeoHashGrid
aggregation
=
aggregations
.
get
(
"96333"
);
...
...
amos-boot-system-tzs/pom.xml
View file @
f2968d1e
...
...
@@ -16,6 +16,10 @@
<artifactId>
amos-boot-module-tzs-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
org.liquibase
</groupId>
<artifactId>
liquibase-core
</artifactId>
</dependency>
</dependencies>
<build>
...
...
amos-boot-system-tzs/src/main/resources/application.properties
View file @
f2968d1e
...
...
@@ -8,6 +8,10 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
logging.config
=
classpath:logback-${spring.profiles.active}.xml
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
##liquibase
spring.liquibase.change-log
=
classpath:/db/changelog/changelog-master.xml
spring.liquibase.enabled
=
true
## DB properties:
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
...
...
amos-boot-system-tzs/src/main/resources/db/changelog/changelog-master.xml
0 → 100644
View file @
f2968d1e
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
>
<include
file=
"tzs-1.0.0.0.xml"
relativeToChangelogFile=
"true"
/>
</databaseChangeLog>
amos-boot-system-tzs/src/main/resources/db/changelog/problemRecord.md
0 → 100644
View file @
f2968d1e
liqiubase 有新改动,提交测试,需查看是否执行成功,以免造成执行失败,数据不能同步,造成数据不统一
\ No newline at end of file
amos-boot-system-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
0 → 100644
View file @
f2968d1e
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
>
<changeSet
author=
"kongfm"
id=
"2021-11-09"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"tz_template_export"
/>
<not>
<primaryKeyExists
primaryKeyName=
"sequence_nbr"
tableName=
"tz_template_export"
/>
</not>
</preConditions>
<comment>
insert record export temp
</comment>
<sql>
INSERT INTO tz_template_export (
`sequence_nbr`,
`template_name`,
`template_content`,
`template_type`,
`is_standard`,
`rec_user_name`,
`rec_user_id`,
`rec_date`,
`is_delete`
)
VALUES
(
'7',
'标准模板',
'[{\"key\":\"tel\",\"value\":\"电话号码\"},{\"key\":\"telStartTime\",\"value\":\"通话开始时间\"},{\"key\":\"telEndTime\",\"value\":\"通话结束时间\"},{\"key\":\"telTime\",\"value\":\"通话时长\"},{\"key\":\"fileType\",\"value\":\"通话类型\"},{\"key\":\"workNum\",\"value\":\"关联工单编号\"}]',
'VOICE_RECORD',
true,
NULL,
NULL,
NULL,
'\0'
);
</sql>
</changeSet>
</databaseChangeLog>
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