Commit aafe760d authored by 薛鹏飞's avatar 薛鹏飞

Merge branch 'zhaojianwei' into 'master'

add data quality project codes

See merge request !2
parents d8aebc01 89a7e796
#在BJ-GM-Prod-Cos-metabase001节点上进行如下配置
vim dqmp.conf
server {
listen 80;
server_name dqmp.prod.gengmei;
client_max_body_size 4G;
access_log /data/log/nginx/acces-dqmp.log combined;
error_log /data/log/nginx/error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_remoteip;
proxy_set_header Host $http_host;
proxy_pass http://172.16.44.8:8990;
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
sudo mdir -p /data/log/dqmp
sudo chown -R apple:wheel /data/log/dqmp
\ No newline at end of file
...@@ -43,6 +43,12 @@ ...@@ -43,6 +43,12 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId> <artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.2</version>
</dependency> </dependency>
<!-- 集成mysql驱动 --> <!-- 集成mysql驱动 -->
<dependency> <dependency>
...@@ -65,6 +71,11 @@ ...@@ -65,6 +71,11 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId> <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.22</version>
</dependency> </dependency>
<!-- 集成热部署插件 --> <!-- 集成热部署插件 -->
<dependency> <dependency>
...@@ -78,6 +89,12 @@ ...@@ -78,6 +89,12 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--alibaba easyexcel -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>1.1.2-beta5</version>
</dependency>
<!-- 增加fastjson工具类 --> <!-- 增加fastjson工具类 -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
...@@ -128,6 +145,7 @@ ...@@ -128,6 +145,7 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- xxl-job依赖 --> <!-- xxl-job依赖 -->
<dependency> <dependency>
<groupId>com.xuxueli</groupId> <groupId>com.xuxueli</groupId>
...@@ -220,7 +238,7 @@ ...@@ -220,7 +238,7 @@
</executions> </executions>
</plugin> </plugin>
<!--集成mybatis自动生成工具 --> <!--集成mybatis自动生成工具 -->
<plugin> <!-- <plugin>
<groupId>org.mybatis.generator</groupId> <groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId> <artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version> <version>1.3.2</version>
...@@ -244,7 +262,7 @@ ...@@ -244,7 +262,7 @@
<version>1.3.2</version> <version>1.3.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin> -->
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
...@@ -5,6 +5,9 @@ import org.springframework.boot.SpringApplication; ...@@ -5,6 +5,9 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.util.ResourceUtils;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
/** /**
* 程序入口 * 程序入口
...@@ -13,7 +16,13 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -13,7 +16,13 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableScheduling @EnableScheduling
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan("com.gmei.data.dqmp.mapper") @MapperScan("com.gmei.data.dqmp.mapper")
public class DqmpApplication { public class DqmpApplication extends WebMvcConfigurationSupport{
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/templates/**").addResourceLocations(ResourceUtils.CLASSPATH_URL_PREFIX+"/templates/");
}
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(DqmpApplication.class, args); SpringApplication.run(DqmpApplication.class, args);
} }
......
...@@ -36,9 +36,10 @@ public class Constants { ...@@ -36,9 +36,10 @@ public class Constants {
// 双表规则类型 // 双表规则类型
public static final String TABLE_DUPLEX = "duplex"; public static final String TABLE_DUPLEX = "duplex";
// public static final String CHECK_SIMPLE = "check_single"; public static final String UNIQUE = "unique";
// public static final String CHECK_MULTIPLE = "check_multiple"; public static final String UNBLANK = "unblank";
// public static final String MONITOR_VOLATILITY = "monitor_volatility"; public static final String REFER = "refer";
// public static final String MONITOR_SPECIAL = "monitor_special"; public static final String VOLATILITY = "volatility";
public static final String SPECIAL = "special";
} }
package com.gmei.data.dqmp.config;
import java.util.concurrent.Executors;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
@Configuration
public class ScheduleConfig implements SchedulingConfigurer {
@Override
public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
taskRegistrar.setScheduler(Executors.newScheduledThreadPool(10));
}
}
package com.gmei.data.dqmp.controller;
import org.springframework.ui.Model;
public class BaseController {
/**
* 执行结果页面属性返回
* @param model
* @param isSuc
* @param msg
* @return
*/
protected String model(Model model, boolean isSuc, String msg) {
if(isSuc) {
model.addAttribute("result", "success!");
}else {
model.addAttribute("result", msg);
}
return "view/result";
}
}
...@@ -2,20 +2,21 @@ package com.gmei.data.dqmp.controller; ...@@ -2,20 +2,21 @@ package com.gmei.data.dqmp.controller;
import javax.validation.Valid; import javax.validation.Valid;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; 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.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo; import com.gmei.data.dqmp.vo.DqRuleVo;
@RestController @Controller
@RequestMapping(value = "/dqrule") @RequestMapping(value = "/dqRule")
public class DqRuleController { public class DqRuleController extends BaseController{
@Autowired @Autowired
private DqRuleService dqRuleService; private DqRuleService dqRuleService;
...@@ -26,17 +27,29 @@ public class DqRuleController { ...@@ -26,17 +27,29 @@ public class DqRuleController {
* @param bindingResult * @param bindingResult
* @return * @return
*/ */
@ResponseBody
@RequestMapping(value = "/add", method = RequestMethod.POST) @RequestMapping(value = "/add", method = RequestMethod.POST)
public DqRuleVo addDqRule(@RequestBody @Valid DqRuleVo dqRuleVo,BindingResult bindingResult) { public String addDqRule(@RequestBody @Valid DqRuleVo dqRuleVo,BindingResult bindingResult, Model model) {
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
return new DqRuleVo(-1,bindingResult.getFieldError().getDefaultMessage()); return model(model,false,bindingResult.getFieldError().getDefaultMessage());
} }
Boolean isAddSuc = dqRuleService.addDqRule(dqRuleVo); Boolean isAddSuc = dqRuleService.addDqRule(dqRuleVo);
if(isAddSuc) { if(isAddSuc) {
return new DqRuleVo(); return model(model,true,"");
}else { }else {
return new DqRuleVo(-1,"Rule add error!"); return model(model,false,"Rule add error!");
}
}
@RequestMapping(value = "/del", method = RequestMethod.GET)
public String delDqRule(DqRuleVo dqRuleVo, Model model) {
if(dqRuleVo.getId() == null || StringUtils.isBlank(dqRuleVo.getCheckType())) {
return model(model,false,"Params is error!");
}
Boolean isDelSuc = dqRuleService.delDqRule(dqRuleVo);
if(isDelSuc) {
return model(model,true,"");
}else {
return model(model,false,"数据质量规则删除失败!");
} }
} }
} }
package com.gmei.data.dqmp.controller;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.utils.ImportExcelUtils;
import com.gmei.data.dqmp.vo.BaseVo;
@Controller
@RequestMapping(value = "/excel")
public class DqRuleImportController extends BaseController{
@Autowired
private DqRuleService dqRuleService;
private static final Logger logger = LoggerFactory.getLogger(DqRuleImportController.class);
@PostMapping(value = "export")
public BaseVo exportExcel() {
return new BaseVo();
}
@PostMapping(value = "importUnique")
public String importUniqueExcel(HttpServletRequest httpServletRequest, Model model) {
if (!checkIsLegal(httpServletRequest, Constants.UNIQUE)) {
return model(model,false,"上传的数据质量规则文件格式或内容错误,请核实!");
}
try {
ImportExcelUtils.saxReadUniqueListString(httpServletRequest, dqRuleService);
} catch (Exception e) {
logger.error(e.getMessage());
return model(model,false,e.getMessage());
}
return model(model,true,"");
}
@PostMapping(value = "importUnblank")
public String importUnblankExcel(HttpServletRequest httpServletRequest, Model model) {
if (!checkIsLegal(httpServletRequest, Constants.UNBLANK)) {
return model(model,false,"上传的数据质量规则文件格式或内容错误,请核实!");
}
try {
ImportExcelUtils.saxReadUnblankListString(httpServletRequest, dqRuleService);
} catch (Exception e) {
logger.error(e.getMessage());
return model(model,false,e.getMessage());
}
return model(model,true,"");
}
@PostMapping(value = "importRefer")
public String importReferExcel(HttpServletRequest httpServletRequest, Model model) {
if (!checkIsLegal(httpServletRequest, Constants.REFER)) {
return model(model,false,"上传的数据质量规则文件格式或内容错误,请核实!");
}
try {
ImportExcelUtils.saxReadReferListString(httpServletRequest, dqRuleService);
} catch (Exception e) {
logger.error(e.getMessage());
return model(model,false,e.getMessage());
}
return model(model,true,"");
}
@PostMapping(value = "importVolatility")
public String importVolatilityExcel(HttpServletRequest httpServletRequest, Model model) {
if (!checkIsLegal(httpServletRequest, Constants.VOLATILITY)) {
return model(model,false,"上传的数据质量规则文件格式或内容错误,请核实!");
}
try {
ImportExcelUtils.saxReadVolatilityListString(httpServletRequest, dqRuleService);
} catch (Exception e) {
logger.error(e.getMessage());
return model(model,false,e.getMessage());
}
return model(model,true,"");
}
@PostMapping(value = "importSpecial")
public String importExcel(HttpServletRequest httpServletRequest, Model model) {
if (!checkIsLegal(httpServletRequest, Constants.SPECIAL)) {
return model(model,false,"上传的数据质量规则文件格式或内容错误,请核实!");
}
try {
ImportExcelUtils.saxReadSpecialListString(httpServletRequest, dqRuleService);
} catch (Exception e) {
logger.error(e.getMessage());
return model(model,false,e.getMessage());
}
return model(model,true,"");
}
/**
* 上传文件格式、内容校验
*
* @param httpServletRequest
* @param type
* @return
*/
private Boolean checkIsLegal(HttpServletRequest httpServletRequest, String type) {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) httpServletRequest;
MultipartFile requestFile = multipartRequest.getFile("file");
String originalFilename = requestFile.getOriginalFilename();
if (!originalFilename.endsWith(ExcelTypeEnum.XLS.getValue())
&& !originalFilename.endsWith(ExcelTypeEnum.XLSX.getValue())) {
logger.error("Excel导入错误文件名称:{}", originalFilename);
return false;
} else {
if (!originalFilename.contains(type)) {
logger.error("导入的不是非空性校验规则文件:{}", originalFilename);
return false;
}
}
return true;
}
}
package com.gmei.data.dqmp.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import com.gmei.data.dqmp.service.DashbordService;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.service.ThresholdExceedAllService;
import com.gmei.data.dqmp.vo.DashbordVo;
import com.gmei.data.dqmp.vo.DqReferRuleVo;
import com.gmei.data.dqmp.vo.DqSpecialRuleVo;
import com.gmei.data.dqmp.vo.DqUnblankRuleVo;
import com.gmei.data.dqmp.vo.DqUniqueRuleVo;
import com.gmei.data.dqmp.vo.DqVolatilityRuleVo;
import com.gmei.data.dqmp.vo.ThresholdExceedAllVo;
@Controller
public class IndexController {
@Autowired
private DqRuleService dqRuleService;
@Autowired
private DashbordService dashbordService;
@Autowired
private ThresholdExceedAllService thresholdExceedAllService;
@GetMapping("/")
public String index() {
return "index";
}
@GetMapping("/view")
public String demo(Model model) {
DashbordVo dashbordInfo = dashbordService.getDashbordInfo();
model.addAttribute("volatilityLegendData",dashbordInfo.getVolatilityLegendData());
model.addAttribute("volatilitySeriesData",dashbordInfo.getVolatilitySeriesData());
model.addAttribute("specialLegendData",dashbordInfo.getSpecialLegendData());
model.addAttribute("specialSeriesData",dashbordInfo.getSpecialSeriesData());
List<ThresholdExceedAllVo> thresholdExceedAllList = thresholdExceedAllService.getThresholdExceedAllList();
model.addAttribute("thresholdExceedAllList",thresholdExceedAllList);
return "view/dashbord";
}
/**
* 首页中功能列表
*
* @param model
* @return
*/
@GetMapping("/manage")
public String index(Model model) {
List<DqUniqueRuleVo> uniqueList = dqRuleService.findUniqueDqRuleList();
List<DqUnblankRuleVo> unblankList = dqRuleService.findUnblankDqRuleList();
List<DqReferRuleVo> referList = dqRuleService.findReferDqRuleList();
List<DqVolatilityRuleVo> volatilityList = dqRuleService.findVolatilityDqRuleList();
List<DqSpecialRuleVo> specialList = dqRuleService.findSpecialDqRuleList();
model.addAttribute("uniqueList", uniqueList);
model.addAttribute("unblankList", unblankList);
model.addAttribute("referList", referList);
model.addAttribute("volatilityList", volatilityList);
model.addAttribute("specialList", specialList);
return "view/manage";
}
}
package com.gmei.data.dqmp.controller.api;
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 = "/api/dqrule")
public class DqRuleApiController {
@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!");
}
}
}
package com.gmei.data.dqmp.controller.api;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.gmei.data.dqmp.common.Constants;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.utils.ImportExcelUtils;
import com.gmei.data.dqmp.vo.BaseVo;
@RestController
@RequestMapping(value = "/api/excel")
public class DqRuleImportApiController {
@Autowired
private DqRuleService dqRuleService;
private static final Logger logger = LoggerFactory.getLogger(DqRuleImportApiController.class);
@PostMapping(value = "export")
public BaseVo exportExcel() {
return new BaseVo();
}
@PostMapping(value = "importUnique")
public BaseVo importUniqueExcel(HttpServletRequest httpServletRequest) {
if(!checkIsLegal(httpServletRequest,Constants.UNIQUE)) {
return new BaseVo(-1,"上传的数据质量规则文件错误,请核实!");
}
try {
ImportExcelUtils.saxReadUniqueListString(httpServletRequest,dqRuleService);
}catch (Exception e) {
logger.error(e.getMessage());
return new BaseVo(-1,e.getMessage());
}
return new BaseVo();
}
@PostMapping(value = "importUnblank")
public BaseVo importUnblankExcel(HttpServletRequest httpServletRequest) {
if(!checkIsLegal(httpServletRequest,Constants.UNBLANK)) {
return new BaseVo(-1,"上传的数据质量规则文件错误,请核实!");
}
try {
ImportExcelUtils.saxReadUnblankListString(httpServletRequest,dqRuleService);
}catch (Exception e) {
logger.error(e.getMessage());
return new BaseVo(-1,e.getMessage());
}
return new BaseVo();
}
@PostMapping(value = "importRefer")
public BaseVo importReferExcel(HttpServletRequest httpServletRequest) {
if(!checkIsLegal(httpServletRequest,Constants.REFER)) {
return new BaseVo(-1,"上传的数据质量规则文件错误,请核实!");
}
try {
ImportExcelUtils.saxReadReferListString(httpServletRequest,dqRuleService);
}catch (Exception e) {
logger.error(e.getMessage());
return new BaseVo(-1,e.getMessage());
}
return new BaseVo();
}
@PostMapping(value = "importVolatility")
public BaseVo importVolatilityExcel(HttpServletRequest httpServletRequest) {
if(!checkIsLegal(httpServletRequest,Constants.VOLATILITY)) {
return new BaseVo(-1,"上传的数据质量规则文件错误,请核实!");
}
try {
ImportExcelUtils.saxReadVolatilityListString(httpServletRequest,dqRuleService);
}catch (Exception e) {
logger.error(e.getMessage());
return new BaseVo(-1,e.getMessage());
}
return new BaseVo();
}
@PostMapping(value = "importSpecial")
public BaseVo importExcel(HttpServletRequest httpServletRequest) {
if(!checkIsLegal(httpServletRequest,Constants.SPECIAL)) {
return new BaseVo(-1,"上传的数据质量规则文件错误,请核实!");
}
try {
ImportExcelUtils.saxReadSpecialListString(httpServletRequest,dqRuleService);
}catch (Exception e) {
logger.error(e.getMessage());
return new BaseVo(-1,e.getMessage());
}
return new BaseVo();
}
/**
* 上传文件格式、内容校验
* @param httpServletRequest
* @param type
* @return
*/
private Boolean checkIsLegal(HttpServletRequest httpServletRequest,String type) {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) httpServletRequest;
MultipartFile requestFile = multipartRequest.getFile("file");
String originalFilename = requestFile.getOriginalFilename();
if (!originalFilename.endsWith(ExcelTypeEnum.XLS.getValue()) && !originalFilename.endsWith(ExcelTypeEnum.XLSX.getValue())) {
logger.error("Excel导入错误文件名称:{}", originalFilename);
return false;
}else {
if(!originalFilename.contains(type)) {
logger.error("导入的不是非空性校验规则文件:{}", originalFilename);
return false;
}
}
return true;
}
}
...@@ -3,7 +3,7 @@ package com.gmei.data.dqmp.domain; ...@@ -3,7 +3,7 @@ package com.gmei.data.dqmp.domain;
public class TblIndicatorOperatorInfo { public class TblIndicatorOperatorInfo {
private Integer id; private Integer id;
private String indicatorName; private String indicatorType;
private String operatorExpr; private String operatorExpr;
...@@ -17,12 +17,12 @@ public class TblIndicatorOperatorInfo { ...@@ -17,12 +17,12 @@ public class TblIndicatorOperatorInfo {
this.id = id; this.id = id;
} }
public String getIndicatorName() { public String getIndicatorType() {
return indicatorName; return indicatorType;
} }
public void setIndicatorName(String indicatorName) { public void setIndicatorType(String indicatorType) {
this.indicatorName = indicatorName == null ? null : indicatorName.trim(); this.indicatorType = indicatorType == null ? null : indicatorType.trim();
} }
public String getOperatorExpr() { public String getOperatorExpr() {
......
...@@ -164,73 +164,73 @@ public class TblIndicatorOperatorInfoCriteria { ...@@ -164,73 +164,73 @@ public class TblIndicatorOperatorInfoCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameIsNull() { public Criteria andIndicatorTypeIsNull() {
addCriterion("indicator_name is null"); addCriterion("indicator_type is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameIsNotNull() { public Criteria andIndicatorTypeIsNotNull() {
addCriterion("indicator_name is not null"); addCriterion("indicator_type is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameEqualTo(String value) { public Criteria andIndicatorTypeEqualTo(String value) {
addCriterion("indicator_name =", value, "indicatorName"); addCriterion("indicator_type =", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameNotEqualTo(String value) { public Criteria andIndicatorTypeNotEqualTo(String value) {
addCriterion("indicator_name <>", value, "indicatorName"); addCriterion("indicator_type <>", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameGreaterThan(String value) { public Criteria andIndicatorTypeGreaterThan(String value) {
addCriterion("indicator_name >", value, "indicatorName"); addCriterion("indicator_type >", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameGreaterThanOrEqualTo(String value) { public Criteria andIndicatorTypeGreaterThanOrEqualTo(String value) {
addCriterion("indicator_name >=", value, "indicatorName"); addCriterion("indicator_type >=", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameLessThan(String value) { public Criteria andIndicatorTypeLessThan(String value) {
addCriterion("indicator_name <", value, "indicatorName"); addCriterion("indicator_type <", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameLessThanOrEqualTo(String value) { public Criteria andIndicatorTypeLessThanOrEqualTo(String value) {
addCriterion("indicator_name <=", value, "indicatorName"); addCriterion("indicator_type <=", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameLike(String value) { public Criteria andIndicatorTypeLike(String value) {
addCriterion("indicator_name like", value, "indicatorName"); addCriterion("indicator_type like", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameNotLike(String value) { public Criteria andIndicatorTypeNotLike(String value) {
addCriterion("indicator_name not like", value, "indicatorName"); addCriterion("indicator_type not like", value, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameIn(List<String> values) { public Criteria andIndicatorTypeIn(List<String> values) {
addCriterion("indicator_name in", values, "indicatorName"); addCriterion("indicator_type in", values, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameNotIn(List<String> values) { public Criteria andIndicatorTypeNotIn(List<String> values) {
addCriterion("indicator_name not in", values, "indicatorName"); addCriterion("indicator_type not in", values, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameBetween(String value1, String value2) { public Criteria andIndicatorTypeBetween(String value1, String value2) {
addCriterion("indicator_name between", value1, value2, "indicatorName"); addCriterion("indicator_type between", value1, value2, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIndicatorNameNotBetween(String value1, String value2) { public Criteria andIndicatorTypeNotBetween(String value1, String value2) {
addCriterion("indicator_name not between", value1, value2, "indicatorName"); addCriterion("indicator_type not between", value1, value2, "indicatorType");
return (Criteria) this; return (Criteria) this;
} }
......
...@@ -23,6 +23,8 @@ public class TblResultCheckRefer { ...@@ -23,6 +23,8 @@ public class TblResultCheckRefer {
private String partitionDate; private String partitionDate;
private Integer sqlId;
private String createTime; private String createTime;
public Integer getId() { public Integer getId() {
...@@ -113,6 +115,14 @@ public class TblResultCheckRefer { ...@@ -113,6 +115,14 @@ public class TblResultCheckRefer {
this.partitionDate = partitionDate == null ? null : partitionDate.trim(); this.partitionDate = partitionDate == null ? null : partitionDate.trim();
} }
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() { public String getCreateTime() {
return createTime; return createTime;
} }
...@@ -120,4 +130,27 @@ public class TblResultCheckRefer { ...@@ -120,4 +130,27 @@ public class TblResultCheckRefer {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime == null ? null : createTime.trim();
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", checkDbName=").append(checkDbName);
sb.append(", checkTbName=").append(checkTbName);
sb.append(", checkColName=").append(checkColName);
sb.append(", referDbName=").append(referDbName);
sb.append(", referTbName=").append(referTbName);
sb.append(", referColName=").append(referColName);
sb.append(", allNum=").append(allNum);
sb.append(", matchedNum=").append(matchedNum);
sb.append(", matchedRate=").append(matchedRate);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
} }
\ No newline at end of file
...@@ -834,6 +834,66 @@ public class TblResultCheckReferCriteria { ...@@ -834,6 +834,66 @@ public class TblResultCheckReferCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSqlIdIsNull() {
addCriterion("sql_id is null");
return (Criteria) this;
}
public Criteria andSqlIdIsNotNull() {
addCriterion("sql_id is not null");
return (Criteria) this;
}
public Criteria andSqlIdEqualTo(Integer value) {
addCriterion("sql_id =", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotEqualTo(Integer value) {
addCriterion("sql_id <>", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThan(Integer value) {
addCriterion("sql_id >", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThanOrEqualTo(Integer value) {
addCriterion("sql_id >=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThan(Integer value) {
addCriterion("sql_id <", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThanOrEqualTo(Integer value) {
addCriterion("sql_id <=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdIn(List<Integer> values) {
addCriterion("sql_id in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotIn(List<Integer> values) {
addCriterion("sql_id not in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdBetween(Integer value1, Integer value2) {
addCriterion("sql_id between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotBetween(Integer value1, Integer value2) {
addCriterion("sql_id not between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -17,6 +17,8 @@ public class TblResultCheckUnblank { ...@@ -17,6 +17,8 @@ public class TblResultCheckUnblank {
private String partitionDate; private String partitionDate;
private Integer sqlId;
private String createTime; private String createTime;
public Integer getId() { public Integer getId() {
...@@ -83,6 +85,14 @@ public class TblResultCheckUnblank { ...@@ -83,6 +85,14 @@ public class TblResultCheckUnblank {
this.partitionDate = partitionDate == null ? null : partitionDate.trim(); this.partitionDate = partitionDate == null ? null : partitionDate.trim();
} }
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() { public String getCreateTime() {
return createTime; return createTime;
} }
...@@ -90,4 +100,24 @@ public class TblResultCheckUnblank { ...@@ -90,4 +100,24 @@ public class TblResultCheckUnblank {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime == null ? null : createTime.trim();
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", dbName=").append(dbName);
sb.append(", tbName=").append(tbName);
sb.append(", colName=").append(colName);
sb.append(", allNum=").append(allNum);
sb.append(", unblankNum=").append(unblankNum);
sb.append(", unblankRate=").append(unblankRate);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
} }
\ No newline at end of file
...@@ -624,6 +624,66 @@ public class TblResultCheckUnblankCriteria { ...@@ -624,6 +624,66 @@ public class TblResultCheckUnblankCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSqlIdIsNull() {
addCriterion("sql_id is null");
return (Criteria) this;
}
public Criteria andSqlIdIsNotNull() {
addCriterion("sql_id is not null");
return (Criteria) this;
}
public Criteria andSqlIdEqualTo(Integer value) {
addCriterion("sql_id =", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotEqualTo(Integer value) {
addCriterion("sql_id <>", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThan(Integer value) {
addCriterion("sql_id >", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThanOrEqualTo(Integer value) {
addCriterion("sql_id >=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThan(Integer value) {
addCriterion("sql_id <", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThanOrEqualTo(Integer value) {
addCriterion("sql_id <=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdIn(List<Integer> values) {
addCriterion("sql_id in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotIn(List<Integer> values) {
addCriterion("sql_id not in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdBetween(Integer value1, Integer value2) {
addCriterion("sql_id between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotBetween(Integer value1, Integer value2) {
addCriterion("sql_id not between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -17,6 +17,8 @@ public class TblResultCheckUnique { ...@@ -17,6 +17,8 @@ public class TblResultCheckUnique {
private String partitionDate; private String partitionDate;
private Integer sqlId;
private String createTime; private String createTime;
public Integer getId() { public Integer getId() {
...@@ -83,6 +85,14 @@ public class TblResultCheckUnique { ...@@ -83,6 +85,14 @@ public class TblResultCheckUnique {
this.partitionDate = partitionDate == null ? null : partitionDate.trim(); this.partitionDate = partitionDate == null ? null : partitionDate.trim();
} }
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() { public String getCreateTime() {
return createTime; return createTime;
} }
...@@ -90,4 +100,24 @@ public class TblResultCheckUnique { ...@@ -90,4 +100,24 @@ public class TblResultCheckUnique {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime == null ? null : createTime.trim();
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", dbName=").append(dbName);
sb.append(", tbName=").append(tbName);
sb.append(", colName=").append(colName);
sb.append(", allNum=").append(allNum);
sb.append(", uniqueNum=").append(uniqueNum);
sb.append(", uniqueRate=").append(uniqueRate);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
} }
\ No newline at end of file
...@@ -624,6 +624,66 @@ public class TblResultCheckUniqueCriteria { ...@@ -624,6 +624,66 @@ public class TblResultCheckUniqueCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSqlIdIsNull() {
addCriterion("sql_id is null");
return (Criteria) this;
}
public Criteria andSqlIdIsNotNull() {
addCriterion("sql_id is not null");
return (Criteria) this;
}
public Criteria andSqlIdEqualTo(Integer value) {
addCriterion("sql_id =", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotEqualTo(Integer value) {
addCriterion("sql_id <>", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThan(Integer value) {
addCriterion("sql_id >", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThanOrEqualTo(Integer value) {
addCriterion("sql_id >=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThan(Integer value) {
addCriterion("sql_id <", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThanOrEqualTo(Integer value) {
addCriterion("sql_id <=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdIn(List<Integer> values) {
addCriterion("sql_id in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotIn(List<Integer> values) {
addCriterion("sql_id not in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdBetween(Integer value1, Integer value2) {
addCriterion("sql_id between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotBetween(Integer value1, Integer value2) {
addCriterion("sql_id not between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -9,14 +9,16 @@ public class TblResultMonitorSpecial { ...@@ -9,14 +9,16 @@ public class TblResultMonitorSpecial {
private String timeColName; private String timeColName;
private String startTime; private String indicatorType;
private String endTime; private Long indicatorValue;
private Long countNum; private String startTime;
private String partitionDate; private String partitionDate;
private Integer sqlId;
private String createTime; private String createTime;
public Integer getId() { public Integer getId() {
...@@ -51,28 +53,28 @@ public class TblResultMonitorSpecial { ...@@ -51,28 +53,28 @@ public class TblResultMonitorSpecial {
this.timeColName = timeColName == null ? null : timeColName.trim(); this.timeColName = timeColName == null ? null : timeColName.trim();
} }
public String getStartTime() { public String getIndicatorType() {
return startTime; return indicatorType;
} }
public void setStartTime(String startTime) { public void setIndicatorType(String indicatorType) {
this.startTime = startTime == null ? null : startTime.trim(); this.indicatorType = indicatorType == null ? null : indicatorType.trim();
} }
public String getEndTime() { public Long getIndicatorValue() {
return endTime; return indicatorValue;
} }
public void setEndTime(String endTime) { public void setIndicatorValue(Long indicatorValue) {
this.endTime = endTime == null ? null : endTime.trim(); this.indicatorValue = indicatorValue;
} }
public Long getCountNum() { public String getStartTime() {
return countNum; return startTime;
} }
public void setCountNum(Long countNum) { public void setStartTime(String startTime) {
this.countNum = countNum; this.startTime = startTime == null ? null : startTime.trim();
} }
public String getPartitionDate() { public String getPartitionDate() {
...@@ -83,6 +85,14 @@ public class TblResultMonitorSpecial { ...@@ -83,6 +85,14 @@ public class TblResultMonitorSpecial {
this.partitionDate = partitionDate == null ? null : partitionDate.trim(); this.partitionDate = partitionDate == null ? null : partitionDate.trim();
} }
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() { public String getCreateTime() {
return createTime; return createTime;
} }
...@@ -90,4 +100,24 @@ public class TblResultMonitorSpecial { ...@@ -90,4 +100,24 @@ public class TblResultMonitorSpecial {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime == null ? null : createTime.trim();
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", dbName=").append(dbName);
sb.append(", tbName=").append(tbName);
sb.append(", timeColName=").append(timeColName);
sb.append(", indicatorType=").append(indicatorType);
sb.append(", indicatorValue=").append(indicatorValue);
sb.append(", startTime=").append(startTime);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
} }
\ No newline at end of file
...@@ -15,6 +15,8 @@ public class TblResultMonitorVolatility { ...@@ -15,6 +15,8 @@ public class TblResultMonitorVolatility {
private String partitionDate; private String partitionDate;
private Integer sqlId;
private String createTime; private String createTime;
public Integer getId() { public Integer getId() {
...@@ -73,6 +75,14 @@ public class TblResultMonitorVolatility { ...@@ -73,6 +75,14 @@ public class TblResultMonitorVolatility {
this.partitionDate = partitionDate == null ? null : partitionDate.trim(); this.partitionDate = partitionDate == null ? null : partitionDate.trim();
} }
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() { public String getCreateTime() {
return createTime; return createTime;
} }
...@@ -80,4 +90,23 @@ public class TblResultMonitorVolatility { ...@@ -80,4 +90,23 @@ public class TblResultMonitorVolatility {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime == null ? null : createTime.trim();
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", dbName=").append(dbName);
sb.append(", tbName=").append(tbName);
sb.append(", colName=").append(colName);
sb.append(", indicatorType=").append(indicatorType);
sb.append(", indicatorValue=").append(indicatorValue);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
} }
\ No newline at end of file
...@@ -574,6 +574,66 @@ public class TblResultMonitorVolatilityCriteria { ...@@ -574,6 +574,66 @@ public class TblResultMonitorVolatilityCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSqlIdIsNull() {
addCriterion("sql_id is null");
return (Criteria) this;
}
public Criteria andSqlIdIsNotNull() {
addCriterion("sql_id is not null");
return (Criteria) this;
}
public Criteria andSqlIdEqualTo(Integer value) {
addCriterion("sql_id =", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotEqualTo(Integer value) {
addCriterion("sql_id <>", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThan(Integer value) {
addCriterion("sql_id >", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdGreaterThanOrEqualTo(Integer value) {
addCriterion("sql_id >=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThan(Integer value) {
addCriterion("sql_id <", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdLessThanOrEqualTo(Integer value) {
addCriterion("sql_id <=", value, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdIn(List<Integer> values) {
addCriterion("sql_id in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotIn(List<Integer> values) {
addCriterion("sql_id not in", values, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdBetween(Integer value1, Integer value2) {
addCriterion("sql_id between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andSqlIdNotBetween(Integer value1, Integer value2) {
addCriterion("sql_id not between", value1, value2, "sqlId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblCheckMultipleSql { import java.util.Date;
public class TblRuleInfoDuplex {
private Integer id; private Integer id;
private String checkType; private String checkType;
...@@ -17,13 +19,15 @@ public class TblCheckMultipleSql { ...@@ -17,13 +19,15 @@ public class TblCheckMultipleSql {
private String referColName; private String referColName;
private Double threshold;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private String sqlContent; private Date createTime;
public Integer getId() { public Integer getId() {
return id; return id;
...@@ -89,6 +93,14 @@ public class TblCheckMultipleSql { ...@@ -89,6 +93,14 @@ public class TblCheckMultipleSql {
this.referColName = referColName == null ? null : referColName.trim(); this.referColName = referColName == null ? null : referColName.trim();
} }
public Double getThreshold() {
return threshold;
}
public void setThreshold(Double threshold) {
this.threshold = threshold;
}
public Integer getIsValid() { public Integer getIsValid() {
return isValid; return isValid;
} }
...@@ -105,19 +117,19 @@ public class TblCheckMultipleSql { ...@@ -105,19 +117,19 @@ public class TblCheckMultipleSql {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return createTime; return comment;
} }
public void setCreateTime(String createTime) { public void setComment(String comment) {
this.createTime = createTime == null ? null : createTime.trim(); this.comment = comment == null ? null : comment.trim();
} }
public String getSqlContent() { public Date getCreateTime() {
return sqlContent; return createTime;
} }
public void setSqlContent(String sqlContent) { public void setCreateTime(Date createTime) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim(); this.createTime = createTime;
} }
} }
\ No newline at end of file
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
public class TblRuleDuplexInfoCriteria { public class TblRuleInfoDuplexCriteria {
protected String orderByClause; protected String orderByClause;
protected boolean distinct; protected boolean distinct;
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
public TblRuleDuplexInfoCriteria() { public TblRuleInfoDuplexCriteria() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
...@@ -654,63 +655,63 @@ public class TblRuleDuplexInfoCriteria { ...@@ -654,63 +655,63 @@ public class TblRuleDuplexInfoCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedIsNull() { public Criteria andThresholdIsNull() {
addCriterion("is_partitioned is null"); addCriterion("threshold is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedIsNotNull() { public Criteria andThresholdIsNotNull() {
addCriterion("is_partitioned is not null"); addCriterion("threshold is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedEqualTo(Integer value) { public Criteria andThresholdEqualTo(Double value) {
addCriterion("is_partitioned =", value, "isPartitioned"); addCriterion("threshold =", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedNotEqualTo(Integer value) { public Criteria andThresholdNotEqualTo(Double value) {
addCriterion("is_partitioned <>", value, "isPartitioned"); addCriterion("threshold <>", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedGreaterThan(Integer value) { public Criteria andThresholdGreaterThan(Double value) {
addCriterion("is_partitioned >", value, "isPartitioned"); addCriterion("threshold >", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedGreaterThanOrEqualTo(Integer value) { public Criteria andThresholdGreaterThanOrEqualTo(Double value) {
addCriterion("is_partitioned >=", value, "isPartitioned"); addCriterion("threshold >=", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedLessThan(Integer value) { public Criteria andThresholdLessThan(Double value) {
addCriterion("is_partitioned <", value, "isPartitioned"); addCriterion("threshold <", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedLessThanOrEqualTo(Integer value) { public Criteria andThresholdLessThanOrEqualTo(Double value) {
addCriterion("is_partitioned <=", value, "isPartitioned"); addCriterion("threshold <=", value, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedIn(List<Integer> values) { public Criteria andThresholdIn(List<Double> values) {
addCriterion("is_partitioned in", values, "isPartitioned"); addCriterion("threshold in", values, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedNotIn(List<Integer> values) { public Criteria andThresholdNotIn(List<Double> values) {
addCriterion("is_partitioned not in", values, "isPartitioned"); addCriterion("threshold not in", values, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedBetween(Integer value1, Integer value2) { public Criteria andThresholdBetween(Double value1, Double value2) {
addCriterion("is_partitioned between", value1, value2, "isPartitioned"); addCriterion("threshold between", value1, value2, "threshold");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsPartitionedNotBetween(Integer value1, Integer value2) { public Criteria andThresholdNotBetween(Double value1, Double value2) {
addCriterion("is_partitioned not between", value1, value2, "isPartitioned"); addCriterion("threshold not between", value1, value2, "threshold");
return (Criteria) this; return (Criteria) this;
} }
...@@ -844,6 +845,76 @@ public class TblRuleDuplexInfoCriteria { ...@@ -844,6 +845,76 @@ public class TblRuleDuplexInfoCriteria {
return (Criteria) this; 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 Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
...@@ -854,62 +925,52 @@ public class TblRuleDuplexInfoCriteria { ...@@ -854,62 +925,52 @@ public class TblRuleDuplexInfoCriteria {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeEqualTo(String value) { public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime"); addCriterion("create_time =", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeNotEqualTo(String value) { public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime"); addCriterion("create_time <>", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeGreaterThan(String value) { public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime"); addCriterion("create_time >", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeGreaterThanOrEqualTo(String value) { public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime"); addCriterion("create_time >=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeLessThan(String value) { public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime"); addCriterion("create_time <", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeLessThanOrEqualTo(String value) { public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime"); addCriterion("create_time <=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeLike(String value) { public Criteria andCreateTimeIn(List<Date> values) {
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"); addCriterion("create_time in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeNotIn(List<String> values) { public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime"); addCriterion("create_time not in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeBetween(String value1, String value2) { public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime"); addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeNotBetween(String value1, String value2) { public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime"); addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblRuleDuplexInfoWithBLOBs extends TblRuleDuplexInfo { public class TblRuleInfoDuplexWithBLOBs extends TblRuleInfoDuplex {
private String checkFilters; private String checkFilters;
private String referFilters; private String referFilters;
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblRuleSimpleInfo { import java.util.Date;
public class TblRuleInfoSimple {
private Integer id; private Integer id;
private String checkType; private String checkType;
...@@ -11,19 +13,21 @@ public class TblRuleSimpleInfo { ...@@ -11,19 +13,21 @@ public class TblRuleSimpleInfo {
private String colName; private String colName;
private String timeColName;
private String indicatorType; private String indicatorType;
private String startTime; private String startTime;
private String endTime; private Double threshold;
private Integer isPartitioned;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private Date createTime;
private String filters; private String filters;
...@@ -67,6 +71,14 @@ public class TblRuleSimpleInfo { ...@@ -67,6 +71,14 @@ public class TblRuleSimpleInfo {
this.colName = colName == null ? null : colName.trim(); this.colName = colName == null ? null : colName.trim();
} }
public String getTimeColName() {
return timeColName;
}
public void setTimeColName(String timeColName) {
this.timeColName = timeColName == null ? null : timeColName.trim();
}
public String getIndicatorType() { public String getIndicatorType() {
return indicatorType; return indicatorType;
} }
...@@ -83,20 +95,12 @@ public class TblRuleSimpleInfo { ...@@ -83,20 +95,12 @@ public class TblRuleSimpleInfo {
this.startTime = startTime == null ? null : startTime.trim(); this.startTime = startTime == null ? null : startTime.trim();
} }
public String getEndTime() { public Double getThreshold() {
return endTime; return threshold;
} }
public void setEndTime(String endTime) { public void setThreshold(Double threshold) {
this.endTime = endTime == null ? null : endTime.trim(); this.threshold = threshold;
}
public Integer getIsPartitioned() {
return isPartitioned;
}
public void setIsPartitioned(Integer isPartitioned) {
this.isPartitioned = isPartitioned;
} }
public Integer getIsValid() { public Integer getIsValid() {
...@@ -115,12 +119,20 @@ public class TblRuleSimpleInfo { ...@@ -115,12 +119,20 @@ public class TblRuleSimpleInfo {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public Date getCreateTime() {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime;
} }
public String getFilters() { public String getFilters() {
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblRuleDuplexInfo { import java.util.Date;
public class TblSqlCheckDuplex {
private Integer id; private Integer id;
private String checkType; private String checkType;
...@@ -17,13 +19,19 @@ public class TblRuleDuplexInfo { ...@@ -17,13 +19,19 @@ public class TblRuleDuplexInfo {
private String referColName; private String referColName;
private Integer isPartitioned; private Double threshold;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private Integer parentId;
private Date createTime;
private String sqlContent;
public Integer getId() { public Integer getId() {
return id; return id;
...@@ -89,12 +97,12 @@ public class TblRuleDuplexInfo { ...@@ -89,12 +97,12 @@ public class TblRuleDuplexInfo {
this.referColName = referColName == null ? null : referColName.trim(); this.referColName = referColName == null ? null : referColName.trim();
} }
public Integer getIsPartitioned() { public Double getThreshold() {
return isPartitioned; return threshold;
} }
public void setIsPartitioned(Integer isPartitioned) { public void setThreshold(Double threshold) {
this.isPartitioned = isPartitioned; this.threshold = threshold;
} }
public Integer getIsValid() { public Integer getIsValid() {
...@@ -113,11 +121,35 @@ public class TblRuleDuplexInfo { ...@@ -113,11 +121,35 @@ public class TblRuleDuplexInfo {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Date getCreateTime() {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime;
}
public String getSqlContent() {
return sqlContent;
}
public void setSqlContent(String sqlContent) {
this.sqlContent = sqlContent == null ? null : sqlContent.trim();
} }
} }
\ No newline at end of file
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblCheckSingleSql { import java.util.Date;
public class TblSqlCheckSingle {
private Integer id; private Integer id;
private String checkType; private String checkType;
...@@ -11,11 +13,17 @@ public class TblCheckSingleSql { ...@@ -11,11 +13,17 @@ public class TblCheckSingleSql {
private String colName; private String colName;
private Double threshold;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private Integer parentId;
private Date createTime;
private String sqlContent; private String sqlContent;
...@@ -59,6 +67,14 @@ public class TblCheckSingleSql { ...@@ -59,6 +67,14 @@ public class TblCheckSingleSql {
this.colName = colName == null ? null : colName.trim(); this.colName = colName == null ? null : colName.trim();
} }
public Double getThreshold() {
return threshold;
}
public void setThreshold(Double threshold) {
this.threshold = threshold;
}
public Integer getIsValid() { public Integer getIsValid() {
return isValid; return isValid;
} }
...@@ -75,12 +91,28 @@ public class TblCheckSingleSql { ...@@ -75,12 +91,28 @@ public class TblCheckSingleSql {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Date getCreateTime() {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime;
} }
public String getSqlContent() { public String getSqlContent() {
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblMonitorSpecialSql { import java.util.Date;
public class TblSqlMonitorSpecial {
private Integer id; private Integer id;
private String dbName; private String dbName;
private String tbName; private String tbName;
private String colName;
private String timeColName; private String timeColName;
private String indicatorType;
private String startTime; private String startTime;
private String endTime; private Double threshold;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private Integer parentId;
private Date createTime;
private String sqlContent; private String sqlContent;
...@@ -45,6 +55,14 @@ public class TblMonitorSpecialSql { ...@@ -45,6 +55,14 @@ public class TblMonitorSpecialSql {
this.tbName = tbName == null ? null : tbName.trim(); 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 getTimeColName() { public String getTimeColName() {
return timeColName; return timeColName;
} }
...@@ -53,6 +71,14 @@ public class TblMonitorSpecialSql { ...@@ -53,6 +71,14 @@ public class TblMonitorSpecialSql {
this.timeColName = timeColName == null ? null : timeColName.trim(); this.timeColName = timeColName == null ? null : timeColName.trim();
} }
public String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType == null ? null : indicatorType.trim();
}
public String getStartTime() { public String getStartTime() {
return startTime; return startTime;
} }
...@@ -61,12 +87,12 @@ public class TblMonitorSpecialSql { ...@@ -61,12 +87,12 @@ public class TblMonitorSpecialSql {
this.startTime = startTime == null ? null : startTime.trim(); this.startTime = startTime == null ? null : startTime.trim();
} }
public String getEndTime() { public Double getThreshold() {
return endTime; return threshold;
} }
public void setEndTime(String endTime) { public void setThreshold(Double threshold) {
this.endTime = endTime == null ? null : endTime.trim(); this.threshold = threshold;
} }
public Integer getIsValid() { public Integer getIsValid() {
...@@ -85,12 +111,28 @@ public class TblMonitorSpecialSql { ...@@ -85,12 +111,28 @@ public class TblMonitorSpecialSql {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Date getCreateTime() {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime;
} }
public String getSqlContent() { public String getSqlContent() {
......
package com.gmei.data.dqmp.domain; package com.gmei.data.dqmp.domain;
public class TblMonitorVolatilitySql { import java.util.Date;
private Integer id;
private String indicatorType; public class TblSqlMonitorVolatility {
private Integer id;
private String dbName; private String dbName;
...@@ -11,11 +11,19 @@ public class TblMonitorVolatilitySql { ...@@ -11,11 +11,19 @@ public class TblMonitorVolatilitySql {
private String colName; private String colName;
private String indicatorType;
private Double threshold;
private Integer isValid; private Integer isValid;
private String checkTime; private String checkTime;
private String createTime; private String comment;
private Integer parentId;
private Date createTime;
private String sqlContent; private String sqlContent;
...@@ -27,14 +35,6 @@ public class TblMonitorVolatilitySql { ...@@ -27,14 +35,6 @@ public class TblMonitorVolatilitySql {
this.id = id; this.id = id;
} }
public String getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(String indicatorType) {
this.indicatorType = indicatorType == null ? null : indicatorType.trim();
}
public String getDbName() { public String getDbName() {
return dbName; return dbName;
} }
...@@ -59,6 +59,22 @@ public class TblMonitorVolatilitySql { ...@@ -59,6 +59,22 @@ public class TblMonitorVolatilitySql {
this.colName = colName == null ? null : colName.trim(); 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 Double getThreshold() {
return threshold;
}
public void setThreshold(Double threshold) {
this.threshold = threshold;
}
public Integer getIsValid() { public Integer getIsValid() {
return isValid; return isValid;
} }
...@@ -75,12 +91,28 @@ public class TblMonitorVolatilitySql { ...@@ -75,12 +91,28 @@ public class TblMonitorVolatilitySql {
this.checkTime = checkTime == null ? null : checkTime.trim(); this.checkTime = checkTime == null ? null : checkTime.trim();
} }
public String getCreateTime() { public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment == null ? null : comment.trim();
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Date getCreateTime() {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime == null ? null : createTime.trim(); this.createTime = createTime;
} }
public String getSqlContent() { public String getSqlContent() {
......
package com.gmei.data.dqmp.domain;
public class TblThresholdExceedAll {
private Integer id;
private String checkType;
private String dbName;
private String tbName;
private String colName;
private Long allNum;
private Long checkNum;
private Double checkRate;
private String partitionDate;
private Integer sqlId;
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 getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName == null ? null : dbName.trim();
}
public String getTbName() {
return tbName;
}
public void setTbName(String tbName) {
this.tbName = tbName == null ? null : tbName.trim();
}
public String getColName() {
return colName;
}
public void setColName(String colName) {
this.colName = colName == null ? null : colName.trim();
}
public Long getAllNum() {
return allNum;
}
public void setAllNum(Long allNum) {
this.allNum = allNum;
}
public Long getCheckNum() {
return checkNum;
}
public void setCheckNum(Long checkNum) {
this.checkNum = checkNum;
}
public Double getCheckRate() {
return checkRate;
}
public void setCheckRate(Double checkRate) {
this.checkRate = checkRate;
}
public String getPartitionDate() {
return partitionDate;
}
public void setPartitionDate(String partitionDate) {
this.partitionDate = partitionDate == null ? null : partitionDate.trim();
}
public Integer getSqlId() {
return sqlId;
}
public void setSqlId(Integer sqlId) {
this.sqlId = sqlId;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime == null ? null : createTime.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", checkType=").append(checkType);
sb.append(", dbName=").append(dbName);
sb.append(", tbName=").append(tbName);
sb.append(", colName=").append(colName);
sb.append(", allNum=").append(allNum);
sb.append(", checkNum=").append(checkNum);
sb.append(", checkRate=").append(checkRate);
sb.append(", partitionDate=").append(partitionDate);
sb.append(", sqlId=").append(sqlId);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.gmei.data.dqmp.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
@Data
public class DqReferRuleDto extends BaseRowModel{
@ExcelProperty(value = "校验类型",index = 0)
private String checkType;
@ExcelProperty(value = "是否启用",index = 1)
private Integer isValid;
@ExcelProperty(value = "校验时间",index = 2)
private String checkTime;
@ExcelProperty(value = "校验数据库名",index = 3)
private String checkDbName;
@ExcelProperty(value = "校验数据表名",index = 4)
private String checkTbName;
@ExcelProperty(value = "校验数据列名",index = 5)
private String checkColName;
@ExcelProperty(value = "校验表过滤条件",index = 6)
private String checkFilters;
@ExcelProperty(value = "参照数据库名",index = 7)
private String referDbName;
@ExcelProperty(value = "参照数据表名",index = 8)
private String referTbName;
@ExcelProperty(value = "参照数据列名",index = 9)
private String referColName;
@ExcelProperty(value = "参照表过滤条件",index = 10)
private String referFilters;
@ExcelProperty(value = "预警阈值",index = 11)
private Double threshold;
@ExcelProperty(value = "备注", index = 12)
private String comment;
}
package com.gmei.data.dqmp.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
@Data
public class DqSpecialRuleDto extends BaseRowModel {
@ExcelProperty(value = "校验类型", index = 0)
private String checkType;
@ExcelProperty(value = "是否启用", index = 1)
private Integer isValid;
@ExcelProperty(value = "校验时间", index = 2)
private String checkTime;
@ExcelProperty(value = "数据库名", index = 3)
private String dbName;
@ExcelProperty(value = "数据表名", index = 4)
private String tbName;
@ExcelProperty(value = "数据列名", index = 5)
private String colName;
@ExcelProperty(value = "数据时间列名", index = 6)
private String timeColName;
@ExcelProperty(value = "指标类型", index = 7)
private String indicatorType;
@ExcelProperty(value = "数据校验起始时间", index = 8)
private String startTime;
@ExcelProperty(value = "过滤条件", index = 9)
private String filters;
@ExcelProperty(value = "预警阈值",index = 10)
private Double threshold;
@ExcelProperty(value = "备注", index = 11)
private String comment;
}
package com.gmei.data.dqmp.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
@Data
public class DqUnblankRuleDto extends BaseRowModel{
@ExcelProperty(value = "校验类型", index = 0)
private String checkType;
@ExcelProperty(value = "是否启用", index = 1)
private Integer isValid;
@ExcelProperty(value = "校验时间", index = 2)
private String checkTime;
@ExcelProperty(value = "数据库名", index = 3)
private String dbName;
@ExcelProperty(value = "数据表名", index = 4)
private String tbName;
@ExcelProperty(value = "数据列名", index = 5)
private String colName;
@ExcelProperty(value = "过滤条件", index = 6)
private String filters;
@ExcelProperty(value = "预警阈值",index = 7)
private Double threshold;
@ExcelProperty(value = "备注", index = 8)
private String comment;
}
package com.gmei.data.dqmp.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
@Data
public class DqUniqueRuleDto extends BaseRowModel{
@ExcelProperty(value = "校验类型", index = 0)
private String checkType;
@ExcelProperty(value = "是否启用", index = 1)
private Integer isValid;
@ExcelProperty(value = "校验时间", index = 2)
private String checkTime;
@ExcelProperty(value = "数据库名", index = 3)
private String dbName;
@ExcelProperty(value = "数据表名", index = 4)
private String tbName;
@ExcelProperty(value = "数据列名", index = 5)
private String colName;
@ExcelProperty(value = "过滤条件", index = 6)
private String filters;
@ExcelProperty(value = "预警阈值",index = 7)
private Double threshold;
@ExcelProperty(value = "备注", index = 8)
private String comment;
}
package com.gmei.data.dqmp.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
@Data
public class DqVolatilityRuleDto extends BaseRowModel{
@ExcelProperty(value = "校验类型", index = 0)
private String checkType;
@ExcelProperty(value = "是否启用", index = 1)
private Integer isValid;
@ExcelProperty(value = "校验时间", index = 2)
private String checkTime;
@ExcelProperty(value = "数据库名", index = 3)
private String dbName;
@ExcelProperty(value = "数据表名", index = 4)
private String tbName;
@ExcelProperty(value = "数据列名", index = 5)
private String colName;
@ExcelProperty(value = "指标类型", index = 6)
private String indicatorType;
@ExcelProperty(value = "过滤条件", index = 7)
private String filters;
@ExcelProperty(value = "预警阈值",index = 8)
private Double threshold;
@ExcelProperty(value = "备注", index = 9)
private String comment;
}
package com.gmei.data.dqmp.dto; package com.gmei.data.dqmp.dto;
import lombok.Data;
@Data
public class RuleTemplateDto { public class RuleTemplateDto {
private Integer id; private Integer id;
...@@ -10,36 +13,4 @@ public class RuleTemplateDto { ...@@ -10,36 +13,4 @@ public class RuleTemplateDto {
private String comment; private String comment;
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;
}
public String getTpltContent() {
return tpltContent;
}
public void setTpltContent(String tpltContent) {
this.tpltContent = tpltContent;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
} }
package com.gmei.data.dqmp.listener;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
public class ReferExcelListener extends AnalysisEventListener<Object> {
private DqRuleService dqRuleService;
public ReferExcelListener(DqRuleService dqRuleService) {
super();
this.dqRuleService = dqRuleService;
}
private List<Object> data = new ArrayList<>();
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
data.add(object);
if(data.size()>=100){
doSomething();
data.clear();
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
doSomething();
}
public void doSomething(){
for (Object o:data) {
String jsonString = JSONObject.toJSONString(o);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
DqRuleVo dqRuleVo = JSON.toJavaObject(jsonObject, DqRuleVo.class);
dqRuleService.addDqRule(dqRuleVo);
}
}
public List<Object> getData() {
return data;
}
public void setData(List<Object> data) {
this.data = data;
}
}
package com.gmei.data.dqmp.listener;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
public class SpecialExcelListener extends AnalysisEventListener<Object> {
private DqRuleService dqRuleService;
public SpecialExcelListener(DqRuleService dqRuleService) {
super();
this.dqRuleService = dqRuleService;
}
private List<Object> data = new ArrayList<>();
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
data.add(object);
if(data.size()>=100){
doSomething();
data.clear();
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
doSomething();
}
public void doSomething(){
for (Object o:data) {
String jsonString = JSONObject.toJSONString(o);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
DqRuleVo dqRuleVo = JSON.toJavaObject(jsonObject, DqRuleVo.class);
dqRuleService.addDqRule(dqRuleVo);
}
}
public List<Object> getData() {
return data;
}
public void setData(List<Object> data) {
this.data = data;
}
}
package com.gmei.data.dqmp.listener;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
public class UnblankExcelListener extends AnalysisEventListener<Object> {
private DqRuleService dqRuleService;
public UnblankExcelListener(DqRuleService dqRuleService) {
super();
this.dqRuleService = dqRuleService;
}
private List<Object> data = new ArrayList<>();
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
data.add(object);
if(data.size()>=100){
doSomething();
data.clear();
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
doSomething();
}
public void doSomething(){
for (Object o:data) {
String jsonString = JSONObject.toJSONString(o);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
DqRuleVo dqRuleVo = JSON.toJavaObject(jsonObject, DqRuleVo.class);
dqRuleService.addDqRule(dqRuleVo);
}
}
public List<Object> getData() {
return data;
}
public void setData(List<Object> data) {
this.data = data;
}
}
package com.gmei.data.dqmp.listener;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
public class UniqueExcelListener extends AnalysisEventListener<Object> {
private DqRuleService dqRuleService;
public UniqueExcelListener(DqRuleService dqRuleService) {
super();
this.dqRuleService = dqRuleService;
}
private List<Object> data = new ArrayList<>();
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
data.add(object);
if(data.size()>=100){
doSomething();
data.clear();
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
doSomething();
}
public void doSomething(){
for (Object o:data) {
String jsonString = JSONObject.toJSONString(o);
System.out.println(jsonString);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
DqRuleVo dqRuleVo = JSON.toJavaObject(jsonObject, DqRuleVo.class);
dqRuleService.addDqRule(dqRuleVo);
}
}
public List<Object> getData() {
return data;
}
public void setData(List<Object> data) {
this.data = data;
}
}
package com.gmei.data.dqmp.listener;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gmei.data.dqmp.service.DqRuleService;
import com.gmei.data.dqmp.vo.DqRuleVo;
public class VolatilityExcelListener extends AnalysisEventListener<Object> {
private DqRuleService dqRuleService;
public VolatilityExcelListener(DqRuleService dqRuleService) {
super();
this.dqRuleService = dqRuleService;
}
private List<Object> data = new ArrayList<>();
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
data.add(object);
if(data.size()>=100){
doSomething();
data.clear();
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
doSomething();
}
public void doSomething(){
for (Object o:data) {
String jsonString = JSONObject.toJSONString(o);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
DqRuleVo dqRuleVo = JSON.toJavaObject(jsonObject, DqRuleVo.class);
dqRuleService.addDqRule(dqRuleVo);
}
}
public List<Object> getData() {
return data;
}
public void setData(List<Object> data) {
this.data = data;
}
}
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblCheckMultipleSql;
import com.gmei.data.dqmp.domain.TblCheckMultipleSqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblCheckMultipleSqlMapper {
int countByExample(TblCheckMultipleSqlCriteria example);
int deleteByExample(TblCheckMultipleSqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblCheckMultipleSql record);
int insertSelective(TblCheckMultipleSql record);
List<TblCheckMultipleSql> selectByExampleWithBLOBs(TblCheckMultipleSqlCriteria example);
List<TblCheckMultipleSql> selectByExample(TblCheckMultipleSqlCriteria example);
TblCheckMultipleSql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByExample(@Param("record") TblCheckMultipleSql record, @Param("example") TblCheckMultipleSqlCriteria example);
int updateByPrimaryKeySelective(TblCheckMultipleSql record);
int updateByPrimaryKeyWithBLOBs(TblCheckMultipleSql record);
int updateByPrimaryKey(TblCheckMultipleSql record);
}
\ No newline at end of file
package com.gmei.data.dqmp.mapper;
import com.gmei.data.dqmp.domain.TblCheckSingleSql;
import com.gmei.data.dqmp.domain.TblCheckSingleSqlCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TblCheckSingleSqlMapper {
int countByExample(TblCheckSingleSqlCriteria example);
int deleteByExample(TblCheckSingleSqlCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(TblCheckSingleSql record);
int insertSelective(TblCheckSingleSql record);
List<TblCheckSingleSql> selectByExampleWithBLOBs(TblCheckSingleSqlCriteria example);
List<TblCheckSingleSql> selectByExample(TblCheckSingleSqlCriteria example);
TblCheckSingleSql selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByExampleWithBLOBs(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByExample(@Param("record") TblCheckSingleSql record, @Param("example") TblCheckSingleSqlCriteria example);
int updateByPrimaryKeySelective(TblCheckSingleSql record);
int updateByPrimaryKeyWithBLOBs(TblCheckSingleSql record);
int updateByPrimaryKey(TblCheckSingleSql record);
}
\ No newline at end of file
...@@ -12,6 +12,6 @@ public interface CheckService { ...@@ -12,6 +12,6 @@ public interface CheckService {
* 校验并持久化复杂型校验结果 * 校验并持久化复杂型校验结果
* @param checkType * @param checkType
*/ */
void checkAndPersistMultipleResult(String checkType); void checkAndPersistDeplexResult(String checkType);
} }
package com.gmei.data.dqmp.service;
import com.gmei.data.dqmp.vo.DashbordVo;
public interface DashbordService {
DashbordVo getDashbordInfo();
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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