监测点、终端的状态修改

This commit is contained in:
xy
2024-04-23 11:40:04 +08:00
parent 7fb4df66ef
commit ac39b8c0ce
60 changed files with 263 additions and 263 deletions

View File

@@ -26,8 +26,8 @@
<if test="_databaseId == 'MariaDB'">
case
when a.devflag = 0 then '投运'
when a.devflag = 1 then '热备用'
when a.devflag = 2 then '运'
when a.devflag = 1 then '检修'
when a.devflag = 2 then '退运'
end
as devflag,
case
@@ -37,7 +37,7 @@
as status,
</if>
<if test="_databaseId == 'Oracle'">
decode(a.devflag, 0, '投运', 1, '热备用', '运') as devflag,
decode(a.devflag, 0, '投运', 1, '检修', '退运') as devflag,
decode(a.status, 0, '中断', 1, '正常') as status,
</if>
<if test="_databaseId == 'Oracle'">
@@ -227,8 +227,8 @@
<if test="_databaseId == 'MariaDB'">
case
when a.devflag = 0 then '投运'
when a.devflag = 1 then '热备用'
when a.devflag = 2 then '运'
when a.devflag = 1 then '检修'
when a.devflag = 2 then '退运'
end
as devflag,
case
@@ -238,7 +238,7 @@
as status,
</if>
<if test="_databaseId == 'Oracle'">
decode(a.DEVFLAG, 0, '正常', 1, '热备用', '运') as devflag,
decode(a.DEVFLAG, 0, '正常', 1, '检修', '退运') as devflag,
decode(a.status, 0, '中断', 1, '正常') as status,
</if>
<if test="_databaseId == 'Oracle'">
@@ -308,8 +308,8 @@
<if test="_databaseId == 'MariaDB'">
case
when a.devflag = 0 then '投运'
when a.devflag = 1 then '热备用'
when a.devflag = 2 then '运'
when a.devflag = 1 then '检修'
when a.devflag = 2 then '退运'
end
as devflag,
case
@@ -319,11 +319,11 @@
as status,
</if>
<if test="_databaseId == 'Oracle'">
decode(a.devflag, 0, '投运', 1, '热备用', '运') as devflag,
decode(a.devflag, 0, '投运', 1, '检修', '退运') as devflag,
decode(a.status, 0, '中断', 1, '正常') as status,
</if>
<if test="_databaseId == 'Oracle'">
decode(d.status, 0, '投运', 1, '热备用', '运') as lineStatus,
decode(d.status, 0, '投运', 1, '检修', '退运') as lineStatus,
</if>
<if test="_databaseId == 'Oracle'">
to_char(a.updatetime, 'yyyy-MM-dd hh24:mi:ss') as updatetime,