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
ad046101
Commit
ad046101
authored
Mar 28, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
104bdb39
03f9e637
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
254 additions
and
14 deletions
+254
-14
vatGeneratorConfig.xml
atms-dao/etc/generator-mysql/vatGeneratorConfig.xml
+6
-6
PeriodCellData.java
...main/java/pwc/taxtech/atms/vat/entity/PeriodCellData.java
+71
-1
PeriodCellDataExample.java
...va/pwc/taxtech/atms/vat/entity/PeriodCellDataExample.java
+140
-0
PeriodCellDataMapper.xml
...sources/pwc/taxtech/atms/vat/dao/PeriodCellDataMapper.xml
+37
-7
No files found.
atms-dao/etc/generator-mysql/vatGeneratorConfig.xml
View file @
ad046101
...
...
@@ -40,10 +40,10 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"pwc.taxtech.atms.vat.dao"
targetProject=
"../../src/main/java"
>
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyVatMapper"
/>
</javaClientGenerator>
<
table
tableName=
"ebit_cell_data"
domainObjectName=
"EbitCellData"
>
<
property
name=
"useActualColumnNames"
value=
"false"
/
>
<
property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/
>
<
/table
>
<
!--<table tableName="ebit_cell_data" domainObjectName="EbitCellData">--
>
<
!--<property name="useActualColumnNames" value="false"/>--
>
<
!--<property name="ignoreQualifiersAtRuntime" value="true"/>--
>
<
!--</table>--
>
<!--
...
...
@@ -546,14 +546,14 @@
<table tableName="period_cell_comment" domainObjectName="PeriodCellComment">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
</table>
-->
<table
tableName=
"period_cell_data"
domainObjectName=
"PeriodCellData"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
<table tableName="period_cell_data_source" domainObjectName="PeriodCellDataSource">
<
!--<
table tableName="period_cell_data_source" domainObjectName="PeriodCellDataSource">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/PeriodCellData.java
View file @
ad046101
package
pwc
.
taxtech
.
atms
.
vat
.
entity
;
import
pwc.taxtech.atms.entity.BaseEntity
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -10,7 +12,7 @@ import java.util.Date;
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
PeriodCellData
implements
Serializable
{
public
class
PeriodCellData
extends
BaseEntity
implements
Serializable
{
/**
*
* This field was generated by MyBatis Generator.
...
...
@@ -119,6 +121,24 @@ public class PeriodCellData implements Serializable {
*/
private
String
keyinData
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column period_cell_data.validate_formula_exp
*
* @mbg.generated
*/
private
String
validateFormulaExp
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column period_cell_data.validate_result
*
* @mbg.generated
*/
private
String
validateResult
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table period_cell_data
...
...
@@ -415,6 +435,54 @@ public class PeriodCellData implements Serializable {
this
.
keyinData
=
keyinData
==
null
?
null
:
keyinData
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column period_cell_data.validate_formula_exp
*
* @return the value of period_cell_data.validate_formula_exp
*
* @mbg.generated
*/
public
String
getValidateFormulaExp
()
{
return
validateFormulaExp
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column period_cell_data.validate_formula_exp
*
* @param validateFormulaExp the value for period_cell_data.validate_formula_exp
*
* @mbg.generated
*/
public
void
setValidateFormulaExp
(
String
validateFormulaExp
)
{
this
.
validateFormulaExp
=
validateFormulaExp
==
null
?
null
:
validateFormulaExp
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column period_cell_data.validate_result
*
* @return the value of period_cell_data.validate_result
*
* @mbg.generated
*/
public
String
getValidateResult
()
{
return
validateResult
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column period_cell_data.validate_result
*
* @param validateResult the value for period_cell_data.validate_result
*
* @mbg.generated
*/
public
void
setValidateResult
(
String
validateResult
)
{
this
.
validateResult
=
validateResult
==
null
?
null
:
validateResult
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table period_cell_data
...
...
@@ -439,6 +507,8 @@ public class PeriodCellData implements Serializable {
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", keyinData="
).
append
(
keyinData
);
sb
.
append
(
", validateFormulaExp="
).
append
(
validateFormulaExp
);
sb
.
append
(
", validateResult="
).
append
(
validateResult
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/PeriodCellDataExample.java
View file @
ad046101
...
...
@@ -974,6 +974,146 @@ public class PeriodCellDataExample {
addCriterion
(
"keyin_data not between"
,
value1
,
value2
,
"keyinData"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpIsNull
()
{
addCriterion
(
"validate_formula_exp is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpIsNotNull
()
{
addCriterion
(
"validate_formula_exp is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpEqualTo
(
String
value
)
{
addCriterion
(
"validate_formula_exp ="
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpNotEqualTo
(
String
value
)
{
addCriterion
(
"validate_formula_exp <>"
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpGreaterThan
(
String
value
)
{
addCriterion
(
"validate_formula_exp >"
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"validate_formula_exp >="
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpLessThan
(
String
value
)
{
addCriterion
(
"validate_formula_exp <"
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"validate_formula_exp <="
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpLike
(
String
value
)
{
addCriterion
(
"validate_formula_exp like"
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpNotLike
(
String
value
)
{
addCriterion
(
"validate_formula_exp not like"
,
value
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpIn
(
List
<
String
>
values
)
{
addCriterion
(
"validate_formula_exp in"
,
values
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"validate_formula_exp not in"
,
values
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"validate_formula_exp between"
,
value1
,
value2
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateFormulaExpNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"validate_formula_exp not between"
,
value1
,
value2
,
"validateFormulaExp"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultIsNull
()
{
addCriterion
(
"validate_result is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultIsNotNull
()
{
addCriterion
(
"validate_result is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultEqualTo
(
String
value
)
{
addCriterion
(
"validate_result ="
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultNotEqualTo
(
String
value
)
{
addCriterion
(
"validate_result <>"
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultGreaterThan
(
String
value
)
{
addCriterion
(
"validate_result >"
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"validate_result >="
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultLessThan
(
String
value
)
{
addCriterion
(
"validate_result <"
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"validate_result <="
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultLike
(
String
value
)
{
addCriterion
(
"validate_result like"
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultNotLike
(
String
value
)
{
addCriterion
(
"validate_result not like"
,
value
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultIn
(
List
<
String
>
values
)
{
addCriterion
(
"validate_result in"
,
values
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"validate_result not in"
,
values
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"validate_result between"
,
value1
,
value2
,
"validateResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andValidateResultNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"validate_result not between"
,
value1
,
value2
,
"validateResult"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodCellDataMapper.xml
View file @
ad046101
...
...
@@ -18,6 +18,8 @@
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"keyin_data"
jdbcType=
"VARCHAR"
property=
"keyinData"
/>
<result
column=
"validate_formula_exp"
jdbcType=
"VARCHAR"
property=
"validateFormulaExp"
/>
<result
column=
"validate_result"
jdbcType=
"VARCHAR"
property=
"validateResult"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -91,7 +93,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, report_id, cell_template_id, `data`, formula_exp, create_by, create_time, update_by,
update_time, project_id, period, keyin_data
update_time, project_id, period, keyin_data
, validate_formula_exp, validate_result
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellDataExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -147,13 +149,13 @@
insert into period_cell_data (id, report_id, cell_template_id,
`data`, formula_exp, create_by,
create_time, update_by, update_time,
project_id, period, keyin_data
)
project_id, period, keyin_data
,
validate_formula_exp, validate_result
)
values (#{id,jdbcType=BIGINT}, #{reportId,jdbcType=BIGINT}, #{cellTemplateId,jdbcType=BIGINT},
#{data,jdbcType=VARCHAR}, #{formulaExp,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{projectId,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, #{keyinData,jdbcType=VARCHAR}
)
#{projectId,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, #{keyinData,jdbcType=VARCHAR}
,
#{validateFormulaExp,jdbcType=VARCHAR}, #{validateResult,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellData"
>
<!--
...
...
@@ -198,6 +200,12 @@
<if
test=
"keyinData != null"
>
keyin_data,
</if>
<if
test=
"validateFormulaExp != null"
>
validate_formula_exp,
</if>
<if
test=
"validateResult != null"
>
validate_result,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -236,6 +244,12 @@
<if
test=
"keyinData != null"
>
#{keyinData,jdbcType=VARCHAR},
</if>
<if
test=
"validateFormulaExp != null"
>
#{validateFormulaExp,jdbcType=VARCHAR},
</if>
<if
test=
"validateResult != null"
>
#{validateResult,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellDataExample"
resultType=
"java.lang.Long"
>
...
...
@@ -291,6 +305,12 @@
<if
test=
"record.keyinData != null"
>
keyin_data = #{record.keyinData,jdbcType=VARCHAR},
</if>
<if
test=
"record.validateFormulaExp != null"
>
validate_formula_exp = #{record.validateFormulaExp,jdbcType=VARCHAR},
</if>
<if
test=
"record.validateResult != null"
>
validate_result = #{record.validateResult,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -313,7 +333,9 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
project_id = #{record.projectId,jdbcType=VARCHAR},
period = #{record.period,jdbcType=INTEGER},
keyin_data = #{record.keyinData,jdbcType=VARCHAR}
keyin_data = #{record.keyinData,jdbcType=VARCHAR},
validate_formula_exp = #{record.validateFormulaExp,jdbcType=VARCHAR},
validate_result = #{record.validateResult,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -358,6 +380,12 @@
<if
test=
"keyinData != null"
>
keyin_data = #{keyinData,jdbcType=VARCHAR},
</if>
<if
test=
"validateFormulaExp != null"
>
validate_formula_exp = #{validateFormulaExp,jdbcType=VARCHAR},
</if>
<if
test=
"validateResult != null"
>
validate_result = #{validateResult,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
...
...
@@ -377,7 +405,9 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
project_id = #{projectId,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
keyin_data = #{keyinData,jdbcType=VARCHAR}
keyin_data = #{keyinData,jdbcType=VARCHAR},
validate_formula_exp = #{validateFormulaExp,jdbcType=VARCHAR},
validate_result = #{validateResult,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellDataExample"
resultMap=
"BaseResultMap"
>
...
...
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