Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
3e33988f
Commit
3e33988f
authored
Jul 18, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add one column for keyValue formula save function
parent
f3957724
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
706 additions
and
597 deletions
+706
-597
vat_run.bat
atms-api/etc/generator/vat_run.bat
+1
-1
PeriodCellTemplateConfig.java
...pwc/taxtech/atms/vat/entity/PeriodCellTemplateConfig.java
+36
-0
PeriodCellTemplateConfigExample.java
...tech/atms/vat/entity/PeriodCellTemplateConfigExample.java
+70
-0
PeriodTaxPayerReportRule.java
...pwc/taxtech/atms/vat/entity/PeriodTaxPayerReportRule.java
+4
-4
PeriodTaxPayerReportRuleExample.java
...tech/atms/vat/entity/PeriodTaxPayerReportRuleExample.java
+10
-20
CreateProjectDB.sql
...main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
+8
-7
PeriodCellTemplateConfigMapper.xml
...c/taxtech/atms/vat/dao/PeriodCellTemplateConfigMapper.xml
+570
-558
PeriodTaxPayerReportRuleMapper.xml
...c/taxtech/atms/vat/dao/PeriodTaxPayerReportRuleMapper.xml
+7
-7
No files found.
atms-api/etc/generator/vat_run.bat
View file @
3e33988f
rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html
rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html
cd /d %~dp0
cd /d %~dp0
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile vatGeneratorConfig.xml -overwrite -verbose -tables
AssetsList
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile vatGeneratorConfig.xml -overwrite -verbose -tables
period_cell_template_config
echo @@@@@@@@@@@ DONE @@@@@@@@@@@
echo @@@@@@@@@@@ DONE @@@@@@@@@@@
pause
pause
atms-api/src/main/java/pwc/taxtech/atms/vat/entity/PeriodCellTemplateConfig.java
View file @
3e33988f
...
@@ -271,6 +271,17 @@ public class PeriodCellTemplateConfig implements Serializable {
...
@@ -271,6 +271,17 @@ public class PeriodCellTemplateConfig implements Serializable {
*/
*/
private
Long
cellTemplateConfigId
;
private
Long
cellTemplateConfigId
;
/**
* Database Column Remarks:
* 键值对公式解析
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column period_cell_template_config.key_value_parsed_formula
*
* @mbg.generated
*/
private
String
keyValueParsedFormula
;
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database table period_cell_template_config
* This field corresponds to the database table period_cell_template_config
...
@@ -855,6 +866,30 @@ public class PeriodCellTemplateConfig implements Serializable {
...
@@ -855,6 +866,30 @@ public class PeriodCellTemplateConfig implements Serializable {
this
.
cellTemplateConfigId
=
cellTemplateConfigId
;
this
.
cellTemplateConfigId
=
cellTemplateConfigId
;
}
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column period_cell_template_config.key_value_parsed_formula
*
* @return the value of period_cell_template_config.key_value_parsed_formula
*
* @mbg.generated
*/
public
String
getKeyValueParsedFormula
()
{
return
keyValueParsedFormula
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column period_cell_template_config.key_value_parsed_formula
*
* @param keyValueParsedFormula the value for period_cell_template_config.key_value_parsed_formula
*
* @mbg.generated
*/
public
void
setKeyValueParsedFormula
(
String
keyValueParsedFormula
)
{
this
.
keyValueParsedFormula
=
keyValueParsedFormula
==
null
?
null
:
keyValueParsedFormula
.
trim
();
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table period_cell_template_config
* This method corresponds to the database table period_cell_template_config
...
@@ -891,6 +926,7 @@ public class PeriodCellTemplateConfig implements Serializable {
...
@@ -891,6 +926,7 @@ public class PeriodCellTemplateConfig implements Serializable {
sb
.
append
(
", validationDescription="
).
append
(
validationDescription
);
sb
.
append
(
", validationDescription="
).
append
(
validationDescription
);
sb
.
append
(
", voucherKeyword="
).
append
(
voucherKeyword
);
sb
.
append
(
", voucherKeyword="
).
append
(
voucherKeyword
);
sb
.
append
(
", cellTemplateConfigId="
).
append
(
cellTemplateConfigId
);
sb
.
append
(
", cellTemplateConfigId="
).
append
(
cellTemplateConfigId
);
sb
.
append
(
", keyValueParsedFormula="
).
append
(
keyValueParsedFormula
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/entity/PeriodCellTemplateConfigExample.java
View file @
3e33988f
...
@@ -1774,6 +1774,76 @@ public class PeriodCellTemplateConfigExample {
...
@@ -1774,6 +1774,76 @@ public class PeriodCellTemplateConfigExample {
addCriterion
(
"cell_template_config_id not between"
,
value1
,
value2
,
"cellTemplateConfigId"
);
addCriterion
(
"cell_template_config_id not between"
,
value1
,
value2
,
"cellTemplateConfigId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andKeyValueParsedFormulaIsNull
()
{
addCriterion
(
"key_value_parsed_formula is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaIsNotNull
()
{
addCriterion
(
"key_value_parsed_formula is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaEqualTo
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula ="
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaNotEqualTo
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula <>"
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaGreaterThan
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula >"
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula >="
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaLessThan
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula <"
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula <="
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaLike
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula like"
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaNotLike
(
String
value
)
{
addCriterion
(
"key_value_parsed_formula not like"
,
value
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaIn
(
List
<
String
>
values
)
{
addCriterion
(
"key_value_parsed_formula in"
,
values
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"key_value_parsed_formula not in"
,
values
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"key_value_parsed_formula between"
,
value1
,
value2
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
public
Criteria
andKeyValueParsedFormulaNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"key_value_parsed_formula not between"
,
value1
,
value2
,
"keyValueParsedFormula"
);
return
(
Criteria
)
this
;
}
}
}
/**
/**
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/entity/PeriodTaxPayerReportRule.java
View file @
3e33988f
...
@@ -54,7 +54,7 @@ public class PeriodTaxPayerReportRule implements Serializable {
...
@@ -54,7 +54,7 @@ public class PeriodTaxPayerReportRule implements Serializable {
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
Stri
ng
templateGroupId
;
private
Lo
ng
templateGroupId
;
/**
/**
*
*
...
@@ -222,7 +222,7 @@ public class PeriodTaxPayerReportRule implements Serializable {
...
@@ -222,7 +222,7 @@ public class PeriodTaxPayerReportRule implements Serializable {
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
Stri
ng
getTemplateGroupId
()
{
public
Lo
ng
getTemplateGroupId
()
{
return
templateGroupId
;
return
templateGroupId
;
}
}
...
@@ -234,8 +234,8 @@ public class PeriodTaxPayerReportRule implements Serializable {
...
@@ -234,8 +234,8 @@ public class PeriodTaxPayerReportRule implements Serializable {
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
setTemplateGroupId
(
Stri
ng
templateGroupId
)
{
public
void
setTemplateGroupId
(
Lo
ng
templateGroupId
)
{
this
.
templateGroupId
=
templateGroupId
==
null
?
null
:
templateGroupId
.
trim
()
;
this
.
templateGroupId
=
templateGroupId
;
}
}
/**
/**
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/entity/PeriodTaxPayerReportRuleExample.java
View file @
3e33988f
...
@@ -445,62 +445,52 @@ public class PeriodTaxPayerReportRuleExample {
...
@@ -445,62 +445,52 @@ public class PeriodTaxPayerReportRuleExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdEqualTo
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id ="
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id ="
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdNotEqualTo
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdNotEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id <>"
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id <>"
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdGreaterThan
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdGreaterThan
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id >"
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id >"
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdGreaterThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id >="
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id >="
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdLessThan
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdLessThan
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id <"
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id <"
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdLessThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
andTemplateGroupIdLessThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"template_group_id <="
,
value
,
"templateGroupId"
);
addCriterion
(
"template_group_id <="
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdLike
(
String
value
)
{
public
Criteria
andTemplateGroupIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"template_group_id like"
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTemplateGroupIdNotLike
(
String
value
)
{
addCriterion
(
"template_group_id not like"
,
value
,
"templateGroupId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTemplateGroupIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"template_group_id in"
,
values
,
"templateGroupId"
);
addCriterion
(
"template_group_id in"
,
values
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdNotIn
(
List
<
Stri
ng
>
values
)
{
public
Criteria
andTemplateGroupIdNotIn
(
List
<
Lo
ng
>
values
)
{
addCriterion
(
"template_group_id not in"
,
values
,
"templateGroupId"
);
addCriterion
(
"template_group_id not in"
,
values
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
andTemplateGroupIdBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"template_group_id between"
,
value1
,
value2
,
"templateGroupId"
);
addCriterion
(
"template_group_id between"
,
value1
,
value2
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTemplateGroupIdNotBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
andTemplateGroupIdNotBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"template_group_id not between"
,
value1
,
value2
,
"templateGroupId"
);
addCriterion
(
"template_group_id not between"
,
value1
,
value2
,
"templateGroupId"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
...
atms-api/src/main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
View file @
3e33988f
...
@@ -902,8 +902,8 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`cell_comment` (
...
@@ -902,8 +902,8 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`cell_comment` (
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`cell_data`
(
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`cell_data`
(
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`report_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
,
`report_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
,
`cell_template_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
,
`cell_template_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
,
`data`
varchar
(
200
)
NOT
NULL
DEFAULT
''
,
`data`
varchar
(
200
)
NOT
NULL
DEFAULT
''
,
`formula_exp`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
,
`formula_exp`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
,
`create_by`
varchar
(
128
)
NOT
NULL
DEFAULT
''
,
`create_by`
varchar
(
128
)
NOT
NULL
DEFAULT
''
,
...
@@ -966,7 +966,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`data_source_detail` (
...
@@ -966,7 +966,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`data_source_detail` (
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`period_cell_template`
(
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`period_cell_template`
(
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'月份'
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'月份'
,
`report_template_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
COMMENT
'报表模板ID'
,
`report_template_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
COMMENT
'报表模板ID'
,
`row_index`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'行号'
,
`row_index`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'行号'
,
`row_name`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'行名称'
,
`row_name`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'行名称'
,
`column_index`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'列号'
,
`column_index`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'列号'
,
...
@@ -989,12 +989,12 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template` (
...
@@ -989,12 +989,12 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template` (
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`period_cell_template_config`
(
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`period_cell_template_config`
(
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`id`
bigint
(
18
)
unsigned
NOT
NULL
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'月份'
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'月份'
,
`cell_template_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
COMMENT
'单元格模板ID'
,
`cell_template_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
COMMENT
'单元格模板ID'
,
`report_template_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
COMMENT
'报表模板ID'
,
`report_template_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
COMMENT
'报表模板ID'
,
`data_source_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'数据源类型'
,
`data_source_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'数据源类型'
,
`formula`
varchar
(
500
)
NOT
NULL
DEFAULT
''
COMMENT
'公式'
,
`formula`
varchar
(
500
)
NOT
NULL
DEFAULT
''
COMMENT
'公式'
,
`parsed_formula`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'解析后公式'
,
`parsed_formula`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'解析后公式'
,
`formula_description`
var
binary
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'公式描述'
,
`formula_description`
var
char
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'公式描述'
,
`account_codes`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'账套代码'
,
`account_codes`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'账套代码'
,
`invoice_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'发票类型'
,
`invoice_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'发票类型'
,
`tax_rate`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'税率'
,
`tax_rate`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'税率'
,
...
@@ -1011,6 +1011,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template_confi
...
@@ -1011,6 +1011,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template_confi
`validation_description`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'验证信息描述'
,
`validation_description`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'验证信息描述'
,
`voucher_keyword`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'票证关键字'
,
`voucher_keyword`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'票证关键字'
,
`cell_template_config_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`cell_template_config_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`key_value_parsed_formula`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'键值对公式解析'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
...
@@ -1040,7 +1041,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_tax_payer_report_ru
...
@@ -1040,7 +1041,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_tax_payer_report_ru
`is_default`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`is_default`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`period`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`tax_payer_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`tax_payer_type`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`template_group_id`
varchar
(
128
)
NOT
NULL
DEFAULT
'
'
,
`template_group_id`
bigint
(
18
)
unsigned
NOT
NULL
DEFAULT
'0
'
,
`organization_id`
varchar
(
128
)
NOT
NULL
DEFAULT
''
,
`organization_id`
varchar
(
128
)
NOT
NULL
DEFAULT
''
,
`create_time`
datetime
NOT
NULL
DEFAULT
'1970-01-01 08:00:00'
,
`create_time`
datetime
NOT
NULL
DEFAULT
'1970-01-01 08:00:00'
,
`update_time`
datetime
NOT
NULL
DEFAULT
'1970-01-01 08:00:00'
,
`update_time`
datetime
NOT
NULL
DEFAULT
'1970-01-01 08:00:00'
,
...
...
atms-api/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodCellTemplateConfigMapper.xml
View file @
3e33988f
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pwc.taxtech.atms.vat.dao.PeriodCellTemplateConfigMapper"
>
<mapper
namespace=
"pwc.taxtech.atms.vat.dao.PeriodCellTemplateConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"cell_template_id"
jdbcType=
"BIGINT"
property=
"cellTemplateId"
/>
<result
column=
"cell_template_id"
jdbcType=
"BIGINT"
property=
"cellTemplateId"
/>
<result
column=
"report_template_id"
jdbcType=
"BIGINT"
property=
"reportTemplateId"
/>
<result
column=
"report_template_id"
jdbcType=
"BIGINT"
property=
"reportTemplateId"
/>
<result
column=
"data_source_type"
jdbcType=
"INTEGER"
property=
"dataSourceType"
/>
<result
column=
"data_source_type"
jdbcType=
"INTEGER"
property=
"dataSourceType"
/>
<result
column=
"formula"
jdbcType=
"VARCHAR"
property=
"formula"
/>
<result
column=
"formula"
jdbcType=
"VARCHAR"
property=
"formula"
/>
<result
column=
"parsed_formula"
jdbcType=
"VARCHAR"
property=
"parsedFormula"
/>
<result
column=
"parsed_formula"
jdbcType=
"VARCHAR"
property=
"parsedFormula"
/>
<result
column=
"formula_description"
jdbcType=
"VARCHAR"
property=
"formulaDescription"
/>
<result
column=
"formula_description"
jdbcType=
"VARCHAR"
property=
"formulaDescription"
/>
<result
column=
"account_codes"
jdbcType=
"VARCHAR"
property=
"accountCodes"
/>
<result
column=
"account_codes"
jdbcType=
"VARCHAR"
property=
"accountCodes"
/>
<result
column=
"invoice_type"
jdbcType=
"INTEGER"
property=
"invoiceType"
/>
<result
column=
"invoice_type"
jdbcType=
"INTEGER"
property=
"invoiceType"
/>
<result
column=
"tax_rate"
jdbcType=
"VARCHAR"
property=
"taxRate"
/>
<result
column=
"tax_rate"
jdbcType=
"VARCHAR"
property=
"taxRate"
/>
<result
column=
"invoice_amount_type"
jdbcType=
"INTEGER"
property=
"invoiceAmountType"
/>
<result
column=
"invoice_amount_type"
jdbcType=
"INTEGER"
property=
"invoiceAmountType"
/>
<result
column=
"model_ids"
jdbcType=
"VARCHAR"
property=
"modelIds"
/>
<result
column=
"model_ids"
jdbcType=
"VARCHAR"
property=
"modelIds"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"invoice_category"
jdbcType=
"VARCHAR"
property=
"invoiceCategory"
/>
<result
column=
"invoice_category"
jdbcType=
"VARCHAR"
property=
"invoiceCategory"
/>
<result
column=
"formula_data_source"
jdbcType=
"VARCHAR"
property=
"formulaDataSource"
/>
<result
column=
"formula_data_source"
jdbcType=
"VARCHAR"
property=
"formulaDataSource"
/>
<result
column=
"validation"
jdbcType=
"VARCHAR"
property=
"validation"
/>
<result
column=
"validation"
jdbcType=
"VARCHAR"
property=
"validation"
/>
<result
column=
"parsed_validation"
jdbcType=
"VARCHAR"
property=
"parsedValidation"
/>
<result
column=
"parsed_validation"
jdbcType=
"VARCHAR"
property=
"parsedValidation"
/>
<result
column=
"validation_description"
jdbcType=
"VARCHAR"
property=
"validationDescription"
/>
<result
column=
"validation_description"
jdbcType=
"VARCHAR"
property=
"validationDescription"
/>
<result
column=
"voucher_keyword"
jdbcType=
"VARCHAR"
property=
"voucherKeyword"
/>
<result
column=
"voucher_keyword"
jdbcType=
"VARCHAR"
property=
"voucherKeyword"
/>
<result
column=
"cell_template_config_id"
jdbcType=
"BIGINT"
property=
"cellTemplateConfigId"
/>
<result
column=
"cell_template_config_id"
jdbcType=
"BIGINT"
property=
"cellTemplateConfigId"
/>
</resultMap>
<result
column=
"key_value_parsed_formula"
jdbcType=
"VARCHAR"
property=
"keyValueParsedFormula"
/>
<sql
id=
"Example_Where_Clause"
>
</resultMap>
<!--
<sql
id=
"Example_Where_Clause"
>
WARNING - @mbg.generated
<!--
This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated
-->
This element is automatically generated by MyBatis Generator, do not modify.
<where>
-->
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<where>
<if
test=
"criteria.valid"
>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<if
test=
"criteria.valid"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<choose>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<when
test=
"criterion.noValue"
>
<choose>
and ${criterion.condition}
<when
test=
"criterion.noValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.listValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.listValue"
>
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
and ${criterion.condition}
separator=
","
>
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
#{listItem}
</foreach>
</foreach>
</when>
</when>
</choose>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</foreach>
</where>
</trim>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, period, cell_template_id, report_template_id, data_source_type, formula, parsed_formula,
formula_description, account_codes, invoice_type, tax_rate, invoice_amount_type,
model_ids, create_by, create_time, update_by, update_time, invoice_category, formula_data_source,
validation, parsed_validation, validation_description, voucher_keyword, cell_template_config_id
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from period_cell_template_config
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from period_cell_template_config
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into period_cell_template_config (id, period, cell_template_id,
report_template_id, data_source_type, formula,
parsed_formula, formula_description, account_codes,
invoice_type, tax_rate, invoice_amount_type,
model_ids, create_by, create_time,
update_by, update_time, invoice_category,
formula_data_source, validation, parsed_validation,
validation_description, voucher_keyword,
cell_template_config_id)
values (#{id,jdbcType=BIGINT}, #{period,jdbcType=INTEGER}, #{cellTemplateId,jdbcType=BIGINT},
#{reportTemplateId,jdbcType=BIGINT}, #{dataSourceType,jdbcType=INTEGER}, #{formula,jdbcType=VARCHAR},
#{parsedFormula,jdbcType=VARCHAR}, #{formulaDescription,jdbcType=VARCHAR}, #{accountCodes,jdbcType=VARCHAR},
#{invoiceType,jdbcType=INTEGER}, #{taxRate,jdbcType=VARCHAR}, #{invoiceAmountType,jdbcType=INTEGER},
#{modelIds,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{invoiceCategory,jdbcType=VARCHAR},
#{formulaDataSource,jdbcType=VARCHAR}, #{validation,jdbcType=VARCHAR}, #{parsedValidation,jdbcType=VARCHAR},
#{validationDescription,jdbcType=VARCHAR}, #{voucherKeyword,jdbcType=VARCHAR},
#{cellTemplateConfigId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into period_cell_template_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"period != null"
>
period,
</if>
<if
test=
"cellTemplateId != null"
>
cell_template_id,
</if>
<if
test=
"reportTemplateId != null"
>
report_template_id,
</if>
<if
test=
"dataSourceType != null"
>
data_source_type,
</if>
<if
test=
"formula != null"
>
formula,
</if>
<if
test=
"parsedFormula != null"
>
parsed_formula,
</if>
<if
test=
"formulaDescription != null"
>
formula_description,
</if>
<if
test=
"accountCodes != null"
>
account_codes,
</if>
<if
test=
"invoiceType != null"
>
invoice_type,
</if>
<if
test=
"taxRate != null"
>
tax_rate,
</if>
<if
test=
"invoiceAmountType != null"
>
invoice_amount_type,
</if>
<if
test=
"modelIds != null"
>
model_ids,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"invoiceCategory != null"
>
invoice_category,
</if>
<if
test=
"formulaDataSource != null"
>
formula_data_source,
</if>
<if
test=
"validation != null"
>
validation,
</if>
<if
test=
"parsedValidation != null"
>
parsed_validation,
</if>
<if
test=
"validationDescription != null"
>
validation_description,
</if>
<if
test=
"voucherKeyword != null"
>
voucher_keyword,
</if>
<if
test=
"cellTemplateConfigId != null"
>
cell_template_config_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
<if
test=
"cellTemplateId != null"
>
#{cellTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"reportTemplateId != null"
>
#{reportTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"dataSourceType != null"
>
#{dataSourceType,jdbcType=INTEGER},
</if>
<if
test=
"formula != null"
>
#{formula,jdbcType=VARCHAR},
</if>
<if
test=
"parsedFormula != null"
>
#{parsedFormula,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDescription != null"
>
#{formulaDescription,jdbcType=VARCHAR},
</if>
<if
test=
"accountCodes != null"
>
#{accountCodes,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceType != null"
>
#{invoiceType,jdbcType=INTEGER},
</if>
<if
test=
"taxRate != null"
>
#{taxRate,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceAmountType != null"
>
#{invoiceAmountType,jdbcType=INTEGER},
</if>
<if
test=
"modelIds != null"
>
#{modelIds,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
#{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateBy != null"
>
#{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"invoiceCategory != null"
>
#{invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDataSource != null"
>
#{formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"validation != null"
>
#{validation,jdbcType=VARCHAR},
</if>
<if
test=
"parsedValidation != null"
>
#{parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"validationDescription != null"
>
#{validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"voucherKeyword != null"
>
#{voucherKeyword,jdbcType=VARCHAR},
</if>
<if
test=
"cellTemplateConfigId != null"
>
#{cellTemplateConfigId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
</select>
</foreach>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
</where>
<!--
</sql>
WARNING - @mbg.generated
<sql
id=
"Update_By_Example_Where_Clause"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
update period_cell_template_config
This element is automatically generated by MyBatis Generator, do not modify.
<set>
-->
<if
test=
"record.id != null"
>
<where>
id = #{record.id,jdbcType=BIGINT},
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
</if>
<if
test=
"criteria.valid"
>
<if
test=
"record.period != null"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
period = #{record.period,jdbcType=INTEGER},
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
</if>
<choose>
<if
test=
"record.cellTemplateId != null"
>
<when
test=
"criterion.noValue"
>
cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
and ${criterion.condition}
</if>
</when>
<if
test=
"record.reportTemplateId != null"
>
<when
test=
"criterion.singleValue"
>
report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
and ${criterion.condition} #{criterion.value}
</if>
</when>
<if
test=
"record.dataSourceType != null"
>
<when
test=
"criterion.betweenValue"
>
data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</if>
</when>
<if
test=
"record.formula != null"
>
<when
test=
"criterion.listValue"
>
formula = #{record.formula,jdbcType=VARCHAR},
and ${criterion.condition}
</if>
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
<if
test=
"record.parsedFormula != null"
>
#{listItem}
parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
</foreach>
</if>
</when>
<if
test=
"record.formulaDescription != null"
>
</choose>
formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
</foreach>
</if>
</trim>
<if
test=
"record.accountCodes != null"
>
account_codes = #{record.accountCodes,jdbcType=VARCHAR},
</if>
<if
test=
"record.invoiceType != null"
>
invoice_type = #{record.invoiceType,jdbcType=INTEGER},
</if>
<if
test=
"record.taxRate != null"
>
tax_rate = #{record.taxRate,jdbcType=VARCHAR},
</if>
<if
test=
"record.invoiceAmountType != null"
>
invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
</if>
<if
test=
"record.modelIds != null"
>
model_ids = #{record.modelIds,jdbcType=VARCHAR},
</if>
<if
test=
"record.createBy != null"
>
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateBy != null"
>
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.invoiceCategory != null"
>
invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"record.formulaDataSource != null"
>
formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"record.validation != null"
>
validation = #{record.validation,jdbcType=VARCHAR},
</if>
<if
test=
"record.parsedValidation != null"
>
parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"record.validationDescription != null"
>
validation_description = #{record.validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"record.voucherKeyword != null"
>
voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
</if>
<if
test=
"record.cellTemplateConfigId != null"
>
cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
</update>
</foreach>
<update
id=
"updateByExample"
parameterType=
"map"
>
</where>
<!--
</sql>
WARNING - @mbg.generated
<sql
id=
"Base_Column_List"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
update period_cell_template_config
This element is automatically generated by MyBatis Generator, do not modify.
set id = #{record.id,jdbcType=BIGINT},
-->
id, period, cell_template_id, report_template_id, data_source_type, formula, parsed_formula,
formula_description, account_codes, invoice_type, tax_rate, invoice_amount_type,
model_ids, create_by, create_time, update_by, update_time, invoice_category, formula_data_source,
validation, parsed_validation, validation_description, voucher_keyword, cell_template_config_id,
key_value_parsed_formula
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from period_cell_template_config
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from period_cell_template_config
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into period_cell_template_config (id, period, cell_template_id,
report_template_id, data_source_type, formula,
parsed_formula, formula_description, account_codes,
invoice_type, tax_rate, invoice_amount_type,
model_ids, create_by, create_time,
update_by, update_time, invoice_category,
formula_data_source, validation, parsed_validation,
validation_description, voucher_keyword,
cell_template_config_id, key_value_parsed_formula
)
values (#{id,jdbcType=BIGINT}, #{period,jdbcType=INTEGER}, #{cellTemplateId,jdbcType=BIGINT},
#{reportTemplateId,jdbcType=BIGINT}, #{dataSourceType,jdbcType=INTEGER}, #{formula,jdbcType=VARCHAR},
#{parsedFormula,jdbcType=VARCHAR}, #{formulaDescription,jdbcType=VARCHAR}, #{accountCodes,jdbcType=VARCHAR},
#{invoiceType,jdbcType=INTEGER}, #{taxRate,jdbcType=VARCHAR}, #{invoiceAmountType,jdbcType=INTEGER},
#{modelIds,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{invoiceCategory,jdbcType=VARCHAR},
#{formulaDataSource,jdbcType=VARCHAR}, #{validation,jdbcType=VARCHAR}, #{parsedValidation,jdbcType=VARCHAR},
#{validationDescription,jdbcType=VARCHAR}, #{voucherKeyword,jdbcType=VARCHAR},
#{cellTemplateConfigId,jdbcType=BIGINT}, #{keyValueParsedFormula,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into period_cell_template_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"period != null"
>
period,
</if>
<if
test=
"cellTemplateId != null"
>
cell_template_id,
</if>
<if
test=
"reportTemplateId != null"
>
report_template_id,
</if>
<if
test=
"dataSourceType != null"
>
data_source_type,
</if>
<if
test=
"formula != null"
>
formula,
</if>
<if
test=
"parsedFormula != null"
>
parsed_formula,
</if>
<if
test=
"formulaDescription != null"
>
formula_description,
</if>
<if
test=
"accountCodes != null"
>
account_codes,
</if>
<if
test=
"invoiceType != null"
>
invoice_type,
</if>
<if
test=
"taxRate != null"
>
tax_rate,
</if>
<if
test=
"invoiceAmountType != null"
>
invoice_amount_type,
</if>
<if
test=
"modelIds != null"
>
model_ids,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"invoiceCategory != null"
>
invoice_category,
</if>
<if
test=
"formulaDataSource != null"
>
formula_data_source,
</if>
<if
test=
"validation != null"
>
validation,
</if>
<if
test=
"parsedValidation != null"
>
parsed_validation,
</if>
<if
test=
"validationDescription != null"
>
validation_description,
</if>
<if
test=
"voucherKeyword != null"
>
voucher_keyword,
</if>
<if
test=
"cellTemplateConfigId != null"
>
cell_template_config_id,
</if>
<if
test=
"keyValueParsedFormula != null"
>
key_value_parsed_formula,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
<if
test=
"cellTemplateId != null"
>
#{cellTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"reportTemplateId != null"
>
#{reportTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"dataSourceType != null"
>
#{dataSourceType,jdbcType=INTEGER},
</if>
<if
test=
"formula != null"
>
#{formula,jdbcType=VARCHAR},
</if>
<if
test=
"parsedFormula != null"
>
#{parsedFormula,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDescription != null"
>
#{formulaDescription,jdbcType=VARCHAR},
</if>
<if
test=
"accountCodes != null"
>
#{accountCodes,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceType != null"
>
#{invoiceType,jdbcType=INTEGER},
</if>
<if
test=
"taxRate != null"
>
#{taxRate,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceAmountType != null"
>
#{invoiceAmountType,jdbcType=INTEGER},
</if>
<if
test=
"modelIds != null"
>
#{modelIds,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
#{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateBy != null"
>
#{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"invoiceCategory != null"
>
#{invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDataSource != null"
>
#{formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"validation != null"
>
#{validation,jdbcType=VARCHAR},
</if>
<if
test=
"parsedValidation != null"
>
#{parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"validationDescription != null"
>
#{validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"voucherKeyword != null"
>
#{voucherKeyword,jdbcType=VARCHAR},
</if>
<if
test=
"cellTemplateConfigId != null"
>
#{cellTemplateConfigId,jdbcType=BIGINT},
</if>
<if
test=
"keyValueParsedFormula != null"
>
#{keyValueParsedFormula,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update period_cell_template_config
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.period != null"
>
period = #{record.period,jdbcType=INTEGER},
period = #{record.period,jdbcType=INTEGER},
</if>
<if
test=
"record.cellTemplateId != null"
>
cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"record.reportTemplateId != null"
>
report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"record.dataSourceType != null"
>
data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
</if>
<if
test=
"record.formula != null"
>
formula = #{record.formula,jdbcType=VARCHAR},
formula = #{record.formula,jdbcType=VARCHAR},
</if>
<if
test=
"record.parsedFormula != null"
>
parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
</if>
<if
test=
"record.formulaDescription != null"
>
formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
</if>
<if
test=
"record.accountCodes != null"
>
account_codes = #{record.accountCodes,jdbcType=VARCHAR},
account_codes = #{record.accountCodes,jdbcType=VARCHAR},
</if>
<if
test=
"record.invoiceType != null"
>
invoice_type = #{record.invoiceType,jdbcType=INTEGER},
invoice_type = #{record.invoiceType,jdbcType=INTEGER},
</if>
<if
test=
"record.taxRate != null"
>
tax_rate = #{record.taxRate,jdbcType=VARCHAR},
tax_rate = #{record.taxRate,jdbcType=VARCHAR},
</if>
<if
test=
"record.invoiceAmountType != null"
>
invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
</if>
<if
test=
"record.modelIds != null"
>
model_ids = #{record.modelIds,jdbcType=VARCHAR},
model_ids = #{record.modelIds,jdbcType=VARCHAR},
</if>
<if
test=
"record.createBy != null"
>
create_by = #{record.createBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateBy != null"
>
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.invoiceCategory != null"
>
invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"record.formulaDataSource != null"
>
formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"record.validation != null"
>
validation = #{record.validation,jdbcType=VARCHAR},
validation = #{record.validation,jdbcType=VARCHAR},
</if>
<if
test=
"record.parsedValidation != null"
>
parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"record.validationDescription != null"
>
validation_description = #{record.validationDescription,jdbcType=VARCHAR},
validation_description = #{record.validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"record.voucherKeyword != null"
>
voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT}
</if>
<if
test=
"_parameter != null"
>
<if
test=
"record.cellTemplateConfigId != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT},
</if>
</if>
</update>
<if
test=
"record.keyValueParsedFormula != null"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
key_value_parsed_formula = #{record.keyValueParsedFormula,jdbcType=VARCHAR},
<!--
</if>
WARNING - @mbg.generated
</set>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"_parameter != null"
>
-->
<include
refid=
"Update_By_Example_Where_Clause"
/>
update period_cell_template_config
</if>
<set>
</update>
<if
test=
"period != null"
>
<update
id=
"updateByExample"
parameterType=
"map"
>
period = #{period,jdbcType=INTEGER},
<!--
</if>
WARNING - @mbg.generated
<if
test=
"cellTemplateId != null"
>
This element is automatically generated by MyBatis Generator, do not modify.
cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
-->
</if>
update period_cell_template_config
<if
test=
"reportTemplateId != null"
>
set id = #{record.id,jdbcType=BIGINT},
report_template_id = #{reportTemplateId,jdbcType=BIGINT},
period = #{record.period,jdbcType=INTEGER},
</if>
cell_template_id = #{record.cellTemplateId,jdbcType=BIGINT},
<if
test=
"dataSourceType != null"
>
report_template_id = #{record.reportTemplateId,jdbcType=BIGINT},
data_source_type = #{dataSourceType,jdbcType=INTEGER},
data_source_type = #{record.dataSourceType,jdbcType=INTEGER},
</if>
formula = #{record.formula,jdbcType=VARCHAR},
<if
test=
"formula != null"
>
parsed_formula = #{record.parsedFormula,jdbcType=VARCHAR},
formula = #{formula,jdbcType=VARCHAR},
formula_description = #{record.formulaDescription,jdbcType=VARCHAR},
</if>
account_codes = #{record.accountCodes,jdbcType=VARCHAR},
<if
test=
"parsedFormula != null"
>
invoice_type = #{record.invoiceType,jdbcType=INTEGER},
parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
tax_rate = #{record.taxRate,jdbcType=VARCHAR},
</if>
invoice_amount_type = #{record.invoiceAmountType,jdbcType=INTEGER},
<if
test=
"formulaDescription != null"
>
model_ids = #{record.modelIds,jdbcType=VARCHAR},
formula_description = #{formulaDescription,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
<if
test=
"accountCodes != null"
>
update_by = #{record.updateBy,jdbcType=VARCHAR},
account_codes = #{accountCodes,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
invoice_category = #{record.invoiceCategory,jdbcType=VARCHAR},
<if
test=
"invoiceType != null"
>
formula_data_source = #{record.formulaDataSource,jdbcType=VARCHAR},
invoice_type = #{invoiceType,jdbcType=INTEGER},
validation = #{record.validation,jdbcType=VARCHAR},
</if>
parsed_validation = #{record.parsedValidation,jdbcType=VARCHAR},
<if
test=
"taxRate != null"
>
validation_description = #{record.validationDescription,jdbcType=VARCHAR},
tax_rate = #{taxRate,jdbcType=VARCHAR},
voucher_keyword = #{record.voucherKeyword,jdbcType=VARCHAR},
</if>
cell_template_config_id = #{record.cellTemplateConfigId,jdbcType=BIGINT},
<if
test=
"invoiceAmountType != null"
>
key_value_parsed_formula = #{record.keyValueParsedFormula,jdbcType=VARCHAR}
invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
<if
test=
"_parameter != null"
>
</if>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<if
test=
"modelIds != null"
>
</if>
model_ids = #{modelIds,jdbcType=VARCHAR},
</update>
</if>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<if
test=
"createBy != null"
>
<!--
create_by = #{createBy,jdbcType=VARCHAR},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"createTime != null"
>
-->
create_time = #{createTime,jdbcType=TIMESTAMP},
update period_cell_template_config
</if>
<set>
<if
test=
"updateBy != null"
>
<if
test=
"period != null"
>
update_by = #{updateBy,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
</if>
</if>
<if
test=
"updateTime != null"
>
<if
test=
"cellTemplateId != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"invoiceCategory != null"
>
invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDataSource != null"
>
formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"validation != null"
>
validation = #{validation,jdbcType=VARCHAR},
</if>
<if
test=
"parsedValidation != null"
>
parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"validationDescription != null"
>
validation_description = #{validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"voucherKeyword != null"
>
voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
</if>
<if
test=
"cellTemplateConfigId != null"
>
cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update period_cell_template_config
set period = #{period,jdbcType=INTEGER},
cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"reportTemplateId != null"
>
report_template_id = #{reportTemplateId,jdbcType=BIGINT},
report_template_id = #{reportTemplateId,jdbcType=BIGINT},
</if>
<if
test=
"dataSourceType != null"
>
data_source_type = #{dataSourceType,jdbcType=INTEGER},
data_source_type = #{dataSourceType,jdbcType=INTEGER},
</if>
<if
test=
"formula != null"
>
formula = #{formula,jdbcType=VARCHAR},
formula = #{formula,jdbcType=VARCHAR},
</if>
<if
test=
"parsedFormula != null"
>
parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDescription != null"
>
formula_description = #{formulaDescription,jdbcType=VARCHAR},
formula_description = #{formulaDescription,jdbcType=VARCHAR},
</if>
<if
test=
"accountCodes != null"
>
account_codes = #{accountCodes,jdbcType=VARCHAR},
account_codes = #{accountCodes,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceType != null"
>
invoice_type = #{invoiceType,jdbcType=INTEGER},
invoice_type = #{invoiceType,jdbcType=INTEGER},
</if>
<if
test=
"taxRate != null"
>
tax_rate = #{taxRate,jdbcType=VARCHAR},
tax_rate = #{taxRate,jdbcType=VARCHAR},
</if>
<if
test=
"invoiceAmountType != null"
>
invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
</if>
<if
test=
"modelIds != null"
>
model_ids = #{modelIds,jdbcType=VARCHAR},
model_ids = #{modelIds,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"invoiceCategory != null"
>
invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
</if>
<if
test=
"formulaDataSource != null"
>
formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
</if>
<if
test=
"validation != null"
>
validation = #{validation,jdbcType=VARCHAR},
validation = #{validation,jdbcType=VARCHAR},
</if>
<if
test=
"parsedValidation != null"
>
parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
</if>
<if
test=
"validationDescription != null"
>
validation_description = #{validationDescription,jdbcType=VARCHAR},
validation_description = #{validationDescription,jdbcType=VARCHAR},
</if>
<if
test=
"voucherKeyword != null"
>
voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT}
</if>
where id = #{id,jdbcType=BIGINT}
<if
test=
"cellTemplateConfigId != null"
>
</update>
cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT},
<select
id=
"selectByExampleWithRowbounds"
</if>
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultMap=
"BaseResultMap"
>
<if
test=
"keyValueParsedFormula != null"
>
<!--
key_value_parsed_formula = #{keyValueParsedFormula,jdbcType=VARCHAR},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
</set>
-->
where id = #{id,jdbcType=BIGINT}
select
</update>
<if
test=
"distinct"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
distinct
<!--
</if>
WARNING - @mbg.generated
<include
refid=
"Base_Column_List"
/>
This element is automatically generated by MyBatis Generator, do not modify.
from period_cell_template_config
-->
<if
test=
"_parameter != null"
>
update period_cell_template_config
<include
refid=
"Example_Where_Clause"
/>
set period = #{period,jdbcType=INTEGER},
</if>
cell_template_id = #{cellTemplateId,jdbcType=BIGINT},
<if
test=
"orderByClause != null"
>
report_template_id = #{reportTemplateId,jdbcType=BIGINT},
order by ${orderByClause}
data_source_type = #{dataSourceType,jdbcType=INTEGER},
</if>
formula = #{formula,jdbcType=VARCHAR},
</select>
parsed_formula = #{parsedFormula,jdbcType=VARCHAR},
formula_description = #{formulaDescription,jdbcType=VARCHAR},
account_codes = #{accountCodes,jdbcType=VARCHAR},
invoice_type = #{invoiceType,jdbcType=INTEGER},
tax_rate = #{taxRate,jdbcType=VARCHAR},
invoice_amount_type = #{invoiceAmountType,jdbcType=INTEGER},
model_ids = #{modelIds,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
invoice_category = #{invoiceCategory,jdbcType=VARCHAR},
formula_data_source = #{formulaDataSource,jdbcType=VARCHAR},
validation = #{validation,jdbcType=VARCHAR},
parsed_validation = #{parsedValidation,jdbcType=VARCHAR},
validation_description = #{validationDescription,jdbcType=VARCHAR},
voucher_keyword = #{voucherKeyword,jdbcType=VARCHAR},
cell_template_config_id = #{cellTemplateConfigId,jdbcType=BIGINT},
key_value_parsed_formula = #{keyValueParsedFormula,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from period_cell_template_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<insert
id=
"batchInsert"
>
<insert
id=
"batchInsert"
>
INSERT INTO period_cell_template_config
INSERT INTO period_cell_template_config
(id,
(id,
...
@@ -648,17 +661,16 @@
...
@@ -648,17 +661,16 @@
,#{item.cellTemplateConfigId,jdbcType=INTEGER})
,#{item.cellTemplateConfigId,jdbcType=INTEGER})
</foreach>
</foreach>
</insert>
</insert>
<resultMap
id=
"periodCellTemplateConfigExtendDtoMap"
<resultMap
extends=
"BaseResultMap"
id=
"periodCellTemplateConfigExtendDtoMap"
type=
"pwc.taxtech.atms.dto.vatdto.PeriodCellTemplateConfigExtendDto"
>
type=
"pwc.taxtech.atms.dto.vatdto.PeriodCellTemplateConfigExtendDto"
extends=
"BaseResultMap"
>
<result
column=
"column_index"
jdbcType=
"INTEGER"
property=
"columnIndex"
/>
<result
column=
"column_index"
jdbcType=
"INTEGER"
property=
"columnIndex"
/>
<result
column=
"row_index"
jdbcType=
"INTEGER"
property=
"rowIndex"
/>
<result
column=
"row_index"
jdbcType=
"INTEGER"
property=
"rowIndex"
/>
<result
column=
"column_name"
jdbcType=
"VARCHAR"
property=
"columnName"
/>
<result
column=
"column_name"
jdbcType=
"VARCHAR"
property=
"columnName"
/>
<result
column=
"row_name"
jdbcType=
"VARCHAR"
property=
"rowName"
/>
<result
column=
"row_name"
jdbcType=
"VARCHAR"
property=
"rowName"
/>
<result
column=
"data_type"
jdbcType=
"INTEGER"
property=
"dataType"
/>
<result
column=
"data_type"
jdbcType=
"INTEGER"
property=
"dataType"
/>
<result
column=
"is_read_only"
jdbcType=
"INTEGER"
property=
"isReadOnly"
/>
<result
column=
"is_read_only"
jdbcType=
"INTEGER"
property=
"isReadOnly"
/>
<result
column=
"cell_template_id"
jdbcType=
"INTEGER"
property=
"cellTemplateID"
/>
<result
column=
"cell_template_id"
jdbcType=
"INTEGER"
property=
"cellTemplateID"
/>
<result
column=
"report_template_id"
jdbcType=
"INTEGER"
property=
"reportTemplateID"
/>
<result
column=
"report_template_id"
jdbcType=
"INTEGER"
property=
"reportTemplateID"
/>
<result
column=
"comment"
jdbcType=
"INTEGER"
property=
"comment"
/>
<result
column=
"comment"
jdbcType=
"INTEGER"
property=
"comment"
/>
</resultMap>
</resultMap>
<select
id=
"getPeriodCellTemplateConfigExtendDtos"
resultMap=
"periodCellTemplateConfigExtendDtoMap"
>
<select
id=
"getPeriodCellTemplateConfigExtendDtos"
resultMap=
"periodCellTemplateConfigExtendDtoMap"
>
SELECT
SELECT
...
@@ -676,7 +688,7 @@
...
@@ -676,7 +688,7 @@
JOIN period_cell_template_config config
JOIN period_cell_template_config config
ON cell_template.cell_template_id = config.cell_template_id
ON cell_template.cell_template_id = config.cell_template_id
WHERE cell_template.report_template_id IN
WHERE cell_template.report_template_id IN
<foreach
c
ollection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")
"
>
<foreach
c
lose=
")"
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
",
"
>
#{item}
#{item}
</foreach>
</foreach>
AND cell_template.period = #{period,jdbcType=INTEGER}
AND cell_template.period = #{period,jdbcType=INTEGER}
...
...
atms-api/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodTaxPayerReportRuleMapper.xml
View file @
3e33988f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<result
column=
"is_default"
jdbcType=
"INTEGER"
property=
"isDefault"
/>
<result
column=
"is_default"
jdbcType=
"INTEGER"
property=
"isDefault"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"tax_payer_type"
jdbcType=
"INTEGER"
property=
"taxPayerType"
/>
<result
column=
"tax_payer_type"
jdbcType=
"INTEGER"
property=
"taxPayerType"
/>
<result
column=
"template_group_id"
jdbcType=
"
VARCHAR
"
property=
"templateGroupId"
/>
<result
column=
"template_group_id"
jdbcType=
"
BIGINT
"
property=
"templateGroupId"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
create_time, update_time, tax_payer_report_rule_id,
create_time, update_time, tax_payer_report_rule_id,
create_by, update_by)
create_by, update_by)
values (#{id,jdbcType=BIGINT}, #{isDefault,jdbcType=INTEGER}, #{period,jdbcType=INTEGER},
values (#{id,jdbcType=BIGINT}, #{isDefault,jdbcType=INTEGER}, #{period,jdbcType=INTEGER},
#{taxPayerType,jdbcType=INTEGER}, #{templateGroupId,jdbcType=
VARCHAR
}, #{organizationId,jdbcType=VARCHAR},
#{taxPayerType,jdbcType=INTEGER}, #{templateGroupId,jdbcType=
BIGINT
}, #{organizationId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{taxPayerReportRuleId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{taxPayerReportRuleId,jdbcType=BIGINT},
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR})
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR})
</insert>
</insert>
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
#{taxPayerType,jdbcType=INTEGER},
#{taxPayerType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"templateGroupId != null"
>
<if
test=
"templateGroupId != null"
>
#{templateGroupId,jdbcType=
VARCHAR
},
#{templateGroupId,jdbcType=
BIGINT
},
</if>
</if>
<if
test=
"organizationId != null"
>
<if
test=
"organizationId != null"
>
#{organizationId,jdbcType=VARCHAR},
#{organizationId,jdbcType=VARCHAR},
...
@@ -259,7 +259,7 @@
...
@@ -259,7 +259,7 @@
tax_payer_type = #{record.taxPayerType,jdbcType=INTEGER},
tax_payer_type = #{record.taxPayerType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.templateGroupId != null"
>
<if
test=
"record.templateGroupId != null"
>
template_group_id = #{record.templateGroupId,jdbcType=
VARCHAR
},
template_group_id = #{record.templateGroupId,jdbcType=
BIGINT
},
</if>
</if>
<if
test=
"record.organizationId != null"
>
<if
test=
"record.organizationId != null"
>
organization_id = #{record.organizationId,jdbcType=VARCHAR},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
...
@@ -294,7 +294,7 @@
...
@@ -294,7 +294,7 @@
is_default = #{record.isDefault,jdbcType=INTEGER},
is_default = #{record.isDefault,jdbcType=INTEGER},
period = #{record.period,jdbcType=INTEGER},
period = #{record.period,jdbcType=INTEGER},
tax_payer_type = #{record.taxPayerType,jdbcType=INTEGER},
tax_payer_type = #{record.taxPayerType,jdbcType=INTEGER},
template_group_id = #{record.templateGroupId,jdbcType=
VARCHAR
},
template_group_id = #{record.templateGroupId,jdbcType=
BIGINT
},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
tax_payer_type = #{taxPayerType,jdbcType=INTEGER},
tax_payer_type = #{taxPayerType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"templateGroupId != null"
>
<if
test=
"templateGroupId != null"
>
template_group_id = #{templateGroupId,jdbcType=
VARCHAR
},
template_group_id = #{templateGroupId,jdbcType=
BIGINT
},
</if>
</if>
<if
test=
"organizationId != null"
>
<if
test=
"organizationId != null"
>
organization_id = #{organizationId,jdbcType=VARCHAR},
organization_id = #{organizationId,jdbcType=VARCHAR},
...
@@ -354,7 +354,7 @@
...
@@ -354,7 +354,7 @@
set is_default = #{isDefault,jdbcType=INTEGER},
set is_default = #{isDefault,jdbcType=INTEGER},
period = #{period,jdbcType=INTEGER},
period = #{period,jdbcType=INTEGER},
tax_payer_type = #{taxPayerType,jdbcType=INTEGER},
tax_payer_type = #{taxPayerType,jdbcType=INTEGER},
template_group_id = #{templateGroupId,jdbcType=
VARCHAR
},
template_group_id = #{templateGroupId,jdbcType=
BIGINT
},
organization_id = #{organizationId,jdbcType=VARCHAR},
organization_id = #{organizationId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
...
...
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