Browse Source

修改参数名,注释

plf 3 years ago
parent
commit
e55fb7c6a3

+ 1 - 1
src/main/java/com/caimei365/commodity/service/impl/PageServiceImpl.java

@@ -477,7 +477,7 @@ public class PageServiceImpl implements PageService {
                 }
                 product.setLadderPriceList(ladderPrices);
             }
-            //查询商品收藏情况,1未收藏,0未收藏
+            //查询商品收藏情况,1未收藏,0未收藏,未收藏过该商品用户是null
             Integer like = likeMapper.findLike(userId, productId);
             product.setUserLike(like);
         }

+ 1 - 1
src/main/resources/mapper/UserLikeMapper.xml

@@ -28,7 +28,7 @@
     <select id="findLike" resultType="java.lang.Integer">
         SELECT userLike
         FROM cm_product_userlike
-        WHERE userId = #{userId}
+        WHERE userID = #{userId}
           AND productID = #{productId}
     </select>