1. 添加note_prompt_type_rel
parent
87840300e4
commit
d6afc90e72
@ -0,0 +1,34 @@
|
||||
package com.supervision.police.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 三元组提示词和分类关系表
|
||||
* @TableName note_prompt_type_rel
|
||||
*/
|
||||
@TableName(value ="note_prompt_type_rel")
|
||||
@Data
|
||||
public class NotePromptTypeRel implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 提示表note_prompt表ID
|
||||
*/
|
||||
private String promptId;
|
||||
|
||||
/**
|
||||
* 类型表ID(model_record_type)
|
||||
*/
|
||||
private String typeId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.police.mapper;
|
||||
|
||||
import com.supervision.police.domain.NotePromptTypeRel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【note_prompt_type_rel(三元组提示词和分类关系表)】的数据库操作Mapper
|
||||
* @createDate 2024-07-25 13:47:28
|
||||
* @Entity com.supervision.police.domain.NotePromptTypeRel
|
||||
*/
|
||||
public interface NotePromptTypeRelMapper extends BaseMapper<NotePromptTypeRel> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.supervision.police.domain.NotePromptTypeRel;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【note_prompt_type_rel(三元组提示词和分类关系表)】的数据库操作Service
|
||||
* @createDate 2024-07-25 13:47:28
|
||||
*/
|
||||
public interface NotePromptTypeRelService extends IService<NotePromptTypeRel> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.police.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.police.domain.NotePromptTypeRel;
|
||||
import com.supervision.police.service.NotePromptTypeRelService;
|
||||
import com.supervision.police.mapper.NotePromptTypeRelMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【note_prompt_type_rel(三元组提示词和分类关系表)】的数据库操作Service实现
|
||||
* @createDate 2024-07-25 13:47:28
|
||||
*/
|
||||
@Service
|
||||
public class NotePromptTypeRelServiceImpl extends ServiceImpl<NotePromptTypeRelMapper, NotePromptTypeRel>
|
||||
implements NotePromptTypeRelService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,16 @@
|
||||
<?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.police.mapper.NotePromptTypeRelMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.police.domain.NotePromptTypeRel">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="promptId" column="prompt_id" jdbcType="VARCHAR"/>
|
||||
<result property="typeId" column="type_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,prompt_id,type_id
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue