Skip to content

Commit

Permalink
Merge pull request #10 from eunbok/hotfix/6
Browse files Browse the repository at this point in the history
fix: [#6] 순위 집계 쿼리 오타 수정2
  • Loading branch information
eunbok committed Apr 30, 2021
2 parents f3d2f12 + 183c6d7 commit db810aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/llnote/llpvrest/mapper/RankMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface RankMapper {
@Select("SELECT * FROM `llpv-rank` WHERE rank_date >= DATE_ADD(#{rank_date}, INTERVAL -4 DAY) and rank_date < #{rank_date} and rank_type = 'all' order by rank_date desc")
List<RankVO> getRank(String rank_date);

@Select("SELECT run_file, sum(run_sec) as run_sec FROM `llpv-log` WHERE DATE_FORMAT(_datetime, '%Y-%m-%d') = #{rank_date} group by run_file order by run_sec desc, run_title asc limit 10")
@Select("SELECT run_file, sum(run_sec) as run_sec FROM `llpv-log` WHERE DATE_FORMAT(_datetime, '%Y-%m-%d') = #{rank_date} group by run_file order by run_sec desc limit 10")
List<DataVO> getYesterDayRank(String rank_date);

@Insert("insert into `llpv-rank` values(#{rank_date}, #{rank_result}, #{rank_type})")
Expand Down

0 comments on commit db810aa

Please sign in to comment.