refactor all

This commit is contained in:
Timi
2026-07-31 01:03:53 +08:00
parent 4e7f340cc6
commit e45809a0db
512 changed files with 14620 additions and 13519 deletions
@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Select;
* @author 夜雨
* @since 2023-04-24 17:06
*/
public interface LyricCorrectMapper extends BaseMapper<LyricCorrect, Long> {
public interface LyricCorrectMapper extends BaseMapper<LyricCorrect, String> {
@Select("UPDATE lyric_corrects SET cancel_at = FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) WHERE id = #{id}")
void cancelCorrectRequest(long id);
@@ -12,7 +12,7 @@ import java.util.List;
* @author 夜雨
* @since 2023-02-02 11:54
*/
public interface LyricMapper extends BaseMapper<Lyric, Long> {
public interface LyricMapper extends BaseMapper<Lyric, String> {
@Select("SELECT * FROM lyric WHERE song LIKE CONCAT('%', #{song}, '%') OR singer LIKE CONCAT('%', #{singer}, '%') LIMIT 1")
Lyric selectBySong(String song, String singer);