1. 结构化数据存储改造
parent
2bc8cf25a3
commit
70e7c4bf8d
@ -0,0 +1,136 @@
|
||||
package com.supervision.police.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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 买卖合同属性
|
||||
* @TableName attribute_mmht
|
||||
*/
|
||||
@TableName(value ="attribute_mmht")
|
||||
@Data
|
||||
public class AttributeMmht implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 证据id
|
||||
*/
|
||||
private String evidenceId;
|
||||
|
||||
/**
|
||||
* 甲方
|
||||
*/
|
||||
@Schema(description = "甲方", type = "1")
|
||||
private String partA;
|
||||
|
||||
/**
|
||||
* 乙方
|
||||
*/
|
||||
@Schema(description = "乙方", type = "1")
|
||||
private String partB;
|
||||
|
||||
/**
|
||||
* 乙方
|
||||
*/
|
||||
@Schema(description = "丙方", type = "1")
|
||||
private String partC;
|
||||
|
||||
/**
|
||||
* 资质要求
|
||||
*/
|
||||
@Schema(description = "资质要求", type = "1")
|
||||
private String qualifications;
|
||||
|
||||
/**
|
||||
* 合同标的物
|
||||
*/
|
||||
@Schema(description = "合同标的物", type = "1")
|
||||
private String subjectMatter;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@Schema(description = "数量", type = "2")
|
||||
private String number;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额", type = "2")
|
||||
private String amountMoney;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
@Schema(description = "支付方式", type = "1")
|
||||
private String paymentMethod;
|
||||
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@Schema(description = "支付时间", type = "3")
|
||||
private String paymentTime;
|
||||
|
||||
/**
|
||||
* 履行期限
|
||||
*/
|
||||
@Schema(description = "履行期限", type = "3")
|
||||
private String performancePeriod;
|
||||
|
||||
/**
|
||||
* 履行地点
|
||||
*/
|
||||
@Schema(description = "履行地点", type = "1")
|
||||
private String placePerformance;
|
||||
|
||||
/**
|
||||
* 违约责任
|
||||
*/
|
||||
@Schema(description = "违约责任", type = "1")
|
||||
private String liabilityBreach;
|
||||
|
||||
/**
|
||||
* 项目详细信息
|
||||
*/
|
||||
@Schema(description = "项目详细信息", type = "1")
|
||||
private String projectDetails;
|
||||
|
||||
/**
|
||||
* 签订日期
|
||||
*/
|
||||
@Schema(description = "签订日期", type = "3")
|
||||
private String signingDate;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package com.supervision.police.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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 银行流水证据属性
|
||||
* @TableName attribute_yhls
|
||||
*/
|
||||
@TableName(value ="attribute_yhls")
|
||||
@Data
|
||||
public class AttributeYhls implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 证据id
|
||||
*/
|
||||
private String evidenceId;
|
||||
|
||||
/**
|
||||
* 账户信息
|
||||
*/
|
||||
@Schema(description = "账户信息", type = "1")
|
||||
private String accountInformation;
|
||||
|
||||
/**
|
||||
* 对方账户信息
|
||||
*/
|
||||
@Schema(description = "对方账户信息", type = "1")
|
||||
private String otherAccountInformation;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额", type = "2")
|
||||
private String amount;
|
||||
|
||||
/**
|
||||
* 交易时间
|
||||
*/
|
||||
@Schema(description = "交易时间", type = "3")
|
||||
private String tradingTime;
|
||||
|
||||
/**
|
||||
* 收入支出标识
|
||||
*/
|
||||
@Schema(description = "收入支出标识", type = "1")
|
||||
private String revenueExpenditureIdentification;
|
||||
|
||||
/**
|
||||
* 摘要
|
||||
*/
|
||||
@Schema(description = "摘要", type = "1")
|
||||
private String abstractInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.supervision.police.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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 证据支付凭证属性表
|
||||
* @TableName attribute_zfpz
|
||||
*/
|
||||
@TableName(value ="attribute_zfpz")
|
||||
@Data
|
||||
public class AttributeZfpz implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 证据id
|
||||
*/
|
||||
private String evidenceId;
|
||||
|
||||
/**
|
||||
* 付款方名称
|
||||
*/
|
||||
@Schema(description = "付款方名称", type = "1")
|
||||
private String payerName;
|
||||
|
||||
/**
|
||||
* 收款方名称
|
||||
*/
|
||||
@Schema(description = "收款方名称", type = "1")
|
||||
private String payeeName;
|
||||
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@Schema(description = "支付时间", type = "3")
|
||||
private String paymentTime;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额", type = "2")
|
||||
private String amount;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
@Schema(description = "说明", type = "1")
|
||||
private String describeInfo;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.police.mapper;
|
||||
|
||||
import com.supervision.police.domain.AttributeMmht;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_mmht(买卖合同属性)】的数据库操作Mapper
|
||||
* @createDate 2024-11-19 16:44:46
|
||||
* @Entity com.supervision.police.domain.AttributeMmht
|
||||
*/
|
||||
public interface AttributeMmhtMapper extends BaseMapper<AttributeMmht> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.police.mapper;
|
||||
|
||||
import com.supervision.police.domain.AttributeYhls;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_yhls(银行流水证据属性)】的数据库操作Mapper
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
* @Entity com.supervision.police.domain.AttributeYhls
|
||||
*/
|
||||
public interface AttributeYhlsMapper extends BaseMapper<AttributeYhls> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.police.mapper;
|
||||
|
||||
import com.supervision.police.domain.AttributeZfpz;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_zfpz(证据支付凭证属性表)】的数据库操作Mapper
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
* @Entity com.supervision.police.domain.AttributeZfpz
|
||||
*/
|
||||
public interface AttributeZfpzMapper extends BaseMapper<AttributeZfpz> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.supervision.police.domain.AttributeMmht;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_mmht(买卖合同属性)】的数据库操作Service
|
||||
* @createDate 2024-11-19 16:44:46
|
||||
*/
|
||||
public interface AttributeMmhtService extends IService<AttributeMmht> {
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.supervision.police.domain.AttributeYhls;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_yhls(银行流水证据属性)】的数据库操作Service
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
*/
|
||||
public interface AttributeYhlsService extends IService<AttributeYhls> {
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.supervision.police.domain.AttributeZfpz;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_zfpz(证据支付凭证属性表)】的数据库操作Service
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
*/
|
||||
public interface AttributeZfpzService extends IService<AttributeZfpz> {
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.supervision.police.dto.NotePromptExtractAttributesDto;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 案件证据属性服务
|
||||
*/
|
||||
public interface CaseEvidencePropertyService {
|
||||
|
||||
List<NotePromptExtractAttributesDto> findExtractAttributes(String categoryId);
|
||||
|
||||
|
||||
void saveEvidenceProperty(String evidenceId,String categoryId, List<NotePromptExtractAttributesDto> attributes);
|
||||
|
||||
void updateEvidenceProperty(String evidenceId,String categoryId, List<NotePromptExtractAttributesDto> attributes);
|
||||
|
||||
void deleteEvidenceProperty(String evidenceId,String categoryId);
|
||||
|
||||
Map<String,List<NotePromptExtractAttributesDto>> listEvidenceProperty(String categoryId,List<String> evidenceIdList);
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.police.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.police.domain.AttributeMmht;
|
||||
import com.supervision.police.service.AttributeMmhtService;
|
||||
import com.supervision.police.mapper.AttributeMmhtMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_mmht(买卖合同属性)】的数据库操作Service实现
|
||||
* @createDate 2024-11-19 16:44:46
|
||||
*/
|
||||
@Service
|
||||
public class AttributeMmhtServiceImpl extends ServiceImpl<AttributeMmhtMapper, AttributeMmht>
|
||||
implements AttributeMmhtService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.police.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.police.domain.AttributeYhls;
|
||||
import com.supervision.police.service.AttributeYhlsService;
|
||||
import com.supervision.police.mapper.AttributeYhlsMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_yhls(银行流水证据属性)】的数据库操作Service实现
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
*/
|
||||
@Service
|
||||
public class AttributeYhlsServiceImpl extends ServiceImpl<AttributeYhlsMapper, AttributeYhls>
|
||||
implements AttributeYhlsService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.police.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.police.domain.AttributeZfpz;
|
||||
import com.supervision.police.service.AttributeZfpzService;
|
||||
import com.supervision.police.mapper.AttributeZfpzMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【attribute_zfpz(证据支付凭证属性表)】的数据库操作Service实现
|
||||
* @createDate 2024-11-20 14:40:46
|
||||
*/
|
||||
@Service
|
||||
public class AttributeZfpzServiceImpl extends ServiceImpl<AttributeZfpzMapper, AttributeZfpz>
|
||||
implements AttributeZfpzService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,39 @@
|
||||
<?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.AttributeMmhtMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.police.domain.AttributeMmht">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="evidenceId" column="evidence_id" jdbcType="VARCHAR"/>
|
||||
<result property="partA" column="part_a" jdbcType="VARCHAR"/>
|
||||
<result property="partB" column="part_b" jdbcType="VARCHAR"/>
|
||||
<result property="partC" column="part_c" jdbcType="VARCHAR"/>
|
||||
<result property="qualifications" column="qualifications" jdbcType="VARCHAR"/>
|
||||
<result property="subjectMatter" column="subject_matter" jdbcType="VARCHAR"/>
|
||||
<result property="number" column="number" jdbcType="VARCHAR"/>
|
||||
<result property="amountMoney" column="amount_money" jdbcType="VARCHAR"/>
|
||||
<result property="paymentMethod" column="payment_method" jdbcType="VARCHAR"/>
|
||||
<result property="paymentTime" column="payment_time" jdbcType="VARCHAR"/>
|
||||
<result property="performancePeriod" column="performance_period" jdbcType="VARCHAR"/>
|
||||
<result property="placePerformance" column="place_performance" jdbcType="VARCHAR"/>
|
||||
<result property="liabilityBreach" column="liability_breach" jdbcType="VARCHAR"/>
|
||||
<result property="projectDetails" column="project_details" jdbcType="VARCHAR"/>
|
||||
<result property="signingDate" column="signing_date" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,evidence_id,part_a,
|
||||
part_b,part_c,qualifications,
|
||||
subject_matter,number,amount_money,
|
||||
payment_method,payment_time,performance_period,
|
||||
place_performance,liability_breach,project_details,
|
||||
signing_date,create_time,create_user_id,
|
||||
update_time,update_user_id
|
||||
</sql>
|
||||
</mapper>
|
@ -0,0 +1,28 @@
|
||||
<?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.AttributeYhlsMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.police.domain.AttributeYhls">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="evidenceId" column="evidence_id" jdbcType="VARCHAR"/>
|
||||
<result property="accountInformation" column="account_information" jdbcType="VARCHAR"/>
|
||||
<result property="otherAccountInformation" column="other_account_information" jdbcType="VARCHAR"/>
|
||||
<result property="amount" column="amount" jdbcType="VARCHAR"/>
|
||||
<result property="tradingTime" column="trading_time" jdbcType="VARCHAR"/>
|
||||
<result property="revenueExpenditureIdentification" column="revenue_expenditure_identification" jdbcType="VARCHAR"/>
|
||||
<result property="abstractInfo" column="abstract_info" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,evidence_id,account_information,
|
||||
other_account_information,amount,trading_time,
|
||||
revenue_expenditure_identification,abstract_info,create_time,
|
||||
create_user_id,update_time,update_user_id
|
||||
</sql>
|
||||
</mapper>
|
@ -0,0 +1,27 @@
|
||||
<?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.AttributeZfpzMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.police.domain.AttributeZfpz">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="evidenceId" column="evidence_id" jdbcType="VARCHAR"/>
|
||||
<result property="payerName" column="payer_name" jdbcType="VARCHAR"/>
|
||||
<result property="payeeName" column="payee_name" jdbcType="VARCHAR"/>
|
||||
<result property="paymentTime" column="payment_time" jdbcType="VARCHAR"/>
|
||||
<result property="amount" column="amount" jdbcType="VARCHAR"/>
|
||||
<result property="describeInfo" column="describe_info" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,evidence_id,payer_name,
|
||||
payee_name,payment_time,amount,
|
||||
describe_info,create_time,create_user_id,
|
||||
update_time,update_user_id
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue