refactor all
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user