Commit b3efe042 authored by 赵建伟's avatar 赵建伟

add DQMP init codes

parent bf26f5f4
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-executor-samples</artifactId>
<version>2.1.0</version>
</parent>
<artifactId>DQMP</artifactId>
<packaging>jar</packaging>
<name>DQMP</name>
<description>Example executor project for spring boot.</description>
<properties>
<scala.version>2.11</scala.version>
<spark.version>2.3.0</spark.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<!-- (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 集成mysql驱动 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<!-- 集成mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<!-- 集成thymeleaf页面显示模板 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- 集成热部署插件 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<!-- 为了使用@Data等高级标签,特引入lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!-- 增加fastjson工具类 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.58</version>
</dependency>
<!--集成jpa 决定选择mybatis,此处暂时注掉 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- 集成邮件 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<!-- 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
<!-- quartz插件 -->
<dependency>
<groupId>org.opensymphony.quartz</groupId>
<artifactId>quartz-all</artifactId>
<version>1.6.1</version>
</dependency>
<!-- jsoup依赖 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.12.1</version>
</dependency>
<!-- dozer依赖 属性复制 -->
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>5.4.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- xxl-job依赖 -->
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<!-- spark依赖 -->
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version}</artifactId>
<version>${spark.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<artifactId>slf4j-simple</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<!-- spark_hive依赖 -->
<dependency>
<groupId>org.spark-project.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.1.spark2</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-shims</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- hadoop依赖 -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.6.0</version>
</dependency>
<!-- deequ依赖 -->
<!-- <dependency> <groupId>com.amazon.deequ</groupId> <artifactId>deequ</artifactId>
<version>1.0.2</version> </dependency> -->
<!--集成mybatis自动生成工具 -->
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
<!-- 由于xxl-job的springboot版本比较低,所以此处暂不支持监控组件的集成 -->
<!-- <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId>
<version>2.1.0</version> </dependency> -->
</dependencies>
<build>
<plugins>
<!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!--集成mybatis自动生成工具 -->
<!-- <plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<configurationFile>src/main/resources/generator.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin> -->
</plugins>
</build>
</project>
\ No newline at end of file
package com;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* 程序入口
*/
@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement
@MapperScan("com.gmei.data.dqmp.mapper")
public class DqmpApplication {
public static void main(String[] args) {
SpringApplication.run(DqmpApplication.class, args);
}
}
\ No newline at end of file
package com.gmei.data.dqmp.common;
public class Constants {
// ***************校验类型******************
// 唯一性校验
public static final String CHECK_UNIQUE = "unique_check";
// 非空性校验
public static final String CHECK_UNBLANK = "unblank_check";
// 参照性校验
public static final String CHECK_REFER = "refer_check";
// ***************监控指标类型******************
// 波动性监控-PV
public static final String MONITOR_PV = "PV";
// 波动性监控-UV
public static final String MONITOR_UV = "UV";
// ***************是否有效******************
// 有效
public static final Integer IS_VALID_ON = 1;
// 无效
public static final Integer IS_VALID_OFF = 0;
}
package com.gmei.data.dqmp.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.gmei.data.dqmp.dto.RuleTemplateDto;
import com.gmei.data.dqmp.service.RuleTemplateService;
import com.gmei.data.dqmp.vo.RuleTemplateVo;
@RestController
@RequestMapping(value = "/ruleTemplate")
public class RuleTemplateController {
@Autowired
private RuleTemplateService ruleTemplateService;
@ResponseBody
@RequestMapping(value = "/find", method = RequestMethod.POST)
public RuleTemplateVo findRuleTmpls(@RequestBody RuleTemplateVo ruleTemplateVo) {
List<RuleTemplateDto> findRuleTmpls = ruleTemplateService.findRuleTmpls(ruleTemplateVo.getType());
return new RuleTemplateVo(findRuleTmpls);
}
@ResponseBody
@RequestMapping(value = "/add", method = RequestMethod.POST)
public RuleTemplateVo addRuleTmpls(@RequestBody RuleTemplateVo ruleTemplateVo) {
Integer rs = ruleTemplateService.addRuleTmpl(ruleTemplateVo);
if(rs == 1) {
return new RuleTemplateVo();
}else {
return new RuleTemplateVo(-1,"add failed!");
}
}
}
//package com.gmei.data.dqmp.deequ;
//
//import com.amazon.deequ.VerificationSuite;
//import com.amazon.deequ.checks.Check;
//import com.amazon.deequ.checks.CheckLevel;
//import com.amazon.deequ.checks.CheckStatus;
//import com.amazon.deequ.constraints.ConstraintStatus;
//import org.apache.spark.sql.SparkSession;
//import org.hibernate.validator.internal.engine.groups.Sequence;
//
//public class DataUnitOperator {
// public static void main(String[] args) {
// SparkSession spark = SparkSession.builder().appName("Simple Application").getOrCreate();
// //spark.sparkContext().parallelize(new Sequence(sequence, groups), numSlices, evidence$1)
// }
//
// class Item{
// private Long id;
// private String productName;
// private String description;
// private String priority;
// private Long numViews;
//
// public Item(Long id, String productName, String description, String priority, Long numViews) {
// super();
// this.id = id;
// this.productName = productName;
// this.description = description;
// this.priority = priority;
// this.numViews = numViews;
// }
//
// }
//}
package com.gmei.data.dqmp.domain;
public class TblCheckMultipleSql {
private Integer id;
private String checkType;
private String checkDbName;
private String checkTbName;
private String checkColName;
private String referDbName;
private String referTbName;
private String referColName;
private Integer isValid;
private String checkTime;
private String createTime;
private String sqlContent;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCheckType() {
return checkType;
}
public void setCheckType(String checkType) {
this.checkType = checkType == null ? null : checkType.trim();
}
public String getCheckDbName() {
return checkDbName;
}
public void setCheckDbName(String checkDbName) {
this.checkDbName = checkDbName == null ? null : checkDbName.trim();
}
public String getCheckTbName() {
return checkTbName;
}
public void setCheckTbName(String checkTbName) {
this.checkTbName = checkTbName == null ? null : checkTbName.trim();
}
public String getCheckColName() {
return checkColName;
}
public void setCheckColName(String checkColName) {
this.checkColName = checkColName == null ? null : checkColName.trim();
}
public String getReferDbName() {
return referDbName;
}
public void setReferDbName(String referDbName) {
this.referDbName = referDbName == null ? null : referDbName.trim();
}
public String getReferTbName() {
return referTbName;
}
public void setReferTbName(String referTbName) {
this.referTbName = referTbName == null ? null : referTbName.trim();
}
public String getReferColName() {
return referColName;
}
public void setReferColName(String referColName) {
this.referColName = referColName == null ? null : referColName.trim();
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public String getCheckTime() {
return checkTime;
}
public void setCheckTime(String checkTime) {
this.checkTime = checkTime == null ? null : checkTime.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
public String getSqlContent() {
return sqlContent;
}
public void setSqlContent(String sqlContent) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblCheckMultipleSqlCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblCheckMultipleSqlCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andCheckTypeIsNull() {
addCriterion("check_type is null");
return (Criteria) this;
}
public Criteria andCheckTypeIsNotNull() {
addCriterion("check_type is not null");
return (Criteria) this;
}
public Criteria andCheckTypeEqualTo(String value) {
addCriterion("check_type =", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotEqualTo(String value) {
addCriterion("check_type <>", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeGreaterThan(String value) {
addCriterion("check_type >", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeGreaterThanOrEqualTo(String value) {
addCriterion("check_type >=", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLessThan(String value) {
addCriterion("check_type <", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLessThanOrEqualTo(String value) {
addCriterion("check_type <=", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLike(String value) {
addCriterion("check_type like", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotLike(String value) {
addCriterion("check_type not like", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeIn(List<String> values) {
addCriterion("check_type in", values, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotIn(List<String> values) {
addCriterion("check_type not in", values, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeBetween(String value1, String value2) {
addCriterion("check_type between", value1, value2, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotBetween(String value1, String value2) {
addCriterion("check_type not between", value1, value2, "checkType");
return (Criteria) this;
}
public Criteria andCheckDbNameIsNull() {
addCriterion("check_db_name is null");
return (Criteria) this;
}
public Criteria andCheckDbNameIsNotNull() {
addCriterion("check_db_name is not null");
return (Criteria) this;
}
public Criteria andCheckDbNameEqualTo(String value) {
addCriterion("check_db_name =", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotEqualTo(String value) {
addCriterion("check_db_name <>", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameGreaterThan(String value) {
addCriterion("check_db_name >", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameGreaterThanOrEqualTo(String value) {
addCriterion("check_db_name >=", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLessThan(String value) {
addCriterion("check_db_name <", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLessThanOrEqualTo(String value) {
addCriterion("check_db_name <=", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLike(String value) {
addCriterion("check_db_name like", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotLike(String value) {
addCriterion("check_db_name not like", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameIn(List<String> values) {
addCriterion("check_db_name in", values, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotIn(List<String> values) {
addCriterion("check_db_name not in", values, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameBetween(String value1, String value2) {
addCriterion("check_db_name between", value1, value2, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotBetween(String value1, String value2) {
addCriterion("check_db_name not between", value1, value2, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckTbNameIsNull() {
addCriterion("check_tb_name is null");
return (Criteria) this;
}
public Criteria andCheckTbNameIsNotNull() {
addCriterion("check_tb_name is not null");
return (Criteria) this;
}
public Criteria andCheckTbNameEqualTo(String value) {
addCriterion("check_tb_name =", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotEqualTo(String value) {
addCriterion("check_tb_name <>", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameGreaterThan(String value) {
addCriterion("check_tb_name >", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameGreaterThanOrEqualTo(String value) {
addCriterion("check_tb_name >=", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLessThan(String value) {
addCriterion("check_tb_name <", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLessThanOrEqualTo(String value) {
addCriterion("check_tb_name <=", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLike(String value) {
addCriterion("check_tb_name like", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotLike(String value) {
addCriterion("check_tb_name not like", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameIn(List<String> values) {
addCriterion("check_tb_name in", values, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotIn(List<String> values) {
addCriterion("check_tb_name not in", values, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameBetween(String value1, String value2) {
addCriterion("check_tb_name between", value1, value2, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotBetween(String value1, String value2) {
addCriterion("check_tb_name not between", value1, value2, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckColNameIsNull() {
addCriterion("check_col_name is null");
return (Criteria) this;
}
public Criteria andCheckColNameIsNotNull() {
addCriterion("check_col_name is not null");
return (Criteria) this;
}
public Criteria andCheckColNameEqualTo(String value) {
addCriterion("check_col_name =", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotEqualTo(String value) {
addCriterion("check_col_name <>", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameGreaterThan(String value) {
addCriterion("check_col_name >", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameGreaterThanOrEqualTo(String value) {
addCriterion("check_col_name >=", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLessThan(String value) {
addCriterion("check_col_name <", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLessThanOrEqualTo(String value) {
addCriterion("check_col_name <=", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLike(String value) {
addCriterion("check_col_name like", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotLike(String value) {
addCriterion("check_col_name not like", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameIn(List<String> values) {
addCriterion("check_col_name in", values, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotIn(List<String> values) {
addCriterion("check_col_name not in", values, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameBetween(String value1, String value2) {
addCriterion("check_col_name between", value1, value2, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotBetween(String value1, String value2) {
addCriterion("check_col_name not between", value1, value2, "checkColName");
return (Criteria) this;
}
public Criteria andReferDbNameIsNull() {
addCriterion("refer_db_name is null");
return (Criteria) this;
}
public Criteria andReferDbNameIsNotNull() {
addCriterion("refer_db_name is not null");
return (Criteria) this;
}
public Criteria andReferDbNameEqualTo(String value) {
addCriterion("refer_db_name =", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotEqualTo(String value) {
addCriterion("refer_db_name <>", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameGreaterThan(String value) {
addCriterion("refer_db_name >", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_db_name >=", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLessThan(String value) {
addCriterion("refer_db_name <", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLessThanOrEqualTo(String value) {
addCriterion("refer_db_name <=", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLike(String value) {
addCriterion("refer_db_name like", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotLike(String value) {
addCriterion("refer_db_name not like", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameIn(List<String> values) {
addCriterion("refer_db_name in", values, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotIn(List<String> values) {
addCriterion("refer_db_name not in", values, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameBetween(String value1, String value2) {
addCriterion("refer_db_name between", value1, value2, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotBetween(String value1, String value2) {
addCriterion("refer_db_name not between", value1, value2, "referDbName");
return (Criteria) this;
}
public Criteria andReferTbNameIsNull() {
addCriterion("refer_tb_name is null");
return (Criteria) this;
}
public Criteria andReferTbNameIsNotNull() {
addCriterion("refer_tb_name is not null");
return (Criteria) this;
}
public Criteria andReferTbNameEqualTo(String value) {
addCriterion("refer_tb_name =", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotEqualTo(String value) {
addCriterion("refer_tb_name <>", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameGreaterThan(String value) {
addCriterion("refer_tb_name >", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_tb_name >=", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLessThan(String value) {
addCriterion("refer_tb_name <", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLessThanOrEqualTo(String value) {
addCriterion("refer_tb_name <=", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLike(String value) {
addCriterion("refer_tb_name like", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotLike(String value) {
addCriterion("refer_tb_name not like", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameIn(List<String> values) {
addCriterion("refer_tb_name in", values, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotIn(List<String> values) {
addCriterion("refer_tb_name not in", values, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameBetween(String value1, String value2) {
addCriterion("refer_tb_name between", value1, value2, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotBetween(String value1, String value2) {
addCriterion("refer_tb_name not between", value1, value2, "referTbName");
return (Criteria) this;
}
public Criteria andReferColNameIsNull() {
addCriterion("refer_col_name is null");
return (Criteria) this;
}
public Criteria andReferColNameIsNotNull() {
addCriterion("refer_col_name is not null");
return (Criteria) this;
}
public Criteria andReferColNameEqualTo(String value) {
addCriterion("refer_col_name =", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotEqualTo(String value) {
addCriterion("refer_col_name <>", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameGreaterThan(String value) {
addCriterion("refer_col_name >", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_col_name >=", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLessThan(String value) {
addCriterion("refer_col_name <", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLessThanOrEqualTo(String value) {
addCriterion("refer_col_name <=", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLike(String value) {
addCriterion("refer_col_name like", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotLike(String value) {
addCriterion("refer_col_name not like", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameIn(List<String> values) {
addCriterion("refer_col_name in", values, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotIn(List<String> values) {
addCriterion("refer_col_name not in", values, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameBetween(String value1, String value2) {
addCriterion("refer_col_name between", value1, value2, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotBetween(String value1, String value2) {
addCriterion("refer_col_name not between", value1, value2, "referColName");
return (Criteria) this;
}
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Integer value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Integer value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Integer value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Integer value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThan(Integer value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Integer value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidIn(List<Integer> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Integer> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Integer value1, Integer value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Integer value1, Integer value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(String value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(String value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(String value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(String value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(String value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(String value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLike(String value) {
addCriterion("check_time like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotLike(String value) {
addCriterion("check_time not like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<String> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<String> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(String value1, String value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(String value1, String value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblCheckSingleSql {
private Integer id;
private String checkType;
private String dbName;
private String tbName;
private String colName;
private Integer isValid;
private String checkTime;
private String createTime;
private String sqlContent;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCheckType() {
return checkType;
}
public void setCheckType(String checkType) {
this.checkType = checkType == null ? null : checkType.trim();
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public String getCheckTime() {
return checkTime;
}
public void setCheckTime(String checkTime) {
this.checkTime = checkTime == null ? null : checkTime.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
public String getSqlContent() {
return sqlContent;
}
public void setSqlContent(String sqlContent) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblCheckSingleSqlCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblCheckSingleSqlCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andCheckTypeIsNull() {
addCriterion("check_type is null");
return (Criteria) this;
}
public Criteria andCheckTypeIsNotNull() {
addCriterion("check_type is not null");
return (Criteria) this;
}
public Criteria andCheckTypeEqualTo(String value) {
addCriterion("check_type =", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotEqualTo(String value) {
addCriterion("check_type <>", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeGreaterThan(String value) {
addCriterion("check_type >", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeGreaterThanOrEqualTo(String value) {
addCriterion("check_type >=", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLessThan(String value) {
addCriterion("check_type <", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLessThanOrEqualTo(String value) {
addCriterion("check_type <=", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeLike(String value) {
addCriterion("check_type like", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotLike(String value) {
addCriterion("check_type not like", value, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeIn(List<String> values) {
addCriterion("check_type in", values, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotIn(List<String> values) {
addCriterion("check_type not in", values, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeBetween(String value1, String value2) {
addCriterion("check_type between", value1, value2, "checkType");
return (Criteria) this;
}
public Criteria andCheckTypeNotBetween(String value1, String value2) {
addCriterion("check_type not between", value1, value2, "checkType");
return (Criteria) this;
}
public Criteria andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andColNameIsNull() {
addCriterion("col_name is null");
return (Criteria) this;
}
public Criteria andColNameIsNotNull() {
addCriterion("col_name is not null");
return (Criteria) this;
}
public Criteria andColNameEqualTo(String value) {
addCriterion("col_name =", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotEqualTo(String value) {
addCriterion("col_name <>", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThan(String value) {
addCriterion("col_name >", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThanOrEqualTo(String value) {
addCriterion("col_name >=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThan(String value) {
addCriterion("col_name <", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThanOrEqualTo(String value) {
addCriterion("col_name <=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLike(String value) {
addCriterion("col_name like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotLike(String value) {
addCriterion("col_name not like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameIn(List<String> values) {
addCriterion("col_name in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameNotIn(List<String> values) {
addCriterion("col_name not in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameBetween(String value1, String value2) {
addCriterion("col_name between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andColNameNotBetween(String value1, String value2) {
addCriterion("col_name not between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Integer value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Integer value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Integer value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Integer value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThan(Integer value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Integer value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidIn(List<Integer> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Integer> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Integer value1, Integer value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Integer value1, Integer value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(String value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(String value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(String value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(String value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(String value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(String value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLike(String value) {
addCriterion("check_time like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotLike(String value) {
addCriterion("check_time not like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<String> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<String> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(String value1, String value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(String value1, String value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblClientVersionInfo {
private Integer id;
private String clType;
private String clVersion;
private String versionTime;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getClType() {
return clType;
}
public void setClType(String clType) {
this.clType = clType == null ? null : clType.trim();
}
public String getClVersion() {
return clVersion;
}
public void setClVersion(String clVersion) {
this.clVersion = clVersion == null ? null : clVersion.trim();
}
public String getVersionTime() {
return versionTime;
}
public void setVersionTime(String versionTime) {
this.versionTime = versionTime == null ? null : versionTime.trim();
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblClientVersionInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblClientVersionInfoCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andClTypeIsNull() {
addCriterion("cl_type is null");
return (Criteria) this;
}
public Criteria andClTypeIsNotNull() {
addCriterion("cl_type is not null");
return (Criteria) this;
}
public Criteria andClTypeEqualTo(String value) {
addCriterion("cl_type =", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeNotEqualTo(String value) {
addCriterion("cl_type <>", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeGreaterThan(String value) {
addCriterion("cl_type >", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeGreaterThanOrEqualTo(String value) {
addCriterion("cl_type >=", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeLessThan(String value) {
addCriterion("cl_type <", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeLessThanOrEqualTo(String value) {
addCriterion("cl_type <=", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeLike(String value) {
addCriterion("cl_type like", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeNotLike(String value) {
addCriterion("cl_type not like", value, "clType");
return (Criteria) this;
}
public Criteria andClTypeIn(List<String> values) {
addCriterion("cl_type in", values, "clType");
return (Criteria) this;
}
public Criteria andClTypeNotIn(List<String> values) {
addCriterion("cl_type not in", values, "clType");
return (Criteria) this;
}
public Criteria andClTypeBetween(String value1, String value2) {
addCriterion("cl_type between", value1, value2, "clType");
return (Criteria) this;
}
public Criteria andClTypeNotBetween(String value1, String value2) {
addCriterion("cl_type not between", value1, value2, "clType");
return (Criteria) this;
}
public Criteria andClVersionIsNull() {
addCriterion("cl_version is null");
return (Criteria) this;
}
public Criteria andClVersionIsNotNull() {
addCriterion("cl_version is not null");
return (Criteria) this;
}
public Criteria andClVersionEqualTo(String value) {
addCriterion("cl_version =", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionNotEqualTo(String value) {
addCriterion("cl_version <>", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionGreaterThan(String value) {
addCriterion("cl_version >", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionGreaterThanOrEqualTo(String value) {
addCriterion("cl_version >=", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionLessThan(String value) {
addCriterion("cl_version <", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionLessThanOrEqualTo(String value) {
addCriterion("cl_version <=", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionLike(String value) {
addCriterion("cl_version like", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionNotLike(String value) {
addCriterion("cl_version not like", value, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionIn(List<String> values) {
addCriterion("cl_version in", values, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionNotIn(List<String> values) {
addCriterion("cl_version not in", values, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionBetween(String value1, String value2) {
addCriterion("cl_version between", value1, value2, "clVersion");
return (Criteria) this;
}
public Criteria andClVersionNotBetween(String value1, String value2) {
addCriterion("cl_version not between", value1, value2, "clVersion");
return (Criteria) this;
}
public Criteria andVersionTimeIsNull() {
addCriterion("version_time is null");
return (Criteria) this;
}
public Criteria andVersionTimeIsNotNull() {
addCriterion("version_time is not null");
return (Criteria) this;
}
public Criteria andVersionTimeEqualTo(String value) {
addCriterion("version_time =", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeNotEqualTo(String value) {
addCriterion("version_time <>", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeGreaterThan(String value) {
addCriterion("version_time >", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeGreaterThanOrEqualTo(String value) {
addCriterion("version_time >=", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeLessThan(String value) {
addCriterion("version_time <", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeLessThanOrEqualTo(String value) {
addCriterion("version_time <=", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeLike(String value) {
addCriterion("version_time like", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeNotLike(String value) {
addCriterion("version_time not like", value, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeIn(List<String> values) {
addCriterion("version_time in", values, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeNotIn(List<String> values) {
addCriterion("version_time not in", values, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeBetween(String value1, String value2) {
addCriterion("version_time between", value1, value2, "versionTime");
return (Criteria) this;
}
public Criteria andVersionTimeNotBetween(String value1, String value2) {
addCriterion("version_time not between", value1, value2, "versionTime");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblMonitorSpecialSql {
private Integer id;
private String dbName;
private String tbName;
private String timeColName;
private String startTime;
private String endTime;
private Integer isValid;
private String checkTime;
private String createTime;
private String sqlContent;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getTimeColName() {
return timeColName;
}
public void setTimeColName(String timeColName) {
this.timeColName = timeColName == null ? null : timeColName.trim();
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime == null ? null : startTime.trim();
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime == null ? null : endTime.trim();
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public String getCheckTime() {
return checkTime;
}
public void setCheckTime(String checkTime) {
this.checkTime = checkTime == null ? null : checkTime.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
public String getSqlContent() {
return sqlContent;
}
public void setSqlContent(String sqlContent) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblMonitorSpecialSqlCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblMonitorSpecialSqlCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTimeColNameIsNull() {
addCriterion("time_col_name is null");
return (Criteria) this;
}
public Criteria andTimeColNameIsNotNull() {
addCriterion("time_col_name is not null");
return (Criteria) this;
}
public Criteria andTimeColNameEqualTo(String value) {
addCriterion("time_col_name =", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotEqualTo(String value) {
addCriterion("time_col_name <>", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameGreaterThan(String value) {
addCriterion("time_col_name >", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameGreaterThanOrEqualTo(String value) {
addCriterion("time_col_name >=", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLessThan(String value) {
addCriterion("time_col_name <", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLessThanOrEqualTo(String value) {
addCriterion("time_col_name <=", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLike(String value) {
addCriterion("time_col_name like", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotLike(String value) {
addCriterion("time_col_name not like", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameIn(List<String> values) {
addCriterion("time_col_name in", values, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotIn(List<String> values) {
addCriterion("time_col_name not in", values, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameBetween(String value1, String value2) {
addCriterion("time_col_name between", value1, value2, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotBetween(String value1, String value2) {
addCriterion("time_col_name not between", value1, value2, "timeColName");
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(String value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(String value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(String value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(String value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(String value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(String value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLike(String value) {
addCriterion("start_time like", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotLike(String value) {
addCriterion("start_time not like", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<String> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<String> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(String value1, String value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(String value1, String value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(String value) {
addCriterion("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(String value) {
addCriterion("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(String value) {
addCriterion("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(String value) {
addCriterion("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(String value) {
addCriterion("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(String value) {
addCriterion("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLike(String value) {
addCriterion("end_time like", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotLike(String value) {
addCriterion("end_time not like", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<String> values) {
addCriterion("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<String> values) {
addCriterion("end_time not in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeBetween(String value1, String value2) {
addCriterion("end_time between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(String value1, String value2) {
addCriterion("end_time not between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Integer value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Integer value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Integer value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Integer value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThan(Integer value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Integer value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidIn(List<Integer> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Integer> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Integer value1, Integer value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Integer value1, Integer value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(String value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(String value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(String value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(String value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(String value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(String value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLike(String value) {
addCriterion("check_time like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotLike(String value) {
addCriterion("check_time not like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<String> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<String> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(String value1, String value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(String value1, String value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblMonitorVolatilitySql {
private Integer id;
private String indicatorType;
private String dbName;
private String tbName;
private String colName;
private Integer isValid;
private String checkTime;
private String createTime;
private String sqlContent;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType == null ? null : indicatorType.trim();
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public String getCheckTime() {
return checkTime;
}
public void setCheckTime(String checkTime) {
this.checkTime = checkTime == null ? null : checkTime.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
public String getSqlContent() {
return sqlContent;
}
public void setSqlContent(String sqlContent) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblMonitorVolatilitySqlCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblMonitorVolatilitySqlCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andIndicatorTypeIsNull() {
addCriterion("indicator_type is null");
return (Criteria) this;
}
public Criteria andIndicatorTypeIsNotNull() {
addCriterion("indicator_type is not null");
return (Criteria) this;
}
public Criteria andIndicatorTypeEqualTo(String value) {
addCriterion("indicator_type =", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotEqualTo(String value) {
addCriterion("indicator_type <>", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeGreaterThan(String value) {
addCriterion("indicator_type >", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeGreaterThanOrEqualTo(String value) {
addCriterion("indicator_type >=", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLessThan(String value) {
addCriterion("indicator_type <", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLessThanOrEqualTo(String value) {
addCriterion("indicator_type <=", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLike(String value) {
addCriterion("indicator_type like", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotLike(String value) {
addCriterion("indicator_type not like", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeIn(List<String> values) {
addCriterion("indicator_type in", values, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotIn(List<String> values) {
addCriterion("indicator_type not in", values, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeBetween(String value1, String value2) {
addCriterion("indicator_type between", value1, value2, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotBetween(String value1, String value2) {
addCriterion("indicator_type not between", value1, value2, "indicatorType");
return (Criteria) this;
}
public Criteria andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andColNameIsNull() {
addCriterion("col_name is null");
return (Criteria) this;
}
public Criteria andColNameIsNotNull() {
addCriterion("col_name is not null");
return (Criteria) this;
}
public Criteria andColNameEqualTo(String value) {
addCriterion("col_name =", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotEqualTo(String value) {
addCriterion("col_name <>", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThan(String value) {
addCriterion("col_name >", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThanOrEqualTo(String value) {
addCriterion("col_name >=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThan(String value) {
addCriterion("col_name <", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThanOrEqualTo(String value) {
addCriterion("col_name <=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLike(String value) {
addCriterion("col_name like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotLike(String value) {
addCriterion("col_name not like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameIn(List<String> values) {
addCriterion("col_name in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameNotIn(List<String> values) {
addCriterion("col_name not in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameBetween(String value1, String value2) {
addCriterion("col_name between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andColNameNotBetween(String value1, String value2) {
addCriterion("col_name not between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Integer value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Integer value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Integer value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Integer value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThan(Integer value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Integer value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
public Criteria andIsValidIn(List<Integer> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Integer> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Integer value1, Integer value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Integer value1, Integer value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(String value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(String value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(String value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(String value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(String value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(String value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLike(String value) {
addCriterion("check_time like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotLike(String value) {
addCriterion("check_time not like", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<String> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<String> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(String value1, String value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(String value1, String value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblResultCheckRefer {
private Integer id;
private String checkDbName;
private String checkTbName;
private String checkColName;
private String referDbName;
private String referTbName;
private String referColName;
private Long allNum;
private Long matchedNum;
private Double matchedRate;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCheckDbName() {
return checkDbName;
}
public void setCheckDbName(String checkDbName) {
this.checkDbName = checkDbName == null ? null : checkDbName.trim();
}
public String getCheckTbName() {
return checkTbName;
}
public void setCheckTbName(String checkTbName) {
this.checkTbName = checkTbName == null ? null : checkTbName.trim();
}
public String getCheckColName() {
return checkColName;
}
public void setCheckColName(String checkColName) {
this.checkColName = checkColName == null ? null : checkColName.trim();
}
public String getReferDbName() {
return referDbName;
}
public void setReferDbName(String referDbName) {
this.referDbName = referDbName == null ? null : referDbName.trim();
}
public String getReferTbName() {
return referTbName;
}
public void setReferTbName(String referTbName) {
this.referTbName = referTbName == null ? null : referTbName.trim();
}
public String getReferColName() {
return referColName;
}
public void setReferColName(String referColName) {
this.referColName = referColName == null ? null : referColName.trim();
}
public Long getAllNum() {
return allNum;
}
public void setAllNum(Long allNum) {
this.allNum = allNum;
}
public Long getMatchedNum() {
return matchedNum;
}
public void setMatchedNum(Long matchedNum) {
this.matchedNum = matchedNum;
}
public Double getMatchedRate() {
return matchedRate;
}
public void setMatchedRate(Double matchedRate) {
this.matchedRate = matchedRate;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblResultCheckReferCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblResultCheckReferCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andCheckDbNameIsNull() {
addCriterion("check_db_name is null");
return (Criteria) this;
}
public Criteria andCheckDbNameIsNotNull() {
addCriterion("check_db_name is not null");
return (Criteria) this;
}
public Criteria andCheckDbNameEqualTo(String value) {
addCriterion("check_db_name =", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotEqualTo(String value) {
addCriterion("check_db_name <>", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameGreaterThan(String value) {
addCriterion("check_db_name >", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameGreaterThanOrEqualTo(String value) {
addCriterion("check_db_name >=", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLessThan(String value) {
addCriterion("check_db_name <", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLessThanOrEqualTo(String value) {
addCriterion("check_db_name <=", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameLike(String value) {
addCriterion("check_db_name like", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotLike(String value) {
addCriterion("check_db_name not like", value, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameIn(List<String> values) {
addCriterion("check_db_name in", values, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotIn(List<String> values) {
addCriterion("check_db_name not in", values, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameBetween(String value1, String value2) {
addCriterion("check_db_name between", value1, value2, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckDbNameNotBetween(String value1, String value2) {
addCriterion("check_db_name not between", value1, value2, "checkDbName");
return (Criteria) this;
}
public Criteria andCheckTbNameIsNull() {
addCriterion("check_tb_name is null");
return (Criteria) this;
}
public Criteria andCheckTbNameIsNotNull() {
addCriterion("check_tb_name is not null");
return (Criteria) this;
}
public Criteria andCheckTbNameEqualTo(String value) {
addCriterion("check_tb_name =", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotEqualTo(String value) {
addCriterion("check_tb_name <>", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameGreaterThan(String value) {
addCriterion("check_tb_name >", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameGreaterThanOrEqualTo(String value) {
addCriterion("check_tb_name >=", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLessThan(String value) {
addCriterion("check_tb_name <", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLessThanOrEqualTo(String value) {
addCriterion("check_tb_name <=", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameLike(String value) {
addCriterion("check_tb_name like", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotLike(String value) {
addCriterion("check_tb_name not like", value, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameIn(List<String> values) {
addCriterion("check_tb_name in", values, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotIn(List<String> values) {
addCriterion("check_tb_name not in", values, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameBetween(String value1, String value2) {
addCriterion("check_tb_name between", value1, value2, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckTbNameNotBetween(String value1, String value2) {
addCriterion("check_tb_name not between", value1, value2, "checkTbName");
return (Criteria) this;
}
public Criteria andCheckColNameIsNull() {
addCriterion("check_col_name is null");
return (Criteria) this;
}
public Criteria andCheckColNameIsNotNull() {
addCriterion("check_col_name is not null");
return (Criteria) this;
}
public Criteria andCheckColNameEqualTo(String value) {
addCriterion("check_col_name =", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotEqualTo(String value) {
addCriterion("check_col_name <>", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameGreaterThan(String value) {
addCriterion("check_col_name >", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameGreaterThanOrEqualTo(String value) {
addCriterion("check_col_name >=", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLessThan(String value) {
addCriterion("check_col_name <", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLessThanOrEqualTo(String value) {
addCriterion("check_col_name <=", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameLike(String value) {
addCriterion("check_col_name like", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotLike(String value) {
addCriterion("check_col_name not like", value, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameIn(List<String> values) {
addCriterion("check_col_name in", values, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotIn(List<String> values) {
addCriterion("check_col_name not in", values, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameBetween(String value1, String value2) {
addCriterion("check_col_name between", value1, value2, "checkColName");
return (Criteria) this;
}
public Criteria andCheckColNameNotBetween(String value1, String value2) {
addCriterion("check_col_name not between", value1, value2, "checkColName");
return (Criteria) this;
}
public Criteria andReferDbNameIsNull() {
addCriterion("refer_db_name is null");
return (Criteria) this;
}
public Criteria andReferDbNameIsNotNull() {
addCriterion("refer_db_name is not null");
return (Criteria) this;
}
public Criteria andReferDbNameEqualTo(String value) {
addCriterion("refer_db_name =", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotEqualTo(String value) {
addCriterion("refer_db_name <>", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameGreaterThan(String value) {
addCriterion("refer_db_name >", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_db_name >=", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLessThan(String value) {
addCriterion("refer_db_name <", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLessThanOrEqualTo(String value) {
addCriterion("refer_db_name <=", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameLike(String value) {
addCriterion("refer_db_name like", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotLike(String value) {
addCriterion("refer_db_name not like", value, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameIn(List<String> values) {
addCriterion("refer_db_name in", values, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotIn(List<String> values) {
addCriterion("refer_db_name not in", values, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameBetween(String value1, String value2) {
addCriterion("refer_db_name between", value1, value2, "referDbName");
return (Criteria) this;
}
public Criteria andReferDbNameNotBetween(String value1, String value2) {
addCriterion("refer_db_name not between", value1, value2, "referDbName");
return (Criteria) this;
}
public Criteria andReferTbNameIsNull() {
addCriterion("refer_tb_name is null");
return (Criteria) this;
}
public Criteria andReferTbNameIsNotNull() {
addCriterion("refer_tb_name is not null");
return (Criteria) this;
}
public Criteria andReferTbNameEqualTo(String value) {
addCriterion("refer_tb_name =", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotEqualTo(String value) {
addCriterion("refer_tb_name <>", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameGreaterThan(String value) {
addCriterion("refer_tb_name >", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_tb_name >=", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLessThan(String value) {
addCriterion("refer_tb_name <", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLessThanOrEqualTo(String value) {
addCriterion("refer_tb_name <=", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameLike(String value) {
addCriterion("refer_tb_name like", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotLike(String value) {
addCriterion("refer_tb_name not like", value, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameIn(List<String> values) {
addCriterion("refer_tb_name in", values, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotIn(List<String> values) {
addCriterion("refer_tb_name not in", values, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameBetween(String value1, String value2) {
addCriterion("refer_tb_name between", value1, value2, "referTbName");
return (Criteria) this;
}
public Criteria andReferTbNameNotBetween(String value1, String value2) {
addCriterion("refer_tb_name not between", value1, value2, "referTbName");
return (Criteria) this;
}
public Criteria andReferColNameIsNull() {
addCriterion("refer_col_name is null");
return (Criteria) this;
}
public Criteria andReferColNameIsNotNull() {
addCriterion("refer_col_name is not null");
return (Criteria) this;
}
public Criteria andReferColNameEqualTo(String value) {
addCriterion("refer_col_name =", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotEqualTo(String value) {
addCriterion("refer_col_name <>", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameGreaterThan(String value) {
addCriterion("refer_col_name >", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameGreaterThanOrEqualTo(String value) {
addCriterion("refer_col_name >=", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLessThan(String value) {
addCriterion("refer_col_name <", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLessThanOrEqualTo(String value) {
addCriterion("refer_col_name <=", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameLike(String value) {
addCriterion("refer_col_name like", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotLike(String value) {
addCriterion("refer_col_name not like", value, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameIn(List<String> values) {
addCriterion("refer_col_name in", values, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotIn(List<String> values) {
addCriterion("refer_col_name not in", values, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameBetween(String value1, String value2) {
addCriterion("refer_col_name between", value1, value2, "referColName");
return (Criteria) this;
}
public Criteria andReferColNameNotBetween(String value1, String value2) {
addCriterion("refer_col_name not between", value1, value2, "referColName");
return (Criteria) this;
}
public Criteria andAllNumIsNull() {
addCriterion("all_num is null");
return (Criteria) this;
}
public Criteria andAllNumIsNotNull() {
addCriterion("all_num is not null");
return (Criteria) this;
}
public Criteria andAllNumEqualTo(Long value) {
addCriterion("all_num =", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotEqualTo(Long value) {
addCriterion("all_num <>", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThan(Long value) {
addCriterion("all_num >", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThanOrEqualTo(Long value) {
addCriterion("all_num >=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThan(Long value) {
addCriterion("all_num <", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThanOrEqualTo(Long value) {
addCriterion("all_num <=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumIn(List<Long> values) {
addCriterion("all_num in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotIn(List<Long> values) {
addCriterion("all_num not in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumBetween(Long value1, Long value2) {
addCriterion("all_num between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotBetween(Long value1, Long value2) {
addCriterion("all_num not between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andMatchedNumIsNull() {
addCriterion("matched_num is null");
return (Criteria) this;
}
public Criteria andMatchedNumIsNotNull() {
addCriterion("matched_num is not null");
return (Criteria) this;
}
public Criteria andMatchedNumEqualTo(Long value) {
addCriterion("matched_num =", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumNotEqualTo(Long value) {
addCriterion("matched_num <>", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumGreaterThan(Long value) {
addCriterion("matched_num >", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumGreaterThanOrEqualTo(Long value) {
addCriterion("matched_num >=", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumLessThan(Long value) {
addCriterion("matched_num <", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumLessThanOrEqualTo(Long value) {
addCriterion("matched_num <=", value, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumIn(List<Long> values) {
addCriterion("matched_num in", values, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumNotIn(List<Long> values) {
addCriterion("matched_num not in", values, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumBetween(Long value1, Long value2) {
addCriterion("matched_num between", value1, value2, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedNumNotBetween(Long value1, Long value2) {
addCriterion("matched_num not between", value1, value2, "matchedNum");
return (Criteria) this;
}
public Criteria andMatchedRateIsNull() {
addCriterion("matched_rate is null");
return (Criteria) this;
}
public Criteria andMatchedRateIsNotNull() {
addCriterion("matched_rate is not null");
return (Criteria) this;
}
public Criteria andMatchedRateEqualTo(Double value) {
addCriterion("matched_rate =", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateNotEqualTo(Double value) {
addCriterion("matched_rate <>", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateGreaterThan(Double value) {
addCriterion("matched_rate >", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateGreaterThanOrEqualTo(Double value) {
addCriterion("matched_rate >=", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateLessThan(Double value) {
addCriterion("matched_rate <", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateLessThanOrEqualTo(Double value) {
addCriterion("matched_rate <=", value, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateIn(List<Double> values) {
addCriterion("matched_rate in", values, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateNotIn(List<Double> values) {
addCriterion("matched_rate not in", values, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateBetween(Double value1, Double value2) {
addCriterion("matched_rate between", value1, value2, "matchedRate");
return (Criteria) this;
}
public Criteria andMatchedRateNotBetween(Double value1, Double value2) {
addCriterion("matched_rate not between", value1, value2, "matchedRate");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblResultCheckUnblank {
private Integer id;
private String dbName;
private String tbName;
private String colName;
private Long allNum;
private Long unblankNum;
private Double unblankRate;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public Long getAllNum() {
return allNum;
}
public void setAllNum(Long allNum) {
this.allNum = allNum;
}
public Long getUnblankNum() {
return unblankNum;
}
public void setUnblankNum(Long unblankNum) {
this.unblankNum = unblankNum;
}
public Double getUnblankRate() {
return unblankRate;
}
public void setUnblankRate(Double unblankRate) {
this.unblankRate = unblankRate;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblResultCheckUnblankCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblResultCheckUnblankCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andColNameIsNull() {
addCriterion("col_name is null");
return (Criteria) this;
}
public Criteria andColNameIsNotNull() {
addCriterion("col_name is not null");
return (Criteria) this;
}
public Criteria andColNameEqualTo(String value) {
addCriterion("col_name =", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotEqualTo(String value) {
addCriterion("col_name <>", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThan(String value) {
addCriterion("col_name >", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThanOrEqualTo(String value) {
addCriterion("col_name >=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThan(String value) {
addCriterion("col_name <", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThanOrEqualTo(String value) {
addCriterion("col_name <=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLike(String value) {
addCriterion("col_name like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotLike(String value) {
addCriterion("col_name not like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameIn(List<String> values) {
addCriterion("col_name in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameNotIn(List<String> values) {
addCriterion("col_name not in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameBetween(String value1, String value2) {
addCriterion("col_name between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andColNameNotBetween(String value1, String value2) {
addCriterion("col_name not between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andAllNumIsNull() {
addCriterion("all_num is null");
return (Criteria) this;
}
public Criteria andAllNumIsNotNull() {
addCriterion("all_num is not null");
return (Criteria) this;
}
public Criteria andAllNumEqualTo(Long value) {
addCriterion("all_num =", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotEqualTo(Long value) {
addCriterion("all_num <>", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThan(Long value) {
addCriterion("all_num >", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThanOrEqualTo(Long value) {
addCriterion("all_num >=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThan(Long value) {
addCriterion("all_num <", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThanOrEqualTo(Long value) {
addCriterion("all_num <=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumIn(List<Long> values) {
addCriterion("all_num in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotIn(List<Long> values) {
addCriterion("all_num not in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumBetween(Long value1, Long value2) {
addCriterion("all_num between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotBetween(Long value1, Long value2) {
addCriterion("all_num not between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andUnblankNumIsNull() {
addCriterion("unblank_num is null");
return (Criteria) this;
}
public Criteria andUnblankNumIsNotNull() {
addCriterion("unblank_num is not null");
return (Criteria) this;
}
public Criteria andUnblankNumEqualTo(Long value) {
addCriterion("unblank_num =", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumNotEqualTo(Long value) {
addCriterion("unblank_num <>", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumGreaterThan(Long value) {
addCriterion("unblank_num >", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumGreaterThanOrEqualTo(Long value) {
addCriterion("unblank_num >=", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumLessThan(Long value) {
addCriterion("unblank_num <", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumLessThanOrEqualTo(Long value) {
addCriterion("unblank_num <=", value, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumIn(List<Long> values) {
addCriterion("unblank_num in", values, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumNotIn(List<Long> values) {
addCriterion("unblank_num not in", values, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumBetween(Long value1, Long value2) {
addCriterion("unblank_num between", value1, value2, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankNumNotBetween(Long value1, Long value2) {
addCriterion("unblank_num not between", value1, value2, "unblankNum");
return (Criteria) this;
}
public Criteria andUnblankRateIsNull() {
addCriterion("unblank_rate is null");
return (Criteria) this;
}
public Criteria andUnblankRateIsNotNull() {
addCriterion("unblank_rate is not null");
return (Criteria) this;
}
public Criteria andUnblankRateEqualTo(Double value) {
addCriterion("unblank_rate =", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateNotEqualTo(Double value) {
addCriterion("unblank_rate <>", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateGreaterThan(Double value) {
addCriterion("unblank_rate >", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateGreaterThanOrEqualTo(Double value) {
addCriterion("unblank_rate >=", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateLessThan(Double value) {
addCriterion("unblank_rate <", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateLessThanOrEqualTo(Double value) {
addCriterion("unblank_rate <=", value, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateIn(List<Double> values) {
addCriterion("unblank_rate in", values, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateNotIn(List<Double> values) {
addCriterion("unblank_rate not in", values, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateBetween(Double value1, Double value2) {
addCriterion("unblank_rate between", value1, value2, "unblankRate");
return (Criteria) this;
}
public Criteria andUnblankRateNotBetween(Double value1, Double value2) {
addCriterion("unblank_rate not between", value1, value2, "unblankRate");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblResultCheckUnique {
private Integer id;
private String dbName;
private String tbName;
private String colName;
private Long allNum;
private Long uniqueNum;
private Double uniqueRate;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public Long getAllNum() {
return allNum;
}
public void setAllNum(Long allNum) {
this.allNum = allNum;
}
public Long getUniqueNum() {
return uniqueNum;
}
public void setUniqueNum(Long uniqueNum) {
this.uniqueNum = uniqueNum;
}
public Double getUniqueRate() {
return uniqueRate;
}
public void setUniqueRate(Double uniqueRate) {
this.uniqueRate = uniqueRate;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblResultCheckUniqueCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblResultCheckUniqueCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andColNameIsNull() {
addCriterion("col_name is null");
return (Criteria) this;
}
public Criteria andColNameIsNotNull() {
addCriterion("col_name is not null");
return (Criteria) this;
}
public Criteria andColNameEqualTo(String value) {
addCriterion("col_name =", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotEqualTo(String value) {
addCriterion("col_name <>", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThan(String value) {
addCriterion("col_name >", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThanOrEqualTo(String value) {
addCriterion("col_name >=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThan(String value) {
addCriterion("col_name <", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThanOrEqualTo(String value) {
addCriterion("col_name <=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLike(String value) {
addCriterion("col_name like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotLike(String value) {
addCriterion("col_name not like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameIn(List<String> values) {
addCriterion("col_name in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameNotIn(List<String> values) {
addCriterion("col_name not in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameBetween(String value1, String value2) {
addCriterion("col_name between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andColNameNotBetween(String value1, String value2) {
addCriterion("col_name not between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andAllNumIsNull() {
addCriterion("all_num is null");
return (Criteria) this;
}
public Criteria andAllNumIsNotNull() {
addCriterion("all_num is not null");
return (Criteria) this;
}
public Criteria andAllNumEqualTo(Long value) {
addCriterion("all_num =", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotEqualTo(Long value) {
addCriterion("all_num <>", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThan(Long value) {
addCriterion("all_num >", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumGreaterThanOrEqualTo(Long value) {
addCriterion("all_num >=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThan(Long value) {
addCriterion("all_num <", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumLessThanOrEqualTo(Long value) {
addCriterion("all_num <=", value, "allNum");
return (Criteria) this;
}
public Criteria andAllNumIn(List<Long> values) {
addCriterion("all_num in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotIn(List<Long> values) {
addCriterion("all_num not in", values, "allNum");
return (Criteria) this;
}
public Criteria andAllNumBetween(Long value1, Long value2) {
addCriterion("all_num between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andAllNumNotBetween(Long value1, Long value2) {
addCriterion("all_num not between", value1, value2, "allNum");
return (Criteria) this;
}
public Criteria andUniqueNumIsNull() {
addCriterion("unique_num is null");
return (Criteria) this;
}
public Criteria andUniqueNumIsNotNull() {
addCriterion("unique_num is not null");
return (Criteria) this;
}
public Criteria andUniqueNumEqualTo(Long value) {
addCriterion("unique_num =", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumNotEqualTo(Long value) {
addCriterion("unique_num <>", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumGreaterThan(Long value) {
addCriterion("unique_num >", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumGreaterThanOrEqualTo(Long value) {
addCriterion("unique_num >=", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumLessThan(Long value) {
addCriterion("unique_num <", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumLessThanOrEqualTo(Long value) {
addCriterion("unique_num <=", value, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumIn(List<Long> values) {
addCriterion("unique_num in", values, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumNotIn(List<Long> values) {
addCriterion("unique_num not in", values, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumBetween(Long value1, Long value2) {
addCriterion("unique_num between", value1, value2, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueNumNotBetween(Long value1, Long value2) {
addCriterion("unique_num not between", value1, value2, "uniqueNum");
return (Criteria) this;
}
public Criteria andUniqueRateIsNull() {
addCriterion("unique_rate is null");
return (Criteria) this;
}
public Criteria andUniqueRateIsNotNull() {
addCriterion("unique_rate is not null");
return (Criteria) this;
}
public Criteria andUniqueRateEqualTo(Double value) {
addCriterion("unique_rate =", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateNotEqualTo(Double value) {
addCriterion("unique_rate <>", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateGreaterThan(Double value) {
addCriterion("unique_rate >", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateGreaterThanOrEqualTo(Double value) {
addCriterion("unique_rate >=", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateLessThan(Double value) {
addCriterion("unique_rate <", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateLessThanOrEqualTo(Double value) {
addCriterion("unique_rate <=", value, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateIn(List<Double> values) {
addCriterion("unique_rate in", values, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateNotIn(List<Double> values) {
addCriterion("unique_rate not in", values, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateBetween(Double value1, Double value2) {
addCriterion("unique_rate between", value1, value2, "uniqueRate");
return (Criteria) this;
}
public Criteria andUniqueRateNotBetween(Double value1, Double value2) {
addCriterion("unique_rate not between", value1, value2, "uniqueRate");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblResultMonitorSpecial {
private Integer id;
private String dbName;
private String tbName;
private String timeColName;
private String startTime;
private String endTime;
private Long countNum;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getTimeColName() {
return timeColName;
}
public void setTimeColName(String timeColName) {
this.timeColName = timeColName == null ? null : timeColName.trim();
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime == null ? null : startTime.trim();
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime == null ? null : endTime.trim();
}
public Long getCountNum() {
return countNum;
}
public void setCountNum(Long countNum) {
this.countNum = countNum;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblResultMonitorSpecialCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblResultMonitorSpecialCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTimeColNameIsNull() {
addCriterion("time_col_name is null");
return (Criteria) this;
}
public Criteria andTimeColNameIsNotNull() {
addCriterion("time_col_name is not null");
return (Criteria) this;
}
public Criteria andTimeColNameEqualTo(String value) {
addCriterion("time_col_name =", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotEqualTo(String value) {
addCriterion("time_col_name <>", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameGreaterThan(String value) {
addCriterion("time_col_name >", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameGreaterThanOrEqualTo(String value) {
addCriterion("time_col_name >=", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLessThan(String value) {
addCriterion("time_col_name <", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLessThanOrEqualTo(String value) {
addCriterion("time_col_name <=", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameLike(String value) {
addCriterion("time_col_name like", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotLike(String value) {
addCriterion("time_col_name not like", value, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameIn(List<String> values) {
addCriterion("time_col_name in", values, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotIn(List<String> values) {
addCriterion("time_col_name not in", values, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameBetween(String value1, String value2) {
addCriterion("time_col_name between", value1, value2, "timeColName");
return (Criteria) this;
}
public Criteria andTimeColNameNotBetween(String value1, String value2) {
addCriterion("time_col_name not between", value1, value2, "timeColName");
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(String value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(String value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(String value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(String value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(String value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(String value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLike(String value) {
addCriterion("start_time like", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotLike(String value) {
addCriterion("start_time not like", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<String> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<String> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(String value1, String value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(String value1, String value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(String value) {
addCriterion("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(String value) {
addCriterion("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(String value) {
addCriterion("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(String value) {
addCriterion("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(String value) {
addCriterion("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(String value) {
addCriterion("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLike(String value) {
addCriterion("end_time like", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotLike(String value) {
addCriterion("end_time not like", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<String> values) {
addCriterion("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<String> values) {
addCriterion("end_time not in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeBetween(String value1, String value2) {
addCriterion("end_time between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(String value1, String value2) {
addCriterion("end_time not between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andCountNumIsNull() {
addCriterion("count_num is null");
return (Criteria) this;
}
public Criteria andCountNumIsNotNull() {
addCriterion("count_num is not null");
return (Criteria) this;
}
public Criteria andCountNumEqualTo(Long value) {
addCriterion("count_num =", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumNotEqualTo(Long value) {
addCriterion("count_num <>", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumGreaterThan(Long value) {
addCriterion("count_num >", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumGreaterThanOrEqualTo(Long value) {
addCriterion("count_num >=", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumLessThan(Long value) {
addCriterion("count_num <", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumLessThanOrEqualTo(Long value) {
addCriterion("count_num <=", value, "countNum");
return (Criteria) this;
}
public Criteria andCountNumIn(List<Long> values) {
addCriterion("count_num in", values, "countNum");
return (Criteria) this;
}
public Criteria andCountNumNotIn(List<Long> values) {
addCriterion("count_num not in", values, "countNum");
return (Criteria) this;
}
public Criteria andCountNumBetween(Long value1, Long value2) {
addCriterion("count_num between", value1, value2, "countNum");
return (Criteria) this;
}
public Criteria andCountNumNotBetween(Long value1, Long value2) {
addCriterion("count_num not between", value1, value2, "countNum");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblResultMonitorVolatility {
private Integer id;
private String dbName;
private String tbName;
private String colName;
private String indicatorType;
private Long indicatorValue;
private String partitionDate;
private String createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType == null ? null : indicatorType.trim();
}
public Long getIndicatorValue() {
return indicatorValue;
}
public void setIndicatorValue(Long indicatorValue) {
this.indicatorValue = indicatorValue;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblResultMonitorVolatilityCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblResultMonitorVolatilityCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andDbNameIsNull() {
addCriterion("db_name is null");
return (Criteria) this;
}
public Criteria andDbNameIsNotNull() {
addCriterion("db_name is not null");
return (Criteria) this;
}
public Criteria andDbNameEqualTo(String value) {
addCriterion("db_name =", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotEqualTo(String value) {
addCriterion("db_name <>", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThan(String value) {
addCriterion("db_name >", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameGreaterThanOrEqualTo(String value) {
addCriterion("db_name >=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThan(String value) {
addCriterion("db_name <", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLessThanOrEqualTo(String value) {
addCriterion("db_name <=", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameLike(String value) {
addCriterion("db_name like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotLike(String value) {
addCriterion("db_name not like", value, "dbName");
return (Criteria) this;
}
public Criteria andDbNameIn(List<String> values) {
addCriterion("db_name in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotIn(List<String> values) {
addCriterion("db_name not in", values, "dbName");
return (Criteria) this;
}
public Criteria andDbNameBetween(String value1, String value2) {
addCriterion("db_name between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andDbNameNotBetween(String value1, String value2) {
addCriterion("db_name not between", value1, value2, "dbName");
return (Criteria) this;
}
public Criteria andTbNameIsNull() {
addCriterion("tb_name is null");
return (Criteria) this;
}
public Criteria andTbNameIsNotNull() {
addCriterion("tb_name is not null");
return (Criteria) this;
}
public Criteria andTbNameEqualTo(String value) {
addCriterion("tb_name =", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotEqualTo(String value) {
addCriterion("tb_name <>", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThan(String value) {
addCriterion("tb_name >", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameGreaterThanOrEqualTo(String value) {
addCriterion("tb_name >=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThan(String value) {
addCriterion("tb_name <", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLessThanOrEqualTo(String value) {
addCriterion("tb_name <=", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameLike(String value) {
addCriterion("tb_name like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotLike(String value) {
addCriterion("tb_name not like", value, "tbName");
return (Criteria) this;
}
public Criteria andTbNameIn(List<String> values) {
addCriterion("tb_name in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotIn(List<String> values) {
addCriterion("tb_name not in", values, "tbName");
return (Criteria) this;
}
public Criteria andTbNameBetween(String value1, String value2) {
addCriterion("tb_name between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andTbNameNotBetween(String value1, String value2) {
addCriterion("tb_name not between", value1, value2, "tbName");
return (Criteria) this;
}
public Criteria andColNameIsNull() {
addCriterion("col_name is null");
return (Criteria) this;
}
public Criteria andColNameIsNotNull() {
addCriterion("col_name is not null");
return (Criteria) this;
}
public Criteria andColNameEqualTo(String value) {
addCriterion("col_name =", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotEqualTo(String value) {
addCriterion("col_name <>", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThan(String value) {
addCriterion("col_name >", value, "colName");
return (Criteria) this;
}
public Criteria andColNameGreaterThanOrEqualTo(String value) {
addCriterion("col_name >=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThan(String value) {
addCriterion("col_name <", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLessThanOrEqualTo(String value) {
addCriterion("col_name <=", value, "colName");
return (Criteria) this;
}
public Criteria andColNameLike(String value) {
addCriterion("col_name like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameNotLike(String value) {
addCriterion("col_name not like", value, "colName");
return (Criteria) this;
}
public Criteria andColNameIn(List<String> values) {
addCriterion("col_name in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameNotIn(List<String> values) {
addCriterion("col_name not in", values, "colName");
return (Criteria) this;
}
public Criteria andColNameBetween(String value1, String value2) {
addCriterion("col_name between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andColNameNotBetween(String value1, String value2) {
addCriterion("col_name not between", value1, value2, "colName");
return (Criteria) this;
}
public Criteria andIndicatorTypeIsNull() {
addCriterion("indicator_type is null");
return (Criteria) this;
}
public Criteria andIndicatorTypeIsNotNull() {
addCriterion("indicator_type is not null");
return (Criteria) this;
}
public Criteria andIndicatorTypeEqualTo(String value) {
addCriterion("indicator_type =", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotEqualTo(String value) {
addCriterion("indicator_type <>", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeGreaterThan(String value) {
addCriterion("indicator_type >", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeGreaterThanOrEqualTo(String value) {
addCriterion("indicator_type >=", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLessThan(String value) {
addCriterion("indicator_type <", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLessThanOrEqualTo(String value) {
addCriterion("indicator_type <=", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeLike(String value) {
addCriterion("indicator_type like", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotLike(String value) {
addCriterion("indicator_type not like", value, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeIn(List<String> values) {
addCriterion("indicator_type in", values, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotIn(List<String> values) {
addCriterion("indicator_type not in", values, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeBetween(String value1, String value2) {
addCriterion("indicator_type between", value1, value2, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorTypeNotBetween(String value1, String value2) {
addCriterion("indicator_type not between", value1, value2, "indicatorType");
return (Criteria) this;
}
public Criteria andIndicatorValueIsNull() {
addCriterion("indicator_value is null");
return (Criteria) this;
}
public Criteria andIndicatorValueIsNotNull() {
addCriterion("indicator_value is not null");
return (Criteria) this;
}
public Criteria andIndicatorValueEqualTo(Long value) {
addCriterion("indicator_value =", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueNotEqualTo(Long value) {
addCriterion("indicator_value <>", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueGreaterThan(Long value) {
addCriterion("indicator_value >", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueGreaterThanOrEqualTo(Long value) {
addCriterion("indicator_value >=", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueLessThan(Long value) {
addCriterion("indicator_value <", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueLessThanOrEqualTo(Long value) {
addCriterion("indicator_value <=", value, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueIn(List<Long> values) {
addCriterion("indicator_value in", values, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueNotIn(List<Long> values) {
addCriterion("indicator_value not in", values, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueBetween(Long value1, Long value2) {
addCriterion("indicator_value between", value1, value2, "indicatorValue");
return (Criteria) this;
}
public Criteria andIndicatorValueNotBetween(Long value1, Long value2) {
addCriterion("indicator_value not between", value1, value2, "indicatorValue");
return (Criteria) this;
}
public Criteria andPartitionDateIsNull() {
addCriterion("partition_date is null");
return (Criteria) this;
}
public Criteria andPartitionDateIsNotNull() {
addCriterion("partition_date is not null");
return (Criteria) this;
}
public Criteria andPartitionDateEqualTo(String value) {
addCriterion("partition_date =", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotEqualTo(String value) {
addCriterion("partition_date <>", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThan(String value) {
addCriterion("partition_date >", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateGreaterThanOrEqualTo(String value) {
addCriterion("partition_date >=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThan(String value) {
addCriterion("partition_date <", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLessThanOrEqualTo(String value) {
addCriterion("partition_date <=", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateLike(String value) {
addCriterion("partition_date like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotLike(String value) {
addCriterion("partition_date not like", value, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateIn(List<String> values) {
addCriterion("partition_date in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotIn(List<String> values) {
addCriterion("partition_date not in", values, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateBetween(String value1, String value2) {
addCriterion("partition_date between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andPartitionDateNotBetween(String value1, String value2) {
addCriterion("partition_date not between", value1, value2, "partitionDate");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(String value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(String value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(String value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(String value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(String value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLike(String value) {
addCriterion("create_time like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotLike(String value) {
addCriterion("create_time not like", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<String> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<String> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(String value1, String value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(String value1, String value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblRuleTemplate {
private Integer id;
private String type;
private String content;
private String comment;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblRuleTemplateCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblRuleTemplateCriteria() {
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 Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
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 andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
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 andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(String value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(String value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(String value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(String value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(String value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(String value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLike(String value) {
addCriterion("type like", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotLike(String value) {
addCriterion("type not like", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<String> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<String> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(String value1, String value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(String value1, String value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("content is null");
return (Criteria) this;
}
public Criteria andContentIsNotNull() {
addCriterion("content is not null");
return (Criteria) this;
}
public Criteria andContentEqualTo(String value) {
addCriterion("content =", value, "content");
return (Criteria) this;
}
public Criteria andContentNotEqualTo(String value) {
addCriterion("content <>", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThan(String value) {
addCriterion("content >", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThanOrEqualTo(String value) {
addCriterion("content >=", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThan(String value) {
addCriterion("content <", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThanOrEqualTo(String value) {
addCriterion("content <=", value, "content");
return (Criteria) this;
}
public Criteria andContentLike(String value) {
addCriterion("content like", value, "content");
return (Criteria) this;
}
public Criteria andContentNotLike(String value) {
addCriterion("content not like", value, "content");
return (Criteria) this;
}
public Criteria andContentIn(List<String> values) {
addCriterion("content in", values, "content");
return (Criteria) this;
}
public Criteria andContentNotIn(List<String> values) {
addCriterion("content not in", values, "content");
return (Criteria) this;
}
public Criteria andContentBetween(String value1, String value2) {
addCriterion("content between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andContentNotBetween(String value1, String value2) {
addCriterion("content not between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andCommentIsNull() {
addCriterion("comment is null");
return (Criteria) this;
}
public Criteria andCommentIsNotNull() {
addCriterion("comment is not null");
return (Criteria) this;
}
public Criteria andCommentEqualTo(String value) {
addCriterion("comment =", value, "comment");
return (Criteria) this;
}
public Criteria andCommentNotEqualTo(String value) {
addCriterion("comment <>", value, "comment");
return (Criteria) this;
}
public Criteria andCommentGreaterThan(String value) {
addCriterion("comment >", value, "comment");
return (Criteria) this;
}
public Criteria andCommentGreaterThanOrEqualTo(String value) {
addCriterion("comment >=", value, "comment");
return (Criteria) this;
}
public Criteria andCommentLessThan(String value) {
addCriterion("comment <", value, "comment");
return (Criteria) this;
}
public Criteria andCommentLessThanOrEqualTo(String value) {
addCriterion("comment <=", value, "comment");
return (Criteria) this;
}
public Criteria andCommentLike(String value) {
addCriterion("comment like", value, "comment");
return (Criteria) this;
}
public Criteria andCommentNotLike(String value) {
addCriterion("comment not like", value, "comment");
return (Criteria) this;
}
public Criteria andCommentIn(List<String> values) {
addCriterion("comment in", values, "comment");
return (Criteria) this;
}
public Criteria andCommentNotIn(List<String> values) {
addCriterion("comment not in", values, "comment");
return (Criteria) this;
}
public Criteria andCommentBetween(String value1, String value2) {
addCriterion("comment between", value1, value2, "comment");
return (Criteria) this;
}
public Criteria andCommentNotBetween(String value1, String value2) {
addCriterion("comment not between", value1, value2, "comment");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
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);
}
}
}
\ No newline at end of file
package com.gmei.data.dqmp.dto;
public class RuleTemplateDto {
private Integer id;
private String type;
private String content;
private String comment;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
}
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblCheckMultipleSql;
import com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblCheckMultipleSqlMapper {
int countByExample(TblCheckMultipleSqlCriteria example);
int deleteByExample(TblCheckMultipleSqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblCheckMultipleSql record);
int insertSelective(TblCheckMultipleSql record);
List<TblCheckMultipleSql> selectByExampleWithBLOBs(TblCheckMultipleSqlCriteria example);
List<TblCheckMultipleSql> selectByExample(TblCheckMultipleSqlCriteria example);
TblCheckMultipleSql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByExample(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByPrimaryKeySelective(TblCheckMultipleSql record);
int updateByPrimaryKeyWithBLOBs(TblCheckMultipleSql record);
int updateByPrimaryKey(TblCheckMultipleSql record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblCheckSingleSql;
import com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblCheckSingleSqlMapper {
int countByExample(TblCheckSingleSqlCriteria example);
int deleteByExample(TblCheckSingleSqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblCheckSingleSql record);
int insertSelective(TblCheckSingleSql record);
List<TblCheckSingleSql> selectByExampleWithBLOBs(TblCheckSingleSqlCriteria example);
List<TblCheckSingleSql> selectByExample(TblCheckSingleSqlCriteria example);
TblCheckSingleSql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByExample(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByPrimaryKeySelective(TblCheckSingleSql record);
int updateByPrimaryKeyWithBLOBs(TblCheckSingleSql record);
int updateByPrimaryKey(TblCheckSingleSql record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblClientVersionInfo;
import com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblClientVersionInfoMapper {
int countByExample(TblClientVersionInfoCriteria example);
int deleteByExample(TblClientVersionInfoCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblClientVersionInfo record);
int insertSelective(TblClientVersionInfo record);
List<TblClientVersionInfo> selectByExample(TblClientVersionInfoCriteria example);
TblClientVersionInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblClientVersionInfo record, @Param("example") TblClientVersionInfoCriteria example);
int updateByExample(@Param("record") TblClientVersionInfo record, @Param("example") TblClientVersionInfoCriteria example);
int updateByPrimaryKeySelective(TblClientVersionInfo record);
int updateByPrimaryKey(TblClientVersionInfo record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblMonitorSpecialSql;
import com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblMonitorSpecialSqlMapper {
int countByExample(TblMonitorSpecialSqlCriteria example);
int deleteByExample(TblMonitorSpecialSqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblMonitorSpecialSql record);
int insertSelective(TblMonitorSpecialSql record);
List<TblMonitorSpecialSql> selectByExampleWithBLOBs(TblMonitorSpecialSqlCriteria example);
List<TblMonitorSpecialSql> selectByExample(TblMonitorSpecialSqlCriteria example);
TblMonitorSpecialSql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblMonitorSpecialSql record, @Param("example") TblMonitorSpecialSqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblMonitorSpecialSql record, @Param("example") TblMonitorSpecialSqlCriteria example);
int updateByExample(@Param("record") TblMonitorSpecialSql record, @Param("example") TblMonitorSpecialSqlCriteria example);
int updateByPrimaryKeySelective(TblMonitorSpecialSql record);
int updateByPrimaryKeyWithBLOBs(TblMonitorSpecialSql record);
int updateByPrimaryKey(TblMonitorSpecialSql record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblMonitorVolatilitySql;
import com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblMonitorVolatilitySqlMapper {
int countByExample(TblMonitorVolatilitySqlCriteria example);
int deleteByExample(TblMonitorVolatilitySqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblMonitorVolatilitySql record);
int insertSelective(TblMonitorVolatilitySql record);
List<TblMonitorVolatilitySql> selectByExampleWithBLOBs(TblMonitorVolatilitySqlCriteria example);
List<TblMonitorVolatilitySql> selectByExample(TblMonitorVolatilitySqlCriteria example);
TblMonitorVolatilitySql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblMonitorVolatilitySql record, @Param("example") TblMonitorVolatilitySqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblMonitorVolatilitySql record, @Param("example") TblMonitorVolatilitySqlCriteria example);
int updateByExample(@Param("record") TblMonitorVolatilitySql record, @Param("example") TblMonitorVolatilitySqlCriteria example);
int updateByPrimaryKeySelective(TblMonitorVolatilitySql record);
int updateByPrimaryKeyWithBLOBs(TblMonitorVolatilitySql record);
int updateByPrimaryKey(TblMonitorVolatilitySql record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblResultCheckRefer;
import com.gmei.data.dqmp.domain.TblResultCheckReferCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblResultCheckReferMapper {
int countByExample(TblResultCheckReferCriteria example);
int deleteByExample(TblResultCheckReferCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblResultCheckRefer record);
int insertSelective(TblResultCheckRefer record);
List<TblResultCheckRefer> selectByExample(TblResultCheckReferCriteria example);
TblResultCheckRefer selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblResultCheckRefer record, @Param("example") TblResultCheckReferCriteria example);
int updateByExample(@Param("record") TblResultCheckRefer record, @Param("example") TblResultCheckReferCriteria example);
int updateByPrimaryKeySelective(TblResultCheckRefer record);
int updateByPrimaryKey(TblResultCheckRefer record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblResultCheckUnblank;
import com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblResultCheckUnblankMapper {
int countByExample(TblResultCheckUnblankCriteria example);
int deleteByExample(TblResultCheckUnblankCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblResultCheckUnblank record);
int insertSelective(TblResultCheckUnblank record);
List<TblResultCheckUnblank> selectByExample(TblResultCheckUnblankCriteria example);
TblResultCheckUnblank selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblResultCheckUnblank record, @Param("example") TblResultCheckUnblankCriteria example);
int updateByExample(@Param("record") TblResultCheckUnblank record, @Param("example") TblResultCheckUnblankCriteria example);
int updateByPrimaryKeySelective(TblResultCheckUnblank record);
int updateByPrimaryKey(TblResultCheckUnblank record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblResultCheckUnique;
import com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblResultCheckUniqueMapper {
int countByExample(TblResultCheckUniqueCriteria example);
int deleteByExample(TblResultCheckUniqueCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblResultCheckUnique record);
int insertSelective(TblResultCheckUnique record);
List<TblResultCheckUnique> selectByExample(TblResultCheckUniqueCriteria example);
TblResultCheckUnique selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblResultCheckUnique record, @Param("example") TblResultCheckUniqueCriteria example);
int updateByExample(@Param("record") TblResultCheckUnique record, @Param("example") TblResultCheckUniqueCriteria example);
int updateByPrimaryKeySelective(TblResultCheckUnique record);
int updateByPrimaryKey(TblResultCheckUnique record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblResultMonitorSpecial;
import com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblResultMonitorSpecialMapper {
int countByExample(TblResultMonitorSpecialCriteria example);
int deleteByExample(TblResultMonitorSpecialCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblResultMonitorSpecial record);
int insertSelective(TblResultMonitorSpecial record);
List<TblResultMonitorSpecial> selectByExample(TblResultMonitorSpecialCriteria example);
TblResultMonitorSpecial selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblResultMonitorSpecial record, @Param("example") TblResultMonitorSpecialCriteria example);
int updateByExample(@Param("record") TblResultMonitorSpecial record, @Param("example") TblResultMonitorSpecialCriteria example);
int updateByPrimaryKeySelective(TblResultMonitorSpecial record);
int updateByPrimaryKey(TblResultMonitorSpecial record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblResultMonitorVolatility;
import com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblResultMonitorVolatilityMapper {
int countByExample(TblResultMonitorVolatilityCriteria example);
int deleteByExample(TblResultMonitorVolatilityCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblResultMonitorVolatility record);
int insertSelective(TblResultMonitorVolatility record);
List<TblResultMonitorVolatility> selectByExample(TblResultMonitorVolatilityCriteria example);
TblResultMonitorVolatility selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblResultMonitorVolatility record, @Param("example") TblResultMonitorVolatilityCriteria example);
int updateByExample(@Param("record") TblResultMonitorVolatility record, @Param("example") TblResultMonitorVolatilityCriteria example);
int updateByPrimaryKeySelective(TblResultMonitorVolatility record);
int updateByPrimaryKey(TblResultMonitorVolatility record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblRuleTemplate;
import com.gmei.data.dqmp.domain.TblRuleTemplateCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblRuleTemplateMapper {
int countByExample(TblRuleTemplateCriteria example);
int deleteByExample(TblRuleTemplateCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblRuleTemplate record);
int insertSelective(TblRuleTemplate record);
List<TblRuleTemplate> selectByExample(TblRuleTemplateCriteria example);
TblRuleTemplate selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblRuleTemplate record, @Param("example") TblRuleTemplateCriteria example);
int updateByExample(@Param("record") TblRuleTemplate record, @Param("example") TblRuleTemplateCriteria example);
int updateByPrimaryKeySelective(TblRuleTemplate record);
int updateByPrimaryKey(TblRuleTemplate record);
}
\ No newline at end of file
package com.gmei.data.dqmp.operator;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import com.gmei.data.dqmp.pool.JdbcConnectPool;
public class SparkSqlOperator {
public static void main(String[] args) {
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement("select count(*) count from online.test");
ResultSet rs = ps.executeQuery();
while (rs.next()) {
System.out.println("count->" + rs.getInt("count"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
}
}
package com.gmei.data.dqmp.pool;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JdbcConnectPool {
private static final Logger logger = LoggerFactory.getLogger(JdbcConnectPool.class);
private static Properties prop;
private static int currentsize = 0;
private static LinkedList<Connection> connList = new LinkedList<Connection>();
static {
prop = getProperties("jdbc.properties");
try {
Class.forName(prop.getProperty("driverClassName"));
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
for (int i = 0; i < Integer.valueOf(prop.getProperty("initSize")); i++) {
Connection connection = createConnect();
connList.add(connection);
currentsize++;
}
}
/**
* 获取连接
*
* @return
*/
public static Connection getConnect() {
Connection connection = null;
if (connList.size() > 0) {
connection = connList.getFirst();
connList.removeFirst();
} else if (connList.size() == 0 && currentsize < Integer.valueOf(prop.getProperty("maxSize"))) {
connList.addLast(createConnect());
connection = connList.getFirst();
connList.removeFirst();
currentsize++;
}
logger.info("Current pool size : {}",currentsize);
return connection;
}
/**
* 创建连接
*
* @return
*/
private static Connection createConnect() {
Connection conn = null;
try {
conn = DriverManager.getConnection(prop.getProperty("url"), prop.getProperty("username"),
prop.getProperty("password"));
} catch (SQLException e) {
e.printStackTrace();
}
return conn;
}
/**
* 释放连接
*
* @param connection
*/
public static void releaseConnection(Connection connection) {
connList.addLast(connection);
}
/**
* 获取属性文件对象
*
* @param path
* @return
*/
private static Properties getProperties(String path) {
Properties properties = new Properties();
try {
InputStream inputStream = JdbcConnectPool.class.getClassLoader().getResourceAsStream(path);
properties.load(inputStream);
inputStream.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return properties;
}
}
package com.gmei.data.dqmp.scheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.gmei.data.dqmp.service.ClientInfoService;
@Component
public class CiScheduler {
@Autowired
private ClientInfoService clientInfoService;
//@Scheduled(cron="0 */1 * * * ?")
//private void uniqueProcess(){
// clientInfoService.getAndPersistClientInfo();
//}
}
package com.gmei.data.dqmp.scheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.service.CheckService;
import com.gmei.data.dqmp.service.MonitorService;
@Component
public class DqScheduler {
@Autowired
private CheckService executeService;
@Autowired
private MonitorService monitorService;
@Scheduled(cron="0 */100 * * * ?")
private void uniqueCheckProcess(){
executeService.checkAndPersistSimpleResult(Constants.CHECK_UNIQUE);
}
@Scheduled(cron="10 */100 * * * ?")
private void unblankCheckProcess(){
executeService.checkAndPersistSimpleResult(Constants.CHECK_UNBLANK);
}
@Scheduled(cron="0 */100 * * * ?")
private void referCheckProcess(){
executeService.checkAndPersistMultipleResult(Constants.CHECK_REFER);
}
@Scheduled(cron="0 */100 * * * ?")
private void volatilityMonitorProcess(){
monitorService.monitorAndPersistVolatilityResult(Constants.MONITOR_PV);
}
@Scheduled(cron="0 */1 * * * ?")
private void specialMonitorProcess(){
monitorService.monitorAndPersistSpecialResult();
}
}
package com.gmei.data.dqmp.service;
public interface CheckService {
/**
* 校验并持久化简单型校验结果
* @param checkType
*/
void checkAndPersistSimpleResult(String checkType);
/**
* 校验并持久化复杂型校验结果
* @param checkType
*/
void checkAndPersistMultipleResult(String checkType);
}
package com.gmei.data.dqmp.service;
public interface ClientInfoService {
void getAndPersistClientInfo();
}
package com.gmei.data.dqmp.service;
public interface FormatService {
/**
* 将字符串中的多个空格、换行符、回车符、制表符转为单个空格
* @param str
* @return
*/
String removeNewlineSymbol(String str);
}
package com.gmei.data.dqmp.service;
public interface MailService {
void sendSimpleMail(String to, String subject, String content);
}
package com.gmei.data.dqmp.service;
public interface MonitorService {
void monitorAndPersistVolatilityResult(String indicatorType);
void monitorAndPersistSpecialResult();
}
package com.gmei.data.dqmp.service;
import java.util.List;
import com.gmei.data.dqmp.dto.RuleTemplateDto;
import com.gmei.data.dqmp.vo.RuleTemplateVo;
public interface RuleTemplateService {
List<RuleTemplateDto> findRuleTmpls(String tmplType);
Integer addRuleTmpl(RuleTemplateVo ruleTemplateVo);
}
package com.gmei.data.dqmp.service.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.domain.TblCheckMultipleSql;
import com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria;
import com.gmei.data.dqmp.domain.TblCheckSingleSql;
import com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria;
import com.gmei.data.dqmp.domain.TblResultCheckRefer;
import com.gmei.data.dqmp.domain.TblResultCheckUnblank;
import com.gmei.data.dqmp.domain.TblResultCheckUnique;
import com.gmei.data.dqmp.mapper.TblCheckMultipleSqlMapper;
import com.gmei.data.dqmp.mapper.TblCheckSingleSqlMapper;
import com.gmei.data.dqmp.mapper.TblResultCheckReferMapper;
import com.gmei.data.dqmp.mapper.TblResultCheckUnblankMapper;
import com.gmei.data.dqmp.mapper.TblResultCheckUniqueMapper;
import com.gmei.data.dqmp.pool.JdbcConnectPool;
import com.gmei.data.dqmp.service.CheckService;
@Service
public class CheckServiceImpl implements CheckService {
private static final Logger logger = LoggerFactory.getLogger(CheckServiceImpl.class);
@Autowired
private TblCheckSingleSqlMapper tblCheckSingleSqlMapper;
@Autowired
private TblCheckMultipleSqlMapper tblCheckMultipleSqlMapper;
@Autowired
private TblResultCheckUniqueMapper tblResultCheckUniqueMapper;
@Autowired
private TblResultCheckUnblankMapper tblResultCheckUnblankMapper;
@Autowired
private TblResultCheckReferMapper tblResultCheckReferMapper;
/**
* 校验并持久化简单型校验结果
* @param checkType
*/
@Override
public void checkAndPersistSimpleResult(String checkType) {
TblCheckSingleSqlCriteria tblCheckSingleSqlCriteria = new TblCheckSingleSqlCriteria();
tblCheckSingleSqlCriteria.createCriteria()
.andCheckTypeEqualTo(checkType)
.andIsValidEqualTo(Constants.IS_VALID_ON);
List<TblCheckSingleSql> sqlList = tblCheckSingleSqlMapper.selectByExampleWithBLOBs(tblCheckSingleSqlCriteria);
for (TblCheckSingleSql tblCheckSql : sqlList) {
String sql = tblCheckSql.getSqlContent();
int rs = 0;
if (Constants.CHECK_UNIQUE.equals(tblCheckSql.getCheckType())) {
TblResultCheckUnique uniqueCheckResult = getUniqueCheckResult(sql);
if (uniqueCheckResult == null) {
logger.error("Find result is empty!");
return;
}
rs = tblResultCheckUniqueMapper.insert(uniqueCheckResult);
} else if (Constants.CHECK_UNBLANK.equals(tblCheckSql.getCheckType())){
TblResultCheckUnblank tblResultCheckUnblank = getUnblankCheckResult(sql);
if (tblResultCheckUnblank == null) {
logger.error("Find result is empty!");
return;
}
rs = tblResultCheckUnblankMapper.insert(tblResultCheckUnblank);
}
if (rs == 1) {
logger.info("Run success: {}", sql);
} else {
logger.error("Run failed: {}", sql);
}
}
}
/**
* 校验并持久化复杂型校验结果
* @param checkType
*/
@Override
public void checkAndPersistMultipleResult(String checkType) {
TblCheckMultipleSqlCriteria tblCheckMultipleSqlCriteria = new TblCheckMultipleSqlCriteria();
tblCheckMultipleSqlCriteria.createCriteria()
.andCheckTypeEqualTo(checkType)
.andIsValidEqualTo(Constants.IS_VALID_ON);
List<TblCheckMultipleSql> sqlList = tblCheckMultipleSqlMapper.selectByExampleWithBLOBs(tblCheckMultipleSqlCriteria);
for (TblCheckMultipleSql tblCheckSql : sqlList) {
String sql = tblCheckSql.getSqlContent();
int rs = 0;
if (Constants.CHECK_REFER.equals(tblCheckSql.getCheckType())) {
TblResultCheckRefer referCheckResult = getReferCheckResult(sql);
if (referCheckResult == null) {
logger.error("Find result is empty!");
return;
}
rs = tblResultCheckReferMapper.insert(referCheckResult);
}
if (rs == 1) {
logger.info("Run success: {}", sql);
} else {
logger.error("Run failed: {}", sql);
}
}
}
/**
* 获取唯一性校验结果
* @param sql
* @return
*/
private TblResultCheckUnique getUniqueCheckResult(String sql) {
logger.info("Sql content : {}", sql);
TblResultCheckUnique tblResultCheckUnique = null;
if (StringUtils.isBlank(sql)) {
return tblResultCheckUnique;
}
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
tblResultCheckUnique = new TblResultCheckUnique();
tblResultCheckUnique.setDbName(rs.getString("db_name"));
tblResultCheckUnique.setTbName(rs.getString("tb_name"));
tblResultCheckUnique.setColName(rs.getString("col_name"));
tblResultCheckUnique.setAllNum(rs.getLong("all_num"));
tblResultCheckUnique.setUniqueNum(rs.getLong("unique_num"));
tblResultCheckUnique.setUniqueRate(rs.getDouble("unique_rate"));
tblResultCheckUnique.setPartitionDate(rs.getString("partition_date"));
tblResultCheckUnique.setCreateTime(rs.getString("create_time"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
return tblResultCheckUnique;
}
/**
* 获取非空性校验结果
* @param sql
* @return
*/
private TblResultCheckUnblank getUnblankCheckResult(String sql) {
logger.info("Sql content : {}", sql);
TblResultCheckUnblank tblResultCheckUnblank = null;
if (StringUtils.isBlank(sql)) {
return tblResultCheckUnblank;
}
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
tblResultCheckUnblank = new TblResultCheckUnblank();
tblResultCheckUnblank.setDbName(rs.getString("db_name"));
tblResultCheckUnblank.setTbName(rs.getString("tb_name"));
tblResultCheckUnblank.setColName(rs.getString("col_name"));
tblResultCheckUnblank.setAllNum(rs.getLong("all_num"));
tblResultCheckUnblank.setUnblankNum(rs.getLong("unblank_num"));
tblResultCheckUnblank.setUnblankRate(rs.getDouble("unblank_rate"));
tblResultCheckUnblank.setPartitionDate(rs.getString("partition_date"));
tblResultCheckUnblank.setCreateTime(rs.getString("create_time"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
return tblResultCheckUnblank;
}
/**
* 获取参照性校验结果
* @param sql
* @return
*/
private TblResultCheckRefer getReferCheckResult(String sql) {
logger.info("Sql content : {}", sql);
TblResultCheckRefer tblResultCheckRefer = null;
if (StringUtils.isBlank(sql)) {
return tblResultCheckRefer;
}
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
tblResultCheckRefer = new TblResultCheckRefer();
tblResultCheckRefer.setCheckDbName(rs.getString("check_db_name"));
tblResultCheckRefer.setCheckTbName(rs.getString("check_tb_name"));
tblResultCheckRefer.setCheckColName(rs.getString("check_col_name"));
tblResultCheckRefer.setReferDbName(rs.getString("refer_db_name"));
tblResultCheckRefer.setReferTbName(rs.getString("refer_tb_name"));
tblResultCheckRefer.setReferColName(rs.getString("refer_col_name"));
tblResultCheckRefer.setAllNum(rs.getLong("all_num"));
tblResultCheckRefer.setMatchedNum(rs.getLong("matched_num"));
tblResultCheckRefer.setMatchedRate(rs.getDouble("matched_rate"));
tblResultCheckRefer.setPartitionDate(rs.getString("partition_date"));
tblResultCheckRefer.setCreateTime(rs.getString("create_time"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
return tblResultCheckRefer;
}
}
package com.gmei.data.dqmp.service.impl;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.domain.TblClientVersionInfo;
import com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria;
import com.gmei.data.dqmp.mapper.TblClientVersionInfoMapper;
import com.gmei.data.dqmp.service.ClientInfoService;
import com.gmei.data.dqmp.utils.DateUtils;
@Service
public class ClientInfoServiceImpl implements ClientInfoService {
@Autowired
private TblClientVersionInfoMapper tblClientVersionInfoMapper;
@Override
public void getAndPersistClientInfo() {
List<TblClientVersionInfo> list = new ArrayList<>();
list.add(getAndroidInfo());
list.add(getIosInfo());
for(TblClientVersionInfo tblClientVersionInfo : list) {
TblClientVersionInfoCriteria example = new TblClientVersionInfoCriteria();
example.createCriteria()
.andClTypeEqualTo(tblClientVersionInfo.getClType())
.andClVersionEqualTo(tblClientVersionInfo.getClVersion())
.andPartitionDateEqualTo(DateUtils.getCurrentDateStr());
List<TblClientVersionInfo> rsList = tblClientVersionInfoMapper.selectByExample(example);
if(null != rsList && rsList.size() == 0) {
tblClientVersionInfoMapper.insert(tblClientVersionInfo);
}
}
}
/**
* 根据url获取android客户端版本信息
* @return
*/
private TblClientVersionInfo getAndroidInfo(){
TblClientVersionInfo tblClientVersionInfo = new TblClientVersionInfo();
String html = getHtmlContent("https://sj.qq.com/myapp/detail.htm?apkName=com.wanmeizhensuo.zhensuo");
Document doc = Jsoup.parse(html);
String version = doc.getElementsByClass("det-othinfo-data").get(0).text();
version = version.substring(1);
Elements elementsByAttribute = doc.getElementsByAttribute("data-apkPublishTime");
Element element = elementsByAttribute.get(0);
Attributes attributes = element.attributes();
String updateTime = attributes.asList().get(2).getValue();
String date = new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date(Long.valueOf(updateTime)*1000));
tblClientVersionInfo.setClType("Android");
tblClientVersionInfo.setClVersion(version);
tblClientVersionInfo.setVersionTime(date);
tblClientVersionInfo.setCreateTime(DateUtils.getCurrentTimeStr());
tblClientVersionInfo.setPartitionDate(DateUtils.getCurrentDateStr());
return tblClientVersionInfo;
}
/**
* 根据url获取页面元素
* @param androidUrl
* @return
*/
private String getHtmlContent(String androidUrl) {
String[] cmds = {"curl","-u", "admin:admin", "-XGET", androidUrl,"-H"
,"X-Requested-By:sdc"};
ProcessBuilder process = new ProcessBuilder(cmds);
Process p;
String html = "";
try {
p = process.start();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
StringBuilder builder = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
builder.append(line);
builder.append(System.getProperty("line.separator"));
}
html = builder.toString();
} catch (IOException e) {
e.printStackTrace();
}
return html;
}
/**
* 获取ios客户端信息
* @return
*/
private TblClientVersionInfo getIosInfo() {
TblClientVersionInfo tblClientVersionInfo = new TblClientVersionInfo();
String urlStr = "http://itunes.apple.com/lookup?id=639234809";
String res=null;
try {
URL url = new URL(urlStr);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setConnectTimeout(3*1000);
//防止屏蔽程序抓取而返回403错误
conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
InputStream inputStream = conn.getInputStream();
res = readInputStream(inputStream);
} catch (Exception e) {
System.out.println("Get content by url exception:" + e);
}
JSONObject parseObject = JSONObject.parseObject(res);
JSONObject jsonObject = parseObject.getJSONArray("results").getJSONObject(0);
String version = jsonObject.getString("version");
String date=jsonObject.getString("currentVersionReleaseDate");
tblClientVersionInfo.setClType("IOS");
tblClientVersionInfo.setClVersion(version);
tblClientVersionInfo.setVersionTime(dealDateFormat(date));
tblClientVersionInfo.setCreateTime(DateUtils.getCurrentTimeStr());
tblClientVersionInfo.setPartitionDate(DateUtils.getCurrentDateStr());
return tblClientVersionInfo;
}
/**
* 读取输入流字符串
* @param inputStream
* @return
* @throws IOException
*/
public static String readInputStream(InputStream inputStream) throws IOException {
String rs = "";
try {
byte[] buffer = new byte[1024];
int len = 0;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
while((len = inputStream.read(buffer)) != -1) {
bos.write(buffer, 0, len);
}
bos.close();
rs = new String(bos.toByteArray(),"utf-8");
}catch(Exception e) {
e.printStackTrace();
}
return rs;
}
/**
* 日期转换
* @param oldDateStr
* @return
*/
public static String dealDateFormat(String oldDateStr){
String rs = "";
try {
DateFormat df1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date date = df1.parse(oldDateStr);
DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
rs = df2.format(date);
}catch (Exception e) {
e.printStackTrace();
}
return rs;
}
}
package com.gmei.data.dqmp.service.impl;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.gmei.data.dqmp.service.FormatService;
public class FormatServiceImpl implements FormatService {
/**
* 将字符串中的多个空格、换行符、回车符、制表符转为单个空格
* @param str
* @return
*/
@Override
public String removeNewlineSymbol(String str) {
String dest = "";
if (str!=null) {
Pattern p = Pattern.compile("\\s{1,}|\t|\r|\n");
Matcher m = p.matcher(str);
dest = m.replaceAll(" ");
}
return dest;
}
public static void main(String[] args) {
String removeNewlineSymbol = new FormatServiceImpl().removeNewlineSymbol("SELECT 'online' AS db_name,\n" +
"\n" +
" 'test' AS tb_name,\n" +
"\n" +
" 'age' AS time_col_name,\n" +
"\n" +
" '23' AS start_time,\n" +
"\n" +
" '66' AS end_time,\n" +
"\n" +
" COUNT(*) as count_num,date_add(from_unixtime(unix_timestamp(),'yyyy-MM-dd'),-1) as partition_date,from_unixtime(unix_timestamp(),'yyyy-MM-dd HH:mm:ss') as create_time\n" +
"\n" +
" FROM online.test\n" +
"\n" +
"WHERE name >=11\n" +
"\n" +
" AND name <=12");
System.out.println(removeNewlineSymbol);
}
}
package com.gmei.data.dqmp.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gmei.data.dqmp.service.MailService;
@Component
public class MailServiceImpl implements MailService{
private static final Logger logger = LoggerFactory.getLogger(MailServiceImpl.class);
@Autowired
private JavaMailSender mailSender;
@Value("${mail.fromMail.addr}")
private String from;
@Override
public void sendSimpleMail(String to, String subject, String content) {
SimpleMailMessage message = new SimpleMailMessage();
message.setFrom(from);
message.setTo(to);
message.setSubject(subject);
message.setText(content);
try {
mailSender.send(message);
logger.info("简单邮件已经发送。");
} catch (Exception e) {
logger.error("发送简单邮件时发生异常!", e);
}
}
}
package com.gmei.data.dqmp.service.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.domain.TblMonitorSpecialSql;
import com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria;
import com.gmei.data.dqmp.domain.TblMonitorVolatilitySql;
import com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria;
import com.gmei.data.dqmp.domain.TblResultMonitorSpecial;
import com.gmei.data.dqmp.domain.TblResultMonitorVolatility;
import com.gmei.data.dqmp.mapper.TblMonitorSpecialSqlMapper;
import com.gmei.data.dqmp.mapper.TblMonitorVolatilitySqlMapper;
import com.gmei.data.dqmp.mapper.TblResultMonitorSpecialMapper;
import com.gmei.data.dqmp.mapper.TblResultMonitorVolatilityMapper;
import com.gmei.data.dqmp.pool.JdbcConnectPool;
import com.gmei.data.dqmp.service.MonitorService;
@Service
public class MonitorServiceImpl implements MonitorService {
private static final Logger logger = LoggerFactory.getLogger(MonitorServiceImpl.class);
@Autowired
private TblMonitorVolatilitySqlMapper tblMonitorVolatilitySqlMapper;
@Autowired
private TblMonitorSpecialSqlMapper tblMonitorSpecialSqlMapper;
@Autowired
private TblResultMonitorVolatilityMapper tblResultMonitorVolatilityMapper;
@Autowired
private TblResultMonitorSpecialMapper tblResultMonitorSpecialMapper;
/**
* 监控并持久化波动型监控结果
*
* @param indicatorType
*/
@Override
public void monitorAndPersistVolatilityResult(String indicatorType) {
TblMonitorVolatilitySqlCriteria tblmonitorVolatilitySqlCriteria = new TblMonitorVolatilitySqlCriteria();
tblmonitorVolatilitySqlCriteria.createCriteria().andIndicatorTypeEqualTo(indicatorType).andIsValidEqualTo(Constants.IS_VALID_ON);
List<TblMonitorVolatilitySql> sqlList = tblMonitorVolatilitySqlMapper
.selectByExampleWithBLOBs(tblmonitorVolatilitySqlCriteria);
for (TblMonitorVolatilitySql tblCheckSql : sqlList) {
String sql = tblCheckSql.getSqlContent();
int rs = 0;
TblResultMonitorVolatility tblResultMonitorVolatility = getMonitorVolatilityResult(sql, indicatorType);
if (tblResultMonitorVolatility == null) {
logger.error("Find result is empty!");
return;
}
rs = tblResultMonitorVolatilityMapper.insert(tblResultMonitorVolatility);
if (rs == 1) {
logger.info("Run success: {}", sql);
} else {
logger.error("Run failed: {}", sql);
}
}
}
/**
* 监控并持久化特殊型监控结果
*
*/
@Override
public void monitorAndPersistSpecialResult() {
TblMonitorSpecialSqlCriteria tblMonitorSpecialSqlCriteria = new TblMonitorSpecialSqlCriteria();
tblMonitorSpecialSqlCriteria.createCriteria().andIsValidEqualTo(Constants.IS_VALID_ON);
List<TblMonitorSpecialSql> sqlList = tblMonitorSpecialSqlMapper
.selectByExampleWithBLOBs(tblMonitorSpecialSqlCriteria);
for (TblMonitorSpecialSql tblCheckSql : sqlList) {
String sql = tblCheckSql.getSqlContent();
int rs = 0;
TblResultMonitorSpecial tblResultMonitorSpecial = getMonitorSpecialResult(sql);
if (tblResultMonitorSpecial == null) {
logger.error("Find result is empty!");
return;
}
rs = tblResultMonitorSpecialMapper.insert(tblResultMonitorSpecial);
if (rs == 1) {
logger.info("Run success: {}", sql);
} else {
logger.error("Run failed: {}", sql);
}
}
}
/**
* 获取波动性校验结果
*
* @param sql
* @return
*/
private TblResultMonitorVolatility getMonitorVolatilityResult(String sql, String indicatorType) {
logger.info("Sql content : {},indicatorType: {}", sql, indicatorType);
TblResultMonitorVolatility tblResultMonitorVolatility = null;
if (StringUtils.isBlank(sql) || StringUtils.isBlank(indicatorType)) {
return tblResultMonitorVolatility;
}
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
tblResultMonitorVolatility = new TblResultMonitorVolatility();
tblResultMonitorVolatility.setDbName(rs.getString("db_name"));
tblResultMonitorVolatility.setTbName(rs.getString("tb_name"));
tblResultMonitorVolatility.setColName(rs.getString("col_name"));
tblResultMonitorVolatility.setIndicatorType(rs.getString("indicator_type"));
tblResultMonitorVolatility.setIndicatorValue(rs.getLong("indicator_value"));
tblResultMonitorVolatility.setPartitionDate(rs.getString("partition_date"));
tblResultMonitorVolatility.setCreateTime(rs.getString("create_time"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
return tblResultMonitorVolatility;
}
/**
* 获取特殊性校验结果
*
* @param sql
* @return
*/
private TblResultMonitorSpecial getMonitorSpecialResult(String sql) {
logger.info("Sql content : {}", sql);
TblResultMonitorSpecial tblResultMonitorSpecial = null;
if (StringUtils.isBlank(sql)) {
return tblResultMonitorSpecial;
}
try {
Connection conn = JdbcConnectPool.getConnect();
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
tblResultMonitorSpecial = new TblResultMonitorSpecial();
tblResultMonitorSpecial.setDbName(rs.getString("db_name"));
tblResultMonitorSpecial.setTbName(rs.getString("tb_name"));
tblResultMonitorSpecial.setTimeColName(rs.getString("time_col_name"));
tblResultMonitorSpecial.setStartTime(rs.getString("start_time"));
tblResultMonitorSpecial.setEndTime(rs.getString("end_time"));
tblResultMonitorSpecial.setCountNum(rs.getLong("count_num"));
tblResultMonitorSpecial.setPartitionDate(rs.getString("partition_date"));
tblResultMonitorSpecial.setCreateTime(rs.getString("create_time"));
}
rs.close();
ps.close();
JdbcConnectPool.releaseConnection(conn);
} catch (Exception e) {
e.printStackTrace();
}
return tblResultMonitorSpecial;
}
}
package com.gmei.data.dqmp.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gmei.data.dqmp.domain.TblRuleTemplate;
import com.gmei.data.dqmp.domain.TblRuleTemplateCriteria;
import com.gmei.data.dqmp.dto.RuleTemplateDto;
import com.gmei.data.dqmp.mapper.TblRuleTemplateMapper;
import com.gmei.data.dqmp.service.RuleTemplateService;
import com.gmei.data.dqmp.utils.BeanUtils;
import com.gmei.data.dqmp.vo.RuleTemplateVo;
@Service
public class RuleTemplateServiceImpl implements RuleTemplateService {
@Autowired
private TblRuleTemplateMapper tblRuleTemplateMapper;
@Override
public List<RuleTemplateDto> findRuleTmpls(String tmplType) {
List<RuleTemplateDto> rsList = new ArrayList<>();
TblRuleTemplateCriteria tblDqRuleTemplateCriteria = new TblRuleTemplateCriteria();
tblDqRuleTemplateCriteria.createCriteria().andTypeEqualTo(tmplType);
List<TblRuleTemplate> list = tblRuleTemplateMapper.selectByExample(tblDqRuleTemplateCriteria);
for(TblRuleTemplate tblDqRuleTemplate : list) {
rsList.add(BeanUtils.map(tblDqRuleTemplate, RuleTemplateDto.class));
}
return rsList;
}
@Override
@Transactional
public Integer addRuleTmpl(RuleTemplateVo ruleTemplateVo) {
TblRuleTemplate tblDqRuleTemplate = BeanUtils.map(ruleTemplateVo, TblRuleTemplate.class);
int insertSelective = tblRuleTemplateMapper.insertSelective(tblDqRuleTemplate);
return insertSelective;
}
}
package com.gmei.data.dqmp.utils;
import org.dozer.*;
/**
* ClassName: BeanMapper
* Date: 2019/7/22 下午3:46
*
* @author zhaojianwei
* @since JDK 1.8
*/
public final class BeanUtils {
private static Mapper mapper;
public static void map(final Object source, final Object destination) {
BeanUtils.mapper.map(source, destination);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static <T> T map(final Object source, final Class<T> destinationClass) {
return (T)BeanUtils.mapper.map(source, (Class)destinationClass);
}
@SuppressWarnings({ "unchecked", "rawtypes" })
public static <T> T map(final Object source, final Class<T> destinationClass, final String mapId) {
return (T)BeanUtils.mapper.map(source, (Class)destinationClass, mapId);
}
public static void map(final Object source, final Object destination, final String mapId) {
BeanUtils.mapper.map(source, destination, mapId);
}
static {
BeanUtils.mapper = (Mapper)new DozerBeanMapper();
final Mapper bean = SpringUtils.getBean(Mapper.class);
if (bean != null) {
BeanUtils.mapper = bean;
}
}
}
package com.gmei.data.dqmp.utils;
import java.text.ParseException;
import java.util.Date;
import org.quartz.CronExpression;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CrontabUtils {
private static final Logger logger = LoggerFactory.getLogger(CrontabUtils.class);
/**
* 根据crontab表达式判断当前任务是否应该执行【未来一分钟以内】
* @param crontabStr
* @return
*/
public static boolean isToRun(String crontabStr) {
boolean rs = false;
Date currentDate = new Date();
long currentDateMilliseconds = currentDate.getTime();
CronExpression expression = null;
try {
expression = new CronExpression("0 14 20 * * ?");
Date newDate = expression.getNextValidTimeAfter(currentDate);
long newDateMilliseconds = newDate.getTime();
long diffSeconds = (newDateMilliseconds - currentDateMilliseconds)/1000;
if(diffSeconds < 60) {
rs = true;
}
} catch (ParseException e) {
logger.error("Fail to parse cron express", e);
} catch (Exception e) {
logger.error("Fail to update rule nextTime", e);
}
return rs;
}
public static void main(String[] args) {
System.out.println(isToRun(""));
}
}
package com.gmei.data.dqmp.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtils {
private static final String DATE_FORMATE_YMD = "yyyy-MM-dd";
private static final String DATE_FORMATE_YMDHMS = "yyyy-MM-dd HH:mm:ss";
/**
* 获取当前时间字符串
* @return
*/
public static String getCurrentDateStr() {
return new SimpleDateFormat(DATE_FORMATE_YMD).format(new Date());
}
/**
* 获取当前时间字符串
* @return
*/
public static String getCurrentTimeStr() {
return new SimpleDateFormat(DATE_FORMATE_YMDHMS).format(new Date());
}
}
package com.gmei.data.dqmp.utils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
* ClassName: SpringUtils
* Date: 2019/7/22 下午4:45
*
* @author zhaojianwei
* @since JDK 1.8
*/
public final class SpringUtils implements ApplicationContextAware{
private static ApplicationContext context;
private static void setContext(final ApplicationContext context) {
SpringUtils.context = context;
}
public void setApplicationContext(final ApplicationContext context) {
setContext(context);
}
@SuppressWarnings("unchecked")
public static <T> T getBean(final String name) {
if (checkNull()) {
return null;
}
return (T)SpringUtils.context.getBean(name);
}
@SuppressWarnings({ "unchecked", "rawtypes" })
public static <T> T getBean(final Class<T> clz) {
if (checkNull()) {
return null;
}
return (T)SpringUtils.context.getBean((Class)clz);
}
@SuppressWarnings({ "unchecked", "rawtypes" })
public static <T> T getBean(final String name, final Class<T> clz) {
if (checkNull()) {
return null;
}
return (T)SpringUtils.context.getBean(name, (Class)clz);
}
private static boolean checkNull() {
if (SpringUtils.context == null) {
return true;
}
return false;
}
}
package com.gmei.data.dqmp.vo;
public class BaseVo {
private int status = 0;
private String msg = "success!";
private String user;
public BaseVo() {
}
public BaseVo(int status, String msg) {
this.status = status;
this.msg = msg;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
}
package com.gmei.data.dqmp.vo;
import java.util.List;
import com.gmei.data.dqmp.dto.RuleTemplateDto;
public class RuleTemplateVo extends BaseVo{
private String type;
private String content;
private String comment;
private List<RuleTemplateDto> ruleTemplates;
public RuleTemplateVo() {
super();
}
public RuleTemplateVo(Integer status, String msg) {
super(status,msg);
}
public RuleTemplateVo(String type) {
super();
this.type = type;
}
public RuleTemplateVo(String type, String content, String comment) {
super();
this.type = type;
this.content = content;
this.comment = comment;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public RuleTemplateVo(List<RuleTemplateDto> ruleTemplates) {
super();
this.ruleTemplates = ruleTemplates;
}
public List<RuleTemplateDto> getRuleTemplates() {
return ruleTemplates;
}
public void setRuleTemplates(List<RuleTemplateDto> ruleTemplates) {
this.ruleTemplates = ruleTemplates;
}
}
package com.xxl.job.executor.core.config;
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class XxlJobConfig {
private Logger logger = LoggerFactory.getLogger(XxlJobConfig.class);
@Value("${xxl.job.admin.addresses}")
private String adminAddresses;
@Value("${xxl.job.executor.appname}")
private String appName;
@Value("${xxl.job.executor.ip}")
private String ip;
@Value("${xxl.job.executor.port}")
private int port;
@Value("${xxl.job.accessToken}")
private String accessToken;
@Value("${xxl.job.executor.logpath}")
private String logPath;
@Value("${xxl.job.executor.logretentiondays}")
private int logRetentionDays;
@Bean(initMethod = "start", destroyMethod = "destroy")
public XxlJobSpringExecutor xxlJobExecutor() {
logger.info(">>>>>>>>>>> xxl-job config init.");
XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
xxlJobSpringExecutor.setAppName(appName);
xxlJobSpringExecutor.setIp(ip);
xxlJobSpringExecutor.setPort(port);
xxlJobSpringExecutor.setAccessToken(accessToken);
xxlJobSpringExecutor.setLogPath(logPath);
xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);
return xxlJobSpringExecutor;
}
/**
* 针对多网卡、容器内部署等情况,可借助 "spring-cloud-commons" 提供的 "InetUtils" 组件灵活定制注册IP;
*
* 1、引入依赖:
* <dependency>
* <groupId>org.springframework.cloud</groupId>
* <artifactId>spring-cloud-commons</artifactId>
* <version>${version}</version>
* </dependency>
*
* 2、配置文件,或者容器启动变量
* spring.cloud.inetutils.preferred-networks: 'xxx.xxx.xxx.'
*
* 3、获取IP
* String ip_ = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress();
*/
}
\ No newline at end of file
//package com.xxl.job.executor.mvc.controller;
//
//import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//@Controller
//@EnableAutoConfiguration
//public class IndexController {
//
// @RequestMapping("/")
// @ResponseBody
// String index() {
// return "xxl job executor running.";
// }
//
//}
\ No newline at end of file
package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* 命令行任务
*/
@JobHandler(value="commandJobHandler")
@Component
public class CommandJobHandler extends IJobHandler {
@Override
public ReturnT<String> execute(String param) throws Exception {
String command = param;
int exitValue = -1;
BufferedReader bufferedReader = null;
try {
// command process
Process process = Runtime.getRuntime().exec(command);
BufferedInputStream bufferedInputStream = new BufferedInputStream(process.getInputStream());
bufferedReader = new BufferedReader(new InputStreamReader(bufferedInputStream));
// command log
String line;
while ((line = bufferedReader.readLine()) != null) {
XxlJobLogger.log(line);
}
// command exit
process.waitFor();
exitValue = process.exitValue();
} catch (Exception e) {
XxlJobLogger.log(e);
} finally {
if (bufferedReader != null) {
bufferedReader.close();
}
}
if (exitValue == 0) {
return IJobHandler.SUCCESS;
} else {
return new ReturnT<String>(IJobHandler.FAIL.getCode(), "command exit value("+exitValue+") is failed");
}
}
}
package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
/**
* 任务Handler示例(Bean模式)
*
* 开发步骤:
* 1、继承"IJobHandler":“com.xxl.job.core.handler.IJobHandler”;
* 2、注册到Spring容器:添加“@Component”注解,被Spring容器扫描为Bean实例;
* 3、注册到执行器工厂:添加“@JobHandler(value="自定义jobhandler名称")”注解,注解value值对应的是调度中心新建任务的JobHandler属性的值。
* 4、执行日志:需要通过 "XxlJobLogger.log" 打印执行日志;
*/
@JobHandler(value="demoJobHandler")
@Component
public class DemoJobHandler extends IJobHandler {
@Override
public ReturnT<String> execute(String param) throws Exception {
XxlJobLogger.log("XXL-JOB, Hello World.");
for (int i = 0; i < 5; i++) {
XxlJobLogger.log("beat at:" + i);
TimeUnit.SECONDS.sleep(2);
}
return SUCCESS;
}
}
package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* 跨平台Http任务
*/
@JobHandler(value = "httpJobHandler")
@Component
public class HttpJobHandler extends IJobHandler {
@Override
public ReturnT<String> execute(String param) throws Exception {
// request
HttpURLConnection connection = null;
BufferedReader bufferedReader = null;
try {
// connection
URL realUrl = new URL(param);
connection = (HttpURLConnection) realUrl.openConnection();
// connection setting
connection.setRequestMethod("GET");
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setUseCaches(false);
connection.setReadTimeout(5 * 1000);
connection.setConnectTimeout(3 * 1000);
connection.setRequestProperty("connection", "Keep-Alive");
connection.setRequestProperty("Content-Type", "application/json;charset=UTF-8");
connection.setRequestProperty("Accept-Charset", "application/json;charset=UTF-8");
// do connection
connection.connect();
//Map<String, List<String>> map = connection.getHeaderFields();
// valid StatusCode
int statusCode = connection.getResponseCode();
if (statusCode != 200) {
throw new RuntimeException("Http Request StatusCode(" + statusCode + ") Invalid.");
}
// result
bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
StringBuilder result = new StringBuilder();
String line;
while ((line = bufferedReader.readLine()) != null) {
result.append(line);
}
String responseMsg = result.toString();
XxlJobLogger.log(responseMsg);
return SUCCESS;
} catch (Exception e) {
XxlJobLogger.log(e);
return FAIL;
} finally {
try {
if (bufferedReader != null) {
bufferedReader.close();
}
if (connection != null) {
connection.disconnect();
}
} catch (Exception e2) {
XxlJobLogger.log(e2);
}
}
}
}
package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.core.util.ShardingUtil;
import org.springframework.stereotype.Service;
/**
* 分片广播任务
*/
@JobHandler(value="shardingJobHandler")
@Service
public class ShardingJobHandler extends IJobHandler {
@Override
public ReturnT<String> execute(String param) throws Exception {
// 分片参数
ShardingUtil.ShardingVO shardingVO = ShardingUtil.getShardingVo();
XxlJobLogger.log("分片参数:当前分片序号 = {}, 总分片数 = {}", shardingVO.getIndex(), shardingVO.getTotal());
// 业务逻辑
for (int i = 0; i < shardingVO.getTotal(); i++) {
if (i == shardingVO.getIndex()) {
XxlJobLogger.log("第 {} 片, 命中分片开始处理", i);
} else {
XxlJobLogger.log("第 {} 片, 忽略", i);
}
}
return SUCCESS;
}
}
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
level:
com:
gmei:
data:
dqmp:
mapper: debug
#---xxl-job config---
xxl:
job:
admin:
addresses: http://152.136.185.159:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: localhost
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
#---xxl-job config---
xxl:
job:
admin:
addresses: http://152.136.185.159:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: localhost
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
#---xxl-job config---
xxl:
job:
admin:
addresses: http://172.18.44.11:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: 172.18.44.11
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
# web port
server.port=8990
#--- thymeleaf config ---
spring.thymeleaf.cache=false
#--- email config ---
spring.mail.host=smtp.exmail.qq.com
spring.mail.username=youjiantongji@wanmeizhensuo.com
spring.mail.password=mq37tgk8nGi6eg1Hgq388oro3itvdmPl
spring.mail.default-encoding=UTF-8
mail.fromMail.addr=youjiantongji@wanmeizhensuo.com
#--- mysql config ---
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
spring.datasource.username=root
spring.datasource.password=5OqYM^zLwotJ3oSo
#--- mybatis config ---
mybatis.mapper-locations: classpath:mybatis/mapper/*Mapper.xml
mybatis.type-aliases-package: com.gmei.data.dqmp
#--- druid pool config ---
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.initialSize=5
spring.datasource.minIdle=5
spring.datasource.maxActive=20
spring.datasource.maxWait=60000
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.filters=stat,wall,log4j
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
#--- pagehelper config ---
pagehelper.helper-dialect=mysql
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql
#--- log config ---
logging.config=classpath:logback.xml
#--- xxl-job config ---
xxl.job.admin.addresses=http://152.136.185.159:8989/xxl-job-admin
xxl.job.executor.appname=dqmp
xxl.job.executor.ip=localhost
xxl.job.executor.port=9797
xxl.job.accessToken=
xxl.job.executor.logpath=/tmp
xxl.job.executor.logretentiondays=-1
spring:
profiles:
active: dev
\ No newline at end of file
________ ________ _____ __________
\______ \ \_____ \ / \\______ \
| | \ / / \ \ / \ / \| ___/
| ` \/ \_/. \/ Y \ |
/_______ /\_____\ \_/\____|__ /____|
\/ \__> \/
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
<generatorConfiguration>
<!-- jdbc路径 -->
<classPathEntry location="/Users/apple/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar"/>
<context id="context" targetRuntime="MyBatis3">
<plugin type="org.mybatis.generator.plugins.RenameExampleClassPlugin">
<property name="searchString" value="Example$"/>
<property name="replaceString" value="Criteria"/>
</plugin>
<commentGenerator>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!-- 请填写connectionURL、userId、password -->
<!--<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false" userId="oozie_tmp" password="IXjTs5PFpi"/>-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false" userId="root" password="5OqYM^zLwotJ3oSo"/>
<!-- 生成持久化对象 -->
<javaModelGenerator targetPackage="com.gmei.data.dqmp.domain" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- 生成mapper.xml文件 -->
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources/mybatis">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<!-- 生成Mapper接口 -->
<javaClientGenerator targetPackage="com.gmei.data.dqmp.mapper" targetProject="src/main/java" type="XMLMAPPER">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!-- 需要生成的数据库表 -->
<!-- <table tableName="tbl_rule_template" domainObjectName="TblRuleTemplate"/> -->
<!-- <table tableName="tbl_check_single_sql" domainObjectName="TblCheckSingleSql"/> -->
<!-- <table tableName="tbl_result_check_unique" domainObjectName="TblResultCheckUnique"/> -->
<!-- <table tableName="tbl_result_check_unblank" domainObjectName="TblResultCheckUnblank"/> -->
<!-- <table tableName="tbl_client_version_info" domainObjectName="TblClientVersionInfo"/> -->
<!-- <table tableName="tbl_result_check_refer" domainObjectName="TblResultCheckRefer"/> -->
<!-- <table tableName="tbl_check_multiple_sql" domainObjectName="TblCheckMultipleSql"/> -->
<!-- <table tableName="tbl_monitor_volatility_sql" domainObjectName="TblMonitorVolatilitySql"/> -->
<!-- <table tableName="tbl_result_monitor_volatility" domainObjectName="TblResultMonitorVolatility"/> -->
<table tableName="tbl_monitor_special_sql" domainObjectName="TblMonitorSpecialSql"/>
<table tableName="tbl_result_monitor_special" domainObjectName="TblResultMonitorSpecial"/>
</context>
</generatorConfiguration>
#base
driverClassName=org.apache.hive.jdbc.HiveDriver
url=jdbc:hive2://152.136.57.57:10010
username=data
password=
#other
initSize=10
maxSize=20
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="true" scanPeriod="1 seconds">
<contextName>logback</contextName>
<property name="log.path" value="/tmp/dqmp.log"/>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.zip</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%date %level [%thread] %logger{36} [%file : %line] %msg%n
</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="file"/>
</root>
</configuration>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblCheckMultipleSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_type" property="checkType" jdbcType="VARCHAR" />
<result column="check_db_name" property="checkDbName" jdbcType="VARCHAR" />
<result column="check_tb_name" property="checkTbName" jdbcType="VARCHAR" />
<result column="check_col_name" property="checkColName" jdbcType="VARCHAR" />
<result column="refer_db_name" property="referDbName" jdbcType="VARCHAR" />
<result column="refer_tb_name" property="referTbName" jdbcType="VARCHAR" />
<result column="refer_col_name" property="referColName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblCheckMultipleSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
refer_col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_multiple_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_check_multiple_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
delete from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
insert into tbl_check_multiple_sql (id, check_type, check_db_name,
check_tb_name, check_col_name, refer_db_name,
refer_tb_name, refer_col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR},
#{checkTbName,jdbcType=VARCHAR}, #{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR},
#{referTbName,jdbcType=VARCHAR}, #{referColName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
insert into tbl_check_multiple_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkType != null" >
check_type,
</if>
<if test="checkDbName != null" >
check_db_name,
</if>
<if test="checkTbName != null" >
check_tb_name,
</if>
<if test="checkColName != null" >
check_col_name,
</if>
<if test="referDbName != null" >
refer_db_name,
</if>
<if test="referTbName != null" >
refer_tb_name,
</if>
<if test="referColName != null" >
refer_col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkType != null" >
#{checkType,jdbcType=VARCHAR},
</if>
<if test="checkDbName != null" >
#{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
#{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
#{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
#{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
#{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
#{referColName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_check_multiple_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkType != null" >
check_type = #{record.checkType,jdbcType=VARCHAR},
</if>
<if test="record.checkDbName != null" >
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
</if>
<if test="record.checkTbName != null" >
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
</if>
<if test="record.checkColName != null" >
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
</if>
<if test="record.referDbName != null" >
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
</if>
<if test="record.referTbName != null" >
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
</if>
<if test="record.referColName != null" >
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_check_multiple_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_check_multiple_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
<set >
<if test="checkType != null" >
check_type = #{checkType,jdbcType=VARCHAR},
</if>
<if test="checkDbName != null" >
check_db_name = #{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
check_col_name = #{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
refer_db_name = #{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblCheckSingleSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_type" property="checkType" jdbcType="VARCHAR" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblCheckSingleSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_type, db_name, tb_name, col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_single_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_check_single_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
delete from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
insert into tbl_check_single_sql (id, check_type, db_name,
tb_name, col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
insert into tbl_check_single_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkType != null" >
check_type,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkType != null" >
#{checkType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_check_single_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkType != null" >
check_type = #{record.checkType,jdbcType=VARCHAR},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_check_single_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_check_single_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
<set >
<if test="checkType != null" >
check_type = #{checkType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblClientVersionInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="cl_type" property="clType" jdbcType="VARCHAR" />
<result column="cl_version" property="clVersion" jdbcType="VARCHAR" />
<result column="version_time" property="versionTime" jdbcType="VARCHAR" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, cl_type, cl_version, version_time, partition_date, create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_client_version_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_client_version_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" >
delete from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
insert into tbl_client_version_info (id, cl_type, cl_version,
version_time, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{clType,jdbcType=VARCHAR}, #{clVersion,jdbcType=VARCHAR},
#{versionTime,jdbcType=VARCHAR}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
insert into tbl_client_version_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="clType != null" >
cl_type,
</if>
<if test="clVersion != null" >
cl_version,
</if>
<if test="versionTime != null" >
version_time,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="clType != null" >
#{clType,jdbcType=VARCHAR},
</if>
<if test="clVersion != null" >
#{clVersion,jdbcType=VARCHAR},
</if>
<if test="versionTime != null" >
#{versionTime,jdbcType=VARCHAR},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_client_version_info
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.clType != null" >
cl_type = #{record.clType,jdbcType=VARCHAR},
</if>
<if test="record.clVersion != null" >
cl_version = #{record.clVersion,jdbcType=VARCHAR},
</if>
<if test="record.versionTime != null" >
version_time = #{record.versionTime,jdbcType=VARCHAR},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_client_version_info
set id = #{record.id,jdbcType=INTEGER},
cl_type = #{record.clType,jdbcType=VARCHAR},
cl_version = #{record.clVersion,jdbcType=VARCHAR},
version_time = #{record.versionTime,jdbcType=VARCHAR},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
update tbl_client_version_info
<set >
<if test="clType != null" >
cl_type = #{clType,jdbcType=VARCHAR},
</if>
<if test="clVersion != null" >
cl_version = #{clVersion,jdbcType=VARCHAR},
</if>
<if test="versionTime != null" >
version_time = #{versionTime,jdbcType=VARCHAR},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
update tbl_client_version_info
set cl_type = #{clType,jdbcType=VARCHAR},
cl_version = #{clVersion,jdbcType=VARCHAR},
version_time = #{versionTime,jdbcType=VARCHAR},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblMonitorSpecialSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="time_col_name" property="timeColName" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="VARCHAR" />
<result column="end_time" property="endTime" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, time_col_name, start_time, end_time, is_valid, check_time,
create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_special_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_monitor_special_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
delete from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
insert into tbl_monitor_special_sql (id, db_name, tb_name,
time_col_name, start_time, end_time,
is_valid, check_time, create_time,
sql_content)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{timeColName,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
#{sqlContent,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
insert into tbl_monitor_special_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="timeColName != null" >
time_col_name,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
#{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_monitor_special_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.timeColName != null" >
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null" >
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
<if test="record.endTime != null" >
end_time = #{record.endTime,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_monitor_special_sql
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_monitor_special_sql
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
time_col_name = #{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblMonitorVolatilitySqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="indicator_type" property="indicatorType" jdbcType="VARCHAR" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, indicator_type, db_name, tb_name, col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_volatility_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_monitor_volatility_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
delete from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
insert into tbl_monitor_volatility_sql (id, indicator_type, db_name,
tb_name, col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{indicatorType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
insert into tbl_monitor_volatility_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="indicatorType != null" >
indicator_type,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="indicatorType != null" >
#{indicatorType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_monitor_volatility_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.indicatorType != null" >
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_monitor_volatility_sql
set id = #{record.id,jdbcType=INTEGER},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_monitor_volatility_sql
set id = #{record.id,jdbcType=INTEGER},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
<set >
<if test="indicatorType != null" >
indicator_type = #{indicatorType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
set indicator_type = #{indicatorType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
set indicator_type = #{indicatorType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckReferMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_db_name" property="checkDbName" jdbcType="VARCHAR" />
<result column="check_tb_name" property="checkTbName" jdbcType="VARCHAR" />
<result column="check_col_name" property="checkColName" jdbcType="VARCHAR" />
<result column="refer_db_name" property="referDbName" jdbcType="VARCHAR" />
<result column="refer_tb_name" property="referTbName" jdbcType="VARCHAR" />
<result column="refer_col_name" property="referColName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="matched_num" property="matchedNum" jdbcType="BIGINT" />
<result column="matched_rate" property="matchedRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name, refer_col_name,
all_num, matched_num, matched_rate, partition_date, create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_refer
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_refer
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" >
delete from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
insert into tbl_result_check_refer (id, check_db_name, check_tb_name,
check_col_name, refer_db_name, refer_tb_name,
refer_col_name, all_num, matched_num,
matched_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{checkDbName,jdbcType=VARCHAR}, #{checkTbName,jdbcType=VARCHAR},
#{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR}, #{referTbName,jdbcType=VARCHAR},
#{referColName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{matchedNum,jdbcType=BIGINT},
#{matchedRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
insert into tbl_result_check_refer
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkDbName != null" >
check_db_name,
</if>
<if test="checkTbName != null" >
check_tb_name,
</if>
<if test="checkColName != null" >
check_col_name,
</if>
<if test="referDbName != null" >
refer_db_name,
</if>
<if test="referTbName != null" >
refer_tb_name,
</if>
<if test="referColName != null" >
refer_col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="matchedNum != null" >
matched_num,
</if>
<if test="matchedRate != null" >
matched_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkDbName != null" >
#{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
#{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
#{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
#{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
#{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
#{referColName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="matchedNum != null" >
#{matchedNum,jdbcType=BIGINT},
</if>
<if test="matchedRate != null" >
#{matchedRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_refer
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkDbName != null" >
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
</if>
<if test="record.checkTbName != null" >
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
</if>
<if test="record.checkColName != null" >
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
</if>
<if test="record.referDbName != null" >
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
</if>
<if test="record.referTbName != null" >
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
</if>
<if test="record.referColName != null" >
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.matchedNum != null" >
matched_num = #{record.matchedNum,jdbcType=BIGINT},
</if>
<if test="record.matchedRate != null" >
matched_rate = #{record.matchedRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_refer
set id = #{record.id,jdbcType=INTEGER},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
matched_num = #{record.matchedNum,jdbcType=BIGINT},
matched_rate = #{record.matchedRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
update tbl_result_check_refer
<set >
<if test="checkDbName != null" >
check_db_name = #{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
check_col_name = #{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
refer_db_name = #{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="matchedNum != null" >
matched_num = #{matchedNum,jdbcType=BIGINT},
</if>
<if test="matchedRate != null" >
matched_rate = #{matchedRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
update tbl_result_check_refer
set check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
matched_num = #{matchedNum,jdbcType=BIGINT},
matched_rate = #{matchedRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckUnblankMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="unblank_num" property="unblankNum" jdbcType="BIGINT" />
<result column="unblank_rate" property="unblankRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, all_num, unblank_num, unblank_rate, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_unblank
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_unblank
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" >
delete from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
insert into tbl_result_check_unblank (id, db_name, tb_name,
col_name, all_num, unblank_num,
unblank_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{unblankNum,jdbcType=BIGINT},
#{unblankRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
insert into tbl_result_check_unblank
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="unblankNum != null" >
unblank_num,
</if>
<if test="unblankRate != null" >
unblank_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="unblankNum != null" >
#{unblankNum,jdbcType=BIGINT},
</if>
<if test="unblankRate != null" >
#{unblankRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_unblank
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.unblankNum != null" >
unblank_num = #{record.unblankNum,jdbcType=BIGINT},
</if>
<if test="record.unblankRate != null" >
unblank_rate = #{record.unblankRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_unblank
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
unblank_num = #{record.unblankNum,jdbcType=BIGINT},
unblank_rate = #{record.unblankRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
update tbl_result_check_unblank
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="unblankNum != null" >
unblank_num = #{unblankNum,jdbcType=BIGINT},
</if>
<if test="unblankRate != null" >
unblank_rate = #{unblankRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
update tbl_result_check_unblank
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
unblank_num = #{unblankNum,jdbcType=BIGINT},
unblank_rate = #{unblankRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckUniqueMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="unique_num" property="uniqueNum" jdbcType="BIGINT" />
<result column="unique_rate" property="uniqueRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, all_num, unique_num, unique_rate, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_unique
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_unique
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" >
delete from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
insert into tbl_result_check_unique (id, db_name, tb_name,
col_name, all_num, unique_num,
unique_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{uniqueNum,jdbcType=BIGINT},
#{uniqueRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
insert into tbl_result_check_unique
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="uniqueNum != null" >
unique_num,
</if>
<if test="uniqueRate != null" >
unique_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="uniqueNum != null" >
#{uniqueNum,jdbcType=BIGINT},
</if>
<if test="uniqueRate != null" >
#{uniqueRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_unique
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.uniqueNum != null" >
unique_num = #{record.uniqueNum,jdbcType=BIGINT},
</if>
<if test="record.uniqueRate != null" >
unique_rate = #{record.uniqueRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_unique
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
unique_num = #{record.uniqueNum,jdbcType=BIGINT},
unique_rate = #{record.uniqueRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
update tbl_result_check_unique
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="uniqueNum != null" >
unique_num = #{uniqueNum,jdbcType=BIGINT},
</if>
<if test="uniqueRate != null" >
unique_rate = #{uniqueRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
update tbl_result_check_unique
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
unique_num = #{uniqueNum,jdbcType=BIGINT},
unique_rate = #{uniqueRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultMonitorSpecialMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="time_col_name" property="timeColName" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="VARCHAR" />
<result column="end_time" property="endTime" jdbcType="VARCHAR" />
<result column="count_num" property="countNum" jdbcType="BIGINT" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, time_col_name, start_time, end_time, count_num, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_monitor_special
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_monitor_special
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" >
delete from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
insert into tbl_result_monitor_special (id, db_name, tb_name,
time_col_name, start_time, end_time,
count_num, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{timeColName,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR},
#{countNum,jdbcType=BIGINT}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
insert into tbl_result_monitor_special
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="timeColName != null" >
time_col_name,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="countNum != null" >
count_num,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
#{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=VARCHAR},
</if>
<if test="countNum != null" >
#{countNum,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_monitor_special
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.timeColName != null" >
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null" >
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
<if test="record.endTime != null" >
end_time = #{record.endTime,jdbcType=VARCHAR},
</if>
<if test="record.countNum != null" >
count_num = #{record.countNum,jdbcType=BIGINT},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_monitor_special
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
count_num = #{record.countNum,jdbcType=BIGINT},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
update tbl_result_monitor_special
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
time_col_name = #{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=VARCHAR},
</if>
<if test="countNum != null" >
count_num = #{countNum,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
update tbl_result_monitor_special
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
count_num = #{countNum,jdbcType=BIGINT},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultMonitorVolatilityMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="indicator_type" property="indicatorType" jdbcType="VARCHAR" />
<result column="indicator_value" property="indicatorValue" jdbcType="BIGINT" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, indicator_type, indicator_value, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_monitor_volatility
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_monitor_volatility
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" >
delete from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
insert into tbl_result_monitor_volatility (id, db_name, tb_name,
col_name, indicator_type, indicator_value,
partition_date, create_time)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR}, #{indicatorValue,jdbcType=BIGINT},
#{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
insert into tbl_result_monitor_volatility
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="indicatorType != null" >
indicator_type,
</if>
<if test="indicatorValue != null" >
indicator_value,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="indicatorType != null" >
#{indicatorType,jdbcType=VARCHAR},
</if>
<if test="indicatorValue != null" >
#{indicatorValue,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_monitor_volatility
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.indicatorType != null" >
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
</if>
<if test="record.indicatorValue != null" >
indicator_value = #{record.indicatorValue,jdbcType=BIGINT},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_monitor_volatility
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_value = #{record.indicatorValue,jdbcType=BIGINT},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
update tbl_result_monitor_volatility
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="indicatorType != null" >
indicator_type = #{indicatorType,jdbcType=VARCHAR},
</if>
<if test="indicatorValue != null" >
indicator_value = #{indicatorValue,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
update tbl_result_monitor_volatility
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_value = #{indicatorValue,jdbcType=BIGINT},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblRuleTemplateMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblRuleTemplate" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="type" property="type" jdbcType="VARCHAR" />
<result column="content" property="content" jdbcType="VARCHAR" />
<result column="comment" property="comment" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, type, content, comment
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_rule_template
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_rule_template
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
delete from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
insert into tbl_rule_template (id, type, content,
comment)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
insert into tbl_rule_template
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="type != null" >
type,
</if>
<if test="content != null" >
content,
</if>
<if test="comment != null" >
comment,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="type != null" >
#{type,jdbcType=VARCHAR},
</if>
<if test="content != null" >
#{content,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
#{comment,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_rule_template
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.type != null" >
type = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.content != null" >
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.comment != null" >
comment = #{record.comment,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_rule_template
set id = #{record.id,jdbcType=INTEGER},
type = #{record.type,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
update tbl_rule_template
<set >
<if test="type != null" >
type = #{type,jdbcType=VARCHAR},
</if>
<if test="content != null" >
content = #{content,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
comment = #{comment,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
update tbl_rule_template
set type = #{type,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
package com.gmei.data.dqmp.service;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@SpringBootTest
@RunWith(SpringRunner.class)
public class MailServiceTest {
@Autowired
private MailService MailService;
@Test
public void testSimpleMail() throws Exception {
MailService.sendSimpleMail("zhaojianwei@igengmei.com","test simple mail"," hello this is simple mail");
}
}
package com.xxl.job.executor.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class XxlJobExecutorExampleBootApplicationTests {
@Test
public void test() {
}
}
\ No newline at end of file
Manifest-Version: 1.0
Built-By: apple
Build-Jdk: 1.8.0_181
Created-By: Maven Integration for Eclipse
#Generated by Maven Integration for Eclipse
#Thu Dec 12 19:52:16 CST 2019
version=2.1.0
groupId=com.xuxueli
m2e.projectName=DQMP
m2e.projectLocation=/Users/apple/gitself-repo/xxl-job-executor-sample-springboot
artifactId=DQMP
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-executor-samples</artifactId>
<version>2.1.0</version>
</parent>
<artifactId>DQMP</artifactId>
<packaging>jar</packaging>
<name>DQMP</name>
<description>Example executor project for spring boot.</description>
<properties>
<scala.version>2.11</scala.version>
<spark.version>2.3.0</spark.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<!-- (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 集成mysql驱动 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<!-- 集成mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<!-- 集成thymeleaf页面显示模板 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- 集成热部署插件 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<!-- 为了使用@Data等高级标签,特引入lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!-- 增加fastjson工具类 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.58</version>
</dependency>
<!--集成jpa 决定选择mybatis,此处暂时注掉 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- 集成邮件 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<!-- 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
<!-- quartz插件 -->
<dependency>
<groupId>org.opensymphony.quartz</groupId>
<artifactId>quartz-all</artifactId>
<version>1.6.1</version>
</dependency>
<!-- jsoup依赖 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.12.1</version>
</dependency>
<!-- dozer依赖 属性复制 -->
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>5.4.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- xxl-job依赖 -->
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<!-- spark依赖 -->
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version}</artifactId>
<version>${spark.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<artifactId>slf4j-simple</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<!-- spark_hive依赖 -->
<dependency>
<groupId>org.spark-project.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.1.spark2</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-shims</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- hadoop依赖 -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.6.0</version>
</dependency>
<!-- deequ依赖 -->
<!-- <dependency> <groupId>com.amazon.deequ</groupId> <artifactId>deequ</artifactId>
<version>1.0.2</version> </dependency> -->
<!--集成mybatis自动生成工具 -->
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
<!-- 由于xxl-job的springboot版本比较低,所以此处暂不支持监控组件的集成 -->
<!-- <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId>
<version>2.1.0</version> </dependency> -->
</dependencies>
<build>
<plugins>
<!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!--集成mybatis自动生成工具 -->
<!-- <plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<configurationFile>src/main/resources/generator.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin> -->
</plugins>
</build>
</project>
\ No newline at end of file
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
level:
com:
gmei:
data:
dqmp:
mapper: debug
#---xxl-job config---
xxl:
job:
admin:
addresses: http://152.136.185.159:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: localhost
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
#---xxl-job config---
xxl:
job:
admin:
addresses: http://152.136.185.159:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: localhost
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
#---server config---
server:
port: 8990
spring:
#---thymeleaf config ---
thymeleaf:
cache: false
#---email config---
mail:
host: smtp.exmail.qq.com
username: youjiantongji@wanmeizhensuo.com
password: mq37tgk8nGi6eg1Hgq388oro3itvdmPl
default-encoding: UTF-8
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#---jpa config---
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: true
hibernate:
ddl-auto: update
#---email send config---
mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
#---mybatis config---
mybatis:
mapper-locations: classpath:mybatis/mapper/*Mapper.xml
type-aliases-package: com.gmei.data.dqmp
#---pagehelper config---
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#---log config---
logging:
config: classpath:logback.xml
#---xxl-job config---
xxl:
job:
admin:
addresses: http://172.18.44.11:8989/xxl-job-admin
accessToken:
executor:
appname: dqmp
ip: 172.18.44.11
port: 9797
logpath: /tmp
logretentiondays: -1
\ No newline at end of file
# web port
server.port=8990
#--- thymeleaf config ---
spring.thymeleaf.cache=false
#--- email config ---
spring.mail.host=smtp.exmail.qq.com
spring.mail.username=youjiantongji@wanmeizhensuo.com
spring.mail.password=mq37tgk8nGi6eg1Hgq388oro3itvdmPl
spring.mail.default-encoding=UTF-8
mail.fromMail.addr=youjiantongji@wanmeizhensuo.com
#--- mysql config ---
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false
spring.datasource.username=root
spring.datasource.password=5OqYM^zLwotJ3oSo
#--- mybatis config ---
mybatis.mapper-locations: classpath:mybatis/mapper/*Mapper.xml
mybatis.type-aliases-package: com.gmei.data.dqmp
#--- druid pool config ---
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.initialSize=5
spring.datasource.minIdle=5
spring.datasource.maxActive=20
spring.datasource.maxWait=60000
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.filters=stat,wall,log4j
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
#--- pagehelper config ---
pagehelper.helper-dialect=mysql
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql
#--- log config ---
logging.config=classpath:logback.xml
#--- xxl-job config ---
xxl.job.admin.addresses=http://152.136.185.159:8989/xxl-job-admin
xxl.job.executor.appname=dqmp
xxl.job.executor.ip=localhost
xxl.job.executor.port=9797
xxl.job.accessToken=
xxl.job.executor.logpath=/tmp
xxl.job.executor.logretentiondays=-1
spring:
profiles:
active: dev
\ No newline at end of file
________ ________ _____ __________
\______ \ \_____ \ / \\______ \
| | \ / / \ \ / \ / \| ___/
| ` \/ \_/. \/ Y \ |
/_______ /\_____\ \_/\____|__ /____|
\/ \__> \/
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
<generatorConfiguration>
<!-- jdbc路径 -->
<classPathEntry location="/Users/apple/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar"/>
<context id="context" targetRuntime="MyBatis3">
<plugin type="org.mybatis.generator.plugins.RenameExampleClassPlugin">
<property name="searchString" value="Example$"/>
<property name="replaceString" value="Criteria"/>
</plugin>
<commentGenerator>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!-- 请填写connectionURL、userId、password -->
<!--<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false" userId="oozie_tmp" password="IXjTs5PFpi"/>-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://152.136.57.57:3306/dqmp?useSSL=false" userId="root" password="5OqYM^zLwotJ3oSo"/>
<!-- 生成持久化对象 -->
<javaModelGenerator targetPackage="com.gmei.data.dqmp.domain" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- 生成mapper.xml文件 -->
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources/mybatis">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<!-- 生成Mapper接口 -->
<javaClientGenerator targetPackage="com.gmei.data.dqmp.mapper" targetProject="src/main/java" type="XMLMAPPER">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!-- 需要生成的数据库表 -->
<!-- <table tableName="tbl_rule_template" domainObjectName="TblRuleTemplate"/> -->
<!-- <table tableName="tbl_check_single_sql" domainObjectName="TblCheckSingleSql"/> -->
<!-- <table tableName="tbl_result_check_unique" domainObjectName="TblResultCheckUnique"/> -->
<!-- <table tableName="tbl_result_check_unblank" domainObjectName="TblResultCheckUnblank"/> -->
<!-- <table tableName="tbl_client_version_info" domainObjectName="TblClientVersionInfo"/> -->
<!-- <table tableName="tbl_result_check_refer" domainObjectName="TblResultCheckRefer"/> -->
<!-- <table tableName="tbl_check_multiple_sql" domainObjectName="TblCheckMultipleSql"/> -->
<!-- <table tableName="tbl_monitor_volatility_sql" domainObjectName="TblMonitorVolatilitySql"/> -->
<!-- <table tableName="tbl_result_monitor_volatility" domainObjectName="TblResultMonitorVolatility"/> -->
<table tableName="tbl_monitor_special_sql" domainObjectName="TblMonitorSpecialSql"/>
<table tableName="tbl_result_monitor_special" domainObjectName="TblResultMonitorSpecial"/>
</context>
</generatorConfiguration>
#base
driverClassName=org.apache.hive.jdbc.HiveDriver
url=jdbc:hive2://152.136.57.57:10010
username=data
password=
#other
initSize=10
maxSize=20
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="true" scanPeriod="1 seconds">
<contextName>logback</contextName>
<property name="log.path" value="/tmp/dqmp.log"/>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.zip</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%date %level [%thread] %logger{36} [%file : %line] %msg%n
</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="file"/>
</root>
</configuration>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblCheckMultipleSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_type" property="checkType" jdbcType="VARCHAR" />
<result column="check_db_name" property="checkDbName" jdbcType="VARCHAR" />
<result column="check_tb_name" property="checkTbName" jdbcType="VARCHAR" />
<result column="check_col_name" property="checkColName" jdbcType="VARCHAR" />
<result column="refer_db_name" property="referDbName" jdbcType="VARCHAR" />
<result column="refer_tb_name" property="referTbName" jdbcType="VARCHAR" />
<result column="refer_col_name" property="referColName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblCheckMultipleSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
refer_col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_multiple_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_check_multiple_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" >
delete from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
insert into tbl_check_multiple_sql (id, check_type, check_db_name,
check_tb_name, check_col_name, refer_db_name,
refer_tb_name, refer_col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR},
#{checkTbName,jdbcType=VARCHAR}, #{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR},
#{referTbName,jdbcType=VARCHAR}, #{referColName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
insert into tbl_check_multiple_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkType != null" >
check_type,
</if>
<if test="checkDbName != null" >
check_db_name,
</if>
<if test="checkTbName != null" >
check_tb_name,
</if>
<if test="checkColName != null" >
check_col_name,
</if>
<if test="referDbName != null" >
refer_db_name,
</if>
<if test="referTbName != null" >
refer_tb_name,
</if>
<if test="referColName != null" >
refer_col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkType != null" >
#{checkType,jdbcType=VARCHAR},
</if>
<if test="checkDbName != null" >
#{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
#{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
#{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
#{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
#{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
#{referColName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_check_multiple_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_check_multiple_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkType != null" >
check_type = #{record.checkType,jdbcType=VARCHAR},
</if>
<if test="record.checkDbName != null" >
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
</if>
<if test="record.checkTbName != null" >
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
</if>
<if test="record.checkColName != null" >
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
</if>
<if test="record.referDbName != null" >
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
</if>
<if test="record.referTbName != null" >
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
</if>
<if test="record.referColName != null" >
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_check_multiple_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_check_multiple_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
<set >
<if test="checkType != null" >
check_type = #{checkType,jdbcType=VARCHAR},
</if>
<if test="checkDbName != null" >
check_db_name = #{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
check_col_name = #{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
refer_db_name = #{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblCheckMultipleSql" >
update tbl_check_multiple_sql
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblCheckSingleSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_type" property="checkType" jdbcType="VARCHAR" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblCheckSingleSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_type, db_name, tb_name, col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_check_single_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_check_single_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" >
delete from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
insert into tbl_check_single_sql (id, check_type, db_name,
tb_name, col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
insert into tbl_check_single_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkType != null" >
check_type,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkType != null" >
#{checkType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_check_single_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_check_single_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkType != null" >
check_type = #{record.checkType,jdbcType=VARCHAR},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_check_single_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_check_single_sql
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
<set >
<if test="checkType != null" >
check_type = #{checkType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblCheckSingleSql" >
update tbl_check_single_sql
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblClientVersionInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="cl_type" property="clType" jdbcType="VARCHAR" />
<result column="cl_version" property="clVersion" jdbcType="VARCHAR" />
<result column="version_time" property="versionTime" jdbcType="VARCHAR" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, cl_type, cl_version, version_time, partition_date, create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_client_version_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_client_version_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" >
delete from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
insert into tbl_client_version_info (id, cl_type, cl_version,
version_time, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{clType,jdbcType=VARCHAR}, #{clVersion,jdbcType=VARCHAR},
#{versionTime,jdbcType=VARCHAR}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
insert into tbl_client_version_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="clType != null" >
cl_type,
</if>
<if test="clVersion != null" >
cl_version,
</if>
<if test="versionTime != null" >
version_time,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="clType != null" >
#{clType,jdbcType=VARCHAR},
</if>
<if test="clVersion != null" >
#{clVersion,jdbcType=VARCHAR},
</if>
<if test="versionTime != null" >
#{versionTime,jdbcType=VARCHAR},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_client_version_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_client_version_info
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.clType != null" >
cl_type = #{record.clType,jdbcType=VARCHAR},
</if>
<if test="record.clVersion != null" >
cl_version = #{record.clVersion,jdbcType=VARCHAR},
</if>
<if test="record.versionTime != null" >
version_time = #{record.versionTime,jdbcType=VARCHAR},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_client_version_info
set id = #{record.id,jdbcType=INTEGER},
cl_type = #{record.clType,jdbcType=VARCHAR},
cl_version = #{record.clVersion,jdbcType=VARCHAR},
version_time = #{record.versionTime,jdbcType=VARCHAR},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
update tbl_client_version_info
<set >
<if test="clType != null" >
cl_type = #{clType,jdbcType=VARCHAR},
</if>
<if test="clVersion != null" >
cl_version = #{clVersion,jdbcType=VARCHAR},
</if>
<if test="versionTime != null" >
version_time = #{versionTime,jdbcType=VARCHAR},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblClientVersionInfo" >
update tbl_client_version_info
set cl_type = #{clType,jdbcType=VARCHAR},
cl_version = #{clVersion,jdbcType=VARCHAR},
version_time = #{versionTime,jdbcType=VARCHAR},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblMonitorSpecialSqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="time_col_name" property="timeColName" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="VARCHAR" />
<result column="end_time" property="endTime" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, time_col_name, start_time, end_time, is_valid, check_time,
create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_special_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_monitor_special_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" >
delete from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
insert into tbl_monitor_special_sql (id, db_name, tb_name,
time_col_name, start_time, end_time,
is_valid, check_time, create_time,
sql_content)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{timeColName,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
#{sqlContent,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
insert into tbl_monitor_special_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="timeColName != null" >
time_col_name,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
#{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_monitor_special_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_monitor_special_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.timeColName != null" >
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null" >
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
<if test="record.endTime != null" >
end_time = #{record.endTime,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_monitor_special_sql
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_monitor_special_sql
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
time_col_name = #{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblMonitorSpecialSql" >
update tbl_monitor_special_sql
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblMonitorVolatilitySqlMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="indicator_type" property="indicatorType" jdbcType="VARCHAR" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" extends="BaseResultMap" >
<result column="sql_content" property="sqlContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, indicator_type, db_name, tb_name, col_name, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
sql_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_monitor_volatility_sql
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_monitor_volatility_sql
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" >
delete from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
insert into tbl_monitor_volatility_sql (id, indicator_type, db_name,
tb_name, col_name, is_valid,
check_time, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{indicatorType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
insert into tbl_monitor_volatility_sql
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="indicatorType != null" >
indicator_type,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="sqlContent != null" >
sql_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="indicatorType != null" >
#{indicatorType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
#{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
#{sqlContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySqlCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_monitor_volatility_sql
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_monitor_volatility_sql
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.indicatorType != null" >
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.isValid != null" >
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
<if test="record.checkTime != null" >
check_time = #{record.checkTime,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
<if test="record.sqlContent != null" >
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_monitor_volatility_sql
set id = #{record.id,jdbcType=INTEGER},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
sql_content = #{record.sqlContent,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_monitor_volatility_sql
set id = #{record.id,jdbcType=INTEGER},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
<set >
<if test="indicatorType != null" >
indicator_type = #{indicatorType,jdbcType=VARCHAR},
</if>
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="isValid != null" >
is_valid = #{isValid,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
<if test="sqlContent != null" >
sql_content = #{sqlContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
set indicator_type = #{indicatorType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblMonitorVolatilitySql" >
update tbl_monitor_volatility_sql
set indicator_type = #{indicatorType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckReferMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="check_db_name" property="checkDbName" jdbcType="VARCHAR" />
<result column="check_tb_name" property="checkTbName" jdbcType="VARCHAR" />
<result column="check_col_name" property="checkColName" jdbcType="VARCHAR" />
<result column="refer_db_name" property="referDbName" jdbcType="VARCHAR" />
<result column="refer_tb_name" property="referTbName" jdbcType="VARCHAR" />
<result column="refer_col_name" property="referColName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="matched_num" property="matchedNum" jdbcType="BIGINT" />
<result column="matched_rate" property="matchedRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name, refer_col_name,
all_num, matched_num, matched_rate, partition_date, create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_refer
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_refer
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" >
delete from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
insert into tbl_result_check_refer (id, check_db_name, check_tb_name,
check_col_name, refer_db_name, refer_tb_name,
refer_col_name, all_num, matched_num,
matched_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{checkDbName,jdbcType=VARCHAR}, #{checkTbName,jdbcType=VARCHAR},
#{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR}, #{referTbName,jdbcType=VARCHAR},
#{referColName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{matchedNum,jdbcType=BIGINT},
#{matchedRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
insert into tbl_result_check_refer
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="checkDbName != null" >
check_db_name,
</if>
<if test="checkTbName != null" >
check_tb_name,
</if>
<if test="checkColName != null" >
check_col_name,
</if>
<if test="referDbName != null" >
refer_db_name,
</if>
<if test="referTbName != null" >
refer_tb_name,
</if>
<if test="referColName != null" >
refer_col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="matchedNum != null" >
matched_num,
</if>
<if test="matchedRate != null" >
matched_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="checkDbName != null" >
#{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
#{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
#{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
#{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
#{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
#{referColName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="matchedNum != null" >
#{matchedNum,jdbcType=BIGINT},
</if>
<if test="matchedRate != null" >
#{matchedRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckReferCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_refer
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_refer
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.checkDbName != null" >
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
</if>
<if test="record.checkTbName != null" >
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
</if>
<if test="record.checkColName != null" >
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
</if>
<if test="record.referDbName != null" >
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
</if>
<if test="record.referTbName != null" >
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
</if>
<if test="record.referColName != null" >
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.matchedNum != null" >
matched_num = #{record.matchedNum,jdbcType=BIGINT},
</if>
<if test="record.matchedRate != null" >
matched_rate = #{record.matchedRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_refer
set id = #{record.id,jdbcType=INTEGER},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
check_tb_name = #{record.checkTbName,jdbcType=VARCHAR},
check_col_name = #{record.checkColName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
matched_num = #{record.matchedNum,jdbcType=BIGINT},
matched_rate = #{record.matchedRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
update tbl_result_check_refer
<set >
<if test="checkDbName != null" >
check_db_name = #{checkDbName,jdbcType=VARCHAR},
</if>
<if test="checkTbName != null" >
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
</if>
<if test="checkColName != null" >
check_col_name = #{checkColName,jdbcType=VARCHAR},
</if>
<if test="referDbName != null" >
refer_db_name = #{referDbName,jdbcType=VARCHAR},
</if>
<if test="referTbName != null" >
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
</if>
<if test="referColName != null" >
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="matchedNum != null" >
matched_num = #{matchedNum,jdbcType=BIGINT},
</if>
<if test="matchedRate != null" >
matched_rate = #{matchedRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckRefer" >
update tbl_result_check_refer
set check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
check_col_name = #{checkColName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
matched_num = #{matchedNum,jdbcType=BIGINT},
matched_rate = #{matchedRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckUnblankMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="unblank_num" property="unblankNum" jdbcType="BIGINT" />
<result column="unblank_rate" property="unblankRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, all_num, unblank_num, unblank_rate, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_unblank
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_unblank
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" >
delete from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
insert into tbl_result_check_unblank (id, db_name, tb_name,
col_name, all_num, unblank_num,
unblank_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{unblankNum,jdbcType=BIGINT},
#{unblankRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
insert into tbl_result_check_unblank
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="unblankNum != null" >
unblank_num,
</if>
<if test="unblankRate != null" >
unblank_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="unblankNum != null" >
#{unblankNum,jdbcType=BIGINT},
</if>
<if test="unblankRate != null" >
#{unblankRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblankCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_unblank
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_unblank
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.unblankNum != null" >
unblank_num = #{record.unblankNum,jdbcType=BIGINT},
</if>
<if test="record.unblankRate != null" >
unblank_rate = #{record.unblankRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_unblank
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
unblank_num = #{record.unblankNum,jdbcType=BIGINT},
unblank_rate = #{record.unblankRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
update tbl_result_check_unblank
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="unblankNum != null" >
unblank_num = #{unblankNum,jdbcType=BIGINT},
</if>
<if test="unblankRate != null" >
unblank_rate = #{unblankRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnblank" >
update tbl_result_check_unblank
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
unblank_num = #{unblankNum,jdbcType=BIGINT},
unblank_rate = #{unblankRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultCheckUniqueMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="all_num" property="allNum" jdbcType="BIGINT" />
<result column="unique_num" property="uniqueNum" jdbcType="BIGINT" />
<result column="unique_rate" property="uniqueRate" jdbcType="DOUBLE" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, all_num, unique_num, unique_rate, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_check_unique
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_check_unique
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" >
delete from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
insert into tbl_result_check_unique (id, db_name, tb_name,
col_name, all_num, unique_num,
unique_rate, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{allNum,jdbcType=BIGINT}, #{uniqueNum,jdbcType=BIGINT},
#{uniqueRate,jdbcType=DOUBLE}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
insert into tbl_result_check_unique
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="allNum != null" >
all_num,
</if>
<if test="uniqueNum != null" >
unique_num,
</if>
<if test="uniqueRate != null" >
unique_rate,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
#{allNum,jdbcType=BIGINT},
</if>
<if test="uniqueNum != null" >
#{uniqueNum,jdbcType=BIGINT},
</if>
<if test="uniqueRate != null" >
#{uniqueRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUniqueCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_check_unique
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_check_unique
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.allNum != null" >
all_num = #{record.allNum,jdbcType=BIGINT},
</if>
<if test="record.uniqueNum != null" >
unique_num = #{record.uniqueNum,jdbcType=BIGINT},
</if>
<if test="record.uniqueRate != null" >
unique_rate = #{record.uniqueRate,jdbcType=DOUBLE},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_check_unique
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
all_num = #{record.allNum,jdbcType=BIGINT},
unique_num = #{record.uniqueNum,jdbcType=BIGINT},
unique_rate = #{record.uniqueRate,jdbcType=DOUBLE},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
update tbl_result_check_unique
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="allNum != null" >
all_num = #{allNum,jdbcType=BIGINT},
</if>
<if test="uniqueNum != null" >
unique_num = #{uniqueNum,jdbcType=BIGINT},
</if>
<if test="uniqueRate != null" >
unique_rate = #{uniqueRate,jdbcType=DOUBLE},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultCheckUnique" >
update tbl_result_check_unique
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
all_num = #{allNum,jdbcType=BIGINT},
unique_num = #{uniqueNum,jdbcType=BIGINT},
unique_rate = #{uniqueRate,jdbcType=DOUBLE},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultMonitorSpecialMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="time_col_name" property="timeColName" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="VARCHAR" />
<result column="end_time" property="endTime" jdbcType="VARCHAR" />
<result column="count_num" property="countNum" jdbcType="BIGINT" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, time_col_name, start_time, end_time, count_num, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_monitor_special
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_monitor_special
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" >
delete from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
insert into tbl_result_monitor_special (id, db_name, tb_name,
time_col_name, start_time, end_time,
count_num, partition_date, create_time
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{timeColName,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR},
#{countNum,jdbcType=BIGINT}, #{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
insert into tbl_result_monitor_special
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="timeColName != null" >
time_col_name,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="countNum != null" >
count_num,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
#{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=VARCHAR},
</if>
<if test="countNum != null" >
#{countNum,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecialCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_monitor_special
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_monitor_special
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.timeColName != null" >
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null" >
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
<if test="record.endTime != null" >
end_time = #{record.endTime,jdbcType=VARCHAR},
</if>
<if test="record.countNum != null" >
count_num = #{record.countNum,jdbcType=BIGINT},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_monitor_special
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
count_num = #{record.countNum,jdbcType=BIGINT},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
update tbl_result_monitor_special
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="timeColName != null" >
time_col_name = #{timeColName,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=VARCHAR},
</if>
<if test="countNum != null" >
count_num = #{countNum,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorSpecial" >
update tbl_result_monitor_special
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
count_num = #{countNum,jdbcType=BIGINT},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblResultMonitorVolatilityMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="db_name" property="dbName" jdbcType="VARCHAR" />
<result column="tb_name" property="tbName" jdbcType="VARCHAR" />
<result column="col_name" property="colName" jdbcType="VARCHAR" />
<result column="indicator_type" property="indicatorType" jdbcType="VARCHAR" />
<result column="indicator_value" property="indicatorValue" jdbcType="BIGINT" />
<result column="partition_date" property="partitionDate" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, db_name, tb_name, col_name, indicator_type, indicator_value, partition_date,
create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_result_monitor_volatility
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_result_monitor_volatility
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" >
delete from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
insert into tbl_result_monitor_volatility (id, db_name, tb_name,
col_name, indicator_type, indicator_value,
partition_date, create_time)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR}, #{indicatorValue,jdbcType=BIGINT},
#{partitionDate,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
insert into tbl_result_monitor_volatility
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="dbName != null" >
db_name,
</if>
<if test="tbName != null" >
tb_name,
</if>
<if test="colName != null" >
col_name,
</if>
<if test="indicatorType != null" >
indicator_type,
</if>
<if test="indicatorValue != null" >
indicator_value,
</if>
<if test="partitionDate != null" >
partition_date,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="dbName != null" >
#{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
#{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
#{colName,jdbcType=VARCHAR},
</if>
<if test="indicatorType != null" >
#{indicatorType,jdbcType=VARCHAR},
</if>
<if test="indicatorValue != null" >
#{indicatorValue,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
#{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatilityCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_result_monitor_volatility
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_result_monitor_volatility
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.dbName != null" >
db_name = #{record.dbName,jdbcType=VARCHAR},
</if>
<if test="record.tbName != null" >
tb_name = #{record.tbName,jdbcType=VARCHAR},
</if>
<if test="record.colName != null" >
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
<if test="record.indicatorType != null" >
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
</if>
<if test="record.indicatorValue != null" >
indicator_value = #{record.indicatorValue,jdbcType=BIGINT},
</if>
<if test="record.partitionDate != null" >
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_result_monitor_volatility
set id = #{record.id,jdbcType=INTEGER},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_value = #{record.indicatorValue,jdbcType=BIGINT},
partition_date = #{record.partitionDate,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
update tbl_result_monitor_volatility
<set >
<if test="dbName != null" >
db_name = #{dbName,jdbcType=VARCHAR},
</if>
<if test="tbName != null" >
tb_name = #{tbName,jdbcType=VARCHAR},
</if>
<if test="colName != null" >
col_name = #{colName,jdbcType=VARCHAR},
</if>
<if test="indicatorType != null" >
indicator_type = #{indicatorType,jdbcType=VARCHAR},
</if>
<if test="indicatorValue != null" >
indicator_value = #{indicatorValue,jdbcType=BIGINT},
</if>
<if test="partitionDate != null" >
partition_date = #{partitionDate,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblResultMonitorVolatility" >
update tbl_result_monitor_volatility
set db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_value = #{indicatorValue,jdbcType=BIGINT},
partition_date = #{partitionDate,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gmei.data.dqmp.mapper.TblRuleTemplateMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblRuleTemplate" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="type" property="type" jdbcType="VARCHAR" />
<result column="content" property="content" jdbcType="VARCHAR" />
<result column="comment" property="comment" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, type, content, comment
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tbl_rule_template
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_rule_template
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
delete from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
insert into tbl_rule_template (id, type, content,
comment)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
insert into tbl_rule_template
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="type != null" >
type,
</if>
<if test="content != null" >
content,
</if>
<if test="comment != null" >
comment,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="type != null" >
#{type,jdbcType=VARCHAR},
</if>
<if test="content != null" >
#{content,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
#{comment,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_rule_template
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_rule_template
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.type != null" >
type = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.content != null" >
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.comment != null" >
comment = #{record.comment,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_rule_template
set id = #{record.id,jdbcType=INTEGER},
type = #{record.type,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
update tbl_rule_template
<set >
<if test="type != null" >
type = #{type,jdbcType=VARCHAR},
</if>
<if test="content != null" >
content = #{content,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
comment = #{comment,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
update tbl_rule_template
set type = #{type,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment