fix: 优化DW低温水减缓设施河段字段显示

This commit is contained in:
tangwei 2026-07-14 12:01:59 +08:00
parent 660b4acc5d
commit 469dac2655
2 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,9 @@ public class SdWtBaseInfoVO implements Serializable {
@Schema(description = "基地流域编码")
private String hbrvcd;
@Schema(description = "基地流域名称")
private String hbrvcdName;
@Schema(description = "经度")
private Double lgtd;

View File

@ -713,6 +713,7 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
.append("dw.ORDER_INDEX AS siteStepSort, ")
.append("dw.STNM AS stnm, ")
.append("eng.ENNM AS ennm, ")
.append("eng.REACHCD_NAME AS hbrvcdName, ")
.append("dw.JCDT AS jcdt, ")
.append("NULL AS stindx, ")
.append("CASE WHEN NVL(dw.DTIN, 0) = 1 THEN 1 ELSE 0 END AS coenvwState, ")
@ -735,6 +736,7 @@ public class SdWtMonitorServiceImpl implements SdWtMonitorService {
.append("eng.HBRVCD AS hbrvcd ")
.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_RVCD_DIC srd ON eng.REACHCD = srd.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 ")
.append("LEFT JOIN SD_STTP_B sttp ON sttp.STTP_CODE = dw.STTP AND NVL(sttp.IS_DELETED, 0) = 0 ")