From 5775f5a6b8fb4c6e3a50fac239fc0dd8a3b82a10 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 28 十月 2020 11:42:22 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml
index ff9a710..8172357 100644
--- a/java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml
@@ -44,6 +44,9 @@
<if test='hasProduct !=null and hasProduct == "N"'>
and t.product_id is null
</if>
+ <if test='hasProduct !=null and hasProduct == "Y"'>
+ and t.product_id is not null
+ </if>
order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
@@ -100,6 +103,9 @@
<if test='hasProduct !=null and hasProduct == "N"'>
and t.product_id is null
</if>
+ <if test='hasProduct !=null and hasProduct == "Y"'>
+ and t.product_id is not null
+ </if>
</select>
--
Gitblit v1.8.0