增加rag服务
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.ichangzuo.system.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ichangzuo.system.model.entity.KbFile;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface KbFileMapper extends BaseMapper<KbFile> {
|
||||
}
|
||||
@@ -7,6 +7,9 @@ import com.ichangzuo.system.model.bo.QnAFullBO;
|
||||
import com.ichangzuo.system.model.entity.QnA;
|
||||
import com.ichangzuo.system.model.query.QnAPageQuery;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -15,4 +18,11 @@ public interface QnAMapper extends BaseMapper<QnA> {
|
||||
List<QnABO> listByType(Integer typeId);
|
||||
|
||||
Page<QnAFullBO> listPage(Page<QnAFullBO> page, QnAPageQuery queryParams);
|
||||
|
||||
List<QnA> selectUnreadForProcessing(@Param("batchSize") int batchSize);
|
||||
|
||||
@Select("SELECT help_id, question, answer FROM mc_help_qa WHERE state = 4 AND user_id = #{userId} AND help_type_id = #{helpTypeId} ORDER BY help_id DESC LIMIT 5")
|
||||
List<QnA> getLatestQA(@Param("userId") Long userId, @Param("helpTypeId") String helpTypeId);
|
||||
|
||||
List<QnA> getDuplicateCheckRecords(@Param("userId") Long userId, @Param("helpTypeId") String helpTypeId);
|
||||
}
|
||||
|
||||
@@ -1,16 +1,8 @@
|
||||
package com.ichangzuo.system.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.ichangzuo.common.annotation.DataPermission;
|
||||
import com.ichangzuo.system.model.entity.Dept;
|
||||
import com.ichangzuo.system.model.entity.Software;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface SoftwareMapper extends BaseMapper<Software> {
|
||||
|
||||
Reference in New Issue
Block a user