Closed ryuseunghan closed 7 months ago
// μΈμ° νλ‘ν λ½κΈ° νμ @Builder.Default private Long drawCount = 0L;
private boolean checkLimitExcess(Member member) { Long count = member.getDrawCount(); return RECOMMENDATION_LIMIT <= count; }
@Scheduled(cron = "0 0 15 * * *") // λ§€μΌ μ€ν 3μμ μ€ν @Transactional public void initMemberDrawCount() { memberRepository.initDrawCount(); }
MemberRepository
@Modifying @Query("update Member a set a.drawCount =0 where a.drawCount > 0") void initDrawCount();
κΉλνλ€μ. μ’μ΅λλ€.
π₯ Related Issues
π μμ λ΄μ©
β PR Point
MemberRepository