feat: 基础数据查询监测状态优化

This commit is contained in:
tangwei 2026-05-19 14:21:42 +08:00
parent cc80318c23
commit 8a793b3cae
2 changed files with 4 additions and 5 deletions

View File

@ -57,8 +57,8 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
.append("wt.STTP AS sttpCode, ")
.append("wt.STCD AS stcd, ")
.append("wt.RSTCD AS rstcd, ")
.append("CAST(NULL AS VARCHAR2(200)) AS stCode, ")
.append("CAST(NULL AS VARCHAR2(200)) AS stName, ")
.append("NULL AS stCode, ")
.append("NULL AS stName, ")
.append("eng.DVTP AS dvtp, ")
.append("hb.ORDER_INDEX AS baseStepSort, ")
.append("eng.HBRVCD AS hbrvcd, ")
@ -69,7 +69,7 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
.append("LEFT JOIN SD_HYDROBASE hb ON hb.BASEID = eng.BASE_ID ")
.append("LEFT JOIN (SELECT DISTINCT STCD FROM SD_WTRV_R WHERE IS_DELETED = 0 AND TM >= SYSDATE - 1) rvRecent ON rvRecent.STCD = wt.STCD ")
.append("LEFT JOIN (SELECT DISTINCT STCD FROM SD_WTVT_R WHERE IS_DELETED = 0 AND TM >= SYSDATE - 1) vtRecent ON vtRecent.STCD = wt.STCD ")
.append("WHERE wt.IS_DELETED = 0 AND wt.DTIN_TYPE = 0");
.append("WHERE wt.IS_DELETED = 0 AND wt.DTIN_TYPE = 0 ");
Map<String, Object> paramMap = new HashMap<>();
if (mway != null && !mway.isBlank()) {

View File

@ -116,8 +116,7 @@ public class QgcQueryWrapperUtil {
}
if (columnName != null && columnName.equals(fieldName)) {
if (StrUtil.isEmpty((CharSequence) value)) {
StringBuffer var9 = null;
if (value == null || (value instanceof String && StrUtil.isEmpty((String) value))) {
return;
}