Commit c36c4b45 authored by eddie.woo's avatar eddie.woo

modify

parent c930eef3
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.connectionURL=jdbc:mysql://10.157.107.89:3306/tax_admin?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
jdbc.connectionURL=jdbc:mysql://10.157.107.89:3306/tax_longi?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
jdbc.userId=root
jdbc.password=tax@Admin2018
......@@ -412,5 +412,18 @@
<property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="input_invoice" domainObjectName="InputInvoice">
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="invoice_type" javaType="java.lang.Integer"/>
<columnOverride column="upload_type" javaType="java.lang.Integer"/>
<columnOverride column="invoice_entity_type" javaType="java.lang.Integer"/>
<columnOverride column="invoice_source_type" javaType="java.lang.Integer"/>
<columnOverride column="status" javaType="java.lang.Integer"/>
<columnOverride column="deductible" javaType="java.lang.Boolean"/>
<columnOverride column="has_down_file" javaType="java.lang.Boolean"/>
<columnOverride column="verify_type" javaType="java.lang.Integer"/>
<columnOverride column="deductible_result" javaType="java.lang.Integer"/>
<columnOverride column="is_red_invoice" javaType="java.lang.Boolean"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html
cd /d %~dp0
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile generatorConfig.xml -overwrite -verbose -tables TemplateFormula
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile generatorConfig.xml -overwrite -verbose -tables input_invoice
echo @@@@@@@@@@@ DONE @@@@@@@@@@@
pause
......@@ -233,7 +233,7 @@
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
......
package pwc.taxtech.atms.common.util;
public class SnowFlake {
/**
* 起始的时间戳
*/
private final static long START_STAMP = 1529337600000L;
/**
* 每一部分占用的位数
*/
private final static long SEQUENCE_BIT = 12; //序列号占用的位数
private final static long MACHINE_BIT = 5; //机器标识占用的位数
private final static long DATA_CENTER_BIT = 5;//数据中心占用的位数
/**
* 每一部分的最大值
*/
private final static long MAX_DATA_CENTER_NUM = -1L ^ (-1L << DATA_CENTER_BIT);
private final static long MAX_MACHINE_NUM = -1L ^ (-1L << MACHINE_BIT);
private final static long MAX_SEQUENCE = -1L ^ (-1L << SEQUENCE_BIT);
/**
* 每一部分向左的位移
*/
private final static long MACHINE_LEFT = SEQUENCE_BIT;
private final static long DATA_CENTER_LEFT = SEQUENCE_BIT + MACHINE_BIT;
private final static long TIMESTAMP_LEFT = DATA_CENTER_LEFT + DATA_CENTER_BIT;
private long dataCenterId; //数据中心
private long machineId; //机器标识
private long sequence = 0L; //序列号
private long lastStamp = -1L;//上一次时间戳
public SnowFlake(long dataCenterId, long machineId) {
if (dataCenterId > MAX_DATA_CENTER_NUM || dataCenterId < 0) {
throw new IllegalArgumentException("dataCenterId can't be greater than MAX_DATA_CENTER_NUM or less than 0");
}
if (machineId > MAX_MACHINE_NUM || machineId < 0) {
throw new IllegalArgumentException("machineId can't be greater than MAX_MACHINE_NUM or less than 0");
}
this.dataCenterId = dataCenterId;
this.machineId = machineId;
}
/**
* 产生下一个ID
*
* @return id
*/
public synchronized long nextId() {
long currStamp = getNewStamp();
if (currStamp < lastStamp) {
throw new RuntimeException("Clock moved backwards. Refusing to generate id");
}
if (currStamp == lastStamp) {
//相同毫秒内,序列号自增
sequence = (sequence + 1) & MAX_SEQUENCE;
//同一毫秒的序列数已经达到最大
if (sequence == 0L) {
currStamp = getNextMill();
}
} else {
//不同毫秒内,序列号置为0
sequence = 0L;
}
lastStamp = currStamp;
return (currStamp - START_STAMP) << TIMESTAMP_LEFT //时间戳部分
| dataCenterId << DATA_CENTER_LEFT //数据中心部分
| machineId << MACHINE_LEFT //机器标识部分
| sequence; //序列号部分
}
private long getNextMill() {
long mill = getNewStamp();
while (mill <= lastStamp) {
mill = getNewStamp();
}
return mill;
}
private long getNewStamp() {
return System.currentTimeMillis();
}
public static void main(String[] args) {
SnowFlake snowFlake = new SnowFlake(1, 1);
for (int i = 0; i < (1 << 12); i++) {
System.out.println(snowFlake.nextId());
}
}
}
package pwc.taxtech.atms.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.entitiy.InputInvoice;
import pwc.taxtech.atms.entitiy.InputInvoiceExample;
@Mapper
public interface InputInvoiceMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
long countByExample(InputInvoiceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
int deleteByExample(InputInvoiceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
int insert(InputInvoice record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
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
*
* @mbg.generated
*/
List<InputInvoice> selectByExampleWithRowbounds(InputInvoiceExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
List<InputInvoice> selectByExample(InputInvoiceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
InputInvoice selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_invoice
*
* @mbg.generated
*/
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
*
* @mbg.generated
*/
int updateByExample(@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 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
*
* @mbg.generated
*/
int updateByPrimaryKey(InputInvoice record);
}
\ No newline at end of file
package pwc.taxtech.atms.entitiy;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table input_invoice
*
* @mbg.generated do_not_delete_during_merge
*/
public class InputInvoice implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 发票关联文件ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_file_id
*
* @mbg.generated
*/
private String invoiceFileId;
/**
* Database Column Remarks:
* 发票代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_code
*
* @mbg.generated
*/
private String invoiceCode;
/**
* Database Column Remarks:
* 发票号码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_number
*
* @mbg.generated
*/
private String invoiceNumber;
/**
* Database Column Remarks:
* 开票日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_date
*
* @mbg.generated
*/
private Date invoiceDate;
/**
* Database Column Remarks:
* 发票名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_name
*
* @mbg.generated
*/
private String invoiceName;
/**
* Database Column Remarks:
* 购货方税号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_tax_number
*
* @mbg.generated
*/
private String buyerTaxNumber;
/**
* Database Column Remarks:
* 购货方名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_name
*
* @mbg.generated
*/
private String buyerName;
/**
* Database Column Remarks:
* 购货方地址
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_address
*
* @mbg.generated
*/
private String buyerAddress;
/**
* Database Column Remarks:
* 购货方电话
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_phone
*
* @mbg.generated
*/
private String buyerPhone;
/**
* Database Column Remarks:
* 购货方银行名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_bank_name
*
* @mbg.generated
*/
private String buyerBankName;
/**
* Database Column Remarks:
* 购货方银行账号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.buyer_bank_account_number
*
* @mbg.generated
*/
private String buyerBankAccountNumber;
/**
* Database Column Remarks:
* 销货方税号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_tax_number
*
* @mbg.generated
*/
private String sellerTaxNumber;
/**
* Database Column Remarks:
* 销货方名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_name
*
* @mbg.generated
*/
private String sellerName;
/**
* Database Column Remarks:
* 销货方地址
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_address
*
* @mbg.generated
*/
private String sellerAddress;
/**
* Database Column Remarks:
* 销货方电话
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_phone
*
* @mbg.generated
*/
private String sellerPhone;
/**
* Database Column Remarks:
* 销货方银行名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_bank_name
*
* @mbg.generated
*/
private String sellerBankName;
/**
* Database Column Remarks:
* 销货方银行账号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.seller_bank_account_number
*
* @mbg.generated
*/
private String sellerBankAccountNumber;
/**
* Database Column Remarks:
* 金额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.amount
*
* @mbg.generated
*/
private BigDecimal amount;
/**
* Database Column Remarks:
* 税额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.tax_amount
*
* @mbg.generated
*/
private BigDecimal taxAmount;
/**
* Database Column Remarks:
* 加税合计大写
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.total_price_uppercase
*
* @mbg.generated
*/
private String totalPriceUppercase;
/**
* Database Column Remarks:
* 加税合计小写
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.total_price_lowercase
*
* @mbg.generated
*/
private BigDecimal totalPriceLowercase;
/**
* Database Column Remarks:
* 发票类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_type
*
* @mbg.generated
*/
private Integer invoiceType;
/**
* Database Column Remarks:
* 上传类别
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.upload_type
*
* @mbg.generated
*/
private Integer uploadType;
/**
* Database Column Remarks:
* 上传时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.upload_date
*
* @mbg.generated
*/
private Date uploadDate;
/**
* Database Column Remarks:
* 发票实体类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_entity_type
*
* @mbg.generated
*/
private Integer invoiceEntityType;
/**
* Database Column Remarks:
* 发票数据源类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.invoice_source_type
*
* @mbg.generated
*/
private Integer invoiceSourceType;
/**
* Database Column Remarks:
* 员工ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.staff_id
*
* @mbg.generated
*/
private String staffId;
/**
* Database Column Remarks:
* 订单号识别号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.order_identifier
*
* @mbg.generated
*/
private String orderIdentifier;
/**
* Database Column Remarks:
* 状态
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.status
*
* @mbg.generated
*/
private Integer status;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.create_by
*
* @mbg.generated
*/
private String createBy;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.update_by
*
* @mbg.generated
*/
private String updateBy;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* Database Column Remarks:
* 抵扣区间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.deductible_period
*
* @mbg.generated
*/
private String deductiblePeriod;
/**
* Database Column Remarks:
* 抵扣时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.deductible_date
*
* @mbg.generated
*/
private Date deductibleDate;
/**
* Database Column Remarks:
* 是否可抵扣
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.deductible
*
* @mbg.generated
*/
private Boolean deductible;
/**
* Database Column Remarks:
* 校验码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.check_code
*
* @mbg.generated
*/
private String checkCode;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.has_down_file
*
* @mbg.generated
*/
private Boolean hasDownFile;
/**
* Database Column Remarks:
* 校验方式
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.verify_type
*
* @mbg.generated
*/
private Integer verifyType;
/**
* Database Column Remarks:
* 序列号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.serial_no
*
* @mbg.generated
*/
private String serialNo;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.deductible_result
*
* @mbg.generated
*/
private Integer deductibleResult;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_invoice.is_red_invoice
*
* @mbg.generated
*/
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
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.id
*
* @return the value of input_invoice.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.id
*
* @param id the value for input_invoice.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_file_id
*
* @return the value of input_invoice.invoice_file_id
*
* @mbg.generated
*/
public String getInvoiceFileId() {
return invoiceFileId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_file_id
*
* @param invoiceFileId the value for input_invoice.invoice_file_id
*
* @mbg.generated
*/
public void setInvoiceFileId(String invoiceFileId) {
this.invoiceFileId = invoiceFileId == null ? null : invoiceFileId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_code
*
* @return the value of input_invoice.invoice_code
*
* @mbg.generated
*/
public String getInvoiceCode() {
return invoiceCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_code
*
* @param invoiceCode the value for input_invoice.invoice_code
*
* @mbg.generated
*/
public void setInvoiceCode(String invoiceCode) {
this.invoiceCode = invoiceCode == null ? null : invoiceCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_number
*
* @return the value of input_invoice.invoice_number
*
* @mbg.generated
*/
public String getInvoiceNumber() {
return invoiceNumber;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_number
*
* @param invoiceNumber the value for input_invoice.invoice_number
*
* @mbg.generated
*/
public void setInvoiceNumber(String invoiceNumber) {
this.invoiceNumber = invoiceNumber == null ? null : invoiceNumber.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_date
*
* @return the value of input_invoice.invoice_date
*
* @mbg.generated
*/
public Date getInvoiceDate() {
return invoiceDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_date
*
* @param invoiceDate the value for input_invoice.invoice_date
*
* @mbg.generated
*/
public void setInvoiceDate(Date invoiceDate) {
this.invoiceDate = invoiceDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_name
*
* @return the value of input_invoice.invoice_name
*
* @mbg.generated
*/
public String getInvoiceName() {
return invoiceName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_name
*
* @param invoiceName the value for input_invoice.invoice_name
*
* @mbg.generated
*/
public void setInvoiceName(String invoiceName) {
this.invoiceName = invoiceName == null ? null : invoiceName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_tax_number
*
* @return the value of input_invoice.buyer_tax_number
*
* @mbg.generated
*/
public String getBuyerTaxNumber() {
return buyerTaxNumber;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_tax_number
*
* @param buyerTaxNumber the value for input_invoice.buyer_tax_number
*
* @mbg.generated
*/
public void setBuyerTaxNumber(String buyerTaxNumber) {
this.buyerTaxNumber = buyerTaxNumber == null ? null : buyerTaxNumber.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_name
*
* @return the value of input_invoice.buyer_name
*
* @mbg.generated
*/
public String getBuyerName() {
return buyerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_name
*
* @param buyerName the value for input_invoice.buyer_name
*
* @mbg.generated
*/
public void setBuyerName(String buyerName) {
this.buyerName = buyerName == null ? null : buyerName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_address
*
* @return the value of input_invoice.buyer_address
*
* @mbg.generated
*/
public String getBuyerAddress() {
return buyerAddress;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_address
*
* @param buyerAddress the value for input_invoice.buyer_address
*
* @mbg.generated
*/
public void setBuyerAddress(String buyerAddress) {
this.buyerAddress = buyerAddress == null ? null : buyerAddress.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_phone
*
* @return the value of input_invoice.buyer_phone
*
* @mbg.generated
*/
public String getBuyerPhone() {
return buyerPhone;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_phone
*
* @param buyerPhone the value for input_invoice.buyer_phone
*
* @mbg.generated
*/
public void setBuyerPhone(String buyerPhone) {
this.buyerPhone = buyerPhone == null ? null : buyerPhone.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_bank_name
*
* @return the value of input_invoice.buyer_bank_name
*
* @mbg.generated
*/
public String getBuyerBankName() {
return buyerBankName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_bank_name
*
* @param buyerBankName the value for input_invoice.buyer_bank_name
*
* @mbg.generated
*/
public void setBuyerBankName(String buyerBankName) {
this.buyerBankName = buyerBankName == null ? null : buyerBankName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.buyer_bank_account_number
*
* @return the value of input_invoice.buyer_bank_account_number
*
* @mbg.generated
*/
public String getBuyerBankAccountNumber() {
return buyerBankAccountNumber;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.buyer_bank_account_number
*
* @param buyerBankAccountNumber the value for input_invoice.buyer_bank_account_number
*
* @mbg.generated
*/
public void setBuyerBankAccountNumber(String buyerBankAccountNumber) {
this.buyerBankAccountNumber = buyerBankAccountNumber == null ? null : buyerBankAccountNumber.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_tax_number
*
* @return the value of input_invoice.seller_tax_number
*
* @mbg.generated
*/
public String getSellerTaxNumber() {
return sellerTaxNumber;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_tax_number
*
* @param sellerTaxNumber the value for input_invoice.seller_tax_number
*
* @mbg.generated
*/
public void setSellerTaxNumber(String sellerTaxNumber) {
this.sellerTaxNumber = sellerTaxNumber == null ? null : sellerTaxNumber.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_name
*
* @return the value of input_invoice.seller_name
*
* @mbg.generated
*/
public String getSellerName() {
return sellerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_name
*
* @param sellerName the value for input_invoice.seller_name
*
* @mbg.generated
*/
public void setSellerName(String sellerName) {
this.sellerName = sellerName == null ? null : sellerName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_address
*
* @return the value of input_invoice.seller_address
*
* @mbg.generated
*/
public String getSellerAddress() {
return sellerAddress;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_address
*
* @param sellerAddress the value for input_invoice.seller_address
*
* @mbg.generated
*/
public void setSellerAddress(String sellerAddress) {
this.sellerAddress = sellerAddress == null ? null : sellerAddress.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_phone
*
* @return the value of input_invoice.seller_phone
*
* @mbg.generated
*/
public String getSellerPhone() {
return sellerPhone;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_phone
*
* @param sellerPhone the value for input_invoice.seller_phone
*
* @mbg.generated
*/
public void setSellerPhone(String sellerPhone) {
this.sellerPhone = sellerPhone == null ? null : sellerPhone.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_bank_name
*
* @return the value of input_invoice.seller_bank_name
*
* @mbg.generated
*/
public String getSellerBankName() {
return sellerBankName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_bank_name
*
* @param sellerBankName the value for input_invoice.seller_bank_name
*
* @mbg.generated
*/
public void setSellerBankName(String sellerBankName) {
this.sellerBankName = sellerBankName == null ? null : sellerBankName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.seller_bank_account_number
*
* @return the value of input_invoice.seller_bank_account_number
*
* @mbg.generated
*/
public String getSellerBankAccountNumber() {
return sellerBankAccountNumber;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.seller_bank_account_number
*
* @param sellerBankAccountNumber the value for input_invoice.seller_bank_account_number
*
* @mbg.generated
*/
public void setSellerBankAccountNumber(String sellerBankAccountNumber) {
this.sellerBankAccountNumber = sellerBankAccountNumber == null ? null : sellerBankAccountNumber.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.amount
*
* @return the value of input_invoice.amount
*
* @mbg.generated
*/
public BigDecimal getAmount() {
return amount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.amount
*
* @param amount the value for input_invoice.amount
*
* @mbg.generated
*/
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.tax_amount
*
* @return the value of input_invoice.tax_amount
*
* @mbg.generated
*/
public BigDecimal getTaxAmount() {
return taxAmount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.tax_amount
*
* @param taxAmount the value for input_invoice.tax_amount
*
* @mbg.generated
*/
public void setTaxAmount(BigDecimal taxAmount) {
this.taxAmount = taxAmount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.total_price_uppercase
*
* @return the value of input_invoice.total_price_uppercase
*
* @mbg.generated
*/
public String getTotalPriceUppercase() {
return totalPriceUppercase;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.total_price_uppercase
*
* @param totalPriceUppercase the value for input_invoice.total_price_uppercase
*
* @mbg.generated
*/
public void setTotalPriceUppercase(String totalPriceUppercase) {
this.totalPriceUppercase = totalPriceUppercase == null ? null : totalPriceUppercase.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.total_price_lowercase
*
* @return the value of input_invoice.total_price_lowercase
*
* @mbg.generated
*/
public BigDecimal getTotalPriceLowercase() {
return totalPriceLowercase;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.total_price_lowercase
*
* @param totalPriceLowercase the value for input_invoice.total_price_lowercase
*
* @mbg.generated
*/
public void setTotalPriceLowercase(BigDecimal totalPriceLowercase) {
this.totalPriceLowercase = totalPriceLowercase;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_type
*
* @return the value of input_invoice.invoice_type
*
* @mbg.generated
*/
public Integer getInvoiceType() {
return invoiceType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_type
*
* @param invoiceType the value for input_invoice.invoice_type
*
* @mbg.generated
*/
public void setInvoiceType(Integer invoiceType) {
this.invoiceType = invoiceType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.upload_type
*
* @return the value of input_invoice.upload_type
*
* @mbg.generated
*/
public Integer getUploadType() {
return uploadType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.upload_type
*
* @param uploadType the value for input_invoice.upload_type
*
* @mbg.generated
*/
public void setUploadType(Integer uploadType) {
this.uploadType = uploadType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.upload_date
*
* @return the value of input_invoice.upload_date
*
* @mbg.generated
*/
public Date getUploadDate() {
return uploadDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.upload_date
*
* @param uploadDate the value for input_invoice.upload_date
*
* @mbg.generated
*/
public void setUploadDate(Date uploadDate) {
this.uploadDate = uploadDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_entity_type
*
* @return the value of input_invoice.invoice_entity_type
*
* @mbg.generated
*/
public Integer getInvoiceEntityType() {
return invoiceEntityType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_entity_type
*
* @param invoiceEntityType the value for input_invoice.invoice_entity_type
*
* @mbg.generated
*/
public void setInvoiceEntityType(Integer invoiceEntityType) {
this.invoiceEntityType = invoiceEntityType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.invoice_source_type
*
* @return the value of input_invoice.invoice_source_type
*
* @mbg.generated
*/
public Integer getInvoiceSourceType() {
return invoiceSourceType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.invoice_source_type
*
* @param invoiceSourceType the value for input_invoice.invoice_source_type
*
* @mbg.generated
*/
public void setInvoiceSourceType(Integer invoiceSourceType) {
this.invoiceSourceType = invoiceSourceType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.staff_id
*
* @return the value of input_invoice.staff_id
*
* @mbg.generated
*/
public String getStaffId() {
return staffId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.staff_id
*
* @param staffId the value for input_invoice.staff_id
*
* @mbg.generated
*/
public void setStaffId(String staffId) {
this.staffId = staffId == null ? null : staffId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.order_identifier
*
* @return the value of input_invoice.order_identifier
*
* @mbg.generated
*/
public String getOrderIdentifier() {
return orderIdentifier;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.order_identifier
*
* @param orderIdentifier the value for input_invoice.order_identifier
*
* @mbg.generated
*/
public void setOrderIdentifier(String orderIdentifier) {
this.orderIdentifier = orderIdentifier == null ? null : orderIdentifier.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.status
*
* @return the value of input_invoice.status
*
* @mbg.generated
*/
public Integer getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.status
*
* @param status the value for input_invoice.status
*
* @mbg.generated
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.create_by
*
* @return the value of input_invoice.create_by
*
* @mbg.generated
*/
public String getCreateBy() {
return createBy;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.create_by
*
* @param createBy the value for input_invoice.create_by
*
* @mbg.generated
*/
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.update_by
*
* @return the value of input_invoice.update_by
*
* @mbg.generated
*/
public String getUpdateBy() {
return updateBy;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.update_by
*
* @param updateBy the value for input_invoice.update_by
*
* @mbg.generated
*/
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.create_time
*
* @return the value of input_invoice.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.create_time
*
* @param createTime the value for input_invoice.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.update_time
*
* @return the value of input_invoice.update_time
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.update_time
*
* @param updateTime the value for input_invoice.update_time
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.deductible_period
*
* @return the value of input_invoice.deductible_period
*
* @mbg.generated
*/
public String getDeductiblePeriod() {
return deductiblePeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.deductible_period
*
* @param deductiblePeriod the value for input_invoice.deductible_period
*
* @mbg.generated
*/
public void setDeductiblePeriod(String deductiblePeriod) {
this.deductiblePeriod = deductiblePeriod == null ? null : deductiblePeriod.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.deductible_date
*
* @return the value of input_invoice.deductible_date
*
* @mbg.generated
*/
public Date getDeductibleDate() {
return deductibleDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.deductible_date
*
* @param deductibleDate the value for input_invoice.deductible_date
*
* @mbg.generated
*/
public void setDeductibleDate(Date deductibleDate) {
this.deductibleDate = deductibleDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.deductible
*
* @return the value of input_invoice.deductible
*
* @mbg.generated
*/
public Boolean getDeductible() {
return deductible;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.deductible
*
* @param deductible the value for input_invoice.deductible
*
* @mbg.generated
*/
public void setDeductible(Boolean deductible) {
this.deductible = deductible;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.check_code
*
* @return the value of input_invoice.check_code
*
* @mbg.generated
*/
public String getCheckCode() {
return checkCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.check_code
*
* @param checkCode the value for input_invoice.check_code
*
* @mbg.generated
*/
public void setCheckCode(String checkCode) {
this.checkCode = checkCode == null ? null : checkCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.has_down_file
*
* @return the value of input_invoice.has_down_file
*
* @mbg.generated
*/
public Boolean getHasDownFile() {
return hasDownFile;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.has_down_file
*
* @param hasDownFile the value for input_invoice.has_down_file
*
* @mbg.generated
*/
public void setHasDownFile(Boolean hasDownFile) {
this.hasDownFile = hasDownFile;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.verify_type
*
* @return the value of input_invoice.verify_type
*
* @mbg.generated
*/
public Integer getVerifyType() {
return verifyType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.verify_type
*
* @param verifyType the value for input_invoice.verify_type
*
* @mbg.generated
*/
public void setVerifyType(Integer verifyType) {
this.verifyType = verifyType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.serial_no
*
* @return the value of input_invoice.serial_no
*
* @mbg.generated
*/
public String getSerialNo() {
return serialNo;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.serial_no
*
* @param serialNo the value for input_invoice.serial_no
*
* @mbg.generated
*/
public void setSerialNo(String serialNo) {
this.serialNo = serialNo == null ? null : serialNo.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.deductible_result
*
* @return the value of input_invoice.deductible_result
*
* @mbg.generated
*/
public Integer getDeductibleResult() {
return deductibleResult;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.deductible_result
*
* @param deductibleResult the value for input_invoice.deductible_result
*
* @mbg.generated
*/
public void setDeductibleResult(Integer deductibleResult) {
this.deductibleResult = deductibleResult;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_invoice.is_red_invoice
*
* @return the value of input_invoice.is_red_invoice
*
* @mbg.generated
*/
public Boolean getIsRedInvoice() {
return isRedInvoice;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_invoice.is_red_invoice
*
* @param isRedInvoice the value for input_invoice.is_red_invoice
*
* @mbg.generated
*/
public void setIsRedInvoice(Boolean isRedInvoice) {
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
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", invoiceFileId=").append(invoiceFileId);
sb.append(", invoiceCode=").append(invoiceCode);
sb.append(", invoiceNumber=").append(invoiceNumber);
sb.append(", invoiceDate=").append(invoiceDate);
sb.append(", invoiceName=").append(invoiceName);
sb.append(", buyerTaxNumber=").append(buyerTaxNumber);
sb.append(", buyerName=").append(buyerName);
sb.append(", buyerAddress=").append(buyerAddress);
sb.append(", buyerPhone=").append(buyerPhone);
sb.append(", buyerBankName=").append(buyerBankName);
sb.append(", buyerBankAccountNumber=").append(buyerBankAccountNumber);
sb.append(", sellerTaxNumber=").append(sellerTaxNumber);
sb.append(", sellerName=").append(sellerName);
sb.append(", sellerAddress=").append(sellerAddress);
sb.append(", sellerPhone=").append(sellerPhone);
sb.append(", sellerBankName=").append(sellerBankName);
sb.append(", sellerBankAccountNumber=").append(sellerBankAccountNumber);
sb.append(", amount=").append(amount);
sb.append(", taxAmount=").append(taxAmount);
sb.append(", totalPriceUppercase=").append(totalPriceUppercase);
sb.append(", totalPriceLowercase=").append(totalPriceLowercase);
sb.append(", invoiceType=").append(invoiceType);
sb.append(", uploadType=").append(uploadType);
sb.append(", uploadDate=").append(uploadDate);
sb.append(", invoiceEntityType=").append(invoiceEntityType);
sb.append(", invoiceSourceType=").append(invoiceSourceType);
sb.append(", staffId=").append(staffId);
sb.append(", orderIdentifier=").append(orderIdentifier);
sb.append(", status=").append(status);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", deductiblePeriod=").append(deductiblePeriod);
sb.append(", deductibleDate=").append(deductibleDate);
sb.append(", deductible=").append(deductible);
sb.append(", checkCode=").append(checkCode);
sb.append(", hasDownFile=").append(hasDownFile);
sb.append(", verifyType=").append(verifyType);
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();
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
package pwc.taxtech.atms.service.impl;
public class DistributedIDService {
}
jdbc_url=jdbc:mysql://10.157.107.89:3306/tax_admin?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true
jdbc_url=jdbc:mysql://10.157.107.89:3306/tax_longi?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true
jdbc_user=root
jdbc_password=tax@Admin2018
jdbc_admin_db=tax_admin
......
jdbc_url=jdbc:mysql://10.157.107.89:3306/tax_admin?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true
jdbc_url=jdbc:mysql://10.157.107.89:3306/tax_longi?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true
jdbc_user=root
jdbc_password=tax@Admin2018
jdbc_admin_db=tax_admin
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.dao.InputInvoiceMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.InputInvoice">
<!--
WARNING - @mbg.generated
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_code" jdbcType="VARCHAR" property="invoiceCode" />
<result column="invoice_number" jdbcType="VARCHAR" property="invoiceNumber" />
<result column="invoice_date" jdbcType="TIMESTAMP" property="invoiceDate" />
<result column="invoice_name" jdbcType="VARCHAR" property="invoiceName" />
<result column="buyer_tax_number" jdbcType="VARCHAR" property="buyerTaxNumber" />
<result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
<result column="buyer_address" jdbcType="VARCHAR" property="buyerAddress" />
<result column="buyer_phone" jdbcType="VARCHAR" property="buyerPhone" />
<result column="buyer_bank_name" jdbcType="VARCHAR" property="buyerBankName" />
<result column="buyer_bank_account_number" jdbcType="VARCHAR" property="buyerBankAccountNumber" />
<result column="seller_tax_number" jdbcType="VARCHAR" property="sellerTaxNumber" />
<result column="seller_name" jdbcType="VARCHAR" property="sellerName" />
<result column="seller_address" jdbcType="VARCHAR" property="sellerAddress" />
<result column="seller_phone" jdbcType="VARCHAR" property="sellerPhone" />
<result column="seller_bank_name" jdbcType="VARCHAR" property="sellerBankName" />
<result column="seller_bank_account_number" jdbcType="VARCHAR" property="sellerBankAccountNumber" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="tax_amount" jdbcType="DECIMAL" property="taxAmount" />
<result column="total_price_uppercase" jdbcType="VARCHAR" property="totalPriceUppercase" />
<result column="total_price_lowercase" jdbcType="DECIMAL" property="totalPriceLowercase" />
<result column="invoice_type" jdbcType="SMALLINT" property="invoiceType" />
<result column="upload_type" jdbcType="SMALLINT" property="uploadType" />
<result column="upload_date" jdbcType="TIMESTAMP" property="uploadDate" />
<result column="invoice_entity_type" jdbcType="SMALLINT" property="invoiceEntityType" />
<result column="invoice_source_type" jdbcType="SMALLINT" property="invoiceSourceType" />
<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="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deductible_period" jdbcType="VARCHAR" property="deductiblePeriod" />
<result column="deductible_date" jdbcType="TIMESTAMP" property="deductibleDate" />
<result column="deductible" jdbcType="SMALLINT" property="deductible" />
<result column="check_code" jdbcType="VARCHAR" property="checkCode" />
<result column="has_down_file" jdbcType="TINYINT" property="hasDownFile" />
<result column="verify_type" jdbcType="SMALLINT" property="verifyType" />
<result column="serial_no" jdbcType="VARCHAR" property="serialNo" />
<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
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, invoice_file_id, invoice_code, invoice_number, invoice_date, invoice_name, buyer_tax_number,
buyer_name, buyer_address, buyer_phone, buyer_bank_name, buyer_bank_account_number,
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,
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
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_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="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
<!--
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>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from input_invoice
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.InputInvoiceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from input_invoice
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.InputInvoice">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into input_invoice (id, invoice_file_id, invoice_code,
invoice_number, invoice_date, invoice_name,
buyer_tax_number, buyer_name, buyer_address,
buyer_phone, buyer_bank_name, buyer_bank_account_number,
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,
is_red_invoice, remark)
values (#{id,jdbcType=BIGINT}, #{invoiceFileId,jdbcType=VARCHAR}, #{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},
#{sellerTaxNumber,jdbcType=VARCHAR}, #{sellerName,jdbcType=VARCHAR}, #{sellerAddress,jdbcType=VARCHAR},
#{sellerPhone,jdbcType=VARCHAR}, #{sellerBankName,jdbcType=VARCHAR}, #{sellerBankAccountNumber,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL}, #{taxAmount,jdbcType=DECIMAL}, #{totalPriceUppercase,jdbcType=VARCHAR},
#{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})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.InputInvoice">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into input_invoice
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="invoiceFileId != null">
invoice_file_id,
</if>
<if test="invoiceCode != null">
invoice_code,
</if>
<if test="invoiceNumber != null">
invoice_number,
</if>
<if test="invoiceDate != null">
invoice_date,
</if>
<if test="invoiceName != null">
invoice_name,
</if>
<if test="buyerTaxNumber != null">
buyer_tax_number,
</if>
<if test="buyerName != null">
buyer_name,
</if>
<if test="buyerAddress != null">
buyer_address,
</if>
<if test="buyerPhone != null">
buyer_phone,
</if>
<if test="buyerBankName != null">
buyer_bank_name,
</if>
<if test="buyerBankAccountNumber != null">
buyer_bank_account_number,
</if>
<if test="sellerTaxNumber != null">
seller_tax_number,
</if>
<if test="sellerName != null">
seller_name,
</if>
<if test="sellerAddress != null">
seller_address,
</if>
<if test="sellerPhone != null">
seller_phone,
</if>
<if test="sellerBankName != null">
seller_bank_name,
</if>
<if test="sellerBankAccountNumber != null">
seller_bank_account_number,
</if>
<if test="amount != null">
amount,
</if>
<if test="taxAmount != null">
tax_amount,
</if>
<if test="totalPriceUppercase != null">
total_price_uppercase,
</if>
<if test="totalPriceLowercase != null">
total_price_lowercase,
</if>
<if test="invoiceType != null">
invoice_type,
</if>
<if test="uploadType != null">
upload_type,
</if>
<if test="uploadDate != null">
upload_date,
</if>
<if test="invoiceEntityType != null">
invoice_entity_type,
</if>
<if test="invoiceSourceType != null">
invoice_source_type,
</if>
<if test="staffId != null">
staff_id,
</if>
<if test="orderIdentifier != null">
order_identifier,
</if>
<if test="status != null">
status,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="deductiblePeriod != null">
deductible_period,
</if>
<if test="deductibleDate != null">
deductible_date,
</if>
<if test="deductible != null">
deductible,
</if>
<if test="checkCode != null">
check_code,
</if>
<if test="hasDownFile != null">
has_down_file,
</if>
<if test="verifyType != null">
verify_type,
</if>
<if test="serialNo != null">
serial_no,
</if>
<if test="deductibleResult != null">
deductible_result,
</if>
<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},
</if>
<if test="invoiceCode != null">
#{invoiceCode,jdbcType=VARCHAR},
</if>
<if test="invoiceNumber != null">
#{invoiceNumber,jdbcType=VARCHAR},
</if>
<if test="invoiceDate != null">
#{invoiceDate,jdbcType=TIMESTAMP},
</if>
<if test="invoiceName != null">
#{invoiceName,jdbcType=VARCHAR},
</if>
<if test="buyerTaxNumber != null">
#{buyerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="buyerName != null">
#{buyerName,jdbcType=VARCHAR},
</if>
<if test="buyerAddress != null">
#{buyerAddress,jdbcType=VARCHAR},
</if>
<if test="buyerPhone != null">
#{buyerPhone,jdbcType=VARCHAR},
</if>
<if test="buyerBankName != null">
#{buyerBankName,jdbcType=VARCHAR},
</if>
<if test="buyerBankAccountNumber != null">
#{buyerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="sellerTaxNumber != null">
#{sellerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="sellerName != null">
#{sellerName,jdbcType=VARCHAR},
</if>
<if test="sellerAddress != null">
#{sellerAddress,jdbcType=VARCHAR},
</if>
<if test="sellerPhone != null">
#{sellerPhone,jdbcType=VARCHAR},
</if>
<if test="sellerBankName != null">
#{sellerBankName,jdbcType=VARCHAR},
</if>
<if test="sellerBankAccountNumber != null">
#{sellerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="taxAmount != null">
#{taxAmount,jdbcType=DECIMAL},
</if>
<if test="totalPriceUppercase != null">
#{totalPriceUppercase,jdbcType=VARCHAR},
</if>
<if test="totalPriceLowercase != null">
#{totalPriceLowercase,jdbcType=DECIMAL},
</if>
<if test="invoiceType != null">
#{invoiceType,jdbcType=SMALLINT},
</if>
<if test="uploadType != null">
#{uploadType,jdbcType=SMALLINT},
</if>
<if test="uploadDate != null">
#{uploadDate,jdbcType=TIMESTAMP},
</if>
<if test="invoiceEntityType != null">
#{invoiceEntityType,jdbcType=SMALLINT},
</if>
<if test="invoiceSourceType != null">
#{invoiceSourceType,jdbcType=SMALLINT},
</if>
<if test="staffId != null">
#{staffId,jdbcType=VARCHAR},
</if>
<if test="orderIdentifier != null">
#{orderIdentifier,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=SMALLINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deductiblePeriod != null">
#{deductiblePeriod,jdbcType=VARCHAR},
</if>
<if test="deductibleDate != null">
#{deductibleDate,jdbcType=TIMESTAMP},
</if>
<if test="deductible != null">
#{deductible,jdbcType=SMALLINT},
</if>
<if test="checkCode != null">
#{checkCode,jdbcType=VARCHAR},
</if>
<if test="hasDownFile != null">
#{hasDownFile,jdbcType=TINYINT},
</if>
<if test="verifyType != null">
#{verifyType,jdbcType=SMALLINT},
</if>
<if test="serialNo != null">
#{serialNo,jdbcType=VARCHAR},
</if>
<if test="deductibleResult != null">
#{deductibleResult,jdbcType=SMALLINT},
</if>
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from input_invoice
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_invoice
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.invoiceFileId != null">
invoice_file_id = #{record.invoiceFileId,jdbcType=VARCHAR},
</if>
<if test="record.invoiceCode != null">
invoice_code = #{record.invoiceCode,jdbcType=VARCHAR},
</if>
<if test="record.invoiceNumber != null">
invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
</if>
<if test="record.invoiceDate != null">
invoice_date = #{record.invoiceDate,jdbcType=TIMESTAMP},
</if>
<if test="record.invoiceName != null">
invoice_name = #{record.invoiceName,jdbcType=VARCHAR},
</if>
<if test="record.buyerTaxNumber != null">
buyer_tax_number = #{record.buyerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="record.buyerName != null">
buyer_name = #{record.buyerName,jdbcType=VARCHAR},
</if>
<if test="record.buyerAddress != null">
buyer_address = #{record.buyerAddress,jdbcType=VARCHAR},
</if>
<if test="record.buyerPhone != null">
buyer_phone = #{record.buyerPhone,jdbcType=VARCHAR},
</if>
<if test="record.buyerBankName != null">
buyer_bank_name = #{record.buyerBankName,jdbcType=VARCHAR},
</if>
<if test="record.buyerBankAccountNumber != null">
buyer_bank_account_number = #{record.buyerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="record.sellerTaxNumber != null">
seller_tax_number = #{record.sellerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="record.sellerName != null">
seller_name = #{record.sellerName,jdbcType=VARCHAR},
</if>
<if test="record.sellerAddress != null">
seller_address = #{record.sellerAddress,jdbcType=VARCHAR},
</if>
<if test="record.sellerPhone != null">
seller_phone = #{record.sellerPhone,jdbcType=VARCHAR},
</if>
<if test="record.sellerBankName != null">
seller_bank_name = #{record.sellerBankName,jdbcType=VARCHAR},
</if>
<if test="record.sellerBankAccountNumber != null">
seller_bank_account_number = #{record.sellerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="record.amount != null">
amount = #{record.amount,jdbcType=DECIMAL},
</if>
<if test="record.taxAmount != null">
tax_amount = #{record.taxAmount,jdbcType=DECIMAL},
</if>
<if test="record.totalPriceUppercase != null">
total_price_uppercase = #{record.totalPriceUppercase,jdbcType=VARCHAR},
</if>
<if test="record.totalPriceLowercase != null">
total_price_lowercase = #{record.totalPriceLowercase,jdbcType=DECIMAL},
</if>
<if test="record.invoiceType != null">
invoice_type = #{record.invoiceType,jdbcType=SMALLINT},
</if>
<if test="record.uploadType != null">
upload_type = #{record.uploadType,jdbcType=SMALLINT},
</if>
<if test="record.uploadDate != null">
upload_date = #{record.uploadDate,jdbcType=TIMESTAMP},
</if>
<if test="record.invoiceEntityType != null">
invoice_entity_type = #{record.invoiceEntityType,jdbcType=SMALLINT},
</if>
<if test="record.invoiceSourceType != null">
invoice_source_type = #{record.invoiceSourceType,jdbcType=SMALLINT},
</if>
<if test="record.staffId != null">
staff_id = #{record.staffId,jdbcType=VARCHAR},
</if>
<if test="record.orderIdentifier != null">
order_identifier = #{record.orderIdentifier,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=SMALLINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deductiblePeriod != null">
deductible_period = #{record.deductiblePeriod,jdbcType=VARCHAR},
</if>
<if test="record.deductibleDate != null">
deductible_date = #{record.deductibleDate,jdbcType=TIMESTAMP},
</if>
<if test="record.deductible != null">
deductible = #{record.deductible,jdbcType=SMALLINT},
</if>
<if test="record.checkCode != null">
check_code = #{record.checkCode,jdbcType=VARCHAR},
</if>
<if test="record.hasDownFile != null">
has_down_file = #{record.hasDownFile,jdbcType=TINYINT},
</if>
<if test="record.verifyType != null">
verify_type = #{record.verifyType,jdbcType=SMALLINT},
</if>
<if test="record.serialNo != null">
serial_no = #{record.serialNo,jdbcType=VARCHAR},
</if>
<if test="record.deductibleResult != null">
deductible_result = #{record.deductibleResult,jdbcType=SMALLINT},
</if>
<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
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.InputInvoice">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_invoice
<set>
<if test="invoiceFileId != null">
invoice_file_id = #{invoiceFileId,jdbcType=VARCHAR},
</if>
<if test="invoiceCode != null">
invoice_code = #{invoiceCode,jdbcType=VARCHAR},
</if>
<if test="invoiceNumber != null">
invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
</if>
<if test="invoiceDate != null">
invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
</if>
<if test="invoiceName != null">
invoice_name = #{invoiceName,jdbcType=VARCHAR},
</if>
<if test="buyerTaxNumber != null">
buyer_tax_number = #{buyerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="buyerName != null">
buyer_name = #{buyerName,jdbcType=VARCHAR},
</if>
<if test="buyerAddress != null">
buyer_address = #{buyerAddress,jdbcType=VARCHAR},
</if>
<if test="buyerPhone != null">
buyer_phone = #{buyerPhone,jdbcType=VARCHAR},
</if>
<if test="buyerBankName != null">
buyer_bank_name = #{buyerBankName,jdbcType=VARCHAR},
</if>
<if test="buyerBankAccountNumber != null">
buyer_bank_account_number = #{buyerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="sellerTaxNumber != null">
seller_tax_number = #{sellerTaxNumber,jdbcType=VARCHAR},
</if>
<if test="sellerName != null">
seller_name = #{sellerName,jdbcType=VARCHAR},
</if>
<if test="sellerAddress != null">
seller_address = #{sellerAddress,jdbcType=VARCHAR},
</if>
<if test="sellerPhone != null">
seller_phone = #{sellerPhone,jdbcType=VARCHAR},
</if>
<if test="sellerBankName != null">
seller_bank_name = #{sellerBankName,jdbcType=VARCHAR},
</if>
<if test="sellerBankAccountNumber != null">
seller_bank_account_number = #{sellerBankAccountNumber,jdbcType=VARCHAR},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="taxAmount != null">
tax_amount = #{taxAmount,jdbcType=DECIMAL},
</if>
<if test="totalPriceUppercase != null">
total_price_uppercase = #{totalPriceUppercase,jdbcType=VARCHAR},
</if>
<if test="totalPriceLowercase != null">
total_price_lowercase = #{totalPriceLowercase,jdbcType=DECIMAL},
</if>
<if test="invoiceType != null">
invoice_type = #{invoiceType,jdbcType=SMALLINT},
</if>
<if test="uploadType != null">
upload_type = #{uploadType,jdbcType=SMALLINT},
</if>
<if test="uploadDate != null">
upload_date = #{uploadDate,jdbcType=TIMESTAMP},
</if>
<if test="invoiceEntityType != null">
invoice_entity_type = #{invoiceEntityType,jdbcType=SMALLINT},
</if>
<if test="invoiceSourceType != null">
invoice_source_type = #{invoiceSourceType,jdbcType=SMALLINT},
</if>
<if test="staffId != null">
staff_id = #{staffId,jdbcType=VARCHAR},
</if>
<if test="orderIdentifier != null">
order_identifier = #{orderIdentifier,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=SMALLINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deductiblePeriod != null">
deductible_period = #{deductiblePeriod,jdbcType=VARCHAR},
</if>
<if test="deductibleDate != null">
deductible_date = #{deductibleDate,jdbcType=TIMESTAMP},
</if>
<if test="deductible != null">
deductible = #{deductible,jdbcType=SMALLINT},
</if>
<if test="checkCode != null">
check_code = #{checkCode,jdbcType=VARCHAR},
</if>
<if test="hasDownFile != null">
has_down_file = #{hasDownFile,jdbcType=TINYINT},
</if>
<if test="verifyType != null">
verify_type = #{verifyType,jdbcType=SMALLINT},
</if>
<if test="serialNo != null">
serial_no = #{serialNo,jdbcType=VARCHAR},
</if>
<if test="deductibleResult != null">
deductible_result = #{deductibleResult,jdbcType=SMALLINT},
</if>
<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},
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}
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
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from input_invoice
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment