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

Merge branch 'zhaojianwei' into 'master'

add rule analysis、insert、struct codes

See merge request zhaojianwei/DQMP!1
parents b3efe042 8a57f4b4
......@@ -40,6 +40,10 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- 集成mysql驱动 -->
<dependency>
<groupId>mysql</groupId>
......@@ -216,7 +220,7 @@
</executions>
</plugin>
<!--集成mybatis自动生成工具 -->
<!-- <plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
......@@ -240,7 +244,7 @@
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin> -->
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -9,6 +9,10 @@ public class Constants {
public static final String CHECK_UNBLANK = "unblank_check";
// 参照性校验
public static final String CHECK_REFER = "refer_check";
// 波动性校验
public static final String CHECK_VOLATILITY = "volatility_check";
// 特殊性校验
public static final String CHECK_SPECIAL = "special_check";
// ***************监控指标类型******************
// 波动性监控-PV
......@@ -22,4 +26,19 @@ public class Constants {
// 无效
public static final Integer IS_VALID_OFF = 0;
// ***************校验规则映射******************
// 校验规则映射
public static final String CHECK_RULE_MAPPING = "check_rule_mapping";
// ***************规则类型映射******************
// 单表规则类型
public static final String TABLE_SIMPLE = "simple";
// 双表规则类型
public static final String TABLE_DUPLEX = "duplex";
// public static final String CHECK_SIMPLE = "check_single";
// public static final String CHECK_MULTIPLE = "check_multiple";
// public static final String MONITOR_VOLATILITY = "monitor_volatility";
// public static final String MONITOR_SPECIAL = "monitor_special";
}
package com.gmei.data.dqmp.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
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.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
@RestController
@RequestMapping(value = "/dqrule")
public class DqRuleController {
@Autowired
private DqRuleService dqRuleService;
/**
* 校验规则新增
* @param dqRuleVo
* @param bindingResult
* @return
*/
@ResponseBody
@RequestMapping(value = "/add", method = RequestMethod.POST)
public DqRuleVo addDqRule(@RequestBody @Valid DqRuleVo dqRuleVo,BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return new DqRuleVo(-1,bindingResult.getFieldError().getDefaultMessage());
}
Boolean isAddSuc = dqRuleService.addDqRule(dqRuleVo);
if(isAddSuc) {
return new DqRuleVo();
}else {
return new DqRuleVo(-1,"Rule add error!");
}
}
}
......@@ -23,7 +23,7 @@ public class RuleTemplateController {
@ResponseBody
@RequestMapping(value = "/find", method = RequestMethod.POST)
public RuleTemplateVo findRuleTmpls(@RequestBody RuleTemplateVo ruleTemplateVo) {
List<RuleTemplateDto> findRuleTmpls = ruleTemplateService.findRuleTmpls(ruleTemplateVo.getType());
List<RuleTemplateDto> findRuleTmpls = ruleTemplateService.findRuleTmpls(ruleTemplateVo.getCheckType());
return new RuleTemplateVo(findRuleTmpls);
}
......
package com.gmei.data.dqmp.domain;
public class TblIndicatorOperatorInfo {
private Integer id;
private String indicatorName;
private String operatorExpr;
private String comment;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getIndicatorName() {
return indicatorName;
}
public void setIndicatorName(String indicatorName) {
this.indicatorName = indicatorName == null ? null : indicatorName.trim();
}
public String getOperatorExpr() {
return operatorExpr;
}
public void setOperatorExpr(String operatorExpr) {
this.operatorExpr = operatorExpr == null ? null : operatorExpr.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 TblIndicatorOperatorInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblIndicatorOperatorInfoCriteria() {
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 andIndicatorNameIsNull() {
addCriterion("indicator_name is null");
return (Criteria) this;
}
public Criteria andIndicatorNameIsNotNull() {
addCriterion("indicator_name is not null");
return (Criteria) this;
}
public Criteria andIndicatorNameEqualTo(String value) {
addCriterion("indicator_name =", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameNotEqualTo(String value) {
addCriterion("indicator_name <>", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameGreaterThan(String value) {
addCriterion("indicator_name >", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameGreaterThanOrEqualTo(String value) {
addCriterion("indicator_name >=", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameLessThan(String value) {
addCriterion("indicator_name <", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameLessThanOrEqualTo(String value) {
addCriterion("indicator_name <=", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameLike(String value) {
addCriterion("indicator_name like", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameNotLike(String value) {
addCriterion("indicator_name not like", value, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameIn(List<String> values) {
addCriterion("indicator_name in", values, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameNotIn(List<String> values) {
addCriterion("indicator_name not in", values, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameBetween(String value1, String value2) {
addCriterion("indicator_name between", value1, value2, "indicatorName");
return (Criteria) this;
}
public Criteria andIndicatorNameNotBetween(String value1, String value2) {
addCriterion("indicator_name not between", value1, value2, "indicatorName");
return (Criteria) this;
}
public Criteria andOperatorExprIsNull() {
addCriterion("operator_expr is null");
return (Criteria) this;
}
public Criteria andOperatorExprIsNotNull() {
addCriterion("operator_expr is not null");
return (Criteria) this;
}
public Criteria andOperatorExprEqualTo(String value) {
addCriterion("operator_expr =", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprNotEqualTo(String value) {
addCriterion("operator_expr <>", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprGreaterThan(String value) {
addCriterion("operator_expr >", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprGreaterThanOrEqualTo(String value) {
addCriterion("operator_expr >=", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprLessThan(String value) {
addCriterion("operator_expr <", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprLessThanOrEqualTo(String value) {
addCriterion("operator_expr <=", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprLike(String value) {
addCriterion("operator_expr like", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprNotLike(String value) {
addCriterion("operator_expr not like", value, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprIn(List<String> values) {
addCriterion("operator_expr in", values, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprNotIn(List<String> values) {
addCriterion("operator_expr not in", values, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprBetween(String value1, String value2) {
addCriterion("operator_expr between", value1, value2, "operatorExpr");
return (Criteria) this;
}
public Criteria andOperatorExprNotBetween(String value1, String value2) {
addCriterion("operator_expr not between", value1, value2, "operatorExpr");
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.domain;
public class TblRuleDuplexInfo {
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 isPartitioned;
private Integer isValid;
private String checkTime;
private String createTime;
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 getIsPartitioned() {
return isPartitioned;
}
public void setIsPartitioned(Integer isPartitioned) {
this.isPartitioned = isPartitioned;
}
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();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblRuleDuplexInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblRuleDuplexInfoCriteria() {
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 andIsPartitionedIsNull() {
addCriterion("is_partitioned is null");
return (Criteria) this;
}
public Criteria andIsPartitionedIsNotNull() {
addCriterion("is_partitioned is not null");
return (Criteria) this;
}
public Criteria andIsPartitionedEqualTo(Integer value) {
addCriterion("is_partitioned =", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotEqualTo(Integer value) {
addCriterion("is_partitioned <>", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedGreaterThan(Integer value) {
addCriterion("is_partitioned >", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedGreaterThanOrEqualTo(Integer value) {
addCriterion("is_partitioned >=", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedLessThan(Integer value) {
addCriterion("is_partitioned <", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedLessThanOrEqualTo(Integer value) {
addCriterion("is_partitioned <=", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedIn(List<Integer> values) {
addCriterion("is_partitioned in", values, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotIn(List<Integer> values) {
addCriterion("is_partitioned not in", values, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedBetween(Integer value1, Integer value2) {
addCriterion("is_partitioned between", value1, value2, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotBetween(Integer value1, Integer value2) {
addCriterion("is_partitioned not between", value1, value2, "isPartitioned");
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 TblRuleDuplexInfoWithBLOBs extends TblRuleDuplexInfo {
private String checkFilters;
private String referFilters;
public String getCheckFilters() {
return checkFilters;
}
public void setCheckFilters(String checkFilters) {
this.checkFilters = checkFilters == null ? null : checkFilters.trim();
}
public String getReferFilters() {
return referFilters;
}
public void setReferFilters(String referFilters) {
this.referFilters = referFilters == null ? null : referFilters.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
public class TblRuleSimpleInfo {
private Integer id;
private String checkType;
private String dbName;
private String tbName;
private String colName;
private String indicatorType;
private String startTime;
private String endTime;
private Integer isPartitioned;
private Integer isValid;
private String checkTime;
private String createTime;
private String filters;
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 String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType == null ? null : indicatorType.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 getIsPartitioned() {
return isPartitioned;
}
public void setIsPartitioned(Integer isPartitioned) {
this.isPartitioned = isPartitioned;
}
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 getFilters() {
return filters;
}
public void setFilters(String filters) {
this.filters = filters == null ? null : filters.trim();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.domain;
import java.util.ArrayList;
import java.util.List;
public class TblRuleSimpleInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblRuleSimpleInfoCriteria() {
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 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 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 andIsPartitionedIsNull() {
addCriterion("is_partitioned is null");
return (Criteria) this;
}
public Criteria andIsPartitionedIsNotNull() {
addCriterion("is_partitioned is not null");
return (Criteria) this;
}
public Criteria andIsPartitionedEqualTo(Integer value) {
addCriterion("is_partitioned =", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotEqualTo(Integer value) {
addCriterion("is_partitioned <>", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedGreaterThan(Integer value) {
addCriterion("is_partitioned >", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedGreaterThanOrEqualTo(Integer value) {
addCriterion("is_partitioned >=", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedLessThan(Integer value) {
addCriterion("is_partitioned <", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedLessThanOrEqualTo(Integer value) {
addCriterion("is_partitioned <=", value, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedIn(List<Integer> values) {
addCriterion("is_partitioned in", values, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotIn(List<Integer> values) {
addCriterion("is_partitioned not in", values, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedBetween(Integer value1, Integer value2) {
addCriterion("is_partitioned between", value1, value2, "isPartitioned");
return (Criteria) this;
}
public Criteria andIsPartitionedNotBetween(Integer value1, Integer value2) {
addCriterion("is_partitioned not between", value1, value2, "isPartitioned");
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
......@@ -3,12 +3,12 @@ package com.gmei.data.dqmp.domain;
public class TblRuleTemplate {
private Integer id;
private String type;
private String content;
private String checkType;
private String comment;
private String tpltContent;
public Integer getId() {
return id;
}
......@@ -17,20 +17,12 @@ public class TblRuleTemplate {
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 String getCheckType() {
return checkType;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
public void setCheckType(String checkType) {
this.checkType = checkType == null ? null : checkType.trim();
}
public String getComment() {
......@@ -40,4 +32,12 @@ public class TblRuleTemplate {
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public String getTpltContent() {
return tpltContent;
}
public void setTpltContent(String tpltContent) {
this.tpltContent = tpltContent == null ? null : tpltContent.trim();
}
}
\ No newline at end of file
......@@ -164,143 +164,73 @@ public class TblRuleTemplateCriteria {
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
public Criteria andCheckTypeIsNull() {
addCriterion("check_type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
public Criteria andCheckTypeIsNotNull() {
addCriterion("check_type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(String value) {
addCriterion("type =", value, "type");
public Criteria andCheckTypeEqualTo(String value) {
addCriterion("check_type =", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(String value) {
addCriterion("type <>", value, "type");
public Criteria andCheckTypeNotEqualTo(String value) {
addCriterion("check_type <>", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(String value) {
addCriterion("type >", value, "type");
public Criteria andCheckTypeGreaterThan(String value) {
addCriterion("check_type >", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(String value) {
addCriterion("type >=", value, "type");
public Criteria andCheckTypeGreaterThanOrEqualTo(String value) {
addCriterion("check_type >=", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeLessThan(String value) {
addCriterion("type <", value, "type");
public Criteria andCheckTypeLessThan(String value) {
addCriterion("check_type <", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(String value) {
addCriterion("type <=", value, "type");
public Criteria andCheckTypeLessThanOrEqualTo(String value) {
addCriterion("check_type <=", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeLike(String value) {
addCriterion("type like", value, "type");
public Criteria andCheckTypeLike(String value) {
addCriterion("check_type like", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeNotLike(String value) {
addCriterion("type not like", value, "type");
public Criteria andCheckTypeNotLike(String value) {
addCriterion("check_type not like", value, "checkType");
return (Criteria) this;
}
public Criteria andTypeIn(List<String> values) {
addCriterion("type in", values, "type");
public Criteria andCheckTypeIn(List<String> values) {
addCriterion("check_type in", values, "checkType");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<String> values) {
addCriterion("type not in", values, "type");
public Criteria andCheckTypeNotIn(List<String> values) {
addCriterion("check_type not in", values, "checkType");
return (Criteria) this;
}
public Criteria andTypeBetween(String value1, String value2) {
addCriterion("type between", value1, value2, "type");
public Criteria andCheckTypeBetween(String value1, String value2) {
addCriterion("check_type between", value1, value2, "checkType");
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");
public Criteria andCheckTypeNotBetween(String value1, String value2) {
addCriterion("check_type not between", value1, value2, "checkType");
return (Criteria) this;
}
......
package com.gmei.data.dqmp.domain;
public class TblSysParamInfo {
private Integer id;
private String paramType;
private String paramKey;
private String paramValue;
private String comment;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getParamType() {
return paramType;
}
public void setParamType(String paramType) {
this.paramType = paramType == null ? null : paramType.trim();
}
public String getParamKey() {
return paramKey;
}
public void setParamKey(String paramKey) {
this.paramKey = paramKey == null ? null : paramKey.trim();
}
public String getParamValue() {
return paramValue;
}
public void setParamValue(String paramValue) {
this.paramValue = paramValue == null ? null : paramValue.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 TblSysParamInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TblSysParamInfoCriteria() {
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 andParamTypeIsNull() {
addCriterion("param_type is null");
return (Criteria) this;
}
public Criteria andParamTypeIsNotNull() {
addCriterion("param_type is not null");
return (Criteria) this;
}
public Criteria andParamTypeEqualTo(String value) {
addCriterion("param_type =", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeNotEqualTo(String value) {
addCriterion("param_type <>", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeGreaterThan(String value) {
addCriterion("param_type >", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeGreaterThanOrEqualTo(String value) {
addCriterion("param_type >=", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeLessThan(String value) {
addCriterion("param_type <", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeLessThanOrEqualTo(String value) {
addCriterion("param_type <=", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeLike(String value) {
addCriterion("param_type like", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeNotLike(String value) {
addCriterion("param_type not like", value, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeIn(List<String> values) {
addCriterion("param_type in", values, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeNotIn(List<String> values) {
addCriterion("param_type not in", values, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeBetween(String value1, String value2) {
addCriterion("param_type between", value1, value2, "paramType");
return (Criteria) this;
}
public Criteria andParamTypeNotBetween(String value1, String value2) {
addCriterion("param_type not between", value1, value2, "paramType");
return (Criteria) this;
}
public Criteria andParamKeyIsNull() {
addCriterion("param_key is null");
return (Criteria) this;
}
public Criteria andParamKeyIsNotNull() {
addCriterion("param_key is not null");
return (Criteria) this;
}
public Criteria andParamKeyEqualTo(String value) {
addCriterion("param_key =", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotEqualTo(String value) {
addCriterion("param_key <>", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThan(String value) {
addCriterion("param_key >", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThanOrEqualTo(String value) {
addCriterion("param_key >=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThan(String value) {
addCriterion("param_key <", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThanOrEqualTo(String value) {
addCriterion("param_key <=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLike(String value) {
addCriterion("param_key like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotLike(String value) {
addCriterion("param_key not like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyIn(List<String> values) {
addCriterion("param_key in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotIn(List<String> values) {
addCriterion("param_key not in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyBetween(String value1, String value2) {
addCriterion("param_key between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotBetween(String value1, String value2) {
addCriterion("param_key not between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamValueIsNull() {
addCriterion("param_value is null");
return (Criteria) this;
}
public Criteria andParamValueIsNotNull() {
addCriterion("param_value is not null");
return (Criteria) this;
}
public Criteria andParamValueEqualTo(String value) {
addCriterion("param_value =", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotEqualTo(String value) {
addCriterion("param_value <>", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThan(String value) {
addCriterion("param_value >", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThanOrEqualTo(String value) {
addCriterion("param_value >=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThan(String value) {
addCriterion("param_value <", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThanOrEqualTo(String value) {
addCriterion("param_value <=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLike(String value) {
addCriterion("param_value like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotLike(String value) {
addCriterion("param_value not like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueIn(List<String> values) {
addCriterion("param_value in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotIn(List<String> values) {
addCriterion("param_value not in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueBetween(String value1, String value2) {
addCriterion("param_value between", value1, value2, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotBetween(String value1, String value2) {
addCriterion("param_value not between", value1, value2, "paramValue");
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
......@@ -4,9 +4,9 @@ public class RuleTemplateDto {
private Integer id;
private String type;
private String checkType;
private String content;
private String tpltContent;
private String comment;
......@@ -18,27 +18,28 @@ public class RuleTemplateDto {
this.id = id;
}
public String getType() {
return type;
}
public String getCheckType() {
return checkType;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public void setCheckType(String checkType) {
this.checkType = checkType;
}
public String getContent() {
return content;
}
public String getTpltContent() {
return tpltContent;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public void setTpltContent(String tpltContent) {
this.tpltContent = tpltContent;
}
public String getComment() {
return comment;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = 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.TblIndicatorOperatorInfo;
import com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblIndicatorOperatorInfoMapper {
int countByExample(TblIndicatorOperatorInfoCriteria example);
int deleteByExample(TblIndicatorOperatorInfoCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblIndicatorOperatorInfo record);
int insertSelective(TblIndicatorOperatorInfo record);
List<TblIndicatorOperatorInfo> selectByExample(TblIndicatorOperatorInfoCriteria example);
TblIndicatorOperatorInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblIndicatorOperatorInfo record, @Param("example") TblIndicatorOperatorInfoCriteria example);
int updateByExample(@Param("record") TblIndicatorOperatorInfo record, @Param("example") TblIndicatorOperatorInfoCriteria example);
int updateByPrimaryKeySelective(TblIndicatorOperatorInfo record);
int updateByPrimaryKey(TblIndicatorOperatorInfo record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblRuleDuplexInfo;
import com.gmei.data.dqmp.domain.TblRuleDuplexInfoCriteria;
import com.gmei.data.dqmp.domain.TblRuleDuplexInfoWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblRuleDuplexInfoMapper {
int countByExample(TblRuleDuplexInfoCriteria example);
int deleteByExample(TblRuleDuplexInfoCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblRuleDuplexInfoWithBLOBs record);
int insertSelective(TblRuleDuplexInfoWithBLOBs record);
List<TblRuleDuplexInfoWithBLOBs> selectByExampleWithBLOBs(TblRuleDuplexInfoCriteria example);
List<TblRuleDuplexInfo> selectByExample(TblRuleDuplexInfoCriteria example);
TblRuleDuplexInfoWithBLOBs selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblRuleDuplexInfoWithBLOBs record, @Param("example") TblRuleDuplexInfoCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblRuleDuplexInfoWithBLOBs record, @Param("example") TblRuleDuplexInfoCriteria example);
int updateByExample(@Param("record") TblRuleDuplexInfo record, @Param("example") TblRuleDuplexInfoCriteria example);
int updateByPrimaryKeySelective(TblRuleDuplexInfoWithBLOBs record);
int updateByPrimaryKeyWithBLOBs(TblRuleDuplexInfoWithBLOBs record);
int updateByPrimaryKey(TblRuleDuplexInfo record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblRuleSimpleInfo;
import com.gmei.data.dqmp.domain.TblRuleSimpleInfoCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblRuleSimpleInfoMapper {
int countByExample(TblRuleSimpleInfoCriteria example);
int deleteByExample(TblRuleSimpleInfoCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblRuleSimpleInfo record);
int insertSelective(TblRuleSimpleInfo record);
List<TblRuleSimpleInfo> selectByExampleWithBLOBs(TblRuleSimpleInfoCriteria example);
List<TblRuleSimpleInfo> selectByExample(TblRuleSimpleInfoCriteria example);
TblRuleSimpleInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblRuleSimpleInfo record, @Param("example") TblRuleSimpleInfoCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblRuleSimpleInfo record, @Param("example") TblRuleSimpleInfoCriteria example);
int updateByExample(@Param("record") TblRuleSimpleInfo record, @Param("example") TblRuleSimpleInfoCriteria example);
int updateByPrimaryKeySelective(TblRuleSimpleInfo record);
int updateByPrimaryKeyWithBLOBs(TblRuleSimpleInfo record);
int updateByPrimaryKey(TblRuleSimpleInfo record);
}
\ No newline at end of file
......@@ -16,15 +16,21 @@ public interface TblRuleTemplateMapper {
int insertSelective(TblRuleTemplate record);
List<TblRuleTemplate> selectByExampleWithBLOBs(TblRuleTemplateCriteria example);
List<TblRuleTemplate> selectByExample(TblRuleTemplateCriteria example);
TblRuleTemplate selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblRuleTemplate record, @Param("example") TblRuleTemplateCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblRuleTemplate record, @Param("example") TblRuleTemplateCriteria example);
int updateByExample(@Param("record") TblRuleTemplate record, @Param("example") TblRuleTemplateCriteria example);
int updateByPrimaryKeySelective(TblRuleTemplate record);
int updateByPrimaryKeyWithBLOBs(TblRuleTemplate record);
int updateByPrimaryKey(TblRuleTemplate record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblSysParamInfo;
import com.gmei.data.dqmp.domain.TblSysParamInfoCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblSysParamInfoMapper {
int countByExample(TblSysParamInfoCriteria example);
int deleteByExample(TblSysParamInfoCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblSysParamInfo record);
int insertSelective(TblSysParamInfo record);
List<TblSysParamInfo> selectByExample(TblSysParamInfoCriteria example);
TblSysParamInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblSysParamInfo record, @Param("example") TblSysParamInfoCriteria example);
int updateByExample(@Param("record") TblSysParamInfo record, @Param("example") TblSysParamInfoCriteria example);
int updateByPrimaryKeySelective(TblSysParamInfo record);
int updateByPrimaryKey(TblSysParamInfo record);
}
\ No newline at end of file
......@@ -16,28 +16,28 @@ public class DqScheduler {
@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();
}
// @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 */100 * * * ?")
// private void specialMonitorProcess(){
// monitorService.monitorAndPersistSpecialResult();
// }
}
package com.gmei.data.dqmp.service;
import com.gmei.data.dqmp.vo.DqRuleVo;
public interface DqRuleService {
Boolean addDqRule(DqRuleVo dqRuleVo);
}
......@@ -7,7 +7,7 @@ import com.gmei.data.dqmp.vo.RuleTemplateVo;
public interface RuleTemplateService {
List<RuleTemplateDto> findRuleTmpls(String tmplType);
List<RuleTemplateDto> findRuleTmpls(String checkType);
Integer addRuleTmpl(RuleTemplateVo ruleTemplateVo);
......
package com.gmei.data.dqmp.service;
import java.util.Map;
public interface TblSysParamInfoService {
Map<String,String> getSysParamMap(String paramType);
}
......@@ -26,6 +26,7 @@ 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;
import com.gmei.data.dqmp.utils.DateUtils;
@Service
public class CheckServiceImpl implements CheckService {
......@@ -116,6 +117,7 @@ public class CheckServiceImpl implements CheckService {
* @return
*/
private TblResultCheckUnique getUniqueCheckResult(String sql) {
sql = sql.replaceAll("#partation_date", String.format("'%s'", DateUtils.getYesterdayDateStr()));
logger.info("Sql content : {}", sql);
TblResultCheckUnique tblResultCheckUnique = null;
if (StringUtils.isBlank(sql)) {
......@@ -151,6 +153,7 @@ public class CheckServiceImpl implements CheckService {
* @return
*/
private TblResultCheckUnblank getUnblankCheckResult(String sql) {
sql = sql.replaceAll("#partation_date", String.format("'%s'", DateUtils.getYesterdayDateStr()));
logger.info("Sql content : {}", sql);
TblResultCheckUnblank tblResultCheckUnblank = null;
if (StringUtils.isBlank(sql)) {
......@@ -186,6 +189,7 @@ public class CheckServiceImpl implements CheckService {
* @return
*/
private TblResultCheckRefer getReferCheckResult(String sql) {
sql = sql.replaceAll("#partation_date", String.format("'%s'", DateUtils.getYesterdayDateStr()));
logger.info("Sql content : {}", sql);
TblResultCheckRefer tblResultCheckRefer = null;
if (StringUtils.isBlank(sql)) {
......@@ -217,4 +221,7 @@ public class CheckServiceImpl implements CheckService {
}
return tblResultCheckRefer;
}
public static void main(String[] args) {
}
}
package com.gmei.data.dqmp.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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 org.springframework.transaction.annotation.Transactional;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.domain.TblCheckMultipleSql;
import com.gmei.data.dqmp.domain.TblCheckSingleSql;
import com.gmei.data.dqmp.domain.TblIndicatorOperatorInfo;
import com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria;
import com.gmei.data.dqmp.domain.TblMonitorSpecialSql;
import com.gmei.data.dqmp.domain.TblMonitorVolatilitySql;
import com.gmei.data.dqmp.domain.TblRuleDuplexInfoWithBLOBs;
import com.gmei.data.dqmp.domain.TblRuleSimpleInfo;
import com.gmei.data.dqmp.domain.TblRuleTemplate;
import com.gmei.data.dqmp.domain.TblRuleTemplateCriteria;
import com.gmei.data.dqmp.mapper.TblCheckMultipleSqlMapper;
import com.gmei.data.dqmp.mapper.TblCheckSingleSqlMapper;
import com.gmei.data.dqmp.mapper.TblIndicatorOperatorInfoMapper;
import com.gmei.data.dqmp.mapper.TblMonitorSpecialSqlMapper;
import com.gmei.data.dqmp.mapper.TblMonitorVolatilitySqlMapper;
import com.gmei.data.dqmp.mapper.TblRuleDuplexInfoMapper;
import com.gmei.data.dqmp.mapper.TblRuleSimpleInfoMapper;
import com.gmei.data.dqmp.mapper.TblRuleTemplateMapper;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.utils.BeanUtils;
import com.gmei.data.dqmp.utils.DateUtils;
import com.gmei.data.dqmp.vo.DqRuleVo;
@Service
public class DqRuleServiceImpl implements DqRuleService {
@Autowired
private TblRuleSimpleInfoMapper tblRuleSimpleInfoMapper;
@Autowired
private TblRuleDuplexInfoMapper tblRuleDuplexInfoMapper;
@Autowired
private TblCheckSingleSqlMapper tblCheckSingleSqlMapper;
@Autowired
private TblCheckMultipleSqlMapper tblCheckMultipleSqlMapper;
@Autowired
private TblMonitorVolatilitySqlMapper tblMonitorVolatilitySqlMapper;
@Autowired
private TblMonitorSpecialSqlMapper tblMonitorSpecialSqlMapper;
@Autowired
private TblRuleTemplateMapper tblRuleTemplateMapper;
@Autowired
private TblIndicatorOperatorInfoMapper tblIndicatorOperatorInfoMapper;
private static final Logger logger = LoggerFactory.getLogger(DqRuleServiceImpl.class);
@Override
@Transactional
public Boolean addDqRule(DqRuleVo dqRuleVo) {
Boolean rs = false;
String checkType = dqRuleVo.getCheckType();
if (Constants.CHECK_UNIQUE.equals(checkType) || Constants.CHECK_UNBLANK.equals(checkType)
|| Constants.CHECK_VOLATILITY.equals(checkType) || Constants.CHECK_SPECIAL.equals(checkType)) {
rs = simpleRuleInfoInsert(dqRuleVo);
} else if (Constants.CHECK_REFER.equals(checkType)) {
rs = duplexRuleInfoInsert(dqRuleVo);
} else {
logger.error("checkType is illegal! {}", checkType);
return rs;
}
return rs;
}
/**
* 简单校验规则新增
* @param dqRuleVo
* @return
*/
private Boolean simpleRuleInfoInsert(DqRuleVo dqRuleVo) {
if(!simpleRuleInfoCheck(dqRuleVo)) {
logger.error("Param is illegal! {}",dqRuleVo);
return false;
}
TblRuleSimpleInfo record = BeanUtils.map(dqRuleVo, TblRuleSimpleInfo.class);
int rs = tblRuleSimpleInfoMapper.insertSelective(record);
if (rs == 1) {
String checkType = dqRuleVo.getCheckType();
switch (checkType) {
case Constants.CHECK_UNIQUE:
TblCheckSingleSql tblCheckSingleSql = BeanUtils.map(dqRuleVo, TblCheckSingleSql.class);
tblCheckSingleSql.setSqlContent(genSqlByTemplate(dqRuleVo));
tblCheckSingleSqlMapper.insertSelective(tblCheckSingleSql);
break;
case Constants.CHECK_UNBLANK:
TblCheckSingleSql tcss = BeanUtils.map(dqRuleVo, TblCheckSingleSql.class);
tcss.setSqlContent(genSqlByTemplate(dqRuleVo));
tblCheckSingleSqlMapper.insertSelective(tcss);
break;
case Constants.CHECK_VOLATILITY:
if(!volatilityRuleParamsCheck(dqRuleVo)) {
logger.error("Param is illegal! {}",dqRuleVo);
return false;
}
TblMonitorVolatilitySql tblMonitorVolatilitySql = BeanUtils.map(dqRuleVo,
TblMonitorVolatilitySql.class);
tblMonitorVolatilitySql.setSqlContent(genSqlByTemplate(dqRuleVo));
tblMonitorVolatilitySqlMapper.insertSelective(tblMonitorVolatilitySql);
break;
case Constants.CHECK_SPECIAL:
if(!specialRuleParamsCheck(dqRuleVo)) {
logger.error("Param is illegal! {}",dqRuleVo);
return false;
}
TblMonitorSpecialSql tblMonitorSpecialSql = BeanUtils.map(dqRuleVo, TblMonitorSpecialSql.class);
tblMonitorSpecialSql.setSqlContent(genSqlByTemplate(dqRuleVo));
tblMonitorSpecialSqlMapper.insertSelective(tblMonitorSpecialSql);
break;
default:
logger.error("checkType value is error! {}", checkType);
return false;
}
}
return true;
}
/**
* 双表校验规则录入
* @param dqRuleVo
* @return
*/
private Boolean duplexRuleInfoInsert(DqRuleVo dqRuleVo) {
if(!duplexRuleInfoCheck(dqRuleVo)) {
logger.error("Param is illegal! {}",dqRuleVo);
return false;
}
TblRuleDuplexInfoWithBLOBs record = BeanUtils.map(dqRuleVo, TblRuleDuplexInfoWithBLOBs.class);
int rs = tblRuleDuplexInfoMapper.insertSelective(record);
if (rs == 1) {
String checkType = dqRuleVo.getCheckType();
if (Constants.CHECK_REFER.equals(checkType)) {
TblCheckMultipleSql tblCheckMultipleSql = BeanUtils.map(dqRuleVo, TblCheckMultipleSql.class);
String sqlContent = genSqlByTemplate(dqRuleVo);
tblCheckMultipleSql.setSqlContent(sqlContent);
tblCheckMultipleSqlMapper.insertSelective(tblCheckMultipleSql);
} else {
logger.error("checkType value is error! {}", checkType);
return false;
}
}
return true;
}
private boolean simpleRuleInfoCheck(DqRuleVo dqRuleVo) {
if(StringUtils.isBlank(dqRuleVo.getDbName()) || StringUtils.isBlank(dqRuleVo.getTbName())
//|| StringUtils.isBlank(dqRuleVo.getFilters())
) {
return false;
}
if(Constants.CHECK_SPECIAL.equals(dqRuleVo.getCheckType())){
if(StringUtils.isBlank(dqRuleVo.getTimeColName())) {
return false;
}
}else {
if(StringUtils.isBlank(dqRuleVo.getColName())) {
return false;
}
}
return true;
}
private boolean volatilityRuleParamsCheck(DqRuleVo dqRuleVo) {
if(StringUtils.isBlank(dqRuleVo.getIndicatorType())) {
return false;
}
return true;
}
private boolean specialRuleParamsCheck(DqRuleVo dqRuleVo) {
if(StringUtils.isBlank(dqRuleVo.getTimeColName()) || StringUtils.isBlank(dqRuleVo.getStartTime())
//|| StringUtils.isBlank(dqRuleVo.getEndTime())
) {
return false;
}
return true;
}
private boolean duplexRuleInfoCheck(DqRuleVo dqRuleVo) {
if(StringUtils.isBlank(dqRuleVo.getCheckDbName()) || StringUtils.isBlank(dqRuleVo.getCheckTbName())
|| StringUtils.isBlank(dqRuleVo.getCheckColName()) || StringUtils.isBlank(dqRuleVo.getReferColName())
|| StringUtils.isBlank(dqRuleVo.getReferDbName()) || StringUtils.isBlank(dqRuleVo.getReferTbName())
//|| StringUtils.isBlank(dqRuleVo.getCheckFilters()) || StringUtils.isBlank(dqRuleVo.getReferfilters())
) {
return false;
}
return true;
}
private String genSqlByTemplate(DqRuleVo dqRuleVo) {
TblRuleTemplateCriteria example = new TblRuleTemplateCriteria();
example.createCriteria().andCheckTypeEqualTo(dqRuleVo.getCheckType());
TblRuleTemplate tblRuleTemplate = tblRuleTemplateMapper.selectByExampleWithBLOBs(example).get(0);
String tpltContent = tblRuleTemplate.getTpltContent();
Map<String,String> indicatorMap = new HashMap<String, String>();
TblIndicatorOperatorInfoCriteria tblIndicatorOperatorInfoCriteria = new TblIndicatorOperatorInfoCriteria();
List<TblIndicatorOperatorInfo> tblIndicatorOperatorInfos = tblIndicatorOperatorInfoMapper.selectByExample(tblIndicatorOperatorInfoCriteria);
for(TblIndicatorOperatorInfo tblIndicatorOperatorInfo : tblIndicatorOperatorInfos) {
indicatorMap.put(tblIndicatorOperatorInfo.getIndicatorName(), tblIndicatorOperatorInfo.getOperatorExpr());
}
String indicatorType = dqRuleVo.getIndicatorType();
String rs = tpltContent
.replaceAll("#db_name", dqRuleVo.getDbName())
.replaceAll("#tb_name", dqRuleVo.getTbName())
.replaceAll("#indicator_type", indicatorType)
.replaceAll("#indicator_expre", indicatorMap.get(indicatorType))
.replaceAll("#col_name", dqRuleVo.getColName())
.replaceAll("#start_time", "'"+dqRuleVo.getStartTime()+"'")
.replaceAll("#end_time", "'"+DateUtils.getTodayZeroTimeStr()+"'")
.replaceAll("#check_db_name", dqRuleVo.getCheckDbName())
.replaceAll("#check_tb_name", dqRuleVo.getCheckTbName())
.replaceAll("#check_col_name", dqRuleVo.getCheckColName())
.replaceAll("#refer_db_name", dqRuleVo.getReferDbName())
.replaceAll("#refer_tb_name", dqRuleVo.getReferTbName())
.replaceAll("#refer_col_name", dqRuleVo.getReferColName())
.replaceAll("#time_col_name", dqRuleVo.getTimeColName());
if(null != dqRuleVo.getFilters()) {
rs = rs.replaceAll("#filters", dqRuleVo.getFilters());
}
if(null != dqRuleVo.getCheckFilters()) {
rs = rs.replaceAll("#check_filters", dqRuleVo.getCheckFilters());
}
if(null != dqRuleVo.getReferFilters()) {
rs = rs.replaceAll("#refer_filters", dqRuleVo.getReferFilters());
}
return rs;
}
}
......@@ -25,23 +25,18 @@ public class FormatServiceImpl implements FormatService {
}
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");
String removeNewlineSymbol = new FormatServiceImpl().removeNewlineSymbol("SELECT '$db_name' AS DB_NAME,\n" +
" '$tb_name' AS TB_NAME,\n" +
" '$time_col_name' AS TIME_COL_NAME,\n" +
" '$start_time' AS START_TIME,\n" +
" '$end_time' AS END_TIME,\n" +
" COUNT(*) AS COUNT_NUM,\n" +
" DATE_ADD(from_unixtime(unix_timestamp(), 'yyyy-MM-dd'), -1) AS PARTITION_DATE,\n" +
" FROM_UNIXTIME(unix_timestamp(), 'yyyy-MM-dd HH:mm:ss') AS CREATE_TIME\n" +
" FROM $db_name.$tb_name\n" +
" WHERE $time_col_name >= $start_time\n" +
" AND $time_col_name < $end_time\n" +
" $filters");
System.out.println(removeNewlineSymbol);
}
}
......@@ -24,6 +24,7 @@ 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;
import com.gmei.data.dqmp.utils.DateUtils;
@Service
public class MonitorServiceImpl implements MonitorService {
......@@ -101,6 +102,7 @@ public class MonitorServiceImpl implements MonitorService {
* @return
*/
private TblResultMonitorVolatility getMonitorVolatilityResult(String sql, String indicatorType) {
sql = sql.replaceAll("#partation_date", String.format("'%s'", DateUtils.getYesterdayDateStr()));
logger.info("Sql content : {},indicatorType: {}", sql, indicatorType);
TblResultMonitorVolatility tblResultMonitorVolatility = null;
if (StringUtils.isBlank(sql) || StringUtils.isBlank(indicatorType)) {
......@@ -136,6 +138,7 @@ public class MonitorServiceImpl implements MonitorService {
* @return
*/
private TblResultMonitorSpecial getMonitorSpecialResult(String sql) {
sql = sql.replaceAll("#partation_date", String.format("'%s'", DateUtils.getYesterdayDateStr()));
logger.info("Sql content : {}", sql);
TblResultMonitorSpecial tblResultMonitorSpecial = null;
if (StringUtils.isBlank(sql)) {
......
......@@ -22,10 +22,10 @@ public class RuleTemplateServiceImpl implements RuleTemplateService {
private TblRuleTemplateMapper tblRuleTemplateMapper;
@Override
public List<RuleTemplateDto> findRuleTmpls(String tmplType) {
public List<RuleTemplateDto> findRuleTmpls(String checkType) {
List<RuleTemplateDto> rsList = new ArrayList<>();
TblRuleTemplateCriteria tblDqRuleTemplateCriteria = new TblRuleTemplateCriteria();
tblDqRuleTemplateCriteria.createCriteria().andTypeEqualTo(tmplType);
tblDqRuleTemplateCriteria.createCriteria().andCheckTypeEqualTo(checkType);
List<TblRuleTemplate> list = tblRuleTemplateMapper.selectByExample(tblDqRuleTemplateCriteria);
for(TblRuleTemplate tblDqRuleTemplate : list) {
rsList.add(BeanUtils.map(tblDqRuleTemplate, RuleTemplateDto.class));
......
package com.gmei.data.dqmp.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com.gmei.data.dqmp.domain.TblSysParamInfo;
import com.gmei.data.dqmp.domain.TblSysParamInfoCriteria;
import com.gmei.data.dqmp.mapper.TblSysParamInfoMapper;
import com.gmei.data.dqmp.service.TblSysParamInfoService;
public class TblSysParamInfoServiceImpl implements TblSysParamInfoService {
@Autowired
private TblSysParamInfoMapper tblSysParamInfoMapper;
@Override
public Map<String,String> getSysParamMap(String paramType){
Map<String,String> rsMap = new HashMap<String, String>();
TblSysParamInfoCriteria example = new TblSysParamInfoCriteria();
example.createCriteria().andParamTypeEqualTo(paramType);
List<TblSysParamInfo> rsList = tblSysParamInfoMapper.selectByExample(example);
for(TblSysParamInfo tblSysParamInfo : rsList) {
rsMap.put(tblSysParamInfo.getParamKey(), tblSysParamInfo.getParamValue());
}
return rsMap;
}
}
package com.gmei.data.dqmp.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
private static final String DATE_FORMATE_YMD = "yyyy-MM-dd";
private static final String PARTITION_DATE_FORMAT = "yyyyMMdd";
private static final String DATE_FORMATE_YMDHMS = "yyyy-MM-dd HH:mm:ss";
private static final String DATE_FORMATE_YMDHMSS = "yyyy-MM-dd HH:mm:ss.S";
/**
* 获取当前时间字符串
......@@ -23,4 +26,33 @@ public class DateUtils {
public static String getCurrentTimeStr() {
return new SimpleDateFormat(DATE_FORMATE_YMDHMS).format(new Date());
}
/**
* 获取昨天时间字符串
* @return
*/
public static String getYesterdayDateStr() {
Calendar cld = Calendar.getInstance();
cld.setTime(new Date());
cld.add(Calendar.DAY_OF_MONTH, -1);
return new SimpleDateFormat(PARTITION_DATE_FORMAT).format(cld.getTime());
}
/**
* 获取今天0时0分0秒0毫秒时间字符串
* @return
*/
public static String getTodayZeroTimeStr() {
Calendar cld = Calendar.getInstance();
cld.setTime(new Date());
cld.set(Calendar.HOUR_OF_DAY, 0);
cld.set(Calendar.MINUTE, 0);
cld.set(Calendar.SECOND, 0);
cld.set(Calendar.MILLISECOND, 0);
return new SimpleDateFormat(DATE_FORMATE_YMDHMSS).format(cld.getTime());
}
public static void main(String[] args) {
System.out.println(getTodayZeroTimeStr());
}
}
package com.gmei.data.dqmp.vo;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
public class DqRuleVo extends BaseVo{
//common
@NotBlank(message = "校验类型字段不能为空")
private String checkType;
@NotNull(message = "状态字段不能为NULL")
private Integer isValid;
@NotBlank(message = "校验时间字段不能为空")
private String checkTime;
//simple
private String dbName;
private String tbName;
private String colName;
private String timeColName;
private String filters;
private String indicatorType;
private String startTime;
//private String endTime;
//duplex
private String checkDbName;
private String checkTbName;
private String checkColName;
private String referDbName;
private String referTbName;
private String referColName;
private String checkFilters;
private String referFilters;
public DqRuleVo() {
super();
}
public DqRuleVo(Integer status,String msg) {
super(status,msg);
}
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;
}
public String getCheckType() {
return checkType;
}
public void setCheckType(String checkType) {
this.checkType = checkType;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName;
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName;
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName;
}
public String getTimeColName() {
return timeColName;
}
public void setTimeColName(String timeColName) {
this.timeColName = timeColName;
}
public String getFilters() {
return filters;
}
public void setFilters(String filters) {
this.filters = filters;
}
public String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType;
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
// public String getEndTime() {
// return endTime;
// }
// public void setEndTime(String endTime) {
// this.endTime = endTime;
// }
public String getCheckDbName() {
return checkDbName;
}
public void setCheckDbName(String checkDbName) {
this.checkDbName = checkDbName;
}
public String getCheckTbName() {
return checkTbName;
}
public void setCheckTbName(String checkTbName) {
this.checkTbName = checkTbName;
}
public String getCheckColName() {
return checkColName;
}
public void setCheckColName(String checkColName) {
this.checkColName = checkColName;
}
public String getReferDbName() {
return referDbName;
}
public void setReferDbName(String referDbName) {
this.referDbName = referDbName;
}
public String getReferTbName() {
return referTbName;
}
public void setReferTbName(String referTbName) {
this.referTbName = referTbName;
}
public String getReferColName() {
return referColName;
}
public void setReferColName(String referColName) {
this.referColName = referColName;
}
public String getCheckFilters() {
return checkFilters;
}
public void setCheckFilters(String checkFilters) {
this.checkFilters = checkFilters;
}
public String getReferFilters() {
return referFilters;
}
public void setReferFilters(String referFilters) {
this.referFilters = referFilters;
}
@Override
public String toString() {
return "DqRuleVo [checkType=" + checkType + ", isValid=" + isValid + ", checkTime=" + checkTime + ", dbName="
+ dbName + ", tbName=" + tbName + ", colName=" + colName + ", timeColName=" + timeColName + ", filters="
+ filters + ", indicatorType=" + indicatorType + ", startTime=" + startTime + ", checkDbName="
+ checkDbName + ", checkTbName=" + checkTbName + ", checkColName=" + checkColName + ", referDbName="
+ referDbName + ", referTbName=" + referTbName + ", referColName=" + referColName + ", checkFilters="
+ checkFilters + ", referfilters=" + referFilters + "]";
}
}
......@@ -6,59 +6,47 @@ 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;
private String checkType;
private String tpltContent;
private String comment;
private List<RuleTemplateDto> ruleTemplates;
public RuleTemplateVo() {
super();
}
public RuleTemplateVo(Integer status, String msg) {
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) {
public RuleTemplateVo(List<RuleTemplateDto> ruleTemplates) {
super();
this.type = type;
this.content = content;
this.comment = comment;
this.ruleTemplates = ruleTemplates;
}
public String getType() {
return type;
}
public String getCheckType() {
return checkType;
}
public void setType(String type) {
this.type = type;
}
public String getContent() {
return content;
}
public void setCheckType(String checkType) {
this.checkType = checkType == null ? null : checkType.trim();
}
public void setContent(String content) {
this.content = content;
}
public String getTpltContent() {
return tpltContent;
}
public String getComment() {
return comment;
}
public void setTpltContent(String tpltContent) {
this.tpltContent = tpltContent == null ? null : tpltContent.trim();
}
public void setComment(String comment) {
this.comment = comment;
}
public String getComment() {
return comment;
}
public RuleTemplateVo(List<RuleTemplateDto> ruleTemplates) {
super();
this.ruleTemplates = ruleTemplates;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public List<RuleTemplateDto> getRuleTemplates() {
return ruleTemplates;
......@@ -67,5 +55,5 @@ public class RuleTemplateVo extends BaseVo{
public void setRuleTemplates(List<RuleTemplateDto> ruleTemplates) {
this.ruleTemplates = ruleTemplates;
}
}
......@@ -34,16 +34,20 @@
</javaClientGenerator>
<!-- 需要生成的数据库表 -->
<!-- <table tableName="tbl_rule_template" domainObjectName="TblRuleTemplate"/> -->
<!-- <table tableName="tbl_client_version_info" domainObjectName="TblClientVersionInfo"/> -->
<!-- <table tableName="tbl_check_single_sql" domainObjectName="TblCheckSingleSql"/> -->
<!-- <table tableName="tbl_check_multiple_sql" domainObjectName="TblCheckMultipleSql"/> -->
<!-- <table tableName="tbl_monitor_volatility_sql" domainObjectName="TblMonitorVolatilitySql"/> -->
<!-- <table tableName="tbl_monitor_special_sql" domainObjectName="TblMonitorSpecialSql"/> -->
<!-- <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"/>
<!-- <table tableName="tbl_result_monitor_special" domainObjectName="TblResultMonitorSpecial"/> -->
<!-- <table tableName="tbl_indicator_operator_info" domainObjectName="TblIndicatorOperatorInfo"/> -->
<!-- <table tableName="tbl_rule_template" domainObjectName="TblRuleTemplate"/> -->
<!-- <table tableName="tbl_rule_simple_info" domainObjectName="TblRuleSimpleInfo"/> -->
<!-- <table tableName="tbl_rule_duplex_info" domainObjectName="TblRuleDuplexInfo"/> -->
<table tableName="tbl_sys_param_info" domainObjectName="TblSysParamInfo"/>
</context>
</generatorConfiguration>
<?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.TblIndicatorOperatorInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfo" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="indicator_name" property="indicatorName" jdbcType="VARCHAR" />
<result column="operator_expr" property="operatorExpr" 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, indicator_name, operator_expr, comment
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_indicator_operator_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_indicator_operator_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_indicator_operator_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria" >
delete from tbl_indicator_operator_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfo" >
insert into tbl_indicator_operator_info (id, indicator_name, operator_expr,
comment)
values (#{id,jdbcType=INTEGER}, #{indicatorName,jdbcType=VARCHAR}, #{operatorExpr,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfo" >
insert into tbl_indicator_operator_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="indicatorName != null" >
indicator_name,
</if>
<if test="operatorExpr != null" >
operator_expr,
</if>
<if test="comment != null" >
comment,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="indicatorName != null" >
#{indicatorName,jdbcType=VARCHAR},
</if>
<if test="operatorExpr != null" >
#{operatorExpr,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
#{comment,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_indicator_operator_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_indicator_operator_info
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.indicatorName != null" >
indicator_name = #{record.indicatorName,jdbcType=VARCHAR},
</if>
<if test="record.operatorExpr != null" >
operator_expr = #{record.operatorExpr,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_indicator_operator_info
set id = #{record.id,jdbcType=INTEGER},
indicator_name = #{record.indicatorName,jdbcType=VARCHAR},
operator_expr = #{record.operatorExpr,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.TblIndicatorOperatorInfo" >
update tbl_indicator_operator_info
<set >
<if test="indicatorName != null" >
indicator_name = #{indicatorName,jdbcType=VARCHAR},
</if>
<if test="operatorExpr != null" >
operator_expr = #{operatorExpr,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.TblIndicatorOperatorInfo" >
update tbl_indicator_operator_info
set indicator_name = #{indicatorName,jdbcType=VARCHAR},
operator_expr = #{operatorExpr,jdbcType=VARCHAR},
comment = #{comment,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.TblRuleDuplexInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblRuleDuplexInfo" >
<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_partitioned" property="isPartitioned" jdbcType="INTEGER" />
<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.TblRuleDuplexInfoWithBLOBs" extends="BaseResultMap" >
<result column="check_filters" property="checkFilters" jdbcType="LONGVARCHAR" />
<result column="refer_filters" property="referFilters" 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_partitioned, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
check_filters, refer_filters
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_rule_duplex_info
<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.TblRuleDuplexInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_rule_duplex_info
<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_rule_duplex_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_rule_duplex_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoCriteria" >
delete from tbl_rule_duplex_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoWithBLOBs" >
insert into tbl_rule_duplex_info (id, check_type, check_db_name,
check_tb_name, check_col_name, refer_db_name,
refer_tb_name, refer_col_name, is_partitioned,
is_valid, check_time, create_time,
check_filters, refer_filters)
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}, #{isPartitioned,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
#{checkFilters,jdbcType=LONGVARCHAR}, #{referFilters,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoWithBLOBs" >
insert into tbl_rule_duplex_info
<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="isPartitioned != null" >
is_partitioned,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="checkFilters != null" >
check_filters,
</if>
<if test="referFilters != null" >
refer_filters,
</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="isPartitioned != null" >
#{isPartitioned,jdbcType=INTEGER},
</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="checkFilters != null" >
#{checkFilters,jdbcType=LONGVARCHAR},
</if>
<if test="referFilters != null" >
#{referFilters,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_rule_duplex_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_rule_duplex_info
<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.isPartitioned != null" >
is_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
</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.checkFilters != null" >
check_filters = #{record.checkFilters,jdbcType=LONGVARCHAR},
</if>
<if test="record.referFilters != null" >
refer_filters = #{record.referFilters,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_rule_duplex_info
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_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
check_filters = #{record.checkFilters,jdbcType=LONGVARCHAR},
refer_filters = #{record.referFilters,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_rule_duplex_info
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_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
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.TblRuleDuplexInfoWithBLOBs" >
update tbl_rule_duplex_info
<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="isPartitioned != null" >
is_partitioned = #{isPartitioned,jdbcType=INTEGER},
</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="checkFilters != null" >
check_filters = #{checkFilters,jdbcType=LONGVARCHAR},
</if>
<if test="referFilters != null" >
refer_filters = #{referFilters,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfoWithBLOBs" >
update tbl_rule_duplex_info
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_partitioned = #{isPartitioned,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
check_filters = #{checkFilters,jdbcType=LONGVARCHAR},
refer_filters = #{referFilters,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblRuleDuplexInfo" >
update tbl_rule_duplex_info
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_partitioned = #{isPartitioned,jdbcType=INTEGER},
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.TblRuleSimpleInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblRuleSimpleInfo" >
<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="indicator_type" property="indicatorType" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="VARCHAR" />
<result column="end_time" property="endTime" jdbcType="VARCHAR" />
<result column="is_partitioned" property="isPartitioned" jdbcType="INTEGER" />
<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.TblRuleSimpleInfo" extends="BaseResultMap" >
<result column="filters" property="filters" 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, indicator_type, start_time, end_time,
is_partitioned, is_valid, check_time, create_time
</sql>
<sql id="Blob_Column_List" >
filters
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_rule_simple_info
<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.TblRuleSimpleInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_rule_simple_info
<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_rule_simple_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_rule_simple_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfoCriteria" >
delete from tbl_rule_simple_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfo" >
insert into tbl_rule_simple_info (id, check_type, db_name,
tb_name, col_name, indicator_type,
start_time, end_time, is_partitioned,
is_valid, check_time, create_time,
filters)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR}, #{isPartitioned,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
#{filters,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfo" >
insert into tbl_rule_simple_info
<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="indicatorType != null" >
indicator_type,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="isPartitioned != null" >
is_partitioned,
</if>
<if test="isValid != null" >
is_valid,
</if>
<if test="checkTime != null" >
check_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="filters != null" >
filters,
</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="indicatorType != null" >
#{indicatorType,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=VARCHAR},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=VARCHAR},
</if>
<if test="isPartitioned != null" >
#{isPartitioned,jdbcType=INTEGER},
</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="filters != null" >
#{filters,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_rule_simple_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_rule_simple_info
<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.indicatorType != null" >
indicator_type = #{record.indicatorType,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.isPartitioned != null" >
is_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
</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.filters != null" >
filters = #{record.filters,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_rule_simple_info
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},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=VARCHAR},
filters = #{record.filters,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update tbl_rule_simple_info
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},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=VARCHAR},
is_partitioned = #{record.isPartitioned,jdbcType=INTEGER},
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.TblRuleSimpleInfo" >
update tbl_rule_simple_info
<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="indicatorType != null" >
indicator_type = #{indicatorType,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="isPartitioned != null" >
is_partitioned = #{isPartitioned,jdbcType=INTEGER},
</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="filters != null" >
filters = #{filters,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfo" >
update tbl_rule_simple_info
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_partitioned = #{isPartitioned,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
filters = #{filters,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gmei.data.dqmp.domain.TblRuleSimpleInfo" >
update tbl_rule_simple_info
set check_type = #{checkType,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=VARCHAR},
is_partitioned = #{isPartitioned,jdbcType=INTEGER},
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
......@@ -3,10 +3,12 @@
<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="check_type" property="checkType" jdbcType="VARCHAR" />
<result column="comment" property="comment" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gmei.data.dqmp.domain.TblRuleTemplate" extends="BaseResultMap" >
<result column="tplt_content" property="tpltContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
......@@ -66,8 +68,27 @@
</where>
</sql>
<sql id="Base_Column_List" >
id, type, content, comment
id, check_type, comment
</sql>
<sql id="Blob_Column_List" >
tplt_content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_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="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" >
select
<if test="distinct" >
......@@ -82,9 +103,11 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tbl_rule_template
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -99,10 +122,10 @@
</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 into tbl_rule_template (id, check_type, comment,
tplt_content)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
#{tpltContent,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
insert into tbl_rule_template
......@@ -110,29 +133,29 @@
<if test="id != null" >
id,
</if>
<if test="type != null" >
type,
</if>
<if test="content != null" >
content,
<if test="checkType != null" >
check_type,
</if>
<if test="comment != null" >
comment,
</if>
<if test="tpltContent != null" >
tplt_content,
</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 test="checkType != null" >
#{checkType,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
#{comment,jdbcType=VARCHAR},
</if>
<if test="tpltContent != null" >
#{tpltContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplateCriteria" resultType="java.lang.Integer" >
......@@ -147,25 +170,34 @@
<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 test="record.checkType != null" >
check_type = #{record.checkType,jdbcType=VARCHAR},
</if>
<if test="record.comment != null" >
comment = #{record.comment,jdbcType=VARCHAR},
</if>
<if test="record.tpltContent != null" >
tplt_content = #{record.tpltContent,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update tbl_rule_template
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
tplt_content = #{record.tpltContent,jdbcType=LONGVARCHAR}
<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},
check_type = #{record.checkType,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
......@@ -174,22 +206,28 @@
<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 test="checkType != null" >
check_type = #{checkType,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
comment = #{comment,jdbcType=VARCHAR},
</if>
<if test="tpltContent != null" >
tplt_content = #{tpltContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gmei.data.dqmp.domain.TblRuleTemplate" >
update tbl_rule_template
set check_type = #{checkType,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
tplt_content = #{tpltContent,jdbcType=LONGVARCHAR}
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},
set check_type = #{checkType,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
......
<?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.TblSysParamInfoMapper" >
<resultMap id="BaseResultMap" type="com.gmei.data.dqmp.domain.TblSysParamInfo" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="param_type" property="paramType" jdbcType="VARCHAR" />
<result column="param_key" property="paramKey" jdbcType="VARCHAR" />
<result column="param_value" property="paramValue" 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, param_type, param_key, param_value, comment
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.gmei.data.dqmp.domain.TblSysParamInfoCriteria" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from tbl_sys_param_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_sys_param_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tbl_sys_param_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.gmei.data.dqmp.domain.TblSysParamInfoCriteria" >
delete from tbl_sys_param_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.gmei.data.dqmp.domain.TblSysParamInfo" >
insert into tbl_sys_param_info (id, param_type, param_key,
param_value, comment)
values (#{id,jdbcType=INTEGER}, #{paramType,jdbcType=VARCHAR}, #{paramKey,jdbcType=VARCHAR},
#{paramValue,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gmei.data.dqmp.domain.TblSysParamInfo" >
insert into tbl_sys_param_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="paramType != null" >
param_type,
</if>
<if test="paramKey != null" >
param_key,
</if>
<if test="paramValue != null" >
param_value,
</if>
<if test="comment != null" >
comment,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="paramType != null" >
#{paramType,jdbcType=VARCHAR},
</if>
<if test="paramKey != null" >
#{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null" >
#{paramValue,jdbcType=VARCHAR},
</if>
<if test="comment != null" >
#{comment,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.gmei.data.dqmp.domain.TblSysParamInfoCriteria" resultType="java.lang.Integer" >
select count(*) from tbl_sys_param_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update tbl_sys_param_info
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.paramType != null" >
param_type = #{record.paramType,jdbcType=VARCHAR},
</if>
<if test="record.paramKey != null" >
param_key = #{record.paramKey,jdbcType=VARCHAR},
</if>
<if test="record.paramValue != null" >
param_value = #{record.paramValue,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_sys_param_info
set id = #{record.id,jdbcType=INTEGER},
param_type = #{record.paramType,jdbcType=VARCHAR},
param_key = #{record.paramKey,jdbcType=VARCHAR},
param_value = #{record.paramValue,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.TblSysParamInfo" >
update tbl_sys_param_info
<set >
<if test="paramType != null" >
param_type = #{paramType,jdbcType=VARCHAR},
</if>
<if test="paramKey != null" >
param_key = #{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null" >
param_value = #{paramValue,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.TblSysParamInfo" >
update tbl_sys_param_info
set param_type = #{paramType,jdbcType=VARCHAR},
param_key = #{paramKey,jdbcType=VARCHAR},
param_value = #{paramValue,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