Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
DQMP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
DQMP
Commits
8414dae4
Commit
8414dae4
authored
Dec 20, 2019
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
04a87361
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
99 additions
and
96 deletions
+99
-96
TblSqlCheckDuplex.java
...ain/java/com/gmei/data/dqmp/domain/TblSqlCheckDuplex.java
+1
-1
TblSqlCheckDuplexCriteria.java
.../com/gmei/data/dqmp/domain/TblSqlCheckDuplexCriteria.java
+2
-2
TblSqlCheckDuplexMapper.java
...va/com/gmei/data/dqmp/mapper/TblSqlCheckDuplexMapper.java
+37
-0
TblSqlCheckMultipleMapper.java
.../com/gmei/data/dqmp/mapper/TblSqlCheckMultipleMapper.java
+0
-37
CheckServiceImpl.java
...ava/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
+7
-7
DqRuleServiceImpl.java
...va/com/gmei/data/dqmp/service/impl/DqRuleServiceImpl.java
+16
-16
RuleTemplateServiceImpl.java
.../gmei/data/dqmp/service/impl/RuleTemplateServiceImpl.java
+4
-1
generator.xml
src/main/resources/generator.xml
+6
-6
TblSqlCheckDuplexMapper.xml
...main/resources/mybatis/mapper/TblSqlCheckDuplexMapper.xml
+26
-26
No files found.
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheck
Multiple
.java
→
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheck
Duplex
.java
View file @
8414dae4
...
...
@@ -2,7 +2,7 @@ package com.gmei.data.dqmp.domain;
import
java.util.Date
;
public
class
TblSqlCheck
Multiple
{
public
class
TblSqlCheck
Duplex
{
private
Integer
id
;
private
String
checkType
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheck
Multiple
Criteria.java
→
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheck
Duplex
Criteria.java
View file @
8414dae4
...
...
@@ -4,14 +4,14 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
public
class
TblSqlCheck
Multiple
Criteria
{
public
class
TblSqlCheck
Duplex
Criteria
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
TblSqlCheck
Multiple
Criteria
()
{
public
TblSqlCheck
Duplex
Criteria
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
...
...
src/main/java/com/gmei/data/dqmp/mapper/TblSqlCheckDuplexMapper.java
0 → 100644
View file @
8414dae4
package
com
.
gmei
.
data
.
dqmp
.
mapper
;
import
com.gmei.data.dqmp.domain.TblSqlCheckDuplex
;
import
com.gmei.data.dqmp.domain.TblSqlCheckDuplexCriteria
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
TblSqlCheckDuplexMapper
{
int
countByExample
(
TblSqlCheckDuplexCriteria
example
);
int
deleteByExample
(
TblSqlCheckDuplexCriteria
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
TblSqlCheckDuplex
record
);
int
insertSelective
(
TblSqlCheckDuplex
record
);
List
<
TblSqlCheckDuplex
>
selectByExampleWithBLOBs
(
TblSqlCheckDuplexCriteria
example
);
List
<
TblSqlCheckDuplex
>
selectByExample
(
TblSqlCheckDuplexCriteria
example
);
TblSqlCheckDuplex
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
TblSqlCheckDuplex
record
,
@Param
(
"example"
)
TblSqlCheckDuplexCriteria
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
TblSqlCheckDuplex
record
,
@Param
(
"example"
)
TblSqlCheckDuplexCriteria
example
);
int
updateByExample
(
@Param
(
"record"
)
TblSqlCheckDuplex
record
,
@Param
(
"example"
)
TblSqlCheckDuplexCriteria
example
);
int
updateByPrimaryKeySelective
(
TblSqlCheckDuplex
record
);
int
updateByPrimaryKeyWithBLOBs
(
TblSqlCheckDuplex
record
);
int
updateByPrimaryKey
(
TblSqlCheckDuplex
record
);
}
\ No newline at end of file
src/main/java/com/gmei/data/dqmp/mapper/TblSqlCheckMultipleMapper.java
deleted
100644 → 0
View file @
04a87361
package
com
.
gmei
.
data
.
dqmp
.
mapper
;
import
com.gmei.data.dqmp.domain.TblSqlCheckMultiple
;
import
com.gmei.data.dqmp.domain.TblSqlCheckMultipleCriteria
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
TblSqlCheckMultipleMapper
{
int
countByExample
(
TblSqlCheckMultipleCriteria
example
);
int
deleteByExample
(
TblSqlCheckMultipleCriteria
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
TblSqlCheckMultiple
record
);
int
insertSelective
(
TblSqlCheckMultiple
record
);
List
<
TblSqlCheckMultiple
>
selectByExampleWithBLOBs
(
TblSqlCheckMultipleCriteria
example
);
List
<
TblSqlCheckMultiple
>
selectByExample
(
TblSqlCheckMultipleCriteria
example
);
TblSqlCheckMultiple
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
TblSqlCheckMultiple
record
,
@Param
(
"example"
)
TblSqlCheckMultipleCriteria
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
TblSqlCheckMultiple
record
,
@Param
(
"example"
)
TblSqlCheckMultipleCriteria
example
);
int
updateByExample
(
@Param
(
"record"
)
TblSqlCheckMultiple
record
,
@Param
(
"example"
)
TblSqlCheckMultipleCriteria
example
);
int
updateByPrimaryKeySelective
(
TblSqlCheckMultiple
record
);
int
updateByPrimaryKeyWithBLOBs
(
TblSqlCheckMultiple
record
);
int
updateByPrimaryKey
(
TblSqlCheckMultiple
record
);
}
\ No newline at end of file
src/main/java/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
View file @
8414dae4
...
...
@@ -15,14 +15,14 @@ import com.gmei.data.dqmp.common.Constants;
import
com.gmei.data.dqmp.domain.TblResultCheckRefer
;
import
com.gmei.data.dqmp.domain.TblResultCheckUnblank
;
import
com.gmei.data.dqmp.domain.TblResultCheckUnique
;
import
com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
;
import
com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
Criteria
;
import
com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
;
import
com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
Criteria
;
import
com.gmei.data.dqmp.domain.TblSqlCheckSingle
;
import
com.gmei.data.dqmp.domain.TblSqlCheckSingleCriteria
;
import
com.gmei.data.dqmp.mapper.TblResultCheckReferMapper
;
import
com.gmei.data.dqmp.mapper.TblResultCheckUnblankMapper
;
import
com.gmei.data.dqmp.mapper.TblResultCheckUniqueMapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheck
Multiple
Mapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheck
Duplex
Mapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheckSingleMapper
;
import
com.gmei.data.dqmp.pool.JdbcConnectPool
;
import
com.gmei.data.dqmp.service.CheckService
;
...
...
@@ -34,7 +34,7 @@ public class CheckServiceImpl implements CheckService {
@Autowired
private
TblSqlCheckSingleMapper
tblSqlCheckSingleMapper
;
@Autowired
private
TblSqlCheck
MultipleMapper
tblSqlCheckMultiple
Mapper
;
private
TblSqlCheck
DuplexMapper
tblSqlCheckDuplex
Mapper
;
@Autowired
private
TblResultCheckUniqueMapper
tblResultCheckUniqueMapper
;
@Autowired
...
...
@@ -89,12 +89,12 @@ public class CheckServiceImpl implements CheckService {
*/
@Override
public
void
checkAndPersistMultipleResult
(
String
checkType
)
{
TblSqlCheck
MultipleCriteria
tblCheckMultipleSqlCriteria
=
new
TblSqlCheckMultiple
Criteria
();
TblSqlCheck
DuplexCriteria
tblCheckMultipleSqlCriteria
=
new
TblSqlCheckDuplex
Criteria
();
tblCheckMultipleSqlCriteria
.
createCriteria
()
.
andCheckTypeEqualTo
(
checkType
)
.
andIsValidEqualTo
(
Constants
.
IS_VALID_ON
);
List
<
TblSqlCheck
Multiple
>
sqlList
=
tblSqlCheckMultiple
Mapper
.
selectByExampleWithBLOBs
(
tblCheckMultipleSqlCriteria
);
for
(
TblSqlCheck
Multiple
tblCheckSql
:
sqlList
)
{
List
<
TblSqlCheck
Duplex
>
sqlList
=
tblSqlCheckDuplex
Mapper
.
selectByExampleWithBLOBs
(
tblCheckMultipleSqlCriteria
);
for
(
TblSqlCheck
Duplex
tblCheckSql
:
sqlList
)
{
String
sql
=
tblCheckSql
.
getSqlContent
();
Integer
id
=
tblCheckSql
.
getId
();
int
rs
=
0
;
...
...
src/main/java/com/gmei/data/dqmp/service/impl/DqRuleServiceImpl.java
View file @
8414dae4
...
...
@@ -12,21 +12,21 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
com.gmei.data.dqmp.common.Constants
;
import
com.gmei.data.dqmp.domain.TblSqlCheckMultiple
;
import
com.gmei.data.dqmp.domain.TblSqlCheckSingle
;
import
com.gmei.data.dqmp.domain.TblIndicatorOperatorInfo
;
import
com.gmei.data.dqmp.domain.TblIndicatorOperatorInfoCriteria
;
import
com.gmei.data.dqmp.domain.TblSqlMonitorSpecial
;
import
com.gmei.data.dqmp.domain.TblSqlMonitorVolatility
;
import
com.gmei.data.dqmp.domain.TblRuleInfoDuplexWithBLOBs
;
import
com.gmei.data.dqmp.domain.TblRuleInfoSimple
;
import
com.gmei.data.dqmp.domain.TblRuleTemplate
;
import
com.gmei.data.dqmp.domain.TblRuleTemplateCriteria
;
import
com.gmei.data.dqmp.domain.TblSqlCheckDuplex
;
import
com.gmei.data.dqmp.domain.TblSqlCheckSingle
;
import
com.gmei.data.dqmp.domain.TblSqlMonitorSpecial
;
import
com.gmei.data.dqmp.domain.TblSqlMonitorVolatility
;
import
com.gmei.data.dqmp.mapper.TblIndicatorOperatorInfoMapper
;
import
com.gmei.data.dqmp.mapper.TblRuleInfoDuplexMapper
;
import
com.gmei.data.dqmp.mapper.TblRuleInfoSimpleMapper
;
import
com.gmei.data.dqmp.mapper.TblRuleTemplateMapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheck
Multiple
Mapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheck
Duplex
Mapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheckSingleMapper
;
import
com.gmei.data.dqmp.mapper.TblSqlMonitorSpecialMapper
;
import
com.gmei.data.dqmp.mapper.TblSqlMonitorVolatilityMapper
;
...
...
@@ -45,7 +45,7 @@ public class DqRuleServiceImpl implements DqRuleService {
@Autowired
private
TblSqlCheckSingleMapper
tblSqlCheckSingleMapper
;
@Autowired
private
TblSqlCheck
Multiple
Mapper
tblSqlCheckMultipleMapper
;
private
TblSqlCheck
Duplex
Mapper
tblSqlCheckMultipleMapper
;
@Autowired
private
TblSqlMonitorVolatilityMapper
tblSqlMonitorVolatilityMapper
;
@Autowired
...
...
@@ -84,6 +84,7 @@ public class DqRuleServiceImpl implements DqRuleService {
return
false
;
}
TblRuleInfoSimple
record
=
BeanUtils
.
map
(
dqRuleVo
,
TblRuleInfoSimple
.
class
);
record
.
setStartTime
(
DateUtils
.
getZeroTimeStrsMap
().
get
(
record
.
getStartTime
()));
int
rs
=
tblRuleInfoSimpleMapper
.
insertSelective
(
record
);
if
(
rs
==
1
)
{
String
checkType
=
dqRuleVo
.
getCheckType
();
...
...
@@ -112,9 +113,10 @@ public class DqRuleServiceImpl implements DqRuleService {
logger
.
error
(
"Param is illegal! {}"
,
dqRuleVo
);
return
false
;
}
TblSqlMonitorSpecial
TblSqlMonitorSpecial
=
BeanUtils
.
map
(
dqRuleVo
,
TblSqlMonitorSpecial
.
class
);
TblSqlMonitorSpecial
.
setSqlContent
(
genSqlByTemplate
(
dqRuleVo
));
tblSqlMonitorSpecialMapper
.
insertSelective
(
TblSqlMonitorSpecial
);
dqRuleVo
.
setStartTime
(
DateUtils
.
getZeroTimeStrsMap
().
get
(
dqRuleVo
.
getStartTime
()));
TblSqlMonitorSpecial
tblSqlMonitorSpecial
=
BeanUtils
.
map
(
dqRuleVo
,
TblSqlMonitorSpecial
.
class
);
tblSqlMonitorSpecial
.
setSqlContent
(
genSqlByTemplate
(
dqRuleVo
));
tblSqlMonitorSpecialMapper
.
insertSelective
(
tblSqlMonitorSpecial
);
break
;
default
:
logger
.
error
(
"checkType value is error! {}"
,
checkType
);
...
...
@@ -139,10 +141,10 @@ public class DqRuleServiceImpl implements DqRuleService {
if
(
rs
==
1
)
{
String
checkType
=
dqRuleVo
.
getCheckType
();
if
(
Constants
.
CHECK_REFER
.
equals
(
checkType
))
{
TblSqlCheck
Multiple
TblSqlCheckMultiple
=
BeanUtils
.
map
(
dqRuleVo
,
TblSqlCheckMultiple
.
class
);
TblSqlCheck
Duplex
tblSqlCheckDuplex
=
BeanUtils
.
map
(
dqRuleVo
,
TblSqlCheckDuplex
.
class
);
String
sqlContent
=
genSqlByTemplate
(
dqRuleVo
);
TblSqlCheckMultiple
.
setSqlContent
(
sqlContent
);
tblSqlCheckMultipleMapper
.
insertSelective
(
TblSqlCheckMultiple
);
tblSqlCheckDuplex
.
setSqlContent
(
sqlContent
);
tblSqlCheckMultipleMapper
.
insertSelective
(
tblSqlCheckDuplex
);
}
else
{
logger
.
error
(
"checkType value is error! {}"
,
checkType
);
return
false
;
...
...
@@ -152,9 +154,7 @@ public class DqRuleServiceImpl implements DqRuleService {
}
private
boolean
simpleRuleInfoCheck
(
DqRuleVo
dqRuleVo
)
{
if
(
StringUtils
.
isBlank
(
dqRuleVo
.
getDbName
())
||
StringUtils
.
isBlank
(
dqRuleVo
.
getTbName
())
//|| StringUtils.isBlank(dqRuleVo.getFilters())
)
{
if
(
StringUtils
.
isBlank
(
dqRuleVo
.
getDbName
())
||
StringUtils
.
isBlank
(
dqRuleVo
.
getTbName
()))
{
return
false
;
}
if
(
Constants
.
CHECK_SPECIAL
.
equals
(
dqRuleVo
.
getCheckType
())){
...
...
@@ -210,7 +210,7 @@ public class DqRuleServiceImpl implements DqRuleService {
.
replaceAll
(
"#indicator_type"
,
indicatorType
)
.
replaceAll
(
"#indicator_expre"
,
indicatorMap
.
get
(
indicatorType
))
.
replaceAll
(
"#col_name"
,
dqRuleVo
.
getColName
())
.
replaceAll
(
"#start_time"
,
"'"
+
DateUtils
.
getZeroTimeStrsMap
().
get
(
dqRuleVo
.
getStartTime
()
)+
"'"
)
.
replaceAll
(
"#start_time"
,
"'"
+
dqRuleVo
.
getStartTime
(
)+
"'"
)
.
replaceAll
(
"#end_time"
,
"'"
+
DateUtils
.
getTodayZeroTimeStr
()+
"'"
)
.
replaceAll
(
"#check_db_name"
,
dqRuleVo
.
getCheckDbName
())
.
replaceAll
(
"#check_tb_name"
,
dqRuleVo
.
getCheckTbName
())
...
...
src/main/java/com/gmei/data/dqmp/service/impl/RuleTemplateServiceImpl.java
View file @
8414dae4
...
...
@@ -3,6 +3,7 @@ package com.gmei.data.dqmp.service.impl;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -25,7 +26,9 @@ public class RuleTemplateServiceImpl implements RuleTemplateService {
public
List
<
RuleTemplateDto
>
findRuleTmpls
(
String
checkType
)
{
List
<
RuleTemplateDto
>
rsList
=
new
ArrayList
<>();
TblRuleTemplateCriteria
tblDqRuleTemplateCriteria
=
new
TblRuleTemplateCriteria
();
tblDqRuleTemplateCriteria
.
createCriteria
().
andCheckTypeEqualTo
(
checkType
);
if
(
StringUtils
.
isNotBlank
(
checkType
))
{
tblDqRuleTemplateCriteria
.
createCriteria
().
andCheckTypeEqualTo
(
checkType
);
}
List
<
TblRuleTemplate
>
list
=
tblRuleTemplateMapper
.
selectByExampleWithBLOBs
(
tblDqRuleTemplateCriteria
);
for
(
TblRuleTemplate
tblDqRuleTemplate
:
list
)
{
rsList
.
add
(
BeanUtils
.
map
(
tblDqRuleTemplate
,
RuleTemplateDto
.
class
));
...
...
src/main/resources/generator.xml
View file @
8414dae4
...
...
@@ -35,19 +35,19 @@
<!-- 需要生成的数据库表 -->
<!-- <table tableName="tbl_client_version_info" domainObjectName="TblClientVersionInfo"/> -->
<
table
tableName=
"tbl_sql_check_single"
domainObjectName=
"TblSqlCheckSingle"
/
>
<table
tableName=
"tbl_sql_check_
multiple"
domainObjectName=
"TblSqlCheckMultiple
"
/>
<table
tableName=
"tbl_sql_monitor_volatility"
domainObjectName=
"TblSqlMonitorVolatility"
/>
<
!-- <table tableName="tbl_sql_check_single" domainObjectName="TblSqlCheckSingle"/> --
>
<table
tableName=
"tbl_sql_check_
duplex"
domainObjectName=
"TblSqlCheckDuplex
"
/>
<
!-- <
table tableName="tbl_sql_monitor_volatility" domainObjectName="TblSqlMonitorVolatility"/>
<table tableName="tbl_sql_monitor_special" domainObjectName="TblSqlMonitorSpecial"/>
<table tableName="tbl_result_check_unique" domainObjectName="TblResultCheckUnique"/>
<table tableName="tbl_result_check_unblank" domainObjectName="TblResultCheckUnblank"/>
<table tableName="tbl_result_check_refer" domainObjectName="TblResultCheckRefer"/>
<table tableName="tbl_result_monitor_volatility" domainObjectName="TblResultMonitorVolatility"/>
<table tableName="tbl_result_monitor_special" domainObjectName="TblResultMonitorSpecial"/>
<table
tableName=
"tbl_indicator_operator_info"
domainObjectName=
"TblIndicatorOperatorInfo"
/>
<table tableName="tbl_indicator_operator_info" domainObjectName="TblIndicatorOperatorInfo"/>
-->
<!-- <table tableName="tbl_rule_template" domainObjectName="TblRuleTemplate"/> -->
<table
tableName=
"tbl_rule_info_simple"
domainObjectName=
"TblRuleInfoSimple"
/>
<table
tableName=
"tbl_rule_info_duplex"
domainObjectName=
"TblRuleInfoDuplex"
/>
<
!-- <
table tableName="tbl_rule_info_simple" domainObjectName="TblRuleInfoSimple"/>
<table tableName="tbl_rule_info_duplex" domainObjectName="TblRuleInfoDuplex"/>
-->
<!-- <table tableName="tbl_sys_param_info" domainObjectName="TblSysParamInfo"/> -->
</context>
</generatorConfiguration>
src/main/resources/mybatis/mapper/TblSqlCheck
Multiple
Mapper.xml
→
src/main/resources/mybatis/mapper/TblSqlCheck
Duplex
Mapper.xml
View file @
8414dae4
<?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.TblSqlCheck
Multiple
Mapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
<mapper
namespace=
"com.gmei.data.dqmp.mapper.TblSqlCheck
Duplex
Mapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
<id
column=
"id"
property=
"id"
jdbcType=
"INTEGER"
/>
<result
column=
"check_type"
property=
"checkType"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_db_name"
property=
"checkDbName"
jdbcType=
"VARCHAR"
/>
...
...
@@ -15,7 +15,7 @@
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<resultMap
id=
"ResultMapWithBLOBs"
type=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
extends=
"BaseResultMap"
>
<resultMap
id=
"ResultMapWithBLOBs"
type=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
extends=
"BaseResultMap"
>
<result
column=
"sql_content"
property=
"sqlContent"
jdbcType=
"LONGVARCHAR"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
...
...
@@ -83,7 +83,7 @@
<sql
id=
"Blob_Column_List"
>
sql_content
</sql>
<select
id=
"selectByExampleWithBLOBs"
resultMap=
"ResultMapWithBLOBs"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
Criteria"
>
<select
id=
"selectByExampleWithBLOBs"
resultMap=
"ResultMapWithBLOBs"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
Criteria"
>
select
<if
test=
"distinct"
>
distinct
...
...
@@ -91,7 +91,7 @@
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from tbl_sql_check_
multiple
from tbl_sql_check_
duplex
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
...
...
@@ -99,13 +99,13 @@
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
resultMap=
"BaseResultMap"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
Criteria"
>
<select
id=
"selectByExample"
resultMap=
"BaseResultMap"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
Criteria"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from tbl_sql_check_
multiple
from tbl_sql_check_
duplex
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
...
...
@@ -118,21 +118,21 @@
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from tbl_sql_check_
multiple
from tbl_sql_check_
duplex
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tbl_sql_check_
multiple
delete from tbl_sql_check_
duplex
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
Criteria"
>
delete from tbl_sql_check_
multiple
<delete
id=
"deleteByExample"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
Criteria"
>
delete from tbl_sql_check_
duplex
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
insert into tbl_sql_check_
multiple
(id, check_type, check_db_name,
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
insert into tbl_sql_check_
duplex
(id, check_type, check_db_name,
check_tb_name, check_col_name, refer_db_name,
refer_tb_name, refer_col_name, is_valid,
check_time, comment, create_time,
...
...
@@ -143,8 +143,8 @@
#{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{sqlContent,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
insert into tbl_sql_check_
multiple
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
insert into tbl_sql_check_
duplex
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
...
...
@@ -228,14 +228,14 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
Criteria"
resultType=
"java.lang.Integer"
>
select count(*) from tbl_sql_check_
multiple
<select
id=
"countByExample"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
Criteria"
resultType=
"java.lang.Integer"
>
select count(*) from tbl_sql_check_
duplex
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update tbl_sql_check_
multiple
update tbl_sql_check_
duplex
<set
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
...
...
@@ -282,7 +282,7 @@
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
update tbl_sql_check_
multiple
update tbl_sql_check_
duplex
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
...
...
@@ -301,7 +301,7 @@
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update tbl_sql_check_
multiple
update tbl_sql_check_
duplex
set id = #{record.id,jdbcType=INTEGER},
check_type = #{record.checkType,jdbcType=VARCHAR},
check_db_name = #{record.checkDbName,jdbcType=VARCHAR},
...
...
@@ -318,8 +318,8 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
update tbl_sql_check_
multiple
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
update tbl_sql_check_
duplex
<set
>
<if
test=
"checkType != null"
>
check_type = #{checkType,jdbcType=VARCHAR},
...
...
@@ -360,8 +360,8 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
update tbl_sql_check_
multiple
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
update tbl_sql_check_
duplex
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
...
...
@@ -376,8 +376,8 @@
sql_content = #{sqlContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Multiple
"
>
update tbl_sql_check_
multiple
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheck
Duplex
"
>
update tbl_sql_check_
duplex
set check_type = #{checkType,jdbcType=VARCHAR},
check_db_name = #{checkDbName,jdbcType=VARCHAR},
check_tb_name = #{checkTbName,jdbcType=VARCHAR},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment