From 1d201842264ce4065af198f69d44f3a8c56912ee Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期五, 19 七月 2024 10:59:24 +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 <> 1 and id not in (select src_id from product_model where pid = + and ((node_type > ${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 <> 1 + ORDER BY + node_type,sort </select> <select id="getNo" resultType="java.lang.Integer"> SELECT COUNT(*) -- Gitblit v1.9.1