plf 5 vuotta sitten
vanhempi
commit
2747848494

+ 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">