From 442a635882a5973c9f3401a30bcfa0a43434fa74 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期三, 17 七月 2024 16:34:51 +0800
Subject: [PATCH] 修改

---
 modules/mainPart/src/main/resources/mapper/basicInfo/TyProductModelDao.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/mainPart/src/main/resources/mapper/basicInfo/TyProductModelDao.xml b/modules/mainPart/src/main/resources/mapper/basicInfo/TyProductModelDao.xml
index 988014f..a8ab5de 100644
--- a/modules/mainPart/src/main/resources/mapper/basicInfo/TyProductModelDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/basicInfo/TyProductModelDao.xml
@@ -20,7 +20,7 @@
                           AND is_delete = 0
                     )
             )
-        and ((node_type = 1) or (node_type &lt;&gt; 1 and id not in (select src_id from product_model where pid =
+        and ((node_type &gt; ${nodeType}) or ( id not in (select src_id from product_model where pid =
         ${pid} and is_delete=0)))
         ORDER BY
             node_type,sort
@@ -30,6 +30,8 @@
         from product_model_common a
         where a.is_delete = 0
           and a.node_type &lt;&gt; 1
+        ORDER BY
+            node_type,sort
     </select>
     <select id="getNo" resultType="java.lang.Integer">
         SELECT COUNT(*)

--
Gitblit v1.9.1