重构评论

This commit is contained in:
Van0313
2025-05-02 20:39:46 +08:00
parent 5d89d84aa5
commit a9f247bf62
7 changed files with 169 additions and 357 deletions

View File

@@ -0,0 +1,20 @@
package cn.van.business.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import cn.van.business.model.pl.Comment;
import java.util.List;
/**
* @author Leo
* @version 1.0
* @create 2025/5/2 19:16
* @description评论数据访问层接口
*/
@Repository
public interface CommentRepository extends JpaRepository<Comment, Integer> {
List<Comment> findByProductIdAndIsUseNotAndPictureUrlsIsNotNull(String productId, Integer isUse);
}