瀏覽代碼

修改为mybatis-plus

tianyun 2 年之前
父節點
當前提交
c640cddef8
共有 20 個文件被更改,包括 248 次插入3765 次删除
  1. 3 29
      springboot-main/pom.xml
  2. 1 2
      springboot-main/src/main/java/com/alvin/Application.java
  3. 36 0
      springboot-main/src/main/java/com/alvin/config/MybatisPlusConfig.java
  4. 0 46
      springboot-main/src/main/java/com/alvin/controller/AppController.java
  5. 53 0
      springboot-main/src/main/java/com/alvin/controller/TransformController.java
  6. 0 121
      springboot-main/src/main/java/com/alvin/dao/entity/DbKafka.java
  7. 0 403
      springboot-main/src/main/java/com/alvin/dao/entity/Similar.java
  8. 0 611
      springboot-main/src/main/java/com/alvin/dao/entity/example/DbKafkaExample.java
  9. 0 1232
      springboot-main/src/main/java/com/alvin/dao/entity/example/SimilarExample.java
  10. 0 50
      springboot-main/src/main/java/com/alvin/dao/mapper/DbKafkaMapper.java
  11. 0 164
      springboot-main/src/main/java/com/alvin/dao/mapper/SimilarMapper.java
  12. 85 0
      springboot-main/src/main/java/com/alvin/entity/Transform.java
  13. 18 0
      springboot-main/src/main/java/com/alvin/mapper/TransformMapper.java
  14. 16 0
      springboot-main/src/main/java/com/alvin/service/ITransformService.java
  15. 0 8
      springboot-main/src/main/java/com/alvin/service/impl/AppServiceImpl.java
  16. 24 0
      springboot-main/src/main/java/com/alvin/service/impl/TransformServiceImpl.java
  17. 7 16
      springboot-main/src/main/resources/application.yml
  18. 0 416
      springboot-main/src/main/resources/mapper/DbKafkaMapper.xml
  19. 0 667
      springboot-main/src/main/resources/mapper/SimilarMapper.xml
  20. 5 0
      springboot-main/src/main/resources/mapper/TransformMapper.xml

+ 3 - 29
springboot-main/pom.xml

@@ -23,31 +23,6 @@
                     <layout>ZIP</layout>
                 </configuration>
             </plugin>
-
-            <!--mybatis.generator maven插件-->
-            <plugin>
-                <groupId>org.mybatis.generator</groupId>
-                <artifactId>mybatis-generator-maven-plugin</artifactId>
-                <version>1.3.7</version>
-
-                <configuration>
-                    <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
-                    <overwrite>true</overwrite>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>mysql</groupId>
-                        <artifactId>mysql-connector-java</artifactId>
-                        <version>8.0.28</version>
-                    </dependency>
-                    <dependency>
-                        <groupId>com.itfsw</groupId>
-                        <artifactId>mybatis-generator-plugin</artifactId>
-                        <version>1.3.7</version>
-                    </dependency>
-                </dependencies>
-            </plugin>
         </plugins>
     </build>
     <properties>
@@ -119,16 +94,15 @@
 
         <!--mybatis-->
         <dependency>
-            <groupId>org.mybatis.spring.boot</groupId>
-            <artifactId>mybatis-spring-boot-starter</artifactId>
-            <version>2.2.2</version>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <version>3.5.1</version>
         </dependency>
         <dependency>
             <groupId>com.alibaba</groupId>
             <artifactId>druid-spring-boot-starter</artifactId>
             <version>1.2.8</version>
         </dependency>
-
         <!--mysql-->
         <dependency>
             <groupId>mysql</groupId>

+ 1 - 2
springboot-main/src/main/java/com/alvin/Application.java

@@ -8,7 +8,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 
 @Slf4j
 @SpringBootApplication
-@MapperScan("com.alvin.dao.mapper")
 public class Application implements CommandLineRunner {
     public static void main(String[] args) {
         SpringApplication.run(Application.class, args);
@@ -16,7 +15,7 @@ public class Application implements CommandLineRunner {
 
 
     @Override
-    public void run(String... args) throws Exception {
+    public void run(String... args) {
         log.info("启动成功");
     }
 

+ 36 - 0
springboot-main/src/main/java/com/alvin/config/MybatisPlusConfig.java

@@ -0,0 +1,36 @@
+package com.alvin.config;
+
+import com.baomidou.mybatisplus.annotation.DbType;
+import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
+import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
+import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
+import org.apache.ibatis.reflection.MetaObject;
+import org.springframework.context.annotation.Bean;
+import org.springframework.stereotype.Component;
+
+import java.util.Date;
+
+@Component
+public class MybatisPlusConfig implements MetaObjectHandler {
+
+    @Override
+    public void insertFill(MetaObject metaObject) {
+        this.setFieldValByName("createTime", new Date(), metaObject);
+        this.setFieldValByName("updateTime", new Date(), metaObject);
+    }
+
+    @Override
+    public void updateFill(MetaObject metaObject) {
+        this.setFieldValByName("updateTime", new Date(), metaObject);
+    }
+
+    /**
+     * 分页插件配置
+     */
+    @Bean
+    public MybatisPlusInterceptor mybatisPlusInterceptor() {
+        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
+        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
+        return interceptor;
+    }
+}

+ 0 - 46
springboot-main/src/main/java/com/alvin/controller/AppController.java

@@ -1,46 +0,0 @@
-package com.alvin.controller;
-
-import com.alvin.common.entity.PageResult;
-import com.alvin.common.entity.Result;
-import com.alvin.entity.User;
-import com.alvin.service.AppService;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.util.Collections;
-
-@Slf4j
-@RestController
-@RequestMapping("/user")
-public class AppController {
-
-    @Autowired
-    private AppService appService;
-
-    /**
-     * 找到一个
-     *
-     * @return {@link Result<User>}
-     */
-    @GetMapping("/findOne")
-    public User findOne() {
-        User user = new User();
-        user.setName("小米");
-        user.setAge(18);
-        log.info(user.toString());
-        return user;
-    }
-
-    @GetMapping("/queryPage")
-    public PageResult<User> queryPage() {
-        User user = new User();
-        user.setName("小米");
-        user.setAge(18);
-        PageResult<User> pageResult = new PageResult<>(1, 10, 100L, Collections.singletonList(user));
-        return pageResult;
-    }
-
-}

+ 53 - 0
springboot-main/src/main/java/com/alvin/controller/TransformController.java

@@ -0,0 +1,53 @@
+package com.alvin.controller;
+
+
+import com.alvin.entity.Transform;
+import com.alvin.service.ITransformService;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+/**
+* <p>
+    * 数据集数据转换 前端控制器
+    * </p>
+*
+* @author tianyun
+* @since 2022-08-23
+*/
+@RestController
+@RequestMapping("/transform")
+public class TransformController {
+
+    @Resource
+    private ITransformService transformService;
+
+    @PostMapping
+    public Boolean save(@RequestBody Transform transform) {
+    return transformService.saveOrUpdate(transform);
+    }
+
+    @DeleteMapping("/{id}")
+    public Boolean delete(@PathVariable Integer id) {
+    return transformService.removeById(id);
+    }
+
+    @GetMapping
+    public List<Transform> findAll() {
+    return transformService.list();
+    }
+
+    @GetMapping("/{id}")
+    public Transform findOne(@PathVariable Integer id) {
+    return transformService.getById(id);
+    }
+
+    @GetMapping("/page")
+    public Page<Transform> findPage(@RequestParam Integer pageNum,
+    @RequestParam Integer pageSize) {
+    return transformService.page(new Page<>(pageNum, pageSize));
+    }
+}

+ 0 - 121
springboot-main/src/main/java/com/alvin/dao/entity/DbKafka.java

@@ -1,121 +0,0 @@
-package com.alvin.dao.entity;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import lombok.Data;
-
-@Data
-public class DbKafka implements Serializable {
-    private Integer id;
-
-    private String name;
-
-    private String jsonStr;
-
-    private static final long serialVersionUID = 1L;
-
-    public static DbKafka.Builder builder() {
-        return new DbKafka.Builder();
-    }
-
-    public static class Builder {
-        private DbKafka obj;
-
-        public Builder() {
-            this.obj = new DbKafka();
-        }
-
-        public Builder id(Integer id) {
-            obj.setId(id);
-            return this;
-        }
-
-        public Builder name(String name) {
-            obj.setName(name);
-            return this;
-        }
-
-        public Builder jsonStr(String jsonStr) {
-            obj.setJsonStr(jsonStr);
-            return this;
-        }
-
-        public DbKafka build() {
-            return this.obj;
-        }
-    }
-
-    public enum Column {
-        id("id", "id", "INTEGER", false),
-        name("name", "name", "VARCHAR", false),
-        jsonStr("json_str", "jsonStr", "VARCHAR", false);
-
-        private static final String BEGINNING_DELIMITER = "\"";
-
-        private static final String ENDING_DELIMITER = "\"";
-
-        private final String column;
-
-        private final boolean isColumnNameDelimited;
-
-        private final String javaProperty;
-
-        private final String jdbcType;
-
-        public String value() {
-            return this.column;
-        }
-
-        public String getValue() {
-            return this.column;
-        }
-
-        public String getJavaProperty() {
-            return this.javaProperty;
-        }
-
-        public String getJdbcType() {
-            return this.jdbcType;
-        }
-
-        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
-            this.column = column;
-            this.javaProperty = javaProperty;
-            this.jdbcType = jdbcType;
-            this.isColumnNameDelimited = isColumnNameDelimited;
-        }
-
-        public String desc() {
-            return this.getEscapedColumnName() + " DESC";
-        }
-
-        public String asc() {
-            return this.getEscapedColumnName() + " ASC";
-        }
-
-        public static Column[] excludes(Column ... excludes) {
-            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
-            if (excludes != null && excludes.length > 0) {
-                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
-            }
-            return columns.toArray(new Column[]{});
-        }
-
-        public static Column[] all() {
-            return Column.values();
-        }
-
-        public String getEscapedColumnName() {
-            if (this.isColumnNameDelimited) {
-                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
-            } else {
-                return this.column;
-            }
-        }
-
-        public String getAliasedEscapedColumnName() {
-            return this.getEscapedColumnName();
-        }
-    }
-}

+ 0 - 403
springboot-main/src/main/java/com/alvin/dao/entity/Similar.java

@@ -1,403 +0,0 @@
-package com.alvin.dao.entity;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Date;
-import lombok.Data;
-
-@Data
-public class Similar implements Serializable {
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.id
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private Long id;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.file_name
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private String fileName;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.line_num
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private Integer lineNum;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.txt
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private String txt;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.similar_txt
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private String similarTxt;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.commit_time
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private Date commitTime;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column similar.txt_option
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private String txtOption;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public static Similar.Builder builder() {
-        return new Similar.Builder();
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public static class Builder {
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private Similar obj;
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder() {
-            this.obj = new Similar();
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.id
-         *
-         * @param id the value for similar.id
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder id(Long id) {
-            obj.setId(id);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.file_name
-         *
-         * @param fileName the value for similar.file_name
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder fileName(String fileName) {
-            obj.setFileName(fileName);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.line_num
-         *
-         * @param lineNum the value for similar.line_num
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder lineNum(Integer lineNum) {
-            obj.setLineNum(lineNum);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.txt
-         *
-         * @param txt the value for similar.txt
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder txt(String txt) {
-            obj.setTxt(txt);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.txt_option
-         *
-         * @param txtOption the value for similar.txt_option
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder txtOption(String txtOption) {
-            obj.setTxtOption(txtOption);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.similar_txt
-         *
-         * @param similarTxt the value for similar.similar_txt
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder similarTxt(String similarTxt) {
-            obj.setSimilarTxt(similarTxt);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column similar.commit_time
-         *
-         * @param commitTime the value for similar.commit_time
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Builder commitTime(Date commitTime) {
-            obj.setCommitTime(commitTime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Similar build() {
-            return this.obj;
-        }
-    }
-
-    /**
-     * This enum was generated by MyBatis Generator.
-     * This enum corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public enum Column {
-        id("id", "id", "BIGINT", false),
-        fileName("file_name", "fileName", "VARCHAR", false),
-        lineNum("line_num", "lineNum", "INTEGER", false),
-        txt("txt", "txt", "VARCHAR", false),
-        similarTxt("similar_txt", "similarTxt", "VARCHAR", false),
-        commitTime("commit_time", "commitTime", "TIMESTAMP", false),
-        txtOption("txt_option", "txtOption", "VARCHAR", false);
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private static final String BEGINNING_DELIMITER = "\"";
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private static final String ENDING_DELIMITER = "\"";
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private final String column;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private final boolean isColumnNameDelimited;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private final String javaProperty;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private final String jdbcType;
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String value() {
-            return this.column;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String getValue() {
-            return this.column;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String getJavaProperty() {
-            return this.javaProperty;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String getJdbcType() {
-            return this.jdbcType;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
-            this.column = column;
-            this.javaProperty = javaProperty;
-            this.jdbcType = jdbcType;
-            this.isColumnNameDelimited = isColumnNameDelimited;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String desc() {
-            return this.getEscapedColumnName() + " DESC";
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String asc() {
-            return this.getEscapedColumnName() + " ASC";
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public static Column[] excludes(Column ... excludes) {
-            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
-            if (excludes != null && excludes.length > 0) {
-                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
-            }
-            return columns.toArray(new Column[]{});
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public static Column[] all() {
-            return Column.values();
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String getEscapedColumnName() {
-            if (this.isColumnNameDelimited) {
-                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
-            } else {
-                return this.column;
-            }
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public String getAliasedEscapedColumnName() {
-            return this.getEscapedColumnName();
-        }
-    }
-}

+ 0 - 611
springboot-main/src/main/java/com/alvin/dao/entity/example/DbKafkaExample.java

@@ -1,611 +0,0 @@
-package com.alvin.dao.entity.example;
-
-import com.alvin.dao.entity.DbKafka;
-import java.util.ArrayList;
-import java.util.List;
-
-public class DbKafkaExample {
-    protected String orderByClause;
-
-    protected boolean distinct;
-
-    protected List<Criteria> oredCriteria;
-
-    protected Integer offset;
-
-    protected Integer rows;
-
-    public DbKafkaExample() {
-        oredCriteria = new ArrayList<Criteria>();
-    }
-
-    public void setOrderByClause(String orderByClause) {
-        this.orderByClause = orderByClause;
-    }
-
-    public String getOrderByClause() {
-        return orderByClause;
-    }
-
-    public void setDistinct(boolean distinct) {
-        this.distinct = distinct;
-    }
-
-    public boolean isDistinct() {
-        return distinct;
-    }
-
-    public List<Criteria> getOredCriteria() {
-        return oredCriteria;
-    }
-
-    public void or(Criteria criteria) {
-        oredCriteria.add(criteria);
-    }
-
-    public Criteria or() {
-        Criteria criteria = createCriteriaInternal();
-        oredCriteria.add(criteria);
-        return criteria;
-    }
-
-    public DbKafkaExample orderBy(String orderByClause) {
-        this.setOrderByClause(orderByClause);
-        return this;
-    }
-
-    public DbKafkaExample orderBy(String ... orderByClauses) {
-        StringBuffer sb = new StringBuffer();
-        for (int i = 0; i < orderByClauses.length; i++) {
-            sb.append(orderByClauses[i]);
-            if (i < orderByClauses.length - 1) {
-                sb.append(" , ");
-            }
-        }
-        this.setOrderByClause(sb.toString());
-        return this;
-    }
-
-    public Criteria createCriteria() {
-        Criteria criteria = createCriteriaInternal();
-        if (oredCriteria.size() == 0) {
-            oredCriteria.add(criteria);
-        }
-        return criteria;
-    }
-
-    protected Criteria createCriteriaInternal() {
-        Criteria criteria = new Criteria(this);
-        return criteria;
-    }
-
-    public void clear() {
-        oredCriteria.clear();
-        orderByClause = null;
-        distinct = false;
-        rows = null;
-        offset = null;
-    }
-
-    public void setOffset(Integer offset) {
-        this.offset = offset;
-    }
-
-    public Integer getOffset() {
-        return this.offset;
-    }
-
-    public void setRows(Integer rows) {
-        this.rows = rows;
-    }
-
-    public Integer getRows() {
-        return this.rows;
-    }
-
-    public DbKafkaExample limit(Integer rows) {
-        this.rows = rows;
-        return this;
-    }
-
-    public DbKafkaExample limit(Integer offset, Integer rows) {
-        this.offset = offset;
-        this.rows = rows;
-        return this;
-    }
-
-    public DbKafkaExample page(Integer page, Integer pageSize) {
-        this.offset = (page - 1) * pageSize;
-        this.rows = pageSize;
-        return this;
-    }
-
-    public static Criteria newAndCreateCriteria() {
-        DbKafkaExample example = new DbKafkaExample();
-        return example.createCriteria();
-    }
-
-    public DbKafkaExample when(boolean condition, IExampleWhen then) {
-        if (condition) {
-            then.example(this);
-        }
-        return this;
-    }
-
-    public DbKafkaExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
-        if (condition) {
-            then.example(this);
-        } else {
-            otherwise.example(this);
-        }
-        return this;
-    }
-
-    protected abstract static class GeneratedCriteria {
-        protected List<Criterion> criteria;
-
-        protected GeneratedCriteria() {
-            super();
-            criteria = new ArrayList<Criterion>();
-        }
-
-        public boolean isValid() {
-            return criteria.size() > 0;
-        }
-
-        public List<Criterion> getAllCriteria() {
-            return criteria;
-        }
-
-        public List<Criterion> getCriteria() {
-            return criteria;
-        }
-
-        protected void addCriterion(String condition) {
-            if (condition == null) {
-                throw new RuntimeException("Value for condition cannot be null");
-            }
-            criteria.add(new Criterion(condition));
-        }
-
-        protected void addCriterion(String condition, Object value, String property) {
-            if (value == null) {
-                throw new RuntimeException("Value for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value));
-        }
-
-        protected void addCriterion(String condition, Object value1, Object value2, String property) {
-            if (value1 == null || value2 == null) {
-                throw new RuntimeException("Between values for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value1, value2));
-        }
-
-        public Criteria andIdIsNull() {
-            addCriterion("id is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIsNotNull() {
-            addCriterion("id is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdEqualTo(Integer value) {
-            addCriterion("id =", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotEqualTo(Integer value) {
-            addCriterion("id <>", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThan(Integer value) {
-            addCriterion("id >", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
-            addCriterion("id >=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThan(Integer value) {
-            addCriterion("id <", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanOrEqualTo(Integer value) {
-            addCriterion("id <=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIn(List<Integer> values) {
-            addCriterion("id in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotIn(List<Integer> values) {
-            addCriterion("id not in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdBetween(Integer value1, Integer value2) {
-            addCriterion("id between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotBetween(Integer value1, Integer value2) {
-            addCriterion("id not between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameIsNull() {
-            addCriterion("name is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameIsNotNull() {
-            addCriterion("name is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameEqualTo(String value) {
-            addCriterion("name =", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameNotEqualTo(String value) {
-            addCriterion("name <>", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameNotEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameGreaterThan(String value) {
-            addCriterion("name >", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameGreaterThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameGreaterThanOrEqualTo(String value) {
-            addCriterion("name >=", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameGreaterThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameLessThan(String value) {
-            addCriterion("name <", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameLessThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameLessThanOrEqualTo(String value) {
-            addCriterion("name <=", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameLessThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("name <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andNameLike(String value) {
-            addCriterion("name like", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameNotLike(String value) {
-            addCriterion("name not like", value, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameIn(List<String> values) {
-            addCriterion("name in", values, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameNotIn(List<String> values) {
-            addCriterion("name not in", values, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameBetween(String value1, String value2) {
-            addCriterion("name between", value1, value2, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andNameNotBetween(String value1, String value2) {
-            addCriterion("name not between", value1, value2, "name");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrIsNull() {
-            addCriterion("json_str is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrIsNotNull() {
-            addCriterion("json_str is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrEqualTo(String value) {
-            addCriterion("json_str =", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrNotEqualTo(String value) {
-            addCriterion("json_str <>", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrNotEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrGreaterThan(String value) {
-            addCriterion("json_str >", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrGreaterThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrGreaterThanOrEqualTo(String value) {
-            addCriterion("json_str >=", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrGreaterThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrLessThan(String value) {
-            addCriterion("json_str <", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrLessThanColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrLessThanOrEqualTo(String value) {
-            addCriterion("json_str <=", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrLessThanOrEqualToColumn(DbKafka.Column column) {
-            addCriterion(new StringBuilder("json_str <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrLike(String value) {
-            addCriterion("json_str like", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrNotLike(String value) {
-            addCriterion("json_str not like", value, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrIn(List<String> values) {
-            addCriterion("json_str in", values, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrNotIn(List<String> values) {
-            addCriterion("json_str not in", values, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrBetween(String value1, String value2) {
-            addCriterion("json_str between", value1, value2, "jsonStr");
-            return (Criteria) this;
-        }
-
-        public Criteria andJsonStrNotBetween(String value1, String value2) {
-            addCriterion("json_str not between", value1, value2, "jsonStr");
-            return (Criteria) this;
-        }
-    }
-
-    public static class Criteria extends GeneratedCriteria {
-        private DbKafkaExample example;
-
-        protected Criteria(DbKafkaExample example) {
-            super();
-            this.example = example;
-        }
-
-        public DbKafkaExample example() {
-            return this.example;
-        }
-
-        @Deprecated
-        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
-            if (ifAdd) {
-                add.add(this);
-            }
-            return this;
-        }
-
-        public Criteria when(boolean condition, ICriteriaWhen then) {
-            if (condition) {
-                then.criteria(this);
-            }
-            return this;
-        }
-
-        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
-            if (condition) {
-                then.criteria(this);
-            } else {
-                otherwise.criteria(this);
-            }
-            return this;
-        }
-
-        @Deprecated
-        public interface ICriteriaAdd {
-            Criteria add(Criteria add);
-        }
-    }
-
-    public static class Criterion {
-        private String condition;
-
-        private Object value;
-
-        private Object secondValue;
-
-        private boolean noValue;
-
-        private boolean singleValue;
-
-        private boolean betweenValue;
-
-        private boolean listValue;
-
-        private String typeHandler;
-
-        public String getCondition() {
-            return condition;
-        }
-
-        public Object getValue() {
-            return value;
-        }
-
-        public Object getSecondValue() {
-            return secondValue;
-        }
-
-        public boolean isNoValue() {
-            return noValue;
-        }
-
-        public boolean isSingleValue() {
-            return singleValue;
-        }
-
-        public boolean isBetweenValue() {
-            return betweenValue;
-        }
-
-        public boolean isListValue() {
-            return listValue;
-        }
-
-        public String getTypeHandler() {
-            return typeHandler;
-        }
-
-        protected Criterion(String condition) {
-            super();
-            this.condition = condition;
-            this.typeHandler = null;
-            this.noValue = true;
-        }
-
-        protected Criterion(String condition, Object value, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.typeHandler = typeHandler;
-            if (value instanceof List<?>) {
-                this.listValue = true;
-            } else {
-                this.singleValue = true;
-            }
-        }
-
-        protected Criterion(String condition, Object value) {
-            this(condition, value, null);
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.secondValue = secondValue;
-            this.typeHandler = typeHandler;
-            this.betweenValue = true;
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue) {
-            this(condition, value, secondValue, null);
-        }
-    }
-
-    public interface ICriteriaWhen {
-        void criteria(Criteria criteria);
-    }
-
-    public interface IExampleWhen {
-        void example(com.alvin.dao.entity.example.DbKafkaExample example);
-    }
-}

+ 0 - 1232
springboot-main/src/main/java/com/alvin/dao/entity/example/SimilarExample.java

@@ -1,1232 +0,0 @@
-package com.alvin.dao.entity.example;
-
-import com.alvin.dao.entity.Similar;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-public class SimilarExample {
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected String orderByClause;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected boolean distinct;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected List<Criteria> oredCriteria;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected Integer offset;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected Integer rows;
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample() {
-        oredCriteria = new ArrayList<Criteria>();
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void setOrderByClause(String orderByClause) {
-        this.orderByClause = orderByClause;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public String getOrderByClause() {
-        return orderByClause;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void setDistinct(boolean distinct) {
-        this.distinct = distinct;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public boolean isDistinct() {
-        return distinct;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public List<Criteria> getOredCriteria() {
-        return oredCriteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void or(Criteria criteria) {
-        oredCriteria.add(criteria);
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public Criteria or() {
-        Criteria criteria = createCriteriaInternal();
-        oredCriteria.add(criteria);
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample orderBy(String orderByClause) {
-        this.setOrderByClause(orderByClause);
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample orderBy(String ... orderByClauses) {
-        StringBuffer sb = new StringBuffer();
-        for (int i = 0; i < orderByClauses.length; i++) {
-            sb.append(orderByClauses[i]);
-            if (i < orderByClauses.length - 1) {
-                sb.append(" , ");
-            }
-        }
-        this.setOrderByClause(sb.toString());
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public Criteria createCriteria() {
-        Criteria criteria = createCriteriaInternal();
-        if (oredCriteria.size() == 0) {
-            oredCriteria.add(criteria);
-        }
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected Criteria createCriteriaInternal() {
-        Criteria criteria = new Criteria(this);
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void clear() {
-        oredCriteria.clear();
-        orderByClause = null;
-        distinct = false;
-        rows = null;
-        offset = null;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void setOffset(Integer offset) {
-        this.offset = offset;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public Integer getOffset() {
-        return this.offset;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public void setRows(Integer rows) {
-        this.rows = rows;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public Integer getRows() {
-        return this.rows;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample limit(Integer rows) {
-        this.rows = rows;
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample limit(Integer offset, Integer rows) {
-        this.offset = offset;
-        this.rows = rows;
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample page(Integer page, Integer pageSize) {
-        this.offset = page * pageSize;
-        this.rows = pageSize;
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public static Criteria newAndCreateCriteria() {
-        SimilarExample example = new SimilarExample();
-        return example.createCriteria();
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample when(boolean condition, IExampleWhen then) {
-        if (condition) {
-            then.example(this);
-        }
-        return this;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public SimilarExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
-        if (condition) {
-            then.example(this);
-        } else {
-            otherwise.example(this);
-        }
-        return this;
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    protected abstract static class GeneratedCriteria {
-        protected List<Criterion> criteria;
-
-        protected GeneratedCriteria() {
-            super();
-            criteria = new ArrayList<Criterion>();
-        }
-
-        public boolean isValid() {
-            return criteria.size() > 0;
-        }
-
-        public List<Criterion> getAllCriteria() {
-            return criteria;
-        }
-
-        public List<Criterion> getCriteria() {
-            return criteria;
-        }
-
-        protected void addCriterion(String condition) {
-            if (condition == null) {
-                throw new RuntimeException("Value for condition cannot be null");
-            }
-            criteria.add(new Criterion(condition));
-        }
-
-        protected void addCriterion(String condition, Object value, String property) {
-            if (value == null) {
-                throw new RuntimeException("Value for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value));
-        }
-
-        protected void addCriterion(String condition, Object value1, Object value2, String property) {
-            if (value1 == null || value2 == null) {
-                throw new RuntimeException("Between values for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value1, value2));
-        }
-
-        public Criteria andIdIsNull() {
-            addCriterion("id is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIsNotNull() {
-            addCriterion("id is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdEqualTo(Long value) {
-            addCriterion("id =", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotEqualTo(Long value) {
-            addCriterion("id <>", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThan(Long value) {
-            addCriterion("id >", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanOrEqualTo(Long value) {
-            addCriterion("id >=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThan(Long value) {
-            addCriterion("id <", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanOrEqualTo(Long value) {
-            addCriterion("id <=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIn(List<Long> values) {
-            addCriterion("id in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotIn(List<Long> values) {
-            addCriterion("id not in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdBetween(Long value1, Long value2) {
-            addCriterion("id between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotBetween(Long value1, Long value2) {
-            addCriterion("id not between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameIsNull() {
-            addCriterion("file_name is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameIsNotNull() {
-            addCriterion("file_name is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameEqualTo(String value) {
-            addCriterion("file_name =", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameNotEqualTo(String value) {
-            addCriterion("file_name <>", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameGreaterThan(String value) {
-            addCriterion("file_name >", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameGreaterThanOrEqualTo(String value) {
-            addCriterion("file_name >=", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameLessThan(String value) {
-            addCriterion("file_name <", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameLessThanOrEqualTo(String value) {
-            addCriterion("file_name <=", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("file_name <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameLike(String value) {
-            addCriterion("file_name like", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameNotLike(String value) {
-            addCriterion("file_name not like", value, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameIn(List<String> values) {
-            addCriterion("file_name in", values, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameNotIn(List<String> values) {
-            addCriterion("file_name not in", values, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameBetween(String value1, String value2) {
-            addCriterion("file_name between", value1, value2, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andFileNameNotBetween(String value1, String value2) {
-            addCriterion("file_name not between", value1, value2, "fileName");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumIsNull() {
-            addCriterion("line_num is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumIsNotNull() {
-            addCriterion("line_num is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumEqualTo(Integer value) {
-            addCriterion("line_num =", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumNotEqualTo(Integer value) {
-            addCriterion("line_num <>", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumGreaterThan(Integer value) {
-            addCriterion("line_num >", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumGreaterThanOrEqualTo(Integer value) {
-            addCriterion("line_num >=", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumLessThan(Integer value) {
-            addCriterion("line_num <", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumLessThanOrEqualTo(Integer value) {
-            addCriterion("line_num <=", value, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("line_num <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumIn(List<Integer> values) {
-            addCriterion("line_num in", values, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumNotIn(List<Integer> values) {
-            addCriterion("line_num not in", values, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumBetween(Integer value1, Integer value2) {
-            addCriterion("line_num between", value1, value2, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andLineNumNotBetween(Integer value1, Integer value2) {
-            addCriterion("line_num not between", value1, value2, "lineNum");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtIsNull() {
-            addCriterion("txt is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtIsNotNull() {
-            addCriterion("txt is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtEqualTo(String value) {
-            addCriterion("txt =", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtNotEqualTo(String value) {
-            addCriterion("txt <>", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtGreaterThan(String value) {
-            addCriterion("txt >", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtGreaterThanOrEqualTo(String value) {
-            addCriterion("txt >=", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtLessThan(String value) {
-            addCriterion("txt <", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtLessThanOrEqualTo(String value) {
-            addCriterion("txt <=", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtLike(String value) {
-            addCriterion("txt like", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtNotLike(String value) {
-            addCriterion("txt not like", value, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtIn(List<String> values) {
-            addCriterion("txt in", values, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtNotIn(List<String> values) {
-            addCriterion("txt not in", values, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtBetween(String value1, String value2) {
-            addCriterion("txt between", value1, value2, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtNotBetween(String value1, String value2) {
-            addCriterion("txt not between", value1, value2, "txt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtIsNull() {
-            addCriterion("similar_txt is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtIsNotNull() {
-            addCriterion("similar_txt is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtEqualTo(String value) {
-            addCriterion("similar_txt =", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtNotEqualTo(String value) {
-            addCriterion("similar_txt <>", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtGreaterThan(String value) {
-            addCriterion("similar_txt >", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtGreaterThanOrEqualTo(String value) {
-            addCriterion("similar_txt >=", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtLessThan(String value) {
-            addCriterion("similar_txt <", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtLessThanOrEqualTo(String value) {
-            addCriterion("similar_txt <=", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("similar_txt <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtLike(String value) {
-            addCriterion("similar_txt like", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtNotLike(String value) {
-            addCriterion("similar_txt not like", value, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtIn(List<String> values) {
-            addCriterion("similar_txt in", values, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtNotIn(List<String> values) {
-            addCriterion("similar_txt not in", values, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtBetween(String value1, String value2) {
-            addCriterion("similar_txt between", value1, value2, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andSimilarTxtNotBetween(String value1, String value2) {
-            addCriterion("similar_txt not between", value1, value2, "similarTxt");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeIsNull() {
-            addCriterion("commit_time is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeIsNotNull() {
-            addCriterion("commit_time is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeEqualTo(Date value) {
-            addCriterion("commit_time =", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeNotEqualTo(Date value) {
-            addCriterion("commit_time <>", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeGreaterThan(Date value) {
-            addCriterion("commit_time >", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeGreaterThanOrEqualTo(Date value) {
-            addCriterion("commit_time >=", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeLessThan(Date value) {
-            addCriterion("commit_time <", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeLessThanOrEqualTo(Date value) {
-            addCriterion("commit_time <=", value, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("commit_time <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeIn(List<Date> values) {
-            addCriterion("commit_time in", values, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeNotIn(List<Date> values) {
-            addCriterion("commit_time not in", values, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeBetween(Date value1, Date value2) {
-            addCriterion("commit_time between", value1, value2, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andCommitTimeNotBetween(Date value1, Date value2) {
-            addCriterion("commit_time not between", value1, value2, "commitTime");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionIsNull() {
-            addCriterion("txt_option is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionIsNotNull() {
-            addCriterion("txt_option is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionEqualTo(String value) {
-            addCriterion("txt_option =", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option = ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionNotEqualTo(String value) {
-            addCriterion("txt_option <>", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionNotEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option <> ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionGreaterThan(String value) {
-            addCriterion("txt_option >", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionGreaterThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option > ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionGreaterThanOrEqualTo(String value) {
-            addCriterion("txt_option >=", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionGreaterThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option >= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionLessThan(String value) {
-            addCriterion("txt_option <", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionLessThanColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option < ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionLessThanOrEqualTo(String value) {
-            addCriterion("txt_option <=", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionLessThanOrEqualToColumn(Similar.Column column) {
-            addCriterion(new StringBuilder("txt_option <= ").append(column.getEscapedColumnName()).toString());
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionLike(String value) {
-            addCriterion("txt_option like", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionNotLike(String value) {
-            addCriterion("txt_option not like", value, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionIn(List<String> values) {
-            addCriterion("txt_option in", values, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionNotIn(List<String> values) {
-            addCriterion("txt_option not in", values, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionBetween(String value1, String value2) {
-            addCriterion("txt_option between", value1, value2, "txtOption");
-            return (Criteria) this;
-        }
-
-        public Criteria andTxtOptionNotBetween(String value1, String value2) {
-            addCriterion("txt_option not between", value1, value2, "txtOption");
-            return (Criteria) this;
-        }
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table similar
-     *
-     * @mbg.generated do_not_delete_during_merge Thu Aug 20 14:29:45 CST 2020
-     */
-    public static class Criteria extends GeneratedCriteria {
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        private SimilarExample example;
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        protected Criteria(SimilarExample example) {
-            super();
-            this.example = example;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public SimilarExample example() {
-            return this.example;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        @Deprecated
-        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
-            if (ifAdd) {
-                add.add(this);
-            }
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Criteria when(boolean condition, ICriteriaWhen then) {
-            if (condition) {
-                then.criteria(this);
-            }
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
-            if (condition) {
-                then.criteria(this);
-            } else {
-                otherwise.criteria(this);
-            }
-            return this;
-        }
-
-        @Deprecated
-        public interface ICriteriaAdd {
-            /**
-             * This method was generated by MyBatis Generator.
-             * This method corresponds to the database table similar
-             *
-             * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-             */
-            Criteria add(Criteria add);
-        }
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    public static class Criterion {
-        private String condition;
-
-        private Object value;
-
-        private Object secondValue;
-
-        private boolean noValue;
-
-        private boolean singleValue;
-
-        private boolean betweenValue;
-
-        private boolean listValue;
-
-        private String typeHandler;
-
-        public String getCondition() {
-            return condition;
-        }
-
-        public Object getValue() {
-            return value;
-        }
-
-        public Object getSecondValue() {
-            return secondValue;
-        }
-
-        public boolean isNoValue() {
-            return noValue;
-        }
-
-        public boolean isSingleValue() {
-            return singleValue;
-        }
-
-        public boolean isBetweenValue() {
-            return betweenValue;
-        }
-
-        public boolean isListValue() {
-            return listValue;
-        }
-
-        public String getTypeHandler() {
-            return typeHandler;
-        }
-
-        protected Criterion(String condition) {
-            super();
-            this.condition = condition;
-            this.typeHandler = null;
-            this.noValue = true;
-        }
-
-        protected Criterion(String condition, Object value, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.typeHandler = typeHandler;
-            if (value instanceof List<?>) {
-                this.listValue = true;
-            } else {
-                this.singleValue = true;
-            }
-        }
-
-        protected Criterion(String condition, Object value) {
-            this(condition, value, null);
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.secondValue = secondValue;
-            this.typeHandler = typeHandler;
-            this.betweenValue = true;
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue) {
-            this(condition, value, secondValue, null);
-        }
-    }
-
-    public interface ICriteriaWhen {
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        void criteria(Criteria criteria);
-    }
-
-    public interface IExampleWhen {
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table similar
-         *
-         * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-         */
-        void example(com.alvin.dao.entity.example.SimilarExample example);
-    }
-}

+ 0 - 50
springboot-main/src/main/java/com/alvin/dao/mapper/DbKafkaMapper.java

@@ -1,50 +0,0 @@
-package com.alvin.dao.mapper;
-
-import com.alvin.dao.entity.DbKafka;
-import com.alvin.dao.entity.example.DbKafkaExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface DbKafkaMapper {
-    long countByExample(DbKafkaExample example);
-
-    int deleteByExample(DbKafkaExample example);
-
-    int deleteByPrimaryKey(Integer id);
-
-    int insert(DbKafka record);
-
-    int insertSelective(@Param("record") DbKafka record, @Param("selective") DbKafka.Column ... selective);
-
-    DbKafka selectOneByExample(DbKafkaExample example);
-
-    DbKafka selectOneByExampleSelective(@Param("example") DbKafkaExample example, @Param("selective") DbKafka.Column ... selective);
-
-    List<DbKafka> selectByExampleSelective(@Param("example") DbKafkaExample example, @Param("selective") DbKafka.Column ... selective);
-
-    List<DbKafka> selectByExample(DbKafkaExample example);
-
-    DbKafka selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") DbKafka.Column ... selective);
-
-    DbKafka selectByPrimaryKey(Integer id);
-
-    int updateByExampleSelective(@Param("record") DbKafka record, @Param("example") DbKafkaExample example, @Param("selective") DbKafka.Column ... selective);
-
-    int updateByExample(@Param("record") DbKafka record, @Param("example") DbKafkaExample example);
-
-    int updateByPrimaryKeySelective(@Param("record") DbKafka record, @Param("selective") DbKafka.Column ... selective);
-
-    int updateByPrimaryKey(DbKafka record);
-
-    int batchInsert(@Param("list") List<DbKafka> list);
-
-    int batchInsertSelective(@Param("list") List<DbKafka> list, @Param("selective") DbKafka.Column ... selective);
-
-    int upsert(DbKafka record);
-
-    int upsertSelective(@Param("record") DbKafka record, @Param("selective") DbKafka.Column ... selective);
-}

+ 0 - 164
springboot-main/src/main/java/com/alvin/dao/mapper/SimilarMapper.java

@@ -1,164 +0,0 @@
-package com.alvin.dao.mapper;
-
-import com.alvin.dao.entity.Similar;
-import com.alvin.dao.entity.example.SimilarExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface SimilarMapper {
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    long countByExample(SimilarExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int deleteByExample(SimilarExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int deleteByPrimaryKey(Long id);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int insert(Similar record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int insertSelective(@Param("record") Similar record, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    Similar selectOneByExample(SimilarExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    Similar selectOneByExampleSelective(@Param("example") SimilarExample example, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    List<Similar> selectByExampleSelective(@Param("example") SimilarExample example, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    List<Similar> selectByExample(SimilarExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    Similar selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    Similar selectByPrimaryKey(Long id);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int updateByExampleSelective(@Param("record") Similar record, @Param("example") SimilarExample example, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int updateByExample(@Param("record") Similar record, @Param("example") SimilarExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int updateByPrimaryKeySelective(@Param("record") Similar record, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int updateByPrimaryKey(Similar record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int batchInsert(@Param("list") List<Similar> list);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int batchInsertSelective(@Param("list") List<Similar> list, @Param("selective") Similar.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int upsert(Similar record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table similar
-     *
-     * @mbg.generated Thu Aug 20 14:29:45 CST 2020
-     */
-    int upsertSelective(@Param("record") Similar record, @Param("selective") Similar.Column ... selective);
-}

+ 85 - 0
springboot-main/src/main/java/com/alvin/entity/Transform.java

@@ -0,0 +1,85 @@
+package com.alvin.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 数据集数据转换
+ * </p>
+ *
+ * @author tianyun
+ * @since 2022-08-23
+ */
+@Getter
+@Setter
+public class Transform implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 数据集编码
+     */
+    private String setCode;
+
+    /**
+     * 数据转换类型,DIC_NAME=TRANSFORM_TYPE; js,javaBean,字典转换
+     */
+    private String transformType;
+
+    /**
+     * 数据转换script,处理逻辑
+     */
+    private String transformScript;
+
+    /**
+     * 排序,执行数据转换顺序
+     */
+    private Integer orderNum;
+
+    /**
+     * 0--已禁用 1--已启用  DIC_NAME=ENABLE_FLAG
+     */
+    private Integer enableFlag;
+
+    /**
+     * 0--未删除 1--已删除 DIC_NAME=DELETE_FLAG
+     */
+    private Integer deleteFlag;
+
+    /**
+     * 创建人
+     */
+    private String createBy;
+
+    /**
+     * 创建时间
+     */
+    @TableField(fill = FieldFill.INSERT)
+    private Date createTime;
+
+    /**
+     * 更新人
+     */
+    private String updateBy;
+
+    /**
+     * 更新时间
+     */
+    @TableField(fill = FieldFill.INSERT_UPDATE)
+    private Date updateTime;
+
+    private Integer version;
+
+
+}

+ 18 - 0
springboot-main/src/main/java/com/alvin/mapper/TransformMapper.java

@@ -0,0 +1,18 @@
+package com.alvin.mapper;
+
+import com.alvin.entity.Transform;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * <p>
+ * 数据集数据转换 Mapper 接口
+ * </p>
+ *
+ * @author tianyun
+ * @since 2022-08-23
+ */
+@Mapper
+public interface TransformMapper extends BaseMapper<Transform> {
+
+}

+ 16 - 0
springboot-main/src/main/java/com/alvin/service/ITransformService.java

@@ -0,0 +1,16 @@
+package com.alvin.service;
+
+import com.alvin.entity.Transform;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 数据集数据转换 服务类
+ * </p>
+ *
+ * @author tianyun
+ * @since 2022-08-23
+ */
+public interface ITransformService extends IService<Transform> {
+
+}

+ 0 - 8
springboot-main/src/main/java/com/alvin/service/impl/AppServiceImpl.java

@@ -1,8 +0,0 @@
-package com.alvin.service.impl;
-
-import com.alvin.service.AppService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class AppServiceImpl implements AppService {
-}

+ 24 - 0
springboot-main/src/main/java/com/alvin/service/impl/TransformServiceImpl.java

@@ -0,0 +1,24 @@
+package com.alvin.service.impl;
+
+import com.alvin.entity.Transform;
+import com.alvin.mapper.TransformMapper;
+import com.alvin.service.ITransformService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+
+/**
+ * <p>
+ * 数据集数据转换 服务实现类
+ * </p>
+ *
+ * @author tianyun
+ * @since 2022-08-23
+ */
+@Service
+public class TransformServiceImpl extends ServiceImpl<TransformMapper, Transform> implements ITransformService {
+
+  @Resource
+  private TransformMapper transformMapper;
+}

+ 7 - 16
springboot-main/src/main/resources/application.yml

@@ -5,9 +5,9 @@ spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://ip-191:3306/biaozhu_medical_kg?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC
-    username: xxx
-    password: xxx
+    url: jdbc:mysql://localhost:3306/aj_report?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC
+    username: root
+    password: root
     #下面为连接池补充设置
     druid:
       initial-size: 5 # 初始化
@@ -26,8 +26,6 @@ spring:
       max-pool-prepared-statement-per-connection-size: -1
       # 统计、监控配置
       filters: stat,wall # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      # 合并执行的相同sql,避免因为参数不同而统计多条sql语句;开启慢sql记录
-      connect-properties: config.stat.mergeSql=true;config.stat.slowSqlMillis=500
       use-global-data-source-stat: true # 合并多个DruidDataSource的监控数据
       stat-view-servlet:
         enabled: true
@@ -38,14 +36,7 @@ spring:
         reset-enable: true
 
 
-mybatis:
-  type-aliases-package: com.alvin.dao.entity
-  mapper-locations: classpath:mapper/*Mapper.xml
-
-
-# 设置debug模式下打印mysql
-logging:
-  level:
-    com:
-      alvin:
-        mapper: debug
+# 打印 sql 语句
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

+ 0 - 416
springboot-main/src/main/resources/mapper/DbKafkaMapper.xml

@@ -1,416 +0,0 @@
-<?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.alvin.dao.mapper.DbKafkaMapper">
-  <resultMap id="BaseResultMap" type="com.alvin.dao.entity.DbKafka">
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="name" jdbcType="VARCHAR" property="name" />
-    <result column="json_str" jdbcType="VARCHAR" property="jsonStr" />
-  </resultMap>
-  <sql id="Example_Where_Clause">
-    <where>
-      <foreach collection="oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Update_By_Example_Where_Clause">
-    <where>
-      <foreach collection="example.oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Base_Column_List">
-    id, name, json_str
-  </sql>
-  <select id="selectByExample" parameterType="com.alvin.dao.entity.example.DbKafkaExample" resultMap="BaseResultMap">
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from db_kafka
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    <if test="rows != null">
-      <if test="offset != null">
-        limit ${offset}, ${rows}
-      </if>
-      <if test="offset == null">
-        limit ${rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    select
-    <if test="example != null and example.distinct">
-      distinct
-    </if>
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from db_kafka
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    <if test="example != null and example.rows != null">
-      <if test="example.offset != null">
-        limit ${example.offset}, ${example.rows}
-      </if>
-      <if test="example.offset == null">
-        limit ${example.rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
-    select 
-    <include refid="Base_Column_List" />
-    from db_kafka
-    where id = #{id,jdbcType=INTEGER}
-  </select>
-  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
-    select
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from db_kafka
-    where id = #{id,jdbcType=INTEGER}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
-    delete from db_kafka
-    where id = #{id,jdbcType=INTEGER}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.alvin.dao.entity.example.DbKafkaExample">
-    delete from db_kafka
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.alvin.dao.entity.DbKafka">
-    insert into db_kafka (id, name, json_str
-      )
-    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{jsonStr,jdbcType=VARCHAR}
-      )
-  </insert>
-  <insert id="insertSelective" parameterType="map">
-    insert into db_kafka
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            id,
-          </if>
-          <if test="record.name != null">
-            name,
-          </if>
-          <if test="record.jsonStr != null">
-            json_str,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            #{record.id,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.jsonStr != null">
-            #{record.jsonStr,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <select id="countByExample" parameterType="com.alvin.dao.entity.example.DbKafkaExample" resultType="java.lang.Long">
-    select count(*) from db_kafka
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    update db_kafka
-    SET
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.jsonStr != null">
-            json_str = #{record.jsonStr,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    update db_kafka
-    set id = #{record.id,jdbcType=INTEGER},
-      name = #{record.name,jdbcType=VARCHAR},
-      json_str = #{record.jsonStr,jdbcType=VARCHAR}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="map">
-    update db_kafka
-    SET
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.jsonStr != null">
-            json_str = #{record.jsonStr,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    where id = #{record.id,jdbcType=INTEGER}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.alvin.dao.entity.DbKafka">
-    update db_kafka
-    set name = #{name,jdbcType=VARCHAR},
-      json_str = #{jsonStr,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
-  <select id="selectOneByExample" parameterType="com.alvin.dao.entity.example.DbKafkaExample" resultMap="BaseResultMap">
-    select
-    <include refid="Base_Column_List" />
-    from db_kafka
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    limit 1
-  </select>
-  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    select
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from db_kafka
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    limit 1
-  </select>
-  <insert id="batchInsert" parameterType="map">
-    insert into db_kafka
-    (id, name, json_str)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.jsonStr,jdbcType=VARCHAR}
-        )
-    </foreach>
-  </insert>
-  <insert id="batchInsertSelective" parameterType="map">
-    insert into db_kafka (
-    <foreach collection="selective" item="column" separator=",">
-      ${column.escapedColumnName}
-    </foreach>
-    )
-    values
-    <foreach collection="list" item="item" separator=",">
-      (
-      <foreach collection="selective" item="column" separator=",">
-        <if test="'id'.toString() == column.value">
-          #{item.id,jdbcType=INTEGER}
-        </if>
-        <if test="'name'.toString() == column.value">
-          #{item.name,jdbcType=VARCHAR}
-        </if>
-        <if test="'json_str'.toString() == column.value">
-          #{item.jsonStr,jdbcType=VARCHAR}
-        </if>
-      </foreach>
-      )
-    </foreach>
-  </insert>
-  <insert id="upsertSelective" parameterType="map">
-    insert into db_kafka
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            id,
-          </if>
-          <if test="record.name != null">
-            name,
-          </if>
-          <if test="record.jsonStr != null">
-            json_str,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            #{record.id,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.jsonStr != null">
-            #{record.jsonStr,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    on duplicate key update 
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=INTEGER},
-          </if>
-          <if test="record.name != null">
-            name = #{record.name,jdbcType=VARCHAR},
-          </if>
-          <if test="record.jsonStr != null">
-            json_str = #{record.jsonStr,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <insert id="upsert" parameterType="com.alvin.dao.entity.DbKafka">
-    insert into db_kafka
-    (id, name, json_str)
-    values
-    (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{jsonStr,jdbcType=VARCHAR})
-    on duplicate key update 
-    id = #{id,jdbcType=INTEGER}, 
-    name = #{name,jdbcType=VARCHAR}, 
-    json_str = #{jsonStr,jdbcType=VARCHAR}
-  </insert>
-</mapper>

+ 0 - 667
springboot-main/src/main/resources/mapper/SimilarMapper.xml

@@ -1,667 +0,0 @@
-<?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.alvin.dao.mapper.SimilarMapper">
-  <resultMap id="BaseResultMap" type="com.alvin.dao.entity.Similar">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    <id column="id" jdbcType="BIGINT" property="id" />
-    <result column="file_name" jdbcType="VARCHAR" property="fileName" />
-    <result column="line_num" jdbcType="INTEGER" property="lineNum" />
-    <result column="txt" jdbcType="VARCHAR" property="txt" />
-    <result column="similar_txt" jdbcType="VARCHAR" property="similarTxt" />
-    <result column="commit_time" jdbcType="TIMESTAMP" property="commitTime" />
-    <result column="txt_option" jdbcType="VARCHAR" property="txtOption" />
-  </resultMap>
-  <sql id="Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    <where>
-      <foreach collection="oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Update_By_Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    <where>
-      <foreach collection="example.oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Base_Column_List">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    id, file_name, line_num, txt, similar_txt, commit_time, txt_option
-  </sql>
-  <select id="selectByExample" parameterType="com.alvin.dao.entity.example.SimilarExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from similar
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    <if test="rows != null">
-      <if test="offset != null">
-        limit ${offset}, ${rows}
-      </if>
-      <if test="offset == null">
-        limit ${rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select
-    <if test="example != null and example.distinct">
-      distinct
-    </if>
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from similar
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    <if test="example != null and example.rows != null">
-      <if test="example.offset != null">
-        limit ${example.offset}, ${example.rows}
-      </if>
-      <if test="example.offset == null">
-        limit ${example.rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from similar
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from similar
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    delete from similar
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.alvin.dao.entity.example.SimilarExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    delete from similar
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.alvin.dao.entity.Similar">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
-      SELECT LAST_INSERT_ID()
-    </selectKey>
-    insert into similar (file_name, line_num, txt, 
-      similar_txt, commit_time, txt_option
-      )
-    values (#{fileName,jdbcType=VARCHAR}, #{lineNum,jdbcType=INTEGER}, #{txt,jdbcType=VARCHAR}, 
-      #{similarTxt,jdbcType=VARCHAR}, #{commitTime,jdbcType=TIMESTAMP}, #{txtOption,jdbcType=VARCHAR}
-      )
-  </insert>
-  <insert id="insertSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    <selectKey keyProperty="record.id" order="AFTER" resultType="java.lang.Long">
-      SELECT LAST_INSERT_ID()
-    </selectKey>
-    insert into similar
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.fileName != null">
-            file_name,
-          </if>
-          <if test="record.lineNum != null">
-            line_num,
-          </if>
-          <if test="record.txt != null">
-            txt,
-          </if>
-          <if test="record.similarTxt != null">
-            similar_txt,
-          </if>
-          <if test="record.commitTime != null">
-            commit_time,
-          </if>
-          <if test="record.txtOption != null">
-            txt_option,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.fileName != null">
-            #{record.fileName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lineNum != null">
-            #{record.lineNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.txt != null">
-            #{record.txt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.similarTxt != null">
-            #{record.similarTxt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.commitTime != null">
-            #{record.commitTime,jdbcType=TIMESTAMP},
-          </if>
-          <if test="record.txtOption != null">
-            #{record.txtOption,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <select id="countByExample" parameterType="com.alvin.dao.entity.example.SimilarExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select count(*) from similar
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    update similar
-    SET
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.fileName != null">
-            file_name = #{record.fileName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lineNum != null">
-            line_num = #{record.lineNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.txt != null">
-            txt = #{record.txt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.similarTxt != null">
-            similar_txt = #{record.similarTxt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.commitTime != null">
-            commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
-          </if>
-          <if test="record.txtOption != null">
-            txt_option = #{record.txtOption,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    update similar
-    set id = #{record.id,jdbcType=BIGINT},
-      file_name = #{record.fileName,jdbcType=VARCHAR},
-      line_num = #{record.lineNum,jdbcType=INTEGER},
-      txt = #{record.txt,jdbcType=VARCHAR},
-      similar_txt = #{record.similarTxt,jdbcType=VARCHAR},
-      commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
-      txt_option = #{record.txtOption,jdbcType=VARCHAR}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    update similar
-    SET
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.fileName != null">
-            file_name = #{record.fileName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lineNum != null">
-            line_num = #{record.lineNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.txt != null">
-            txt = #{record.txt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.similarTxt != null">
-            similar_txt = #{record.similarTxt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.commitTime != null">
-            commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
-          </if>
-          <if test="record.txtOption != null">
-            txt_option = #{record.txtOption,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    where id = #{record.id,jdbcType=BIGINT}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.alvin.dao.entity.Similar">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    update similar
-    set file_name = #{fileName,jdbcType=VARCHAR},
-      line_num = #{lineNum,jdbcType=INTEGER},
-      txt = #{txt,jdbcType=VARCHAR},
-      similar_txt = #{similarTxt,jdbcType=VARCHAR},
-      commit_time = #{commitTime,jdbcType=TIMESTAMP},
-      txt_option = #{txtOption,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-  <select id="selectOneByExample" parameterType="com.alvin.dao.entity.example.SimilarExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from similar
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    limit 1
-  </select>
-  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    select
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from similar
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    limit 1
-  </select>
-  <insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    insert into similar
-    (file_name, line_num, txt, similar_txt, commit_time, txt_option)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.fileName,jdbcType=VARCHAR}, #{item.lineNum,jdbcType=INTEGER}, #{item.txt,jdbcType=VARCHAR}, 
-        #{item.similarTxt,jdbcType=VARCHAR}, #{item.commitTime,jdbcType=TIMESTAMP}, #{item.txtOption,jdbcType=VARCHAR}
-        )
-    </foreach>
-  </insert>
-  <insert id="batchInsertSelective" keyColumn="id" keyProperty="list.id" parameterType="map" useGeneratedKeys="true">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    insert into similar (
-    <foreach collection="selective" item="column" separator=",">
-      ${column.escapedColumnName}
-    </foreach>
-    )
-    values
-    <foreach collection="list" item="item" separator=",">
-      (
-      <foreach collection="selective" item="column" separator=",">
-        <if test="'file_name'.toString() == column.value">
-          #{item.fileName,jdbcType=VARCHAR}
-        </if>
-        <if test="'line_num'.toString() == column.value">
-          #{item.lineNum,jdbcType=INTEGER}
-        </if>
-        <if test="'txt'.toString() == column.value">
-          #{item.txt,jdbcType=VARCHAR}
-        </if>
-        <if test="'similar_txt'.toString() == column.value">
-          #{item.similarTxt,jdbcType=VARCHAR}
-        </if>
-        <if test="'commit_time'.toString() == column.value">
-          #{item.commitTime,jdbcType=TIMESTAMP}
-        </if>
-        <if test="'txt_option'.toString() == column.value">
-          #{item.txtOption,jdbcType=VARCHAR}
-        </if>
-      </foreach>
-      )
-    </foreach>
-  </insert>
-  <insert id="upsertSelective" keyColumn="id" keyProperty="record.id" parameterType="map" useGeneratedKeys="true">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    insert into similar
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            id,
-          </if>
-          <if test="record.fileName != null">
-            file_name,
-          </if>
-          <if test="record.lineNum != null">
-            line_num,
-          </if>
-          <if test="record.txt != null">
-            txt,
-          </if>
-          <if test="record.similarTxt != null">
-            similar_txt,
-          </if>
-          <if test="record.commitTime != null">
-            commit_time,
-          </if>
-          <if test="record.txtOption != null">
-            txt_option,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.fileName != null">
-            #{record.fileName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lineNum != null">
-            #{record.lineNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.txt != null">
-            #{record.txt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.similarTxt != null">
-            #{record.similarTxt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.commitTime != null">
-            #{record.commitTime,jdbcType=TIMESTAMP},
-          </if>
-          <if test="record.txtOption != null">
-            #{record.txtOption,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    on duplicate key update 
-    <choose>
-      <when test="selective != null and selective.length &gt; 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.fileName != null">
-            file_name = #{record.fileName,jdbcType=VARCHAR},
-          </if>
-          <if test="record.lineNum != null">
-            line_num = #{record.lineNum,jdbcType=INTEGER},
-          </if>
-          <if test="record.txt != null">
-            txt = #{record.txt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.similarTxt != null">
-            similar_txt = #{record.similarTxt,jdbcType=VARCHAR},
-          </if>
-          <if test="record.commitTime != null">
-            commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
-          </if>
-          <if test="record.txtOption != null">
-            txt_option = #{record.txtOption,jdbcType=VARCHAR},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <insert id="upsert" keyColumn="id" keyProperty="id" parameterType="com.alvin.dao.entity.Similar" useGeneratedKeys="true">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Aug 20 14:29:45 CST 2020.
-    -->
-    insert into similar
-    <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="id != null">
-        id,
-      </if>
-      file_name,
-      line_num,
-      txt,
-      similar_txt,
-      commit_time,
-      txt_option,
-    </trim>
-    values
-    <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="id != null">
-        #{id,jdbcType=BIGINT},
-      </if>
-      #{fileName,jdbcType=VARCHAR},
-      #{lineNum,jdbcType=INTEGER},
-      #{txt,jdbcType=VARCHAR},
-      #{similarTxt,jdbcType=VARCHAR},
-      #{commitTime,jdbcType=TIMESTAMP},
-      #{txtOption,jdbcType=VARCHAR},
-    </trim>
-    on duplicate key update 
-    <trim suffixOverrides=",">
-      <if test="id != null">
-        id = #{id,jdbcType=BIGINT},
-      </if>
-      file_name = #{fileName,jdbcType=VARCHAR},
-      line_num = #{lineNum,jdbcType=INTEGER},
-      txt = #{txt,jdbcType=VARCHAR},
-      similar_txt = #{similarTxt,jdbcType=VARCHAR},
-      commit_time = #{commitTime,jdbcType=TIMESTAMP},
-      txt_option = #{txtOption,jdbcType=VARCHAR},
-    </trim>
-  </insert>
-</mapper>

+ 5 - 0
springboot-main/src/main/resources/mapper/TransformMapper.xml

@@ -0,0 +1,5 @@
+<?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.alvin.mapper.TransformMapper">
+
+</mapper>