|
@@ -21,20 +21,20 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
private AlarmTsMapper alarmTsMapper;
|
|
private AlarmTsMapper alarmTsMapper;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public void createSuperTable(String type) {
|
|
public void createSuperTable(String type) {
|
|
|
|
|
|
alarmTsMapper.createAlarmSuperTable(type);
|
|
alarmTsMapper.createAlarmSuperTable(type);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public void dropSuperTable(String type) {
|
|
public void dropSuperTable(String type) {
|
|
|
|
|
|
alarmTsMapper.dropSuperTable(type);
|
|
alarmTsMapper.dropSuperTable(type);
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public int createTable(String tbName, String alarmid, String alarmtype,
|
|
public int createTable(String tbName, String alarmid, String alarmtype,
|
|
String characteristic, String components,
|
|
String characteristic, String components,
|
|
String description,
|
|
String description,
|
|
@@ -65,7 +65,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
triggertype, uniformcode,superTableName, name, nemCode, faultCause, resolvent,faultType,aname);
|
|
triggertype, uniformcode,superTableName, name, nemCode, faultCause, resolvent,faultType,aname);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public int updateTable(String tbName, String alarmid, String alarmtype,
|
|
public int updateTable(String tbName, String alarmid, String alarmtype,
|
|
String characteristic, String components,
|
|
String characteristic, String components,
|
|
String description,
|
|
String description,
|
|
@@ -96,19 +96,19 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
triggertype, uniformcode,superTableName, name, nemCode, faultCause, resolvent,faultType,aname);
|
|
triggertype, uniformcode,superTableName, name, nemCode, faultCause, resolvent,faultType,aname);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public int createTable(AlarmVo vo) {
|
|
public int createTable(AlarmVo vo) {
|
|
return alarmTsMapper.createTable(vo);
|
|
return alarmTsMapper.createTable(vo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public int insertOne(AlarmTs one) {
|
|
public int insertOne(AlarmTs one) {
|
|
return alarmTsMapper.insertOne(one);
|
|
return alarmTsMapper.insertOne(one);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public void insertList(List<AlarmTag> alarmTags ) {
|
|
public void insertList(List<AlarmTag> alarmTags ) {
|
|
|
|
|
|
if(StringUtils.notEmp(alarmTags) && !alarmTags.isEmpty())
|
|
if(StringUtils.notEmp(alarmTags) && !alarmTags.isEmpty())
|
|
@@ -119,7 +119,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public void createSql(List<AlarmTag> alarmTags ) {
|
|
public void createSql(List<AlarmTag> alarmTags ) {
|
|
|
|
|
|
StringBuilder sb = new StringBuilder("INSERT INTO ");
|
|
StringBuilder sb = new StringBuilder("INSERT INTO ");
|
|
@@ -155,7 +155,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public List<AlarmVo> findTags(String stbaleName)
|
|
public List<AlarmVo> findTags(String stbaleName)
|
|
{
|
|
{
|
|
List<AlarmVo> ls=new ArrayList<>();
|
|
List<AlarmVo> ls=new ArrayList<>();
|
|
@@ -166,7 +166,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
|
|
|
|
return ls;
|
|
return ls;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public List<AlarmTsVo> selectByGroup(String superTableName, String stationid, long begin, long end)
|
|
public List<AlarmTsVo> selectByGroup(String superTableName, String stationid, long begin, long end)
|
|
{
|
|
{
|
|
List<AlarmTsVo> ls=new ArrayList<>();
|
|
List<AlarmTsVo> ls=new ArrayList<>();
|
|
@@ -178,7 +178,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
return ls;
|
|
return ls;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public List<AlarmVo> selectByTbName(String tbName,long limit,long offset)
|
|
public List<AlarmVo> selectByTbName(String tbName,long limit,long offset)
|
|
{
|
|
{
|
|
List<AlarmVo> ls=new ArrayList<>();
|
|
List<AlarmVo> ls=new ArrayList<>();
|
|
@@ -189,7 +189,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
|
|
|
|
|
|
return ls;
|
|
return ls;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Override
|
|
public List<AlarmSimpleVo> selectLastRowByTbname(String superTableName, String tbnames){
|
|
public List<AlarmSimpleVo> selectLastRowByTbname(String superTableName, String tbnames){
|
|
List<AlarmSimpleVo> ls=new ArrayList<>();
|
|
List<AlarmSimpleVo> ls=new ArrayList<>();
|
|
if(StringUtils.notEmp(superTableName) && StringUtils.notEmp(tbnames))
|
|
if(StringUtils.notEmp(superTableName) && StringUtils.notEmp(tbnames))
|