浏览代码

Merge remote-tracking branch 'origin/Payment-Configuration' into Payment-Configuration

yys 2 周之前
父节点
当前提交
f31cec0e15

+ 2 - 3
fs-service/src/main/java/com/fs/course/service/impl/FsUserVideoCommentServiceImpl.java

@@ -196,11 +196,10 @@ public class FsUserVideoCommentServiceImpl implements IFsUserVideoCommentService
             comment.setParentId(param.getParentId());
         }
         if (fsUserVideoCommentMapper.insertFsUserVideoComment(comment)>0){
+            // 更新对应的评论数
+            fsUserVideoMapper.addCommentCount(comment.getVideoId());
             return R.ok().put("data",comment);
         };
-        // 更新对应的评论数
-        fsUserVideoMapper.addCommentCount(comment.getVideoId());
-
         return R.error("新增评论失败");
     }
 

+ 3 - 0
fs-service/src/main/java/com/fs/his/mapper/FsIntegralGoodsMapper.java

@@ -85,6 +85,9 @@ public interface FsIntegralGoodsMapper
             "<if test = 'maps.goodsType != null and maps.goodsType != 0     '> " +
             "and g.goods_type = #{maps.goodsType}  " +
             "</if>" +
+            "<if test=\"maps.keyword != null and maps.keyword != ''\"> " +
+            "and g.goods_name like concat('%', #{maps.keyword}, '%')  " +
+            "</if>" +
             " order by g.goods_id desc "+
             "</script>"})
     List<FsIntegralGoodsListUVO> selectFsIntegralGoodsListUVO(@Param("maps")FsIntegralGoodsListUParam param);