From e0b86ecb9040b56bad93356263805baff76442b4 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 29 十一月 2024 17:24:30 +0800
Subject: [PATCH] Timestamp

---
 iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmPredictItemDao.xml |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)

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 5bda3f9..3edcdce 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
@@ -66,7 +66,27 @@
         ORDER BY TMPI.CREATE_TIME DESC
     </select>
 
-    <select id="queryList" resultType="com.iailab.module.model.mcs.pre.vo.MmPredictItemRespVO" parameterType="map">
+    <resultMap id="MmPredictItemRespVO" type="com.iailab.module.model.mcs.pre.vo.MmPredictItemRespVO">
+        <result property="id" column="ID"/>
+        <result property="itemno" column="ITEMNO"/>
+        <result property="itemname" column="ITEMNAME"/>
+        <result property="itemtypeid" column="ITEMTYPEID"/>
+        <result property="itemtypename" column="ITEMTYPENAME"/>
+        <result property="granularity" column="GRANULARITY"/>
+        <result property="isfuse" column="ISFUSE"/>
+        <result property="workchecked" column="WORKCHECKED"/>
+        <result property="moduleid" column="MODULEID"/>
+        <result property="itemorder" column="ITEMORDER"/>
+        <result property="status" column="STATUS"/>
+        <result property="categoryid" column="CATEGORYID"/>
+        <collection property="outPuts" ofType="com.iailab.module.model.mcs.pre.vo.MmItemOutputRespVO">
+            <result property="id" column="out_put_id"/>
+            <result property="outputorder" column="out_put_order"/>
+            <result property="resultName" column="result_name"/>
+        </collection>
+    </resultMap>
+
+    <select id="queryList" resultMap="MmPredictItemRespVO" parameterType="map">
         SELECT
         TMPI.ID,
         TMPI.ITEMNO,
@@ -79,10 +99,14 @@
         TDMI.MODULEID,
         TDMI.ITEMORDER,
         TMPI.STATUS,
-        TDMI.CATEGORYID
+        TDMI.CATEGORYID,
+        TMIO.id out_put_id,
+        TMIO.outputorder out_put_order,
+        TMIO.result_name
         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_output TMIO ON TMIO.itemid = TMPI.ID
         WHERE 1 = 1
         <if test="itemno != null and itemno != ''">
             AND TMPI.ITEMNO LIKE CONCAT('%', #{itemno},'%')
@@ -99,7 +123,7 @@
         <if test="status != null and status != ''">
             AND TMPI.STATUS = #{status}
         </if>
-        ORDER BY TMPI.CREATE_TIME DESC
+        ORDER BY TMPI.CREATE_TIME DESC,TMIO.outputorder
     </select>
 
     <select id="getByModuleId" parameterType="map" resultMap="ItemVO">

--
Gitblit v1.9.3