创建仓库
This commit is contained in:
16
src/main/java/vvpkassistant/chat/ChatDao.java
Normal file
16
src/main/java/vvpkassistant/chat/ChatDao.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package vvpkassistant.chat;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
@Mapper
|
||||
public interface ChatDao extends BaseMapper<ChatModel> {
|
||||
|
||||
// 根据key_id 查询数据
|
||||
@Select("select * from pk_chat where key_id = #{keyId}")
|
||||
ChatModel selectModelWithKeyId(@Param("keyId") String keyId);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user