cloudroam
4 天以前 47efb98ace2e67443fd4064cbfd22b059808a095
src/main/java/com/mzl/flower/mapper/film/CommentPoMapper.java
@@ -3,7 +3,9 @@
import com.mzl.flower.entity.film.CommentPo;
import com.mzl.flower.entity.film.CommentPoExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.time.LocalDate;
import java.util.List;
@@ -99,4 +101,8 @@
    int updateByPrimaryKey(CommentPo record);
    List<CommentPo> selectByArticleId(Integer articleId);
    @Select("SELECT COUNT(*) FROM film_comments WHERE film_id = #{filmId} AND DATE(create_time) = #{date} and deleted = '0' ")
    int countByFilmIdAndDate(Long id, LocalDate yesterday);
}