提交会话管理相关代码
parent
62e66e12d7
commit
ffcb1aecb6
@ -0,0 +1,61 @@
|
||||
package com.supervision.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 相似问法表
|
||||
* @TableName ir_knowledge_similar
|
||||
*/
|
||||
@TableName(value ="ir_knowledge_similar")
|
||||
@Data
|
||||
public class IrKnowledgeSimilar implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 知识库ID
|
||||
*/
|
||||
private String knowledgeId;
|
||||
|
||||
/**
|
||||
* 相似问法
|
||||
*/
|
||||
private String similarQuestion;
|
||||
|
||||
/**
|
||||
* 生效状态(1生效 2部分生效 3未部署)
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.domain.IrKnowledgeSimilar;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_knowledge_similar(相似问法表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-21 15:27:37
|
||||
* @Entity com.supervision.domain.IrKnowledgeSimilar
|
||||
*/
|
||||
public interface IrKnowledgeSimilarMapper extends BaseMapper<IrKnowledgeSimilar> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.domain.IrKnowledgeSimilar;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_knowledge_similar(相似问法表)】的数据库操作Service
|
||||
* @createDate 2024-03-21 15:27:37
|
||||
*/
|
||||
public interface IrKnowledgeSimilarService extends IService<IrKnowledgeSimilar> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.domain.IrKnowledgeSimilar;
|
||||
import com.supervision.service.IrKnowledgeSimilarService;
|
||||
import com.supervision.mapper.IrKnowledgeSimilarMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_knowledge_similar(相似问法表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-21 15:27:37
|
||||
*/
|
||||
@Service
|
||||
public class IrKnowledgeSimilarServiceImpl extends ServiceImpl<IrKnowledgeSimilarMapper, IrKnowledgeSimilar>
|
||||
implements IrKnowledgeSimilarService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.supervision.mapper.IrKnowledgeSimilarMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.domain.IrKnowledgeSimilar">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="knowledgeId" column="knowledge_id" jdbcType="VARCHAR"/>
|
||||
<result property="similarQuestion" column="similar_question" jdbcType="VARCHAR"/>
|
||||
<result property="state" column="state" jdbcType="INTEGER"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,knowledge_id,similar_question,
|
||||
state,create_user_id,create_time,
|
||||
update_user_id,update_time
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue