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
6a230bcd
Commit
6a230bcd
authored
Feb 28, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、导入表添加projectid、orgid
parent
e573dfa9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
679 additions
and
188 deletions
+679
-188
CashFlowDto.java
...main/java/pwc/taxtech/atms/dto/vatdto/dd/CashFlowDto.java
+114
-6
RedLetterInfoTableDto.java
...pwc/taxtech/atms/dto/vatdto/dd/RedLetterInfoTableDto.java
+72
-36
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+0
-0
AdjustmentTable.java
...ain/java/pwc/taxtech/atms/vat/entity/AdjustmentTable.java
+36
-2
AdjustmentTableExample.java
...a/pwc/taxtech/atms/vat/entity/AdjustmentTableExample.java
+60
-0
CashFlow.java
...o/src/main/java/pwc/taxtech/atms/vat/entity/CashFlow.java
+36
-0
CashFlowExample.java
...ain/java/pwc/taxtech/atms/vat/entity/CashFlowExample.java
+70
-0
RedLetterInfoTable.java
.../java/pwc/taxtech/atms/vat/entity/RedLetterInfoTable.java
+72
-36
RedLetterInfoTableExample.java
...wc/taxtech/atms/vat/entity/RedLetterInfoTableExample.java
+120
-60
AdjustmentTableMapper.xml
...ources/pwc/taxtech/atms/vat/dao/AdjustmentTableMapper.xml
+23
-6
CashFlowMapper.xml
...ain/resources/pwc/taxtech/atms/vat/dao/CashFlowMapper.xml
+34
-17
RedLetterInfoTableMapper.xml
...ces/pwc/taxtech/atms/vat/dao/RedLetterInfoTableMapper.xml
+42
-25
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/CashFlowDto.java
View file @
6a230bcd
...
...
@@ -20,6 +20,28 @@ public class CashFlowDto implements Serializable {
@JsonSerialize
(
using
=
PwCIdSerialize
.
class
)
private
Long
id
;
/**
* Database Column Remarks:
* 机构id
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.organization_id
*
* @mbg.generated
*/
private
String
organizationId
;
/**
* Database Column Remarks:
* 卡片id
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.project_id
*
* @mbg.generated
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 数据日期
...
...
@@ -42,6 +64,17 @@ public class CashFlowDto implements Serializable {
*/
private
String
source
;
/**
* Database Column Remarks:
* 税务系统期间 yyyyMM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* Database Column Remarks:
* 期间 YYYY-MM
...
...
@@ -91,7 +124,7 @@ public class CashFlowDto implements Serializable {
* 账套币种
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.edger_currency_code
* This field corresponds to the database column cash_flow.
l
edger_currency_code
*
* @mbg.generated
*/
...
...
@@ -133,7 +166,7 @@ public class CashFlowDto implements Serializable {
/**
* Database Column Remarks:
* 频度(固定值M,
仅期间(月度含13期)报表数据)
仅期间(月度含13期)报表数据)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.frequency
...
...
@@ -236,6 +269,54 @@ public class CashFlowDto implements Serializable {
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.organization_id
*
* @return the value of cash_flow.organization_id
*
* @mbg.generated
*/
public
String
getOrganizationId
()
{
return
organizationId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.organization_id
*
* @param organizationId the value for cash_flow.organization_id
*
* @mbg.generated
*/
public
void
setOrganizationId
(
String
organizationId
)
{
this
.
organizationId
=
organizationId
==
null
?
null
:
organizationId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.project_id
*
* @return the value of cash_flow.project_id
*
* @mbg.generated
*/
public
String
getProjectId
()
{
return
projectId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.project_id
*
* @param projectId the value for cash_flow.project_id
*
* @mbg.generated
*/
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.date
...
...
@@ -284,6 +365,30 @@ public class CashFlowDto implements Serializable {
this
.
source
=
source
==
null
?
null
:
source
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.tms_period
*
* @return the value of cash_flow.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.tms_period
*
* @param tmsPeriod the value for cash_flow.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.period
...
...
@@ -382,9 +487,9 @@ public class CashFlowDto implements Serializable {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.edger_currency_code
* This method returns the value of the database column cash_flow.
l
edger_currency_code
*
* @return the value of cash_flow.edger_currency_code
* @return the value of cash_flow.
l
edger_currency_code
*
* @mbg.generated
*/
...
...
@@ -394,9 +499,9 @@ public class CashFlowDto implements Serializable {
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.edger_currency_code
* This method sets the value of the database column cash_flow.
l
edger_currency_code
*
* @param ledgerCurrencyCode the value for cash_flow.edger_currency_code
* @param ledgerCurrencyCode the value for cash_flow.
l
edger_currency_code
*
* @mbg.generated
*/
...
...
@@ -657,8 +762,11 @@ public class CashFlowDto implements Serializable {
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", date="
).
append
(
date
);
sb
.
append
(
", source="
).
append
(
source
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", ledgerId="
).
append
(
ledgerId
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/RedLetterInfoTableDto.java
View file @
6a230bcd
...
...
@@ -50,6 +50,28 @@ public class RedLetterInfoTableDto implements Serializable {
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* Database Column Remarks:
* 填开日期 yyyyMM 对应期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
private
Integer
fillInDate
;
/**
* Database Column Remarks:
* 主体编号
...
...
@@ -83,17 +105,6 @@ public class RedLetterInfoTableDto implements Serializable {
*/
private
String
redLetterInvoiceInfoTableNum
;
/**
* Database Column Remarks:
* 填开日期 yyyyMM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
private
Integer
fillInDate
;
/**
* Database Column Remarks:
* 销方税号
...
...
@@ -284,6 +295,54 @@ public class RedLetterInfoTableDto implements Serializable {
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.tms_period
*
* @return the value of red_letter_info_table.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.tms_period
*
* @param tmsPeriod the value for red_letter_info_table.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.fill_in_date
*
* @return the value of red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
return
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.fill_in_date
*
* @param fillInDate the value for red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.subject_num
...
...
@@ -356,30 +415,6 @@ public class RedLetterInfoTableDto implements Serializable {
this
.
redLetterInvoiceInfoTableNum
=
redLetterInvoiceInfoTableNum
==
null
?
null
:
redLetterInvoiceInfoTableNum
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.fill_in_date
*
* @return the value of red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
return
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.fill_in_date
*
* @param fillInDate the value for red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.sales_tax_number
...
...
@@ -635,10 +670,11 @@ public class RedLetterInfoTableDto implements Serializable {
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", subjectNum="
).
append
(
subjectNum
);
sb
.
append
(
", subjectName="
).
append
(
subjectName
);
sb
.
append
(
", redLetterInvoiceInfoTableNum="
).
append
(
redLetterInvoiceInfoTableNum
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", salesTaxNumber="
).
append
(
salesTaxNumber
);
sb
.
append
(
", salespersonName="
).
append
(
salespersonName
);
sb
.
append
(
", totalAmount="
).
append
(
totalAmount
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
6a230bcd
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/AdjustmentTable.java
View file @
6a230bcd
...
...
@@ -35,8 +35,6 @@ public class AdjustmentTable extends BaseEntity implements Serializable {
*/
private
String
organizationId
;
/**
* Database Column Remarks:
* 项目ID
...
...
@@ -342,6 +340,17 @@ public class AdjustmentTable extends BaseEntity implements Serializable {
*/
private
Date
updateTime
;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column adjustment_table.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table adjustment_table
...
...
@@ -1054,6 +1063,30 @@ public class AdjustmentTable extends BaseEntity implements Serializable {
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column adjustment_table.tms_period
*
* @return the value of adjustment_table.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column adjustment_table.tms_period
*
* @param tmsPeriod the value for adjustment_table.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table adjustment_table
...
...
@@ -1095,6 +1128,7 @@ public class AdjustmentTable extends BaseEntity implements Serializable {
sb
.
append
(
", endBalBeq="
).
append
(
endBalBeq
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/AdjustmentTableExample.java
View file @
6a230bcd
...
...
@@ -2155,6 +2155,66 @@ public class AdjustmentTableExample {
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNull
()
{
addCriterion
(
"tms_period is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNotNull
()
{
addCriterion
(
"tms_period is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period ="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <>"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThan
(
Integer
value
)
{
addCriterion
(
"tms_period >"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period >="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThan
(
Integer
value
)
{
addCriterion
(
"tms_period <"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period not in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period not between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/CashFlow.java
View file @
6a230bcd
...
...
@@ -35,6 +35,17 @@ public class CashFlow extends BaseEntity implements Serializable {
*/
private
String
organizationId
;
/**
* Database Column Remarks:
* 卡片id
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.project_id
*
* @mbg.generated
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 数据日期
...
...
@@ -286,6 +297,30 @@ public class CashFlow extends BaseEntity implements Serializable {
this
.
organizationId
=
organizationId
==
null
?
null
:
organizationId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.project_id
*
* @return the value of cash_flow.project_id
*
* @mbg.generated
*/
public
String
getProjectId
()
{
return
projectId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.project_id
*
* @param projectId the value for cash_flow.project_id
*
* @mbg.generated
*/
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.date
...
...
@@ -732,6 +767,7 @@ public class CashFlow extends BaseEntity implements Serializable {
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", date="
).
append
(
date
);
sb
.
append
(
", source="
).
append
(
source
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/CashFlowExample.java
View file @
6a230bcd
...
...
@@ -326,6 +326,76 @@ public class CashFlowExample {
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdIsNull
()
{
addCriterion
(
"project_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdIsNotNull
()
{
addCriterion
(
"project_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdEqualTo
(
String
value
)
{
addCriterion
(
"project_id ="
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdNotEqualTo
(
String
value
)
{
addCriterion
(
"project_id <>"
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdGreaterThan
(
String
value
)
{
addCriterion
(
"project_id >"
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"project_id >="
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdLessThan
(
String
value
)
{
addCriterion
(
"project_id <"
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"project_id <="
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdLike
(
String
value
)
{
addCriterion
(
"project_id like"
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdNotLike
(
String
value
)
{
addCriterion
(
"project_id not like"
,
value
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"project_id in"
,
values
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"project_id not in"
,
values
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"project_id between"
,
value1
,
value2
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProjectIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"project_id not between"
,
value1
,
value2
,
"projectId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDateIsNull
()
{
addCriterion
(
"`date` is null"
);
return
(
Criteria
)
this
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RedLetterInfoTable.java
View file @
6a230bcd
...
...
@@ -46,6 +46,28 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* Database Column Remarks:
* 填开日期 yyyyMM 对应期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
private
Integer
fillInDate
;
/**
* Database Column Remarks:
* 主体编号
...
...
@@ -79,17 +101,6 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
*/
private
String
redLetterInvoiceInfoTableNum
;
/**
* Database Column Remarks:
* 填开日期 yyyyMM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
private
Integer
fillInDate
;
/**
* Database Column Remarks:
* 销方税号
...
...
@@ -280,6 +291,54 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.tms_period
*
* @return the value of red_letter_info_table.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.tms_period
*
* @param tmsPeriod the value for red_letter_info_table.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.fill_in_date
*
* @return the value of red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
return
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.fill_in_date
*
* @param fillInDate the value for red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.subject_num
...
...
@@ -352,30 +411,6 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
this
.
redLetterInvoiceInfoTableNum
=
redLetterInvoiceInfoTableNum
==
null
?
null
:
redLetterInvoiceInfoTableNum
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.fill_in_date
*
* @return the value of red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
Integer
getFillInDate
()
{
return
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column red_letter_info_table.fill_in_date
*
* @param fillInDate the value for red_letter_info_table.fill_in_date
*
* @mbg.generated
*/
public
void
setFillInDate
(
Integer
fillInDate
)
{
this
.
fillInDate
=
fillInDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column red_letter_info_table.sales_tax_number
...
...
@@ -631,10 +666,11 @@ public class RedLetterInfoTable extends BaseEntity implements Serializable {
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", subjectNum="
).
append
(
subjectNum
);
sb
.
append
(
", subjectName="
).
append
(
subjectName
);
sb
.
append
(
", redLetterInvoiceInfoTableNum="
).
append
(
redLetterInvoiceInfoTableNum
);
sb
.
append
(
", fillInDate="
).
append
(
fillInDate
);
sb
.
append
(
", salesTaxNumber="
).
append
(
salesTaxNumber
);
sb
.
append
(
", salespersonName="
).
append
(
salespersonName
);
sb
.
append
(
", totalAmount="
).
append
(
totalAmount
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/RedLetterInfoTableExample.java
View file @
6a230bcd
...
...
@@ -396,6 +396,126 @@ public class RedLetterInfoTableExample {
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNull
()
{
addCriterion
(
"tms_period is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNotNull
()
{
addCriterion
(
"tms_period is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period ="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <>"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThan
(
Integer
value
)
{
addCriterion
(
"tms_period >"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period >="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThan
(
Integer
value
)
{
addCriterion
(
"tms_period <"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period not in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period not between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIsNull
()
{
addCriterion
(
"fill_in_date is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIsNotNull
()
{
addCriterion
(
"fill_in_date is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date ="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date <>"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThan
(
Integer
value
)
{
addCriterion
(
"fill_in_date >"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date >="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThan
(
Integer
value
)
{
addCriterion
(
"fill_in_date <"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date <="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"fill_in_date in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"fill_in_date not in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"fill_in_date between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"fill_in_date not between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSubjectNumIsNull
()
{
addCriterion
(
"subject_num is null"
);
return
(
Criteria
)
this
;
...
...
@@ -606,66 +726,6 @@ public class RedLetterInfoTableExample {
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIsNull
()
{
addCriterion
(
"fill_in_date is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIsNotNull
()
{
addCriterion
(
"fill_in_date is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date ="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date <>"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThan
(
Integer
value
)
{
addCriterion
(
"fill_in_date >"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date >="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThan
(
Integer
value
)
{
addCriterion
(
"fill_in_date <"
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"fill_in_date <="
,
value
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"fill_in_date in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"fill_in_date not in"
,
values
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"fill_in_date between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFillInDateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"fill_in_date not between"
,
value1
,
value2
,
"fillInDate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSalesTaxNumberIsNull
()
{
addCriterion
(
"sales_tax_number is null"
);
return
(
Criteria
)
this
;
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/AdjustmentTableMapper.xml
View file @
6a230bcd
...
...
@@ -35,6 +35,7 @@
<result
column=
"end_bal_beq"
jdbcType=
"DECIMAL"
property=
"endBalBeq"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -111,7 +112,7 @@
segment5, segment6, segment7, segment8, segment9, segment10, segment1_name, segment2_name,
segment3_name, segment4_name, segment5_name, segment6_name, segment7_name, segment8_name,
segment9_name, segment10_name, period_dr_beq, period_cr_beq, end_bal_beq, create_time,
update_time
update_time
, tms_period
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.AdjustmentTableExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -173,7 +174,8 @@
segment5_name, segment6_name, segment7_name,
segment8_name, segment9_name, segment10_name,
period_dr_beq, period_cr_beq, end_bal_beq,
create_time, update_time)
create_time, update_time, tms_period
)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{period,jdbcType=INTEGER}, #{segment1,jdbcType=VARCHAR}, #{segment2,jdbcType=VARCHAR},
#{segment3,jdbcType=VARCHAR}, #{segment4,jdbcType=VARCHAR}, #{segment5,jdbcType=VARCHAR},
...
...
@@ -183,7 +185,8 @@
#{segment5Name,jdbcType=VARCHAR}, #{segment6Name,jdbcType=VARCHAR}, #{segment7Name,jdbcType=VARCHAR},
#{segment8Name,jdbcType=VARCHAR}, #{segment9Name,jdbcType=VARCHAR}, #{segment10Name,jdbcType=VARCHAR},
#{periodDrBeq,jdbcType=DECIMAL}, #{periodCrBeq,jdbcType=DECIMAL}, #{endBalBeq,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{tmsPeriod,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.AdjustmentTable"
>
<!--
...
...
@@ -279,6 +282,9 @@
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"tmsPeriod != null"
>
tms_period,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -368,6 +374,9 @@
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"tmsPeriod != null"
>
#{tmsPeriod,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.AdjustmentTableExample"
resultType=
"java.lang.Long"
>
...
...
@@ -474,6 +483,9 @@
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.tmsPeriod != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -513,7 +525,8 @@
period_cr_beq = #{record.periodCrBeq,jdbcType=DECIMAL},
end_bal_beq = #{record.endBalBeq,jdbcType=DECIMAL},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -609,6 +622,9 @@
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"tmsPeriod != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
...
...
@@ -645,7 +661,8 @@
period_cr_beq = #{periodCrBeq,jdbcType=DECIMAL},
end_bal_beq = #{endBalBeq,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP},
tms_period = #{tmsPeriod,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.AdjustmentTableExample"
resultMap=
"BaseResultMap"
>
...
...
@@ -668,7 +685,7 @@
</select>
<select
id
=
"selectBeforeAdjustData"
parameterType=
"java.util.Map"
resultType=
"pwc.taxtech.atms.vat.entity.AdjustmentTable"
>
<select
id=
"selectBeforeAdjustData"
parameterType=
"java.util.Map"
resultType=
"pwc.taxtech.atms.vat.entity.AdjustmentTable"
>
SELECT
max(CASE #{period}
WHEN 0 THEN
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/CashFlowMapper.xml
View file @
6a230bcd
...
...
@@ -8,6 +8,7 @@
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"date"
jdbcType=
"TIMESTAMP"
property=
"date"
/>
<result
column=
"source"
jdbcType=
"VARCHAR"
property=
"source"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
...
...
@@ -98,9 +99,9 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, organization_id,
`date`, `source`, tms_period, period, `status`, ledger_id, ledger_name
,
ledger_
currency_code, entity_code, entity_name, category, frequency, item_name, item_name2
,
period_amt, ytd_amt, create_time, update_time
id, organization_id,
project_id, `date`, `source`, tms_period, period, `status`
,
ledger_
id, ledger_name, ledger_currency_code, entity_code, entity_name, category
,
frequency, item_name, item_name2,
period_amt, ytd_amt, create_time, update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -153,20 +154,22 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into cash_flow (id, organization_id, `date`,
`source`, tms_period, period,
`status`, ledger_id, ledger_name,
ledger_currency_code, entity_code, entity_name,
category, frequency, item_name,
item_name2, period_amt, ytd_amt,
create_time, update_time)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{date,jdbcType=TIMESTAMP},
#{source,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER}, #{period,jdbcType=INTEGER},
#{status,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR}, #{ledgerName,jdbcType=VARCHAR},
#{ledgerCurrencyCode,jdbcType=VARCHAR}, #{entityCode,jdbcType=VARCHAR}, #{entityName,jdbcType=VARCHAR},
#{category,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR}, #{itemName,jdbcType=VARCHAR},
#{itemName2,jdbcType=VARCHAR}, #{periodAmt,jdbcType=DECIMAL}, #{ytdAmt,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
insert into cash_flow (id, organization_id, project_id,
`date`, `source`, tms_period,
period, `status`, ledger_id,
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, item_name2, period_amt,
ytd_amt, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER},
#{period,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR},
#{ledgerName,jdbcType=VARCHAR}, #{ledgerCurrencyCode,jdbcType=VARCHAR}, #{entityCode,jdbcType=VARCHAR},
#{entityName,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
#{itemName,jdbcType=VARCHAR}, #{itemName2,jdbcType=VARCHAR}, #{periodAmt,jdbcType=DECIMAL},
#{ytdAmt,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
<!--
...
...
@@ -181,6 +184,9 @@
<if
test=
"organizationId != null"
>
organization_id,
</if>
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"date != null"
>
`date`,
</if>
...
...
@@ -243,6 +249,9 @@
<if
test=
"organizationId != null"
>
#{organizationId,jdbcType=VARCHAR},
</if>
<if
test=
"projectId != null"
>
#{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"date != null"
>
#{date,jdbcType=TIMESTAMP},
</if>
...
...
@@ -322,6 +331,9 @@
<if
test=
"record.organizationId != null"
>
organization_id = #{record.organizationId,jdbcType=VARCHAR},
</if>
<if
test=
"record.projectId != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if
test=
"record.date != null"
>
`date` = #{record.date,jdbcType=TIMESTAMP},
</if>
...
...
@@ -389,6 +401,7 @@
update cash_flow
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
...
...
@@ -421,6 +434,9 @@
<if
test=
"organizationId != null"
>
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
<if
test=
"projectId != null"
>
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"date != null"
>
`date` = #{date,jdbcType=TIMESTAMP},
</if>
...
...
@@ -485,6 +501,7 @@
-->
update cash_flow
set organization_id = #{organizationId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/RedLetterInfoTableMapper.xml
View file @
6a230bcd
...
...
@@ -9,10 +9,11 @@
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"fill_in_date"
jdbcType=
"INTEGER"
property=
"fillInDate"
/>
<result
column=
"subject_num"
jdbcType=
"VARCHAR"
property=
"subjectNum"
/>
<result
column=
"subject_name"
jdbcType=
"VARCHAR"
property=
"subjectName"
/>
<result
column=
"red_letter_invoice_info_table_num"
jdbcType=
"VARCHAR"
property=
"redLetterInvoiceInfoTableNum"
/>
<result
column=
"fill_in_date"
jdbcType=
"INTEGER"
property=
"fillInDate"
/>
<result
column=
"sales_tax_number"
jdbcType=
"VARCHAR"
property=
"salesTaxNumber"
/>
<result
column=
"salesperson_name"
jdbcType=
"VARCHAR"
property=
"salespersonName"
/>
<result
column=
"total_amount"
jdbcType=
"DECIMAL"
property=
"totalAmount"
/>
...
...
@@ -95,10 +96,10 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, organization_id, project_id,
subject_num, subject_name, red_letter_invoice_info_table_num
,
fill_in_date, sales_tax_number, salesperson_name, total_amount, total_tax
_amount,
application_description, applicant_manager, invoice_code, invoice_number, create_time
,
update_time
id, organization_id, project_id,
tms_period, fill_in_date, subject_num, subject_name
,
red_letter_invoice_info_table_num, sales_tax_number, salesperson_name, total
_amount,
total_tax_amount, application_description, applicant_manager, invoice_code, invoice_number
,
create_time,
update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.RedLetterInfoTableExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -152,15 +153,17 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into red_letter_info_table (id, organization_id, project_id,
subject_num, subject_name, red_letter_invoice_info_table_num,
fill_in_date, sales_tax_number, salesperson_name,
total_amount, total_tax_amount, application_description,
tms_period, fill_in_date, subject_num,
subject_name, red_letter_invoice_info_table_num,
sales_tax_number, salesperson_name, total_amount,
total_tax_amount, application_description,
applicant_manager, invoice_code, invoice_number,
create_time, update_time)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{subjectNum,jdbcType=VARCHAR}, #{subjectName,jdbcType=VARCHAR}, #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
#{fillInDate,jdbcType=INTEGER}, #{salesTaxNumber,jdbcType=VARCHAR}, #{salespersonName,jdbcType=VARCHAR},
#{totalAmount,jdbcType=DECIMAL}, #{totalTaxAmount,jdbcType=DECIMAL}, #{applicationDescription,jdbcType=VARCHAR},
#{tmsPeriod,jdbcType=INTEGER}, #{fillInDate,jdbcType=INTEGER}, #{subjectNum,jdbcType=VARCHAR},
#{subjectName,jdbcType=VARCHAR}, #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
#{salesTaxNumber,jdbcType=VARCHAR}, #{salespersonName,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{totalTaxAmount,jdbcType=DECIMAL}, #{applicationDescription,jdbcType=VARCHAR},
#{applicantManager,jdbcType=VARCHAR}, #{invoiceCode,jdbcType=VARCHAR}, #{invoiceNumber,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
...
...
@@ -180,6 +183,12 @@
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"tmsPeriod != null"
>
tms_period,
</if>
<if
test=
"fillInDate != null"
>
fill_in_date,
</if>
<if
test=
"subjectNum != null"
>
subject_num,
</if>
...
...
@@ -189,9 +198,6 @@
<if
test=
"redLetterInvoiceInfoTableNum != null"
>
red_letter_invoice_info_table_num,
</if>
<if
test=
"fillInDate != null"
>
fill_in_date,
</if>
<if
test=
"salesTaxNumber != null"
>
sales_tax_number,
</if>
...
...
@@ -233,6 +239,12 @@
<if
test=
"projectId != null"
>
#{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
#{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"fillInDate != null"
>
#{fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"subjectNum != null"
>
#{subjectNum,jdbcType=VARCHAR},
</if>
...
...
@@ -242,9 +254,6 @@
<if
test=
"redLetterInvoiceInfoTableNum != null"
>
#{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
</if>
<if
test=
"fillInDate != null"
>
#{fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"salesTaxNumber != null"
>
#{salesTaxNumber,jdbcType=VARCHAR},
</if>
...
...
@@ -303,6 +312,12 @@
<if
test=
"record.projectId != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if
test=
"record.tmsPeriod != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.fillInDate != null"
>
fill_in_date = #{record.fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"record.subjectNum != null"
>
subject_num = #{record.subjectNum,jdbcType=VARCHAR},
</if>
...
...
@@ -312,9 +327,6 @@
<if
test=
"record.redLetterInvoiceInfoTableNum != null"
>
red_letter_invoice_info_table_num = #{record.redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
</if>
<if
test=
"record.fillInDate != null"
>
fill_in_date = #{record.fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"record.salesTaxNumber != null"
>
sales_tax_number = #{record.salesTaxNumber,jdbcType=VARCHAR},
</if>
...
...
@@ -359,10 +371,11 @@
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
fill_in_date = #{record.fillInDate,jdbcType=INTEGER},
subject_num = #{record.subjectNum,jdbcType=VARCHAR},
subject_name = #{record.subjectName,jdbcType=VARCHAR},
red_letter_invoice_info_table_num = #{record.redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
fill_in_date = #{record.fillInDate,jdbcType=INTEGER},
sales_tax_number = #{record.salesTaxNumber,jdbcType=VARCHAR},
salesperson_name = #{record.salespersonName,jdbcType=VARCHAR},
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
...
...
@@ -390,6 +403,12 @@
<if
test=
"projectId != null"
>
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"fillInDate != null"
>
fill_in_date = #{fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"subjectNum != null"
>
subject_num = #{subjectNum,jdbcType=VARCHAR},
</if>
...
...
@@ -399,9 +418,6 @@
<if
test=
"redLetterInvoiceInfoTableNum != null"
>
red_letter_invoice_info_table_num = #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
</if>
<if
test=
"fillInDate != null"
>
fill_in_date = #{fillInDate,jdbcType=INTEGER},
</if>
<if
test=
"salesTaxNumber != null"
>
sales_tax_number = #{salesTaxNumber,jdbcType=VARCHAR},
</if>
...
...
@@ -443,10 +459,11 @@
update red_letter_info_table
set organization_id = #{organizationId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
fill_in_date = #{fillInDate,jdbcType=INTEGER},
subject_num = #{subjectNum,jdbcType=VARCHAR},
subject_name = #{subjectName,jdbcType=VARCHAR},
red_letter_invoice_info_table_num = #{redLetterInvoiceInfoTableNum,jdbcType=VARCHAR},
fill_in_date = #{fillInDate,jdbcType=INTEGER},
sales_tax_number = #{salesTaxNumber,jdbcType=VARCHAR},
salesperson_name = #{salespersonName,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
...
...
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