初始化v_0.0.2版本代码

v_0.0.2
xueqingkun 1 month ago
parent 339b0cdb0d
commit 43fdbb89db

@ -0,0 +1,48 @@
package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
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 domain_category
*/
@TableName(value ="domain_category")
@Data
public class DomainCategory implements Serializable {
/**
*
*/
@TableId
private String id;
/**
*
*/
private String industryName;
/**
* id
*/
private String parentId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -55,6 +55,11 @@ public class DomainMetadata implements Serializable {
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
/**
* id
*/
private String domainCategoryId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,65 @@
package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
/**
*
* @TableName er_attribute
*/
@TableName(value ="er_attribute")
@Data
public class ErAttribute implements Serializable {
/**
*
*/
@TableId
private String id;
/**
* id
*/
private String domainMetadataId;
/**
*
*/
private String erName;
/**
*
*/
private String attrName;
/**
*
*/
private String attrValueType;
/**
* 1 2
*/
private String erType;
/**
*
*/
private String parentId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,50 @@
package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
/**
*
* @TableName intention
*/
@TableName(value ="intention")
@Data
public class Intention implements Serializable {
/**
*
*/
@TableId
private String id;
/**
*
*/
private String digest;
/**
*
*/
private String desc;
/**
* id
*/
private String domainCategoryId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,45 @@
package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
/**
*
* @TableName intention_domain_metadata
*/
@TableName(value ="intention_domain_metadata")
@Data
public class IntentionDomainMetadata implements Serializable {
/**
*
*/
@TableId
private String id;
/**
* id
*/
private String intentionId;
/**
* id
*/
private String domainMetadataId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,45 @@
package com.supervision.pdfqaserver.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
/**
*
* @TableName intention_truncation
*/
@TableName(value ="intention_truncation")
@Data
public class IntentionTruncation implements Serializable {
/**
*
*/
@TableId
private String id;
/**
* id
*/
private String intentionId;
/**
* id
*/
private String truncateId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -54,6 +54,32 @@ public class PdfInfo implements Serializable {
*/
private LocalDateTime extractionEndTime;
/**
* 0: 1 2
*/
private Integer trainStatus;
/**
*
*/
private LocalDateTime trainStartTime;
/**
*
*/
private LocalDateTime trainEndTime;
/**
* id
*/
private String domainCategoryId;
/**
* 0: 1
*/
private String contentType;
/**
*
*/

@ -0,0 +1,18 @@
package com.supervision.pdfqaserver.mapper;
import com.supervision.pdfqaserver.domain.DomainCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description domain_category()Mapper
* @createDate 2025-05-14 15:23:54
* @Entity com.supervision.pdfqaserver.domain.DomainCategory
*/
public interface DomainCategoryMapper extends BaseMapper<DomainCategory> {
}

@ -0,0 +1,18 @@
package com.supervision.pdfqaserver.mapper;
import com.supervision.pdfqaserver.domain.ErAttribute;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description er_attribute()Mapper
* @createDate 2025-05-14 15:23:54
* @Entity com.supervision.pdfqaserver.domain.ErAttribute
*/
public interface ErAttributeMapper extends BaseMapper<ErAttribute> {
}

@ -0,0 +1,18 @@
package com.supervision.pdfqaserver.mapper;
import com.supervision.pdfqaserver.domain.IntentionDomainMetadata;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description intention_domain_metadataMapper
* @createDate 2025-05-14 15:23:54
* @Entity com.supervision.pdfqaserver.domain.IntentionDomainMetadata
*/
public interface IntentionDomainMetadataMapper extends BaseMapper<IntentionDomainMetadata> {
}

@ -0,0 +1,18 @@
package com.supervision.pdfqaserver.mapper;
import com.supervision.pdfqaserver.domain.Intention;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description intentionMapper
* @createDate 2025-05-14 15:23:54
* @Entity com.supervision.pdfqaserver.domain.Intention
*/
public interface IntentionMapper extends BaseMapper<Intention> {
}

@ -0,0 +1,18 @@
package com.supervision.pdfqaserver.mapper;
import com.supervision.pdfqaserver.domain.IntentionTruncation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Administrator
* @description intention_truncationMapper
* @createDate 2025-05-14 15:23:54
* @Entity com.supervision.pdfqaserver.domain.IntentionTruncation
*/
public interface IntentionTruncationMapper extends BaseMapper<IntentionTruncation> {
}

@ -0,0 +1,13 @@
package com.supervision.pdfqaserver.service;
import com.supervision.pdfqaserver.domain.DomainCategory;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description domain_category()Service
* @createDate 2025-05-14 15:23:54
*/
public interface DomainCategoryService extends IService<DomainCategory> {
}

@ -0,0 +1,13 @@
package com.supervision.pdfqaserver.service;
import com.supervision.pdfqaserver.domain.ErAttribute;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description er_attribute()Service
* @createDate 2025-05-14 15:23:54
*/
public interface ErAttributeService extends IService<ErAttribute> {
}

@ -0,0 +1,13 @@
package com.supervision.pdfqaserver.service;
import com.supervision.pdfqaserver.domain.IntentionDomainMetadata;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description intention_domain_metadataService
* @createDate 2025-05-14 15:23:54
*/
public interface IntentionDomainMetadataService extends IService<IntentionDomainMetadata> {
}

@ -0,0 +1,13 @@
package com.supervision.pdfqaserver.service;
import com.supervision.pdfqaserver.domain.Intention;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description intentionService
* @createDate 2025-05-14 15:23:54
*/
public interface IntentionService extends IService<Intention> {
}

@ -0,0 +1,13 @@
package com.supervision.pdfqaserver.service;
import com.supervision.pdfqaserver.domain.IntentionTruncation;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Administrator
* @description intention_truncationService
* @createDate 2025-05-14 15:23:54
*/
public interface IntentionTruncationService extends IService<IntentionTruncation> {
}

@ -0,0 +1,22 @@
package com.supervision.pdfqaserver.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.pdfqaserver.domain.DomainCategory;
import com.supervision.pdfqaserver.service.DomainCategoryService;
import com.supervision.pdfqaserver.mapper.DomainCategoryMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description domain_category()Service
* @createDate 2025-05-14 15:23:54
*/
@Service
public class DomainCategoryServiceImpl extends ServiceImpl<DomainCategoryMapper, DomainCategory>
implements DomainCategoryService{
}

@ -0,0 +1,22 @@
package com.supervision.pdfqaserver.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.pdfqaserver.domain.ErAttribute;
import com.supervision.pdfqaserver.service.ErAttributeService;
import com.supervision.pdfqaserver.mapper.ErAttributeMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description er_attribute()Service
* @createDate 2025-05-14 15:23:54
*/
@Service
public class ErAttributeServiceImpl extends ServiceImpl<ErAttributeMapper, ErAttribute>
implements ErAttributeService{
}

@ -0,0 +1,22 @@
package com.supervision.pdfqaserver.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.pdfqaserver.domain.IntentionDomainMetadata;
import com.supervision.pdfqaserver.service.IntentionDomainMetadataService;
import com.supervision.pdfqaserver.mapper.IntentionDomainMetadataMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description intention_domain_metadataService
* @createDate 2025-05-14 15:23:54
*/
@Service
public class IntentionDomainMetadataServiceImpl extends ServiceImpl<IntentionDomainMetadataMapper, IntentionDomainMetadata>
implements IntentionDomainMetadataService{
}

@ -0,0 +1,22 @@
package com.supervision.pdfqaserver.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.pdfqaserver.domain.Intention;
import com.supervision.pdfqaserver.service.IntentionService;
import com.supervision.pdfqaserver.mapper.IntentionMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description intentionService
* @createDate 2025-05-14 15:23:54
*/
@Service
public class IntentionServiceImpl extends ServiceImpl<IntentionMapper, Intention>
implements IntentionService{
}

@ -0,0 +1,22 @@
package com.supervision.pdfqaserver.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.pdfqaserver.domain.IntentionTruncation;
import com.supervision.pdfqaserver.service.IntentionTruncationService;
import com.supervision.pdfqaserver.mapper.IntentionTruncationMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description intention_truncationService
* @createDate 2025-05-14 15:23:54
*/
@Service
public class IntentionTruncationServiceImpl extends ServiceImpl<IntentionTruncationMapper, IntentionTruncation>
implements IntentionTruncationService{
}

@ -7,7 +7,7 @@ spring:
name: pdf-qa-server
datasource:
druid:
url: jdbc:postgresql://192.168.10.137:54321/pdf-qa
url: jdbc:postgresql://192.168.10.137:54321/pdf-qa?currentSchema=pre_train
username: postgres
password: 123456
driver-class-name: org.postgresql.Driver
@ -28,8 +28,8 @@ spring:
timeout: 180000
neo4j:
driver:
uri: bolt://192.168.10.137:17688
#uri: bolt://192.168.10.137:17687
#uri: bolt://192.168.10.137:17688
uri: bolt://192.168.10.137:17687
user: neo4j
password: 12345678

@ -0,0 +1,19 @@
<?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.pdfqaserver.mapper.DomainCategoryMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.DomainCategory">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="industryName" column="industry_name" jdbcType="VARCHAR"/>
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,industry_name,parent_id,
create_time,update_time
</sql>
</mapper>

@ -11,13 +11,14 @@
<result property="relation" column="relation" jdbcType="VARCHAR"/>
<result property="targetType" column="target_type" jdbcType="VARCHAR"/>
<result property="generationType" column="generation_type" jdbcType="VARCHAR"/>
<result property="domainCategoryId" column="domain_category_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,domain_type,source_type,
relation,target_type,generation_type,
relation,target_type,generation_type,domain_category_id,
create_time,update_time
</sql>
</mapper>

@ -0,0 +1,24 @@
<?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.pdfqaserver.mapper.ErAttributeMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.ErAttribute">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="domainMetadataId" column="domain_metadata_id" jdbcType="VARCHAR"/>
<result property="erName" column="er_name" jdbcType="VARCHAR"/>
<result property="attrName" column="attr_name" jdbcType="VARCHAR"/>
<result property="attrValueType" column="attr_value_type" jdbcType="VARCHAR"/>
<result property="erType" column="er_type" jdbcType="VARCHAR"/>
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,domain_metadata_id,er_name,
attr_name,attr_value_type,er_type,
parent_id,create_time,update_time
</sql>
</mapper>

@ -0,0 +1,19 @@
<?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.pdfqaserver.mapper.IntentionDomainMetadataMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.IntentionDomainMetadata">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="intentionId" column="intention_id" jdbcType="VARCHAR"/>
<result property="domainMetadataId" column="domain_metadata_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,intention_id,domain_metadata_id,
create_time,update_time
</sql>
</mapper>

@ -0,0 +1,20 @@
<?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.pdfqaserver.mapper.IntentionMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.Intention">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="digest" column="digest" jdbcType="VARCHAR"/>
<result property="desc" column="desc" jdbcType="VARCHAR"/>
<result property="domainCategoryId" column="domain_category_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,digest,desc,
domain_category_id,create_time,update_time
</sql>
</mapper>

@ -0,0 +1,19 @@
<?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.pdfqaserver.mapper.IntentionTruncationMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.IntentionTruncation">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="intentionId" column="intention_id" jdbcType="VARCHAR"/>
<result property="truncateId" column="truncate_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,intention_id,truncate_id,
create_time,update_time
</sql>
</mapper>

@ -5,21 +5,27 @@
<mapper namespace="com.supervision.pdfqaserver.mapper.PdfInfoMapper">
<resultMap id="BaseResultMap" type="com.supervision.pdfqaserver.domain.PdfInfo">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="path" column="path" jdbcType="VARCHAR"/>
<result property="filename" column="filename" jdbcType="VARCHAR"/>
<result property="processStatus" column="process_status" jdbcType="VARCHAR"/>
<result property="analysisStartTime" column="analysis_start_time" jdbcType="TIMESTAMP"/>
<result property="analysisEndTime" column="analysis_end_time" jdbcType="TIMESTAMP"/>
<result property="extractionStartTime" column="extraction_start_time" jdbcType="TIMESTAMP"/>
<result property="extractionEndTime" column="extraction_end_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="path" column="path" jdbcType="VARCHAR"/>
<result property="filename" column="filename" jdbcType="VARCHAR"/>
<result property="processStatus" column="process_status" jdbcType="VARCHAR"/>
<result property="analysisStartTime" column="analysis_start_time" jdbcType="TIMESTAMP"/>
<result property="analysisEndTime" column="analysis_end_time" jdbcType="TIMESTAMP"/>
<result property="extractionStartTime" column="extraction_start_time" jdbcType="TIMESTAMP"/>
<result property="extractionEndTime" column="extraction_end_time" jdbcType="TIMESTAMP"/>
<result property="trainStatus" column="train_status" jdbcType="VARCHAR"/>
<result property="trainStartTime" column="train_start_time" jdbcType="TIMESTAMP"/>
<result property="trainEndTime" column="train_end_time" jdbcType="TIMESTAMP"/>
<result property="domainCategoryId" column="domain_category_id" jdbcType="VARCHAR"/>
<result property="contentType" column="content_type" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,path,filename,process_status,
analysis_start_time,analysis_end_time,
extraction_start_time,extraction_end_time,
train_status,train_start_time,train_end_time,domain_category_id,content_type,
create_time
</sql>
</mapper>

Loading…
Cancel
Save