From b095cfc785d4a280ffaae086503a6a0e4f1fa4c1 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 12 十二月 2024 09:59:50 +0800
Subject: [PATCH] 管网名称 查询

---
 iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml                        |    7 ++++++-
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/vo/MmPredictItemRespVO.java |    4 ++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/vo/MmPredictItemRespVO.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/vo/MmPredictItemRespVO.java
index 345af59..f629eed 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/vo/MmPredictItemRespVO.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/vo/MmPredictItemRespVO.java
@@ -103,6 +103,10 @@
     @ExcelProperty("运行耗时")
     private Long duration;
 
+    @Schema(description = "管网名称")
+    @ExcelProperty("管网名称")
+    private String modulename;
+
     private List<MmItemOutputRespVO> outPuts;
 
 }
diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml
index 363f3e6..5b72ac8 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml
+++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml
@@ -41,11 +41,13 @@
         TDMI.CATEGORYID,
         TMIS.last_time,
         TMIS.status run_status,
-        TMIS.duration
+        TMIS.duration,
+        TDMM.modulename
         FROM T_MM_PREDICT_ITEM TMPI
         LEFT JOIN T_MM_ITEM_TYPE TMIT ON TMIT.ID = TMPI.ITEMTYPEID
         LEFT JOIN T_DM_MODULE_ITEM TDMI ON TDMI.ITEMID = TMPI.ID
         LEFT JOIN t_mm_item_status TMIS ON TMIS.item_id = TMPI.ID
+        LEFT JOIN T_DM_MODULE TDMM ON TDMM.id = TDMI.moduleid
         <where>
             <if test="params.itemno != null and params.itemno != ''">
                 AND TMPI.ITEMNO LIKE CONCAT('%', #{params.itemno},'%')
@@ -62,6 +64,9 @@
             <if test="params.status != null and params.status != ''">
                 AND TMPI.STATUS = #{params.status}
             </if>
+            <if test="params.modulename != null and params.modulename != ''">
+                AND TDMM.modulename LIKE CONCAT('%', #{params.modulename},'%')
+            </if>
         </where>
         ORDER BY TMPI.CREATE_TIME DESC
     </select>

--
Gitblit v1.9.3