Bladeren bron

bug fixes

plf 5 jaren geleden
bovenliggende
commit
eac8cd3c4c

+ 2 - 2
product/src/main/java/com/caimei/module/product/dao/ProductModuleDao.java

@@ -14,7 +14,7 @@ import java.util.List;
  */
 @Mapper
 public interface ProductModuleDao {
-    List<ProductVo> getProductsByTinyType(@Param("tinyTypeID") Integer tinyTypeID, @Param("sortType")  Integer sortType);
+    List<ProductVo> getProductsByTinyType(@Param("tinyTypeID") Integer tinyTypeID, @Param("sortType") Integer sortType);
 
     List<SearchHistoryVo> getSearchHistoryList(Integer userId);
 
@@ -50,7 +50,7 @@ public interface ProductModuleDao {
 
     List<Integer> getRecommendIds(Integer productID);
 
-    List<ProductVo> getRecommendByIds(List<Integer> productIDs);
+    List<ProductVo> getRecommendByIds(@Param("productIDs") List<Integer> productIDs);
 
     List<ProductVo> getDeFaultRecommend(Integer tinyTypeID);
 

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

@@ -256,8 +256,8 @@
         WHERE
           validFlag = '2'
           AND productID IN
-          <foreach collection="list" close="(" separator="," open=")" item="productID">
-              #{productIDs}
+          <foreach collection="productIDs" close="(" separator="," open=")" item="productID">
+              #{productID}
           </foreach>
     </select>
     <select id="getDeFaultRecommend" resultType="com.caimei.module.product.entity.vo.ProductVo">