瀏覽代碼

bug fixes

plf 5 年之前
父節點
當前提交
2747848494
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      product/src/main/resources/com-caimei-module-product/ProductModuleMapper.xml

+ 3 - 0
product/src/main/resources/com-caimei-module-product/ProductModuleMapper.xml

@@ -60,18 +60,21 @@
         select
         <include refid="BigType_Column_List" />
         from bigtype
+        where validFlag = '1'
     </select>
     <select id="getSmallType" resultType="com.caimei.module.base.entity.vo.SmalltypeVo">
         select
         <include refid="SmallType_Column_List" />
         from smalltype
         where bigTypeID = #{bigTypeID,jdbcType=INTEGER}
+        and validFlag = '1'
     </select>
     <select id="getTinytype" resultType="com.caimei.module.base.entity.vo.TinytypeVo">
         select
         <include refid="Tinytype_Column_List" />
         from tinytype
         where smallTypeID = #{smallTypeID,jdbcType=INTEGER}
+        and validFlag = '1'
     </select>
     <!-- sortType (3:价格升序, 4:价格降序, 7:人气, 8:销量) -->
     <select id="getProductsByTinyType" resultType="com.caimei.module.base.entity.vo.ProductVo" parameterType="java.lang.Integer">