ソースを参照

feat:模版配置-相关表do,mapper,xml文件定义

mozuwen 7 ヶ月 前
コミット
474423ee84

+ 8 - 0
service-base/src/main/java/com/simuwang/base/mapper/EmailTemplateApplicationRuleMapper.java

@@ -0,0 +1,8 @@
+package com.simuwang.base.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface EmailTemplateApplicationRuleMapper {
+
+}

+ 8 - 0
service-base/src/main/java/com/simuwang/base/mapper/EmailTemplateDataRuleMapper.java

@@ -0,0 +1,8 @@
+package com.simuwang.base.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface EmailTemplateDataRuleMapper {
+
+}

+ 8 - 0
service-base/src/main/java/com/simuwang/base/mapper/EmailTemplateInfoMapper.java

@@ -0,0 +1,8 @@
+package com.simuwang.base.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface EmailTemplateInfoMapper {
+
+}

+ 8 - 0
service-base/src/main/java/com/simuwang/base/mapper/EmailTemplateMappingMapper.java

@@ -0,0 +1,8 @@
+package com.simuwang.base.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface EmailTemplateMappingMapper {
+
+}

+ 73 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/EmailTemplateApplicationRuleDO.java

@@ -0,0 +1,73 @@
+package com.simuwang.base.pojo.dos;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+@TableName("email_template_data_rule")
+public class EmailTemplateApplicationRuleDO {
+    /**
+     * 主键Id
+     */
+    @TableId(value = "id")
+    private Integer id;
+    /**
+     * 模版id(email_template_info.id)
+     */
+    @TableId(value = "template_id")
+    private Integer templateId;
+    /**
+     * 字段类型:1-邮件标题,2-邮件正文,3-附件名称,4-表格内容
+     */
+    @TableId(value = "type")
+    private Integer type;
+    /**
+     * 表格行
+     */
+    @TableId(value = "row")
+    private Integer row;
+    /**
+     * 表格列
+     */
+    @TableId(value = "column")
+    private Integer column;
+    /**
+     * 包含关键字(多个以英文逗号隔开)
+     */
+    @TableId(value = "contain_keyword")
+    private String containKeyword;
+    /**
+     * 不包含关键字(多个以英文逗号隔开)
+     */
+    @TableId(value = "not_contain_keyword")
+    private String notContainKeyword;
+    /**
+     * 是否有效:0-无效,1-有效
+     */
+    @TableField(value = "isvalid")
+    private Integer isvalid;
+    /**
+     * 创建者Id
+     */
+    @TableField(value = "creatorid")
+    private Integer creatorId;
+    /**
+     * 创建时间
+     */
+    @TableField(value = "createtime")
+    private Date createTime;
+    /**
+     * 修改者Id
+     */
+    @TableField(value = "updaterid")
+    private Integer updaterId;
+    /**
+     * 更新时间
+     */
+    @TableField(value = "updatetime")
+    private Date updateTime;
+}

+ 68 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/EmailTemplateDataRuleDO.java

@@ -0,0 +1,68 @@
+package com.simuwang.base.pojo.dos;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+@TableName("email_template_data_rule")
+public class EmailTemplateDataRuleDO {
+    /**
+     * 主键Id
+     */
+    @TableId(value = "id")
+    private Integer id;
+    /**
+     * 模版id(email_template_info.id)
+     */
+    @TableId(value = "template_id")
+    private Integer templateId;
+    /**
+     * 字段名称:1-备案编码,2-基金名称,3-净值日期,4-单位净值,5-累计净值,6-资产份额,7-资产净值
+     */
+    @TableId(value = "field_name")
+    private String fieldName;
+    /**
+     * 表格行
+     */
+    @TableId(value = "row")
+    private Integer row;
+    /**
+     * 表格列
+     */
+    @TableId(value = "column")
+    private Integer column;
+    /**
+     * 提取规则
+     */
+    @TableId(value = "field_rule")
+    private Integer fieldRule;
+    /**
+     * 是否有效:0-无效,1-有效
+     */
+    @TableField(value = "isvalid")
+    private Integer isvalid;
+    /**
+     * 创建者Id
+     */
+    @TableField(value = "creatorid")
+    private Integer creatorId;
+    /**
+     * 创建时间
+     */
+    @TableField(value = "createtime")
+    private Date createTime;
+    /**
+     * 修改者Id
+     */
+    @TableField(value = "updaterid")
+    private Integer updaterId;
+    /**
+     * 更新时间
+     */
+    @TableField(value = "updatetime")
+    private Date updateTime;
+}

+ 63 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/EmailTemplateInfoDO.java

@@ -0,0 +1,63 @@
+package com.simuwang.base.pojo.dos;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+@TableName("email_template_data_rule")
+public class EmailTemplateInfoDO {
+    /**
+     * 主键Id
+     */
+    @TableId(value = "id")
+    private Integer id;
+    /**
+     * 模板名称
+     */
+    @TableId(value = "name")
+    private String name;
+    /**
+     * 模版方向:1-行,2-列
+     */
+    @TableId(value = "direction")
+    private Integer direction;
+    /**
+     * 模版备注
+     */
+    @TableId(value = "description")
+    private String description;
+    /**
+     * 状态:0-关闭,1-开启
+     */
+    @TableId(value = "status")
+    private Integer status;
+    /**
+     * 是否有效:0-无效,1-有效
+     */
+    @TableField(value = "isvalid")
+    private Integer isvalid;
+    /**
+     * 创建者Id
+     */
+    @TableField(value = "creatorid")
+    private Integer creatorId;
+    /**
+     * 创建时间
+     */
+    @TableField(value = "createtime")
+    private Date createTime;
+    /**
+     * 修改者Id
+     */
+    @TableField(value = "updaterid")
+    private Integer updaterId;
+    /**
+     * 更新时间
+     */
+    @TableField(value = "updatetime")
+    private Date updateTime;
+}

+ 73 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/EmailTemplateMappingDO.java

@@ -0,0 +1,73 @@
+package com.simuwang.base.pojo.dos;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+@TableName("email_template_data_rule")
+public class EmailTemplateMappingDO {
+    /**
+     * 主键Id
+     */
+    @TableId(value = "id")
+    private Integer id;
+    /**
+     * 模版id(email_template_info.id)
+     */
+    @TableId(value = "template_id")
+    private Integer templateId;
+    /**
+     * 标题名称
+     */
+    @TableId(value = "title")
+    private String title;
+    /**
+     * 邮箱地址
+     */
+    @TableId(value = "email")
+    private String email;
+    /**
+     * 公司名称
+     */
+    @TableId(value = "company_name")
+    private String companyName;
+    /**
+     * 备注
+     */
+    @TableId(value = "description")
+    private String description;
+    /**
+     * 状态:0-关闭,1-开启
+     */
+    @TableId(value = "status")
+    private Integer status;
+    /**
+     * 是否有效:0-无效,1-有效
+     */
+    @TableField(value = "isvalid")
+    private Integer isvalid;
+    /**
+     * 创建者Id
+     */
+    @TableField(value = "creatorid")
+    private Integer creatorId;
+    /**
+     * 创建时间
+     */
+    @TableField(value = "createtime")
+    private Date createTime;
+    /**
+     * 修改者Id
+     */
+    @TableField(value = "updaterid")
+    private Integer updaterId;
+    /**
+     * 更新时间
+     */
+    @TableField(value = "updatetime")
+    private Date updateTime;
+}

+ 20 - 0
service-base/src/main/resources/mapper/EmailTemplateApplicationRuleMapper.xml

@@ -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.simuwang.base.mapper.EmailTemplateApplicationRuleMapper">
+    <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.EmailTemplateApplicationRuleDO">
+        <id column="id" property="id"/>
+        <result column="template_id" property="templateId"/>
+        <result column="type" property="type"/>
+        <result column="row" property="row"/>
+        <result column="column" property="column"/>
+        <result column="contain_keyword" property="containKeyword"/>
+        <result column="not_contain_keyword" property="notContainKeyword"/>
+        <result column="isvalid" property="isvalid"/>
+        <result column="creatorid" property="creatorId"/>
+        <result column="createtime" property="createTime"/>
+        <result column="updaterid" property="updaterId"/>
+        <result column="updatetime" property="updateTime"/>
+    </resultMap>
+
+
+</mapper>

+ 19 - 0
service-base/src/main/resources/mapper/EmailTemplateDataRuleMapper.xml

@@ -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.simuwang.base.mapper.EmailTemplateDataRuleMapper">
+    <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.EmailTemplateDataRuleDO">
+        <id column="id" property="id"/>
+        <result column="template_id" property="templateId"/>
+        <result column="field_name" property="fieldName"/>
+        <result column="row" property="row"/>
+        <result column="column" property="column"/>
+        <result column="field_rule" property="fieldRule"/>
+        <result column="isvalid" property="isvalid"/>
+        <result column="creatorid" property="creatorId"/>
+        <result column="createtime" property="createTime"/>
+        <result column="updaterid" property="updaterId"/>
+        <result column="updatetime" property="updateTime"/>
+    </resultMap>
+
+
+</mapper>

+ 18 - 0
service-base/src/main/resources/mapper/EmailTemplateInfoMapper.xml

@@ -0,0 +1,18 @@
+<?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.simuwang.base.mapper.EmailTemplateInfoMapper">
+    <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.EmailTemplateInfoDO">
+        <id column="id" property="id"/>
+        <result column="name" property="name"/>
+        <result column="direction" property="direction"/>
+        <result column="description" property="description"/>
+        <result column="status" property="status"/>
+        <result column="isvalid" property="isvalid"/>
+        <result column="creatorid" property="creatorId"/>
+        <result column="createtime" property="createTime"/>
+        <result column="updaterid" property="updaterId"/>
+        <result column="updatetime" property="updateTime"/>
+    </resultMap>
+
+
+</mapper>

+ 20 - 0
service-base/src/main/resources/mapper/EmailTemplateMappingMapper.xml

@@ -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.simuwang.base.mapper.EmailTemplateMappingMapper">
+    <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.EmailTemplateMappingDO">
+        <id column="id" property="id"/>
+        <result column="template_id" property="templateId"/>
+        <result column="title" property="title"/>
+        <result column="email" property="email"/>
+        <result column="company_name" property="companyName"/>
+        <result column="description" property="description"/>
+        <result column="status" property="status"/>
+        <result column="isvalid" property="isvalid"/>
+        <result column="creatorid" property="creatorId"/>
+        <result column="createtime" property="createTime"/>
+        <result column="updaterid" property="updaterId"/>
+        <result column="updatetime" property="updateTime"/>
+    </resultMap>
+
+
+</mapper>