java110 лет назад: 5
Родитель
Сommit
5775f5a6b8

+ 6 - 0
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml

@@ -44,6 +44,9 @@
         <if test='hasProduct !=null and hasProduct == "N"'>
         <if test='hasProduct !=null and hasProduct == "N"'>
             and t.product_id is null
             and t.product_id is null
         </if>
         </if>
+        <if test='hasProduct !=null and hasProduct == "Y"'>
+            and t.product_id is not null
+        </if>
         order by t.create_time desc
         order by t.create_time desc
         <if test="page != -1 and page != null ">
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
             limit #{page}, #{row}
@@ -100,6 +103,9 @@
         <if test='hasProduct !=null and hasProduct == "N"'>
         <if test='hasProduct !=null and hasProduct == "N"'>
             and t.product_id is null
             and t.product_id is null
         </if>
         </if>
+        <if test='hasProduct !=null and hasProduct == "Y"'>
+            and t.product_id is not null
+        </if>
 
 
 
 
     </select>
     </select>