Merge branch 'dev-tw'
This commit is contained in:
commit
34a5588899
@ -207,7 +207,7 @@ public class EngEqDataServiceImpl implements EngEqDataService {
|
||||
"eng.INTRODUCE AS introduce, " +
|
||||
"eng.LOGO AS logo, " +
|
||||
"eng.INFFILE AS inffile, " +
|
||||
"eng.INFFILE AS url, " +
|
||||
"eng.url AS url, " +
|
||||
"eng.BLDSTT AS bldstt, " +
|
||||
"CASE eng.BLDSTT_CODE WHEN 0 THEN '0' WHEN 1 THEN '1' WHEN 2 THEN '2' ELSE NULL END AS bldsttCcode, " +
|
||||
"eng.BLDSTT_CODE AS bldsttCode, " +
|
||||
|
||||
@ -410,7 +410,7 @@ public class VdMonitorServiceImpl implements VdMonitorService {
|
||||
"LEFT JOIN SD_FHBT_B_H fh ON fh.STCD = src.FHSTCD AND NVL(fh.IS_DELETED, 0) = 0 " +
|
||||
"LEFT JOIN (" + buildStationBaseSql() + ") cst ON cst.STCD = src.CSTCD " +
|
||||
"LEFT JOIN SD_STTP_B sttp ON sttp.STTP_CODE = src.STTP " +
|
||||
" AND NVL(sttp.IS_DELETED, 0) = 0 AND NVL(sttp.ENABLED, 1) = 1 ";
|
||||
" AND NVL(sttp.IS_DELETED, 0) = 0 AND NVL(sttp.ENABLE, 1) = 1 ";
|
||||
}
|
||||
|
||||
private String buildVdDeviceBaseSql() {
|
||||
@ -420,7 +420,8 @@ public class VdMonitorServiceImpl implements VdMonitorService {
|
||||
" CAST(NULL AS VARCHAR2(255)) AS LOGO, CAST(NULL AS VARCHAR2(1000)) AS INFFILE, " +
|
||||
" vd.DTFRQCY, vd.REMARK, vd.VLSR, vd.VLSR_TM, vd.URL AS URL, CAST(NULL AS NUMBER(8,0)) AS ORDER_INDEX, " +
|
||||
" 'SD_VDINFO_B' AS SOURCE_TABLE " +
|
||||
"FROM SD_VDINFO_B vd WHERE vd.STTP = 'VD_FP' " +
|
||||
"FROM SD_VDINFO_B vd WHERE 1=1 " +
|
||||
// " AND vd.STTP = 'VD_FP' "+
|
||||
"UNION ALL " +
|
||||
"SELECT sonar.STCD, sonar.STNM, sonar.MNTP, sonar.STTP, sonar.LGTD, sonar.LTTD, sonar.ELEV, sonar.STLC, " +
|
||||
" sonar.JCDT, sonar.WDDT, sonar.BLDSTT_CODE, sonar.USFL, sonar.DTIN, sonar.STINDX, sonar.RSTCD, sonar.BASE_ID, " +
|
||||
|
||||
@ -334,7 +334,7 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
|
||||
SUM(CASE WHEN NVL(t.DTIN, 0) = 1 THEN 1 ELSE 0 END) AS accessNum,
|
||||
SUM(CASE WHEN NVL(t.BLDSTT_CODE, 0) = 2 THEN 1 ELSE 0 END) AS buildNum,
|
||||
SUM(CASE WHEN NVL(t.BLDSTT_CODE, 0) = 1 THEN 1 ELSE 0 END) AS zjNum
|
||||
FROM SD_DFLTKW_B_H t
|
||||
FROM SD_DW_B_H t
|
||||
LEFT JOIN SD_ENGINFO_B_H eng ON eng.STCD = t.RSTCD
|
||||
WHERE NVL(t.IS_DELETED, 0) = 0
|
||||
""" + (StrUtil.isNotBlank(baseId) ? """
|
||||
@ -704,7 +704,7 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
|
||||
.append("ELSE '未建/规划' END AS bldsttCcodeName, ")
|
||||
.append("dw.BLDSTT_CODE AS bldsttCcode, ")
|
||||
.append("eng.HBRVCD AS hbrvcd ")
|
||||
.append("FROM SD_DFLTKW_B_H dw ")
|
||||
.append("FROM SD_DW_B_H dw ")
|
||||
.append("LEFT JOIN SD_ENGINFO_B_H eng ON eng.STCD = dw.RSTCD AND NVL(eng.IS_DELETED, 0) = 0 ")
|
||||
.append("LEFT JOIN SD_HYDROBASE hb ON hb.BASEID = eng.BASE_ID AND NVL(hb.IS_DELETED, 0) = 0 ")
|
||||
.append("LEFT JOIN SD_HBRV_DIC hbrv ON hbrv.HBRVCD = eng.HBRVCD AND hbrv.BASEID = eng.BASE_ID AND NVL(hbrv.IS_DELETED, 0) = 0 ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user