Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
fac36522
Commit
fac36522
authored
Dec 15, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除mongo相关代码及配置文件
parent
6943a580
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
65 deletions
+31
-65
EquipCommunicationDao.java
...in/amos/fas/business/dao/mongo/EquipCommunicationDao.java
+11
-11
EquipmentServiceImpl.java
.../amos/fas/business/service/impl/EquipmentServiceImpl.java
+10
-20
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+1
-5
IEquipmentService.java
...in/amos/fas/business/service/intfc/IEquipmentService.java
+0
-1
EquipCommunicationData.java
.../yeejoin/amos/fas/business/vo/EquipCommunicationData.java
+5
-7
application-dev.properties
...utoSysStart/src/main/resources/application-dev.properties
+0
-4
application-docker.properties
...SysStart/src/main/resources/application-docker.properties
+4
-8
application-test.properties
...toSysStart/src/main/resources/application-test.properties
+0
-4
application.properties
...ireAutoSysStart/src/main/resources/application.properties
+0
-1
pom.xml
pom.xml
+0
-4
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mongo/EquipCommunicationDao.java
View file @
fac36522
package
com
.
yeejoin
.
amos
.
fas
.
business
.
dao
.
mongo
;
//
package com.yeejoin.amos.fas.business.dao.mongo;
import
org.springframework.data.mongodb.repository.MongoRepository
;
//
import org.springframework.data.mongodb.repository.MongoRepository;
import
org.springframework.stereotype.Repository
;
//
import org.springframework.stereotype.Repository;
//
import
com.yeejoin.amos.fas.business.vo.EquipCommunicationData
;
//
import com.yeejoin.amos.fas.business.vo.EquipCommunicationData;
//
@Repository
(
"equipCommunicationDao"
)
//
@Repository("equipCommunicationDao")
public
interface
EquipCommunicationDao
extends
MongoRepository
<
EquipCommunicationData
,
String
>{
//
public interface EquipCommunicationDao extends MongoRepository<EquipCommunicationData, String>{
//
}
//
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/EquipmentServiceImpl.java
View file @
fac36522
...
@@ -25,9 +25,6 @@ import org.springframework.data.domain.PageImpl;
...
@@ -25,9 +25,6 @@ import org.springframework.data.domain.PageImpl;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort.Direction
;
import
org.springframework.data.domain.Sort.Direction
;
import
org.springframework.data.domain.Sort.Order
;
import
org.springframework.data.domain.Sort.Order
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
import
org.springframework.data.mongodb.core.query.Criteria
;
import
org.springframework.data.mongodb.core.query.Query
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -41,7 +38,6 @@ import com.yeejoin.amos.fas.business.constants.FasConstant;
...
@@ -41,7 +38,6 @@ import com.yeejoin.amos.fas.business.constants.FasConstant;
import
com.yeejoin.amos.fas.business.dao.mapper.FireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.FireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpAndFireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpAndFireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mongo.EquipCommunicationDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IEquipmentDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IEquipmentDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IEquipmentFireEquipmentDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IEquipmentFireEquipmentDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IFireEquipmentDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IFireEquipmentDao
;
...
@@ -101,11 +97,8 @@ public class EquipmentServiceImpl implements IEquipmentService {
...
@@ -101,11 +97,8 @@ public class EquipmentServiceImpl implements IEquipmentService {
@Autowired
@Autowired
private
IFmeaEquipmentPointDao
iFmeaEquipmentPointDao
;
private
IFmeaEquipmentPointDao
iFmeaEquipmentPointDao
;
@Autowired
// @Autowired
private
MongoTemplate
mongoTemplate
;
// private MongoTemplate mongoTemplate;
@Autowired
private
EquipCommunicationDao
equipCommunicationDao
;
@Value
(
"${windows.img.path}"
)
@Value
(
"${windows.img.path}"
)
private
String
winImgPath
;
private
String
winImgPath
;
...
@@ -469,25 +462,22 @@ public class EquipmentServiceImpl implements IEquipmentService {
...
@@ -469,25 +462,22 @@ public class EquipmentServiceImpl implements IEquipmentService {
@Override
@Override
public
EquipCommunicationData
findFireEquipmentByPointCode
(
String
code
)
{
public
EquipCommunicationData
findFireEquipmentByPointCode
(
String
code
)
{
// EquipCommunicationData data = (EquipCommunicationData) redisTemplate.opsForHash().get("fireEquipData", code);
// if (ObjectUtils.isEmpty(data)) {
EquipCommunicationData
data
=
fireEquipMapper
.
findOneByPointCode
(
code
);
EquipCommunicationData
data
=
fireEquipMapper
.
findOneByPointCode
(
code
);
// }
return
data
;
return
data
;
}
}
@Override
@Override
public
EquipCommunicationData
findFireEquipDataByPointCode
(
String
code
)
{
public
EquipCommunicationData
findFireEquipDataByPointCode
(
String
code
)
{
Query
query
=
new
Query
();
// Query query = new Query();
query
.
addCriteria
(
Criteria
.
where
(
"pointCode"
).
is
(
code
)).
limit
(
1
);
// query.addCriteria(Criteria.where("pointCode").is(code)).limit(1);
query
.
with
(
new
Sort
(
new
Order
(
Direction
.
DESC
,
"recDate"
)));
// query.with(new Sort(new Order(Direction.DESC, "recDate")));
query
.
limit
(
1
);
// query.limit(1);
List
<
EquipCommunicationData
>
data
=
mongoTemplate
.
find
(
query
,
EquipCommunicationData
.
class
);
// List<EquipCommunicationData> data = mongoTemplate.find(query, EquipCommunicationData.class);
if
(
data
.
isEmpty
())
{
// if (data.isEmpty()) {
// return null;
// }
return
null
;
return
null
;
}
}
return
data
.
get
(
0
);
}
@Override
@Override
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
fac36522
...
@@ -70,7 +70,6 @@ import com.yeejoin.amos.fas.business.dao.mapper.FmeaMapper;
...
@@ -70,7 +70,6 @@ import com.yeejoin.amos.fas.business.dao.mapper.FmeaMapper;
import
com.yeejoin.amos.fas.business.dao.mapper.FmeaPointInputitemMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.FmeaPointInputitemMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpAndFireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.ImpAndFireEquipMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.RiskSourceMapper
;
import
com.yeejoin.amos.fas.business.dao.mapper.RiskSourceMapper
;
import
com.yeejoin.amos.fas.business.dao.mongo.EquipCommunicationDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IAlarmDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IAlarmDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IContingencyOriginalDataDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IContingencyOriginalDataDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IDictDao
;
import
com.yeejoin.amos.fas.business.dao.repository.IDictDao
;
...
@@ -214,9 +213,6 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -214,9 +213,6 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
private
RemoteWebSocketServer
remoteWebSocketServer
;
private
RemoteWebSocketServer
remoteWebSocketServer
;
@Autowired
@Autowired
private
EquipCommunicationDao
equipCommunicationDao
;
@Autowired
private
IEquipmentService
equipmentService
;
private
IEquipmentService
equipmentService
;
@Autowired
@Autowired
...
@@ -1269,7 +1265,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -1269,7 +1265,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
return
data
;
return
data
;
}).
filter
(
param
->
!
ObjectUtils
.
isEmpty
(
param
)).
collect
(
Collectors
.
toList
());
}).
filter
(
param
->
!
ObjectUtils
.
isEmpty
(
param
)).
collect
(
Collectors
.
toList
());
equipCommunicationDao
.
saveAll
(
list
);
//
equipCommunicationDao.saveAll(list);
}
}
/**
/**
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IEquipmentService.java
View file @
fac36522
...
@@ -100,7 +100,6 @@ public interface IEquipmentService {
...
@@ -100,7 +100,6 @@ public interface IEquipmentService {
EquipCommunicationData
findFireEquipmentByPointCode
(
String
code
);
EquipCommunicationData
findFireEquipmentByPointCode
(
String
code
);
EquipCommunicationData
findFireEquipDataByPointCode
(
String
code
);
EquipCommunicationData
findFireEquipDataByPointCode
(
String
code
);
int
countImpEquipByIds
(
String
[]
idArray
);
int
countImpEquipByIds
(
String
[]
idArray
);
int
countFemaRelation
(
String
[]
idArray
);
int
countFemaRelation
(
String
[]
idArray
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/vo/EquipCommunicationData.java
View file @
fac36522
...
@@ -4,10 +4,8 @@ import java.io.Serializable;
...
@@ -4,10 +4,8 @@ import java.io.Serializable;
import
java.util.Date
;
import
java.util.Date
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.mongodb.core.index.Indexed
;
import
org.springframework.data.mongodb.core.mapping.Document
;
@Document
(
collection
=
"EquipCommunicationData"
)
//
@Document(collection = "EquipCommunicationData")
public
class
EquipCommunicationData
implements
Serializable
{
public
class
EquipCommunicationData
implements
Serializable
{
/**
/**
*
*
...
@@ -16,13 +14,13 @@ public class EquipCommunicationData implements Serializable{
...
@@ -16,13 +14,13 @@ public class EquipCommunicationData implements Serializable{
@Id
@Id
private
String
id
;
private
String
id
;
private
String
informationAddress
;
//转发码
private
String
informationAddress
;
//转发码
@Indexed
//
@Indexed
private
int
soe
;
private
int
soe
;
private
String
state
;
// 值
private
String
state
;
// 值
private
String
unit
;
private
String
unit
;
private
String
serviceId
;
//服务ID
private
String
serviceId
;
//服务ID
private
int
isInvalid
;
// 是否有效
private
int
isInvalid
;
// 是否有效
@Indexed
//
@Indexed
private
String
pointCode
;
private
String
pointCode
;
private
String
pointName
;
private
String
pointName
;
// @Indexed
// @Indexed
...
@@ -32,13 +30,13 @@ public class EquipCommunicationData implements Serializable{
...
@@ -32,13 +30,13 @@ public class EquipCommunicationData implements Serializable{
private
String
type
;
private
String
type
;
private
String
alarmType
;
private
String
alarmType
;
@Indexed
//
@Indexed
private
String
fireEquipmentId
;
private
String
fireEquipmentId
;
private
String
fireEquipmentName
;
private
String
fireEquipmentName
;
private
String
fireEquipmentCode
;
private
String
fireEquipmentCode
;
@Indexed
//
@Indexed
private
Date
recDate
;
private
Date
recDate
;
public
String
getInformationAddress
()
{
public
String
getInformationAddress
()
{
...
...
YeeAmosFireAutoSysStart/src/main/resources/application-dev.properties
View file @
fac36522
...
@@ -21,10 +21,6 @@ spring.datasource.hikari.maximum-pool-size = 10
...
@@ -21,10 +21,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
#mongodb
spring.data.mongodb.uri
=
mongodb://172.16.11.33:27017/iecmonitor
#rule
#rule
#params.remoteRuleUrl=http://172.16.3.3:8080/
#params.remoteRuleUrl=http://172.16.3.3:8080/
params.remoteRuleUrl
=
http://magintursh.xicp.net:18080/
params.remoteRuleUrl
=
http://magintursh.xicp.net:18080/
...
...
YeeAmosFireAutoSysStart/src/main/resources/application-docker.properties
View file @
fac36522
security.password
=
tw123456
security.password
=
a1234560
security.loginId
=
tw3
security.loginId
=
fas_autosys
security.productWeb
=
CONVERTER_STATION
_WEB
security.productWeb
=
STUDIO_APP
_WEB
security.appKeyWeb
=
CONVERTER_STATION
security.appKeyWeb
=
studio_normalapp_2668446
#environment
#environment
#spring.profiles.active = dev
#spring.profiles.active = dev
...
@@ -22,10 +22,6 @@ spring.datasource.hikari.maximum-pool-size = 10
...
@@ -22,10 +22,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
#mongodb
spring.data.mongodb.uri
=
mongodb://amos-mongo:27017/iecmonitor
#rule
#rule
#params.remoteRuleUrl=http://172.16.3.3:8080/
#params.remoteRuleUrl=http://172.16.3.3:8080/
params.remoteRuleUrl
=
http://station-rule:8080/
params.remoteRuleUrl
=
http://station-rule:8080/
...
...
YeeAmosFireAutoSysStart/src/main/resources/application-test.properties
View file @
fac36522
...
@@ -22,10 +22,6 @@ spring.datasource.hikari.maximum-pool-size = 10
...
@@ -22,10 +22,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
#mongodb
spring.data.mongodb.uri
=
mongodb://172.16.11.33:27017/iecmonitor
#rule
#rule
#params.remoteRuleUrl=http://172.16.3.3:8080/
#params.remoteRuleUrl=http://172.16.3.3:8080/
params.remoteRuleUrl
=
http://magintursh.xicp.net:18080/
params.remoteRuleUrl
=
http://magintursh.xicp.net:18080/
...
...
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
fac36522
...
@@ -60,7 +60,6 @@ windows.img.path = E:\\
...
@@ -60,7 +60,6 @@ windows.img.path = E:\\
linux.img.path = /
linux.img.path = /
param.safetyIndexChange.cron
=
0 0 2 * * ?
param.safetyIndexChange.cron
=
0 0 2 * * ?
#param.weather.url = http://t.weather.sojson.com/api/weather/city/
param.weather.url
=
http://wthrcdn.etouch.cn/weather_mini?citykey=
param.weather.url
=
http://wthrcdn.etouch.cn/weather_mini?citykey=
...
...
pom.xml
View file @
fac36522
...
@@ -177,10 +177,6 @@
...
@@ -177,10 +177,6 @@
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
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