rename com.imyeyu.server to com.imyeyu.api
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.imyeyu.api.modules.lyric.mapper;
|
||||
|
||||
import com.imyeyu.api.modules.lyric.entity.LyricCorrect;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* 歌词更新请求 DAO
|
||||
*
|
||||
* @author 夜雨
|
||||
* @since 2023-04-24 17:06
|
||||
*/
|
||||
public interface LyricCorrectMapper extends BaseMapper<LyricCorrect, Long> {
|
||||
|
||||
@Select("UPDATE lyric_corrects SET cancel_at = FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) WHERE id = #{id}")
|
||||
void cancelCorrectRequest(long id);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.imyeyu.api.modules.lyric.mapper;
|
||||
|
||||
import com.imyeyu.api.modules.lyric.entity.Lyric;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 歌词服务
|
||||
*
|
||||
* @author 夜雨
|
||||
* @since 2023-02-02 11:54
|
||||
*/
|
||||
public interface LyricMapper extends BaseMapper<Lyric, Long> {
|
||||
|
||||
@Select("SELECT * FROM lyric WHERE song LIKE CONCAT('%', #{song}, '%') OR singer LIKE CONCAT('%', #{singer}, '%') LIMIT 1")
|
||||
Lyric selectBySong(String song, String singer);
|
||||
|
||||
@Select("SELECT id, song, singer FROM lyric WHERE deleted_at IS NULL")
|
||||
List<Lyric> listAll4Simple();
|
||||
}
|
||||
Reference in New Issue
Block a user