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
e119ec9e
Commit
e119ec9e
authored
Jun 30, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
5e804a21
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
181 additions
and
309 deletions
+181
-309
InputInvoiceMapper.java
...rc/main/java/pwc/taxtech/atms/dao/InputInvoiceMapper.java
+0
-32
InputInvoice.java
.../src/main/java/pwc/taxtech/atms/entitiy/InputInvoice.java
+40
-40
InputInvoiceExample.java
...in/java/pwc/taxtech/atms/entitiy/InputInvoiceExample.java
+92
-32
InputInvoiceMapper.xml
...ain/resources/pwc/taxtech/atms/dao/InputInvoiceMapper.xml
+41
-199
sqlMapConfig.xml
atms-api/src/main/resources/sqlMapConfig.xml
+6
-6
generatorConfig.xml
atms-api/src/test/resources/generatorConfig.xml
+2
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dao/InputInvoiceMapper.java
View file @
e119ec9e
...
...
@@ -50,22 +50,6 @@ public interface InputInvoiceMapper extends MyMapper {
*/
int
insertSelective
(
InputInvoice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
List
<
InputInvoice
>
selectByExampleWithBLOBsWithRowbounds
(
InputInvoiceExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
List
<
InputInvoice
>
selectByExampleWithBLOBs
(
InputInvoiceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
...
...
@@ -98,14 +82,6 @@ public interface InputInvoiceMapper extends MyMapper {
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
InputInvoice
record
,
@Param
(
"example"
)
InputInvoiceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
InputInvoice
record
,
@Param
(
"example"
)
InputInvoiceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
...
...
@@ -122,14 +98,6 @@ public interface InputInvoiceMapper extends MyMapper {
*/
int
updateByPrimaryKeySelective
(
InputInvoice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
InputInvoice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
...
...
atms-api/src/main/java/pwc/taxtech/atms/entitiy/InputInvoice.java
View file @
e119ec9e
...
...
@@ -30,7 +30,7 @@ public class InputInvoice extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
private
Stri
ng
invoiceFileId
;
private
Lo
ng
invoiceFileId
;
/**
* Database Column Remarks:
...
...
@@ -340,6 +340,17 @@ public class InputInvoice extends BaseEntity implements Serializable {
*/
private
Integer
status
;
/**
* Database Column Remarks:
* 备注
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.remark
*
* @mbg.generated
*/
private
String
remark
;
/**
* Database Column Remarks:
* 抵扣区间
...
...
@@ -433,17 +444,6 @@ public class InputInvoice extends BaseEntity implements Serializable {
*/
private
Boolean
isRedInvoice
;
/**
* Database Column Remarks:
* 备注
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.remark
*
* @mbg.generated
*/
private
String
remark
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table input_invoice
...
...
@@ -484,7 +484,7 @@ public class InputInvoice extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
public
Stri
ng
getInvoiceFileId
()
{
public
Lo
ng
getInvoiceFileId
()
{
return
invoiceFileId
;
}
...
...
@@ -496,8 +496,8 @@ public class InputInvoice extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
public
void
setInvoiceFileId
(
Stri
ng
invoiceFileId
)
{
this
.
invoiceFileId
=
invoiceFileId
==
null
?
null
:
invoiceFileId
.
trim
()
;
public
void
setInvoiceFileId
(
Lo
ng
invoiceFileId
)
{
this
.
invoiceFileId
=
invoiceFileId
;
}
/**
...
...
@@ -1172,6 +1172,30 @@ public class InputInvoice extends BaseEntity implements Serializable {
this
.
status
=
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.remark
*
* @return the value of input_invoice.remark
*
* @mbg.generated
*/
public
String
getRemark
()
{
return
remark
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.remark
*
* @param remark the value for input_invoice.remark
*
* @mbg.generated
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.deductible_period
...
...
@@ -1388,30 +1412,6 @@ public class InputInvoice extends BaseEntity implements Serializable {
this
.
isRedInvoice
=
isRedInvoice
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.remark
*
* @return the value of input_invoice.remark
*
* @mbg.generated
*/
public
String
getRemark
()
{
return
remark
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.remark
*
* @param remark the value for input_invoice.remark
*
* @mbg.generated
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
...
...
@@ -1454,6 +1454,7 @@ public class InputInvoice extends BaseEntity implements Serializable {
sb
.
append
(
", staffId="
).
append
(
staffId
);
sb
.
append
(
", orderIdentifier="
).
append
(
orderIdentifier
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", remark="
).
append
(
remark
);
sb
.
append
(
", deductiblePeriod="
).
append
(
deductiblePeriod
);
sb
.
append
(
", deductibleDate="
).
append
(
deductibleDate
);
sb
.
append
(
", deductible="
).
append
(
deductible
);
...
...
@@ -1463,7 +1464,6 @@ public class InputInvoice extends BaseEntity implements Serializable {
sb
.
append
(
", serialNo="
).
append
(
serialNo
);
sb
.
append
(
", deductibleResult="
).
append
(
deductibleResult
);
sb
.
append
(
", isRedInvoice="
).
append
(
isRedInvoice
);
sb
.
append
(
", remark="
).
append
(
remark
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/entitiy/InputInvoiceExample.java
View file @
e119ec9e
...
...
@@ -266,62 +266,52 @@ public class InputInvoiceExample {
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdEqualTo
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id ="
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdNotEqualTo
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdNotEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id <>"
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdGreaterThan
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdGreaterThan
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id >"
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdGreaterThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id >="
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdLessThan
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdLessThan
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id <"
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdLessThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
andInvoiceFileIdLessThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"invoice_file_id <="
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdLike
(
String
value
)
{
addCriterion
(
"invoice_file_id like"
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdNotLike
(
String
value
)
{
addCriterion
(
"invoice_file_id not like"
,
value
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdIn
(
List
<
String
>
values
)
{
public
Criteria
andInvoiceFileIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"invoice_file_id in"
,
values
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdNotIn
(
List
<
Stri
ng
>
values
)
{
public
Criteria
andInvoiceFileIdNotIn
(
List
<
Lo
ng
>
values
)
{
addCriterion
(
"invoice_file_id not in"
,
values
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
andInvoiceFileIdBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"invoice_file_id between"
,
value1
,
value2
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andInvoiceFileIdNotBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
andInvoiceFileIdNotBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"invoice_file_id not between"
,
value1
,
value2
,
"invoiceFileId"
);
return
(
Criteria
)
this
;
}
...
...
@@ -2127,62 +2117,132 @@ public class InputInvoiceExample {
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"
status
is null"
);
addCriterion
(
"
`status`
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNotNull
()
{
addCriterion
(
"
status
is not null"
);
addCriterion
(
"
`status`
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusEqualTo
(
Integer
value
)
{
addCriterion
(
"
status
="
,
value
,
"status"
);
addCriterion
(
"
`status`
="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotEqualTo
(
Integer
value
)
{
addCriterion
(
"
status
<>"
,
value
,
"status"
);
addCriterion
(
"
`status`
<>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThan
(
Integer
value
)
{
addCriterion
(
"
status
>"
,
value
,
"status"
);
addCriterion
(
"
`status`
>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"
status
>="
,
value
,
"status"
);
addCriterion
(
"
`status`
>="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThan
(
Integer
value
)
{
addCriterion
(
"
status
<"
,
value
,
"status"
);
addCriterion
(
"
`status`
<"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"
status
<="
,
value
,
"status"
);
addCriterion
(
"
`status`
<="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"
status
in"
,
values
,
"status"
);
addCriterion
(
"
`status`
in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"
status
not in"
,
values
,
"status"
);
addCriterion
(
"
`status`
not in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"
status
between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"
`status`
between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"status not between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"`status` not between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIsNull
()
{
addCriterion
(
"remark is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIsNotNull
()
{
addCriterion
(
"remark is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkEqualTo
(
String
value
)
{
addCriterion
(
"remark ="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotEqualTo
(
String
value
)
{
addCriterion
(
"remark <>"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkGreaterThan
(
String
value
)
{
addCriterion
(
"remark >"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"remark >="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLessThan
(
String
value
)
{
addCriterion
(
"remark <"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"remark <="
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkLike
(
String
value
)
{
addCriterion
(
"remark like"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotLike
(
String
value
)
{
addCriterion
(
"remark not like"
,
value
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIn
(
List
<
String
>
values
)
{
addCriterion
(
"remark in"
,
values
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"remark not in"
,
values
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"remark between"
,
value1
,
value2
,
"remark"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"remark not between"
,
value1
,
value2
,
"remark"
);
return
(
Criteria
)
this
;
}
...
...
atms-api/src/main/resources/pwc/taxtech/atms/dao/InputInvoiceMapper.xml
View file @
e119ec9e
...
...
@@ -7,7 +7,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"invoice_file_id"
jdbcType=
"
VARCHAR
"
property=
"invoiceFileId"
/>
<result
column=
"invoice_file_id"
jdbcType=
"
BIGINT
"
property=
"invoiceFileId"
/>
<result
column=
"invoice_code"
jdbcType=
"VARCHAR"
property=
"invoiceCode"
/>
<result
column=
"invoice_number"
jdbcType=
"VARCHAR"
property=
"invoiceNumber"
/>
<result
column=
"invoice_date"
jdbcType=
"TIMESTAMP"
property=
"invoiceDate"
/>
...
...
@@ -36,6 +36,7 @@
<result
column=
"staff_id"
jdbcType=
"VARCHAR"
property=
"staffId"
/>
<result
column=
"order_identifier"
jdbcType=
"VARCHAR"
property=
"orderIdentifier"
/>
<result
column=
"status"
jdbcType=
"SMALLINT"
property=
"status"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
...
...
@@ -50,13 +51,6 @@
<result
column=
"deductible_result"
jdbcType=
"SMALLINT"
property=
"deductibleResult"
/>
<result
column=
"is_red_invoice"
jdbcType=
"SMALLINT"
property=
"isRedInvoice"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.entitiy.InputInvoice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"remark"
jdbcType=
"LONGVARCHAR"
property=
"remark"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
...
...
@@ -133,37 +127,10 @@
seller_tax_number, seller_name, seller_address, seller_phone, seller_bank_name, seller_bank_account_number,
amount, tax_amount, total_price_uppercase, total_price_lowercase, invoice_type, upload_type,
upload_date, invoice_entity_type, invoice_source_type, staff_id, order_identifier,
status, create_by, update_by, create_time, update_time, deductible_period, deductible_date
,
deductible, check_code, has_down_file, verify_type, serial_no, deductible_result,
`status`, remark, create_by, update_by, create_time, update_time, deductible_period
,
deductible
_date, deductible
, check_code, has_down_file, verify_type, serial_no, deductible_result,
is_red_invoice
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
remark
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoiceExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from input_invoice
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoiceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
...
...
@@ -182,15 +149,13 @@
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"
ResultMapWithBLOBs
"
>
<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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from input_invoice
where id = #{id,jdbcType=BIGINT}
</select>
...
...
@@ -226,13 +191,13 @@
amount, tax_amount, total_price_uppercase,
total_price_lowercase, invoice_type, upload_type,
upload_date, invoice_entity_type, invoice_source_type,
staff_id, order_identifier,
status
,
create_by, update_by, create_time
,
update_time, deductible_period, deductible_date
,
deductible
, check_code, has_down_fil
e,
verify_type, serial_no, deductible_result
,
is_red_invoice, remark
)
values (#{id,jdbcType=BIGINT}, #{invoiceFileId,jdbcType=
VARCHAR
}, #{invoiceCode,jdbcType=VARCHAR},
staff_id, order_identifier,
`status`
,
remark, create_by, update_by
,
create_time, update_time, deductible_period
,
deductible
_date, deductible, check_cod
e,
has_down_file, verify_type, serial_no
,
deductible_result, is_red_invoice
)
values (#{id,jdbcType=BIGINT}, #{invoiceFileId,jdbcType=
BIGINT
}, #{invoiceCode,jdbcType=VARCHAR},
#{invoiceNumber,jdbcType=VARCHAR}, #{invoiceDate,jdbcType=TIMESTAMP}, #{invoiceName,jdbcType=VARCHAR},
#{buyerTaxNumber,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerAddress,jdbcType=VARCHAR},
#{buyerPhone,jdbcType=VARCHAR}, #{buyerBankName,jdbcType=VARCHAR}, #{buyerBankAccountNumber,jdbcType=VARCHAR},
...
...
@@ -242,11 +207,11 @@
#{totalPriceLowercase,jdbcType=DECIMAL}, #{invoiceType,jdbcType=SMALLINT}, #{uploadType,jdbcType=SMALLINT},
#{uploadDate,jdbcType=TIMESTAMP}, #{invoiceEntityType,jdbcType=SMALLINT}, #{invoiceSourceType,jdbcType=SMALLINT},
#{staffId,jdbcType=VARCHAR}, #{orderIdentifier,jdbcType=VARCHAR}, #{status,jdbcType=SMALLINT},
#{
createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP
},
#{
updateTime,jdbcType=TIMESTAMP}, #{deductiblePeriod,jdbcType=VARCHAR}, #{deductibleDate,jdbcType=TIMESTAMP
},
#{deductible
,jdbcType=SMALLINT}, #{checkCode,jdbcType=VARCHAR}, #{hasDownFile,jdbcType=TINYINT
},
#{
verifyType,jdbcType=SMALLINT}, #{serialNo,jdbcType=VARCHAR}, #{deductibleResult,jdbcType=SMALLINT
},
#{
isRedInvoice,jdbcType=SMALLINT}, #{remark,jdbcType=LONGVARCHAR
})
#{
remark,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR
},
#{
createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deductiblePeriod,jdbcType=VARCHAR
},
#{deductible
Date,jdbcType=TIMESTAMP}, #{deductible,jdbcType=SMALLINT}, #{checkCode,jdbcType=VARCHAR
},
#{
hasDownFile,jdbcType=TINYINT}, #{verifyType,jdbcType=SMALLINT}, #{serialNo,jdbcType=VARCHAR
},
#{
deductibleResult,jdbcType=SMALLINT}, #{isRedInvoice,jdbcType=SMALLINT
})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoice"
>
<!--
...
...
@@ -343,7 +308,10 @@
order_identifier,
</if>
<if
test=
"status != null"
>
status,
`status`,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"createBy != null"
>
create_by,
...
...
@@ -384,16 +352,13 @@
<if
test=
"isRedInvoice != null"
>
is_red_invoice,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"invoiceFileId != null"
>
#{invoiceFileId,jdbcType=
VARCHAR
},
#{invoiceFileId,jdbcType=
BIGINT
},
</if>
<if
test=
"invoiceCode != null"
>
#{invoiceCode,jdbcType=VARCHAR},
...
...
@@ -479,6 +444,9 @@
<if
test=
"status != null"
>
#{status,jdbcType=SMALLINT},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
#{createBy,jdbcType=VARCHAR},
</if>
...
...
@@ -518,9 +486,6 @@
<if
test=
"isRedInvoice != null"
>
#{isRedInvoice,jdbcType=SMALLINT},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoiceExample"
resultType=
"java.lang.Long"
>
...
...
@@ -544,7 +509,7 @@
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.invoiceFileId != null"
>
invoice_file_id = #{record.invoiceFileId,jdbcType=
VARCHAR
},
invoice_file_id = #{record.invoiceFileId,jdbcType=
BIGINT
},
</if>
<if
test=
"record.invoiceCode != null"
>
invoice_code = #{record.invoiceCode,jdbcType=VARCHAR},
...
...
@@ -628,7 +593,10 @@
order_identifier = #{record.orderIdentifier,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=SMALLINT},
`status` = #{record.status,jdbcType=SMALLINT},
</if>
<if
test=
"record.remark != null"
>
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if
test=
"record.createBy != null"
>
create_by = #{record.createBy,jdbcType=VARCHAR},
...
...
@@ -669,68 +637,11 @@
<if
test=
"record.isRedInvoice != null"
>
is_red_invoice = #{record.isRedInvoice,jdbcType=SMALLINT},
</if>
<if
test=
"record.remark != null"
>
remark = #{record.remark,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_invoice
set id = #{record.id,jdbcType=BIGINT},
invoice_file_id = #{record.invoiceFileId,jdbcType=VARCHAR},
invoice_code = #{record.invoiceCode,jdbcType=VARCHAR},
invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
invoice_date = #{record.invoiceDate,jdbcType=TIMESTAMP},
invoice_name = #{record.invoiceName,jdbcType=VARCHAR},
buyer_tax_number = #{record.buyerTaxNumber,jdbcType=VARCHAR},
buyer_name = #{record.buyerName,jdbcType=VARCHAR},
buyer_address = #{record.buyerAddress,jdbcType=VARCHAR},
buyer_phone = #{record.buyerPhone,jdbcType=VARCHAR},
buyer_bank_name = #{record.buyerBankName,jdbcType=VARCHAR},
buyer_bank_account_number = #{record.buyerBankAccountNumber,jdbcType=VARCHAR},
seller_tax_number = #{record.sellerTaxNumber,jdbcType=VARCHAR},
seller_name = #{record.sellerName,jdbcType=VARCHAR},
seller_address = #{record.sellerAddress,jdbcType=VARCHAR},
seller_phone = #{record.sellerPhone,jdbcType=VARCHAR},
seller_bank_name = #{record.sellerBankName,jdbcType=VARCHAR},
seller_bank_account_number = #{record.sellerBankAccountNumber,jdbcType=VARCHAR},
amount = #{record.amount,jdbcType=DECIMAL},
tax_amount = #{record.taxAmount,jdbcType=DECIMAL},
total_price_uppercase = #{record.totalPriceUppercase,jdbcType=VARCHAR},
total_price_lowercase = #{record.totalPriceLowercase,jdbcType=DECIMAL},
invoice_type = #{record.invoiceType,jdbcType=SMALLINT},
upload_type = #{record.uploadType,jdbcType=SMALLINT},
upload_date = #{record.uploadDate,jdbcType=TIMESTAMP},
invoice_entity_type = #{record.invoiceEntityType,jdbcType=SMALLINT},
invoice_source_type = #{record.invoiceSourceType,jdbcType=SMALLINT},
staff_id = #{record.staffId,jdbcType=VARCHAR},
order_identifier = #{record.orderIdentifier,jdbcType=VARCHAR},
status = #{record.status,jdbcType=SMALLINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deductible_period = #{record.deductiblePeriod,jdbcType=VARCHAR},
deductible_date = #{record.deductibleDate,jdbcType=TIMESTAMP},
deductible = #{record.deductible,jdbcType=SMALLINT},
check_code = #{record.checkCode,jdbcType=VARCHAR},
has_down_file = #{record.hasDownFile,jdbcType=TINYINT},
verify_type = #{record.verifyType,jdbcType=SMALLINT},
serial_no = #{record.serialNo,jdbcType=VARCHAR},
deductible_result = #{record.deductibleResult,jdbcType=SMALLINT},
is_red_invoice = #{record.isRedInvoice,jdbcType=SMALLINT},
remark = #{record.remark,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
...
...
@@ -738,7 +649,7 @@
-->
update input_invoice
set id = #{record.id,jdbcType=BIGINT},
invoice_file_id = #{record.invoiceFileId,jdbcType=
VARCHAR
},
invoice_file_id = #{record.invoiceFileId,jdbcType=
BIGINT
},
invoice_code = #{record.invoiceCode,jdbcType=VARCHAR},
invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
invoice_date = #{record.invoiceDate,jdbcType=TIMESTAMP},
...
...
@@ -766,7 +677,8 @@
invoice_source_type = #{record.invoiceSourceType,jdbcType=SMALLINT},
staff_id = #{record.staffId,jdbcType=VARCHAR},
order_identifier = #{record.orderIdentifier,jdbcType=VARCHAR},
status = #{record.status,jdbcType=SMALLINT},
`status` = #{record.status,jdbcType=SMALLINT},
remark = #{record.remark,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
...
...
@@ -792,7 +704,7 @@
update input_invoice
<set>
<if
test=
"invoiceFileId != null"
>
invoice_file_id = #{invoiceFileId,jdbcType=
VARCHAR
},
invoice_file_id = #{invoiceFileId,jdbcType=
BIGINT
},
</if>
<if
test=
"invoiceCode != null"
>
invoice_code = #{invoiceCode,jdbcType=VARCHAR},
...
...
@@ -876,7 +788,10 @@
order_identifier = #{orderIdentifier,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=SMALLINT},
`status` = #{status,jdbcType=SMALLINT},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy,jdbcType=VARCHAR},
...
...
@@ -917,70 +832,16 @@
<if
test=
"isRedInvoice != null"
>
is_red_invoice = #{isRedInvoice,jdbcType=SMALLINT},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_invoice
set invoice_file_id = #{invoiceFileId,jdbcType=VARCHAR},
invoice_code = #{invoiceCode,jdbcType=VARCHAR},
invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
invoice_name = #{invoiceName,jdbcType=VARCHAR},
buyer_tax_number = #{buyerTaxNumber,jdbcType=VARCHAR},
buyer_name = #{buyerName,jdbcType=VARCHAR},
buyer_address = #{buyerAddress,jdbcType=VARCHAR},
buyer_phone = #{buyerPhone,jdbcType=VARCHAR},
buyer_bank_name = #{buyerBankName,jdbcType=VARCHAR},
buyer_bank_account_number = #{buyerBankAccountNumber,jdbcType=VARCHAR},
seller_tax_number = #{sellerTaxNumber,jdbcType=VARCHAR},
seller_name = #{sellerName,jdbcType=VARCHAR},
seller_address = #{sellerAddress,jdbcType=VARCHAR},
seller_phone = #{sellerPhone,jdbcType=VARCHAR},
seller_bank_name = #{sellerBankName,jdbcType=VARCHAR},
seller_bank_account_number = #{sellerBankAccountNumber,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
tax_amount = #{taxAmount,jdbcType=DECIMAL},
total_price_uppercase = #{totalPriceUppercase,jdbcType=VARCHAR},
total_price_lowercase = #{totalPriceLowercase,jdbcType=DECIMAL},
invoice_type = #{invoiceType,jdbcType=SMALLINT},
upload_type = #{uploadType,jdbcType=SMALLINT},
upload_date = #{uploadDate,jdbcType=TIMESTAMP},
invoice_entity_type = #{invoiceEntityType,jdbcType=SMALLINT},
invoice_source_type = #{invoiceSourceType,jdbcType=SMALLINT},
staff_id = #{staffId,jdbcType=VARCHAR},
order_identifier = #{orderIdentifier,jdbcType=VARCHAR},
status = #{status,jdbcType=SMALLINT},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deductible_period = #{deductiblePeriod,jdbcType=VARCHAR},
deductible_date = #{deductibleDate,jdbcType=TIMESTAMP},
deductible = #{deductible,jdbcType=SMALLINT},
check_code = #{checkCode,jdbcType=VARCHAR},
has_down_file = #{hasDownFile,jdbcType=TINYINT},
verify_type = #{verifyType,jdbcType=SMALLINT},
serial_no = #{serialNo,jdbcType=VARCHAR},
deductible_result = #{deductibleResult,jdbcType=SMALLINT},
is_red_invoice = #{isRedInvoice,jdbcType=SMALLINT},
remark = #{remark,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_invoice
set invoice_file_id = #{invoiceFileId,jdbcType=
VARCHAR
},
set invoice_file_id = #{invoiceFileId,jdbcType=
BIGINT
},
invoice_code = #{invoiceCode,jdbcType=VARCHAR},
invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
...
...
@@ -1008,7 +869,8 @@
invoice_source_type = #{invoiceSourceType,jdbcType=SMALLINT},
staff_id = #{staffId,jdbcType=VARCHAR},
order_identifier = #{orderIdentifier,jdbcType=VARCHAR},
status = #{status,jdbcType=SMALLINT},
`status` = #{status,jdbcType=SMALLINT},
remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
...
@@ -1024,26 +886,6 @@
is_red_invoice = #{isRedInvoice,jdbcType=SMALLINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithBLOBsWithRowbounds"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoiceExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from input_invoice
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.entitiy.InputInvoiceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
...
...
atms-api/src/main/resources/sqlMapConfig.xml
View file @
e119ec9e
...
...
@@ -4,14 +4,14 @@
<configuration>
<!-- 全局setting配置,根据需要添加 -->
<
settings
>
<
setting
name=
"logImpl"
value=
"LOG4J"
/>
<
/settings
>
<
!--<settings>--
>
<
!--<setting name="logImpl" value="LOG4J" /> -->
<
!--</settings>--
>
<!-- 配置别名 -->
<
typeAliases
>
<
package
name=
"pwc.taxtech.atms.entitiy"
/
>
<
/typeAliases
>
<
!--<typeAliases>--
>
<
!--<package name="pwc.taxtech.atms.entitiy"/>--
>
<
!--</typeAliases>--
>
<!-- 插件 -->
<plugins>
...
...
atms-api/src/test/resources/generatorConfig.xml
View file @
e119ec9e
...
...
@@ -9,6 +9,8 @@
<context
id=
"contextId"
targetRuntime=
"MyBatis3"
>
<!-- 考虑需要兼容DB2与ORCAL数据库, 大部份字段不需要加双引号,autoDelimitKeywords设置为false -->
<property
name=
"autoDelimitKeywords"
value=
"true"
/>
<property
name=
"beginningDelimiter"
value=
"`"
/>
<property
name=
"endingDelimiter"
value=
"`"
/>
<property
name=
"javaFileEncoding"
value=
"UTF-8"
/>
<plugin
type=
"org.mybatis.generator.plugins.MapperAnnotationPlugin"
/>
<plugin
type=
"org.mybatis.generator.plugins.RowBoundsPlugin"
/>
...
...
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