Commit 69de6bd6 authored by Ken you's avatar Ken you

fix 导入分发 追加和覆盖区分---Ken

parent 1f74d0af
......@@ -215,6 +215,19 @@ public class DataImportLogDto implements Serializable {
*/
private Date updateTime;
/**
* Database Column Remarks:
* 导入类型
默认0;追加导入1;覆盖导入2;
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.import_type
*
* @mbg.generated
*/
private Integer importType;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table data_import_log
......@@ -623,12 +636,14 @@ public class DataImportLogDto implements Serializable {
this.recordSize = recordSize;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
public Integer getImportType() {
return importType;
}
public void setImportType(Integer importType) {
this.importType = importType;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
......@@ -637,6 +652,7 @@ public class DataImportLogDto implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", organizationId=").append(organizationId);
sb.append(", taxpayerIdNum=").append(taxpayerIdNum);
sb.append(", type=").append(type);
sb.append(", companyCode=").append(companyCode);
sb.append(", companyName=").append(companyName);
......@@ -649,8 +665,10 @@ public class DataImportLogDto implements Serializable {
sb.append(", operateTime=").append(operateTime);
sb.append(", importResult=").append(importResult);
sb.append(", errorMsg=").append(errorMsg);
sb.append(", recordSize=").append(recordSize);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", importType=").append(importType);
sb.append("]");
return sb.toString();
}
......
......@@ -283,7 +283,8 @@ public class DataImportService extends BaseService {
EnumImportType.ProfitLoss.getCode(), period/100,
tmsPeriod%100, period%100,
companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) {
dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
......@@ -460,6 +461,8 @@ public class DataImportService extends BaseService {
EnumImportType.BalanceSheet.getCode(), period/100,
tmsPeriod%100, period%100,
companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) {
dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
......@@ -611,6 +614,8 @@ public class DataImportService extends BaseService {
EnumImportType.CashFlow.getCode(), period/100,
tmsPeriod%100, period%100,
companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) {
dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
......@@ -767,6 +772,8 @@ public class DataImportService extends BaseService {
EnumImportType.InvoiceData.getCode(), period/100,
tmsPeriod%100, period%100,
companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) {
dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
......@@ -978,7 +985,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, period%100,
rlits.get(0).getSubjectName(), "");
dataImportLog.setRecordSize(rlits.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false);
......@@ -1081,7 +1089,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, ats.get(0).getPeriod()%100,
ats.get(0).getSegment1Name(), "");
dataImportLog.setRecordSize(ats.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false);
......@@ -1185,7 +1194,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, cprs.get(0).getPeriod()%100,
"", "");
dataImportLog.setRecordSize(cprs.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false);
......@@ -1289,6 +1299,8 @@ public class DataImportService extends BaseService {
EnumImportType.CertifiedInvoicesList.getCode(), period/100,
tmsPeriod%100, period%100,
"", fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) {
dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
......@@ -1453,7 +1465,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, irs.get(0).getPeriod()%100,
irs.get(0).getBillingBody(), "");
dataImportLog.setRecordSize(irs.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false);
......
......@@ -41,11 +41,19 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/>
</javaClientGenerator>
<table tableName="analysis_expected_tax_return" domainObjectName="AnalysisExpectedTaxReturn">
<table tableName="data_import_log" domainObjectName="DataImportLog">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="type" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<columnOverride column="tms_period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<columnOverride column="period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>
</table>
<!--<table tableName="analysis_expected_tax_return" domainObjectName="AnalysisExpectedTaxReturn">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="cit_distribution" domainObjectName="CitDistribution">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
......@@ -62,13 +70,7 @@
<columnOverride column="num_of_branches" javaType="java.lang.Integer" jdbcType="TINYINT"/>
</table>
<table tableName="data_import_log" domainObjectName="DataImportLog">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="type" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<columnOverride column="tms_period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<columnOverride column="period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>
</table>
<table tableName="organization_extra" domainObjectName="OrganizationExtra">
<property name="useActualColumnNames" value="false"/>
......
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.entity.DataImportLog;
import pwc.taxtech.atms.entity.DataImportLogExample;
@Mapper
public interface DataImportLogMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
long countByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int deleteByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int insert(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int insertSelective(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
List<DataImportLog> selectByExampleWithRowbounds(DataImportLogExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
List<DataImportLog> selectByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
DataImportLog selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DataImportLog record, @Param("example") DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByExample(@Param("record") DataImportLog record, @Param("example") DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByPrimaryKey(DataImportLog record);
int displayOld(@Param("type") Integer type);
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.entity.DataImportLog;
import pwc.taxtech.atms.entity.DataImportLogExample;
@Mapper
public interface DataImportLogMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
long countByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int deleteByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int insert(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int insertSelective(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
List<DataImportLog> selectByExampleWithRowbounds(DataImportLogExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
List<DataImportLog> selectByExample(DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
DataImportLog selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DataImportLog record, @Param("example") DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByExample(@Param("record") DataImportLog record, @Param("example") DataImportLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DataImportLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @mbg.generated
*/
int updateByPrimaryKey(DataImportLog record);
int displayOld(@Param("type") Integer type);
}
\ No newline at end of file
package pwc.taxtech.atms.entity;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table data_import_log
*
* @mbg.generated do_not_delete_during_merge
*/
public class DataImportLog extends BaseEntity implements Serializable {
/**
* Database Column Remarks:
* 唯一编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 纳税人识别号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
private String taxpayerIdNum;
/**
* Database Column Remarks:
* 导入类型。0-未定义,1-利润表,2-资产负债表
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.type
*
* @mbg.generated
*/
private Integer type;
/**
* Database Column Remarks:
* 公司代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.company_code
*
* @mbg.generated
*/
private String companyCode;
/**
* Database Column Remarks:
* 公司名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.company_name
*
* @mbg.generated
*/
private String companyName;
/**
* Database Column Remarks:
* 文件类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.file_type
*
* @mbg.generated
*/
private String fileType;
/**
* Database Column Remarks:
* 年度
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_year
*
* @mbg.generated
*/
private Integer periodYear;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.tms_period_month
*
* @mbg.generated
*/
private Integer tmsPeriodMonth;
/**
* Database Column Remarks:
* 期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_month
*
* @mbg.generated
*/
private Integer periodMonth;
/**
* Database Column Remarks:
* Oracle期间状态
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_status
*
* @mbg.generated
*/
private String periodStatus;
/**
* Database Column Remarks:
* 操作人
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.operator
*
* @mbg.generated
*/
private String operator;
/**
* Database Column Remarks:
* 操作时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.operate_time
*
* @mbg.generated
*/
private Date operateTime;
/**
* Database Column Remarks:
* 导入结果
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.import_result
*
* @mbg.generated
*/
private Boolean importResult;
/**
* Database Column Remarks:
* 校验问题
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.error_msg
*
* @mbg.generated
*/
private String errorMsg;
/**
* Database Column Remarks:
* 记录条数
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.record_size
*
* @mbg.generated
*/
private Integer recordSize;
/**
* Database Column Remarks:
* 是否为最新导入记录。0-不是,1-是 。写入新提交记录时更新旧的为0
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.display
*
* @mbg.generated
*/
private Boolean display;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table data_import_log
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.id
*
* @return the value of data_import_log.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.id
*
* @param id the value for data_import_log.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 data_import_log.organization_id
*
* @return the value of data_import_log.organization_id
*
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.organization_id
*
* @param organizationId the value for data_import_log.organization_id
*
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.taxpayer_id_num
*
* @return the value of data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
public String getTaxpayerIdNum() {
return taxpayerIdNum;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.taxpayer_id_num
*
* @param taxpayerIdNum the value for data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
public void setTaxpayerIdNum(String taxpayerIdNum) {
this.taxpayerIdNum = taxpayerIdNum == null ? null : taxpayerIdNum.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.type
*
* @return the value of data_import_log.type
*
* @mbg.generated
*/
public Integer getType() {
return type;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.type
*
* @param type the value for data_import_log.type
*
* @mbg.generated
*/
public void setType(Integer type) {
this.type = type;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.company_code
*
* @return the value of data_import_log.company_code
*
* @mbg.generated
*/
public String getCompanyCode() {
return companyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.company_code
*
* @param companyCode the value for data_import_log.company_code
*
* @mbg.generated
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode == null ? null : companyCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.company_name
*
* @return the value of data_import_log.company_name
*
* @mbg.generated
*/
public String getCompanyName() {
return companyName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.company_name
*
* @param companyName the value for data_import_log.company_name
*
* @mbg.generated
*/
public void setCompanyName(String companyName) {
this.companyName = companyName == null ? null : companyName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.file_type
*
* @return the value of data_import_log.file_type
*
* @mbg.generated
*/
public String getFileType() {
return fileType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.file_type
*
* @param fileType the value for data_import_log.file_type
*
* @mbg.generated
*/
public void setFileType(String fileType) {
this.fileType = fileType == null ? null : fileType.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_year
*
* @return the value of data_import_log.period_year
*
* @mbg.generated
*/
public Integer getPeriodYear() {
return periodYear;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_year
*
* @param periodYear the value for data_import_log.period_year
*
* @mbg.generated
*/
public void setPeriodYear(Integer periodYear) {
this.periodYear = periodYear;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.tms_period_month
*
* @return the value of data_import_log.tms_period_month
*
* @mbg.generated
*/
public Integer getTmsPeriodMonth() {
return tmsPeriodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.tms_period_month
*
* @param tmsPeriodMonth the value for data_import_log.tms_period_month
*
* @mbg.generated
*/
public void setTmsPeriodMonth(Integer tmsPeriodMonth) {
this.tmsPeriodMonth = tmsPeriodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_month
*
* @return the value of data_import_log.period_month
*
* @mbg.generated
*/
public Integer getPeriodMonth() {
return periodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_month
*
* @param periodMonth the value for data_import_log.period_month
*
* @mbg.generated
*/
public void setPeriodMonth(Integer periodMonth) {
this.periodMonth = periodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_status
*
* @return the value of data_import_log.period_status
*
* @mbg.generated
*/
public String getPeriodStatus() {
return periodStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_status
*
* @param periodStatus the value for data_import_log.period_status
*
* @mbg.generated
*/
public void setPeriodStatus(String periodStatus) {
this.periodStatus = periodStatus == null ? null : periodStatus.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.operator
*
* @return the value of data_import_log.operator
*
* @mbg.generated
*/
public String getOperator() {
return operator;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.operator
*
* @param operator the value for data_import_log.operator
*
* @mbg.generated
*/
public void setOperator(String operator) {
this.operator = operator == null ? null : operator.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.operate_time
*
* @return the value of data_import_log.operate_time
*
* @mbg.generated
*/
public Date getOperateTime() {
return operateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.operate_time
*
* @param operateTime the value for data_import_log.operate_time
*
* @mbg.generated
*/
public void setOperateTime(Date operateTime) {
this.operateTime = operateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.import_result
*
* @return the value of data_import_log.import_result
*
* @mbg.generated
*/
public Boolean getImportResult() {
return importResult;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.import_result
*
* @param importResult the value for data_import_log.import_result
*
* @mbg.generated
*/
public void setImportResult(Boolean importResult) {
this.importResult = importResult;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.error_msg
*
* @return the value of data_import_log.error_msg
*
* @mbg.generated
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.error_msg
*
* @param errorMsg the value for data_import_log.error_msg
*
* @mbg.generated
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg == null ? null : errorMsg.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.record_size
*
* @return the value of data_import_log.record_size
*
* @mbg.generated
*/
public Integer getRecordSize() {
return recordSize;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.record_size
*
* @param recordSize the value for data_import_log.record_size
*
* @mbg.generated
*/
public void setRecordSize(Integer recordSize) {
this.recordSize = recordSize;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.display
*
* @return the value of data_import_log.display
*
* @mbg.generated
*/
public Boolean getDisplay() {
return display;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.display
*
* @param display the value for data_import_log.display
*
* @mbg.generated
*/
public void setDisplay(Boolean display) {
this.display = display;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.create_time
*
* @return the value of data_import_log.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 data_import_log.create_time
*
* @param createTime the value for data_import_log.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 data_import_log.update_time
*
* @return the value of data_import_log.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 data_import_log.update_time
*
* @param updateTime the value for data_import_log.update_time
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @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(", organizationId=").append(organizationId);
sb.append(", taxpayerIdNum=").append(taxpayerIdNum);
sb.append(", type=").append(type);
sb.append(", companyCode=").append(companyCode);
sb.append(", companyName=").append(companyName);
sb.append(", fileType=").append(fileType);
sb.append(", periodYear=").append(periodYear);
sb.append(", tmsPeriodMonth=").append(tmsPeriodMonth);
sb.append(", periodMonth=").append(periodMonth);
sb.append(", periodStatus=").append(periodStatus);
sb.append(", operator=").append(operator);
sb.append(", operateTime=").append(operateTime);
sb.append(", importResult=").append(importResult);
sb.append(", errorMsg=").append(errorMsg);
sb.append(", recordSize=").append(recordSize);
sb.append(", display=").append(display);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
package pwc.taxtech.atms.entity;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table data_import_log
*
* @mbg.generated do_not_delete_during_merge
*/
public class DataImportLog extends BaseEntity implements Serializable {
/**
* Database Column Remarks:
* 唯一编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 纳税人识别号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
private String taxpayerIdNum;
/**
* Database Column Remarks:
* 导入类型。0-未定义,1-利润表,2-资产负债表
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.type
*
* @mbg.generated
*/
private Integer type;
/**
* Database Column Remarks:
* 公司代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.company_code
*
* @mbg.generated
*/
private String companyCode;
/**
* Database Column Remarks:
* 公司名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.company_name
*
* @mbg.generated
*/
private String companyName;
/**
* Database Column Remarks:
* 文件类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.file_type
*
* @mbg.generated
*/
private String fileType;
/**
* Database Column Remarks:
* 年度
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_year
*
* @mbg.generated
*/
private Integer periodYear;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.tms_period_month
*
* @mbg.generated
*/
private Integer tmsPeriodMonth;
/**
* Database Column Remarks:
* 期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_month
*
* @mbg.generated
*/
private Integer periodMonth;
/**
* Database Column Remarks:
* Oracle期间状态
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.period_status
*
* @mbg.generated
*/
private String periodStatus;
/**
* Database Column Remarks:
* 操作人
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.operator
*
* @mbg.generated
*/
private String operator;
/**
* Database Column Remarks:
* 操作时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.operate_time
*
* @mbg.generated
*/
private Date operateTime;
/**
* Database Column Remarks:
* 导入结果
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.import_result
*
* @mbg.generated
*/
private Boolean importResult;
/**
* Database Column Remarks:
* 校验问题
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.error_msg
*
* @mbg.generated
*/
private String errorMsg;
/**
* Database Column Remarks:
* 记录条数
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.record_size
*
* @mbg.generated
*/
private Integer recordSize;
/**
* Database Column Remarks:
* 是否为最新导入记录。0-不是,1-是 。写入新提交记录时更新旧的为0
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.display
*
* @mbg.generated
*/
private Boolean display;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* Database Column Remarks:
* 导入类型
默认0;追加导入1;覆盖导入2;
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column data_import_log.import_type
*
* @mbg.generated
*/
private Integer importType;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table data_import_log
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.id
*
* @return the value of data_import_log.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.id
*
* @param id the value for data_import_log.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 data_import_log.organization_id
*
* @return the value of data_import_log.organization_id
*
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.organization_id
*
* @param organizationId the value for data_import_log.organization_id
*
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.taxpayer_id_num
*
* @return the value of data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
public String getTaxpayerIdNum() {
return taxpayerIdNum;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.taxpayer_id_num
*
* @param taxpayerIdNum the value for data_import_log.taxpayer_id_num
*
* @mbg.generated
*/
public void setTaxpayerIdNum(String taxpayerIdNum) {
this.taxpayerIdNum = taxpayerIdNum == null ? null : taxpayerIdNum.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.type
*
* @return the value of data_import_log.type
*
* @mbg.generated
*/
public Integer getType() {
return type;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.type
*
* @param type the value for data_import_log.type
*
* @mbg.generated
*/
public void setType(Integer type) {
this.type = type;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.company_code
*
* @return the value of data_import_log.company_code
*
* @mbg.generated
*/
public String getCompanyCode() {
return companyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.company_code
*
* @param companyCode the value for data_import_log.company_code
*
* @mbg.generated
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode == null ? null : companyCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.company_name
*
* @return the value of data_import_log.company_name
*
* @mbg.generated
*/
public String getCompanyName() {
return companyName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.company_name
*
* @param companyName the value for data_import_log.company_name
*
* @mbg.generated
*/
public void setCompanyName(String companyName) {
this.companyName = companyName == null ? null : companyName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.file_type
*
* @return the value of data_import_log.file_type
*
* @mbg.generated
*/
public String getFileType() {
return fileType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.file_type
*
* @param fileType the value for data_import_log.file_type
*
* @mbg.generated
*/
public void setFileType(String fileType) {
this.fileType = fileType == null ? null : fileType.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_year
*
* @return the value of data_import_log.period_year
*
* @mbg.generated
*/
public Integer getPeriodYear() {
return periodYear;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_year
*
* @param periodYear the value for data_import_log.period_year
*
* @mbg.generated
*/
public void setPeriodYear(Integer periodYear) {
this.periodYear = periodYear;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.tms_period_month
*
* @return the value of data_import_log.tms_period_month
*
* @mbg.generated
*/
public Integer getTmsPeriodMonth() {
return tmsPeriodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.tms_period_month
*
* @param tmsPeriodMonth the value for data_import_log.tms_period_month
*
* @mbg.generated
*/
public void setTmsPeriodMonth(Integer tmsPeriodMonth) {
this.tmsPeriodMonth = tmsPeriodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_month
*
* @return the value of data_import_log.period_month
*
* @mbg.generated
*/
public Integer getPeriodMonth() {
return periodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_month
*
* @param periodMonth the value for data_import_log.period_month
*
* @mbg.generated
*/
public void setPeriodMonth(Integer periodMonth) {
this.periodMonth = periodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.period_status
*
* @return the value of data_import_log.period_status
*
* @mbg.generated
*/
public String getPeriodStatus() {
return periodStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.period_status
*
* @param periodStatus the value for data_import_log.period_status
*
* @mbg.generated
*/
public void setPeriodStatus(String periodStatus) {
this.periodStatus = periodStatus == null ? null : periodStatus.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.operator
*
* @return the value of data_import_log.operator
*
* @mbg.generated
*/
public String getOperator() {
return operator;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.operator
*
* @param operator the value for data_import_log.operator
*
* @mbg.generated
*/
public void setOperator(String operator) {
this.operator = operator == null ? null : operator.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.operate_time
*
* @return the value of data_import_log.operate_time
*
* @mbg.generated
*/
public Date getOperateTime() {
return operateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.operate_time
*
* @param operateTime the value for data_import_log.operate_time
*
* @mbg.generated
*/
public void setOperateTime(Date operateTime) {
this.operateTime = operateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.import_result
*
* @return the value of data_import_log.import_result
*
* @mbg.generated
*/
public Boolean getImportResult() {
return importResult;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.import_result
*
* @param importResult the value for data_import_log.import_result
*
* @mbg.generated
*/
public void setImportResult(Boolean importResult) {
this.importResult = importResult;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.error_msg
*
* @return the value of data_import_log.error_msg
*
* @mbg.generated
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.error_msg
*
* @param errorMsg the value for data_import_log.error_msg
*
* @mbg.generated
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg == null ? null : errorMsg.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.record_size
*
* @return the value of data_import_log.record_size
*
* @mbg.generated
*/
public Integer getRecordSize() {
return recordSize;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.record_size
*
* @param recordSize the value for data_import_log.record_size
*
* @mbg.generated
*/
public void setRecordSize(Integer recordSize) {
this.recordSize = recordSize;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.display
*
* @return the value of data_import_log.display
*
* @mbg.generated
*/
public Boolean getDisplay() {
return display;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.display
*
* @param display the value for data_import_log.display
*
* @mbg.generated
*/
public void setDisplay(Boolean display) {
this.display = display;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column data_import_log.create_time
*
* @return the value of data_import_log.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 data_import_log.create_time
*
* @param createTime the value for data_import_log.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 data_import_log.update_time
*
* @return the value of data_import_log.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 data_import_log.update_time
*
* @param updateTime the value for data_import_log.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 data_import_log.import_type
*
* @return the value of data_import_log.import_type
*
* @mbg.generated
*/
public Integer getImportType() {
return importType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column data_import_log.import_type
*
* @param importType the value for data_import_log.import_type
*
* @mbg.generated
*/
public void setImportType(Integer importType) {
this.importType = importType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log
*
* @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(", organizationId=").append(organizationId);
sb.append(", taxpayerIdNum=").append(taxpayerIdNum);
sb.append(", type=").append(type);
sb.append(", companyCode=").append(companyCode);
sb.append(", companyName=").append(companyName);
sb.append(", fileType=").append(fileType);
sb.append(", periodYear=").append(periodYear);
sb.append(", tmsPeriodMonth=").append(tmsPeriodMonth);
sb.append(", periodMonth=").append(periodMonth);
sb.append(", periodStatus=").append(periodStatus);
sb.append(", operator=").append(operator);
sb.append(", operateTime=").append(operateTime);
sb.append(", importResult=").append(importResult);
sb.append(", errorMsg=").append(errorMsg);
sb.append(", recordSize=").append(recordSize);
sb.append(", display=").append(display);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", importType=").append(importType);
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.
<?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.DataImportLogMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
<result column="taxpayer_id_num" jdbcType="VARCHAR" property="taxpayerIdNum" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="company_code" jdbcType="VARCHAR" property="companyCode" />
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
<result column="file_type" jdbcType="VARCHAR" property="fileType" />
<result column="period_year" jdbcType="INTEGER" property="periodYear" />
<result column="tms_period_month" jdbcType="TINYINT" property="tmsPeriodMonth" />
<result column="period_month" jdbcType="TINYINT" property="periodMonth" />
<result column="period_status" jdbcType="VARCHAR" property="periodStatus" />
<result column="operator" jdbcType="VARCHAR" property="operator" />
<result column="operate_time" jdbcType="TIMESTAMP" property="operateTime" />
<result column="import_result" jdbcType="BIT" property="importResult" />
<result column="error_msg" jdbcType="VARCHAR" property="errorMsg" />
<result column="record_size" jdbcType="INTEGER" property="recordSize" />
<result column="display" jdbcType="BIT" property="display" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</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, organization_id, taxpayer_id_num, type, company_code, company_name, file_type,
period_year, tms_period_month, period_month, period_status, operator, operate_time,
import_result, error_msg, record_size, display, create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" 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 data_import_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from data_import_log
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 data_import_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from data_import_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into data_import_log (id, organization_id, taxpayer_id_num,
type, company_code, company_name,
file_type, period_year, tms_period_month,
period_month, period_status, operator,
operate_time, import_result, error_msg,
record_size, display, create_time,
update_time)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{taxpayerIdNum,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{companyCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
#{fileType,jdbcType=VARCHAR}, #{periodYear,jdbcType=INTEGER}, #{tmsPeriodMonth,jdbcType=TINYINT},
#{periodMonth,jdbcType=TINYINT}, #{periodStatus,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR},
#{operateTime,jdbcType=TIMESTAMP}, #{importResult,jdbcType=BIT}, #{errorMsg,jdbcType=VARCHAR},
#{recordSize,jdbcType=INTEGER}, #{display,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into data_import_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="organizationId != null">
organization_id,
</if>
<if test="taxpayerIdNum != null">
taxpayer_id_num,
</if>
<if test="type != null">
type,
</if>
<if test="companyCode != null">
company_code,
</if>
<if test="companyName != null">
company_name,
</if>
<if test="fileType != null">
file_type,
</if>
<if test="periodYear != null">
period_year,
</if>
<if test="tmsPeriodMonth != null">
tms_period_month,
</if>
<if test="periodMonth != null">
period_month,
</if>
<if test="periodStatus != null">
period_status,
</if>
<if test="operator != null">
operator,
</if>
<if test="operateTime != null">
operate_time,
</if>
<if test="importResult != null">
import_result,
</if>
<if test="errorMsg != null">
error_msg,
</if>
<if test="recordSize != null">
record_size,
</if>
<if test="display != null">
display,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="organizationId != null">
#{organizationId,jdbcType=VARCHAR},
</if>
<if test="taxpayerIdNum != null">
#{taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="companyCode != null">
#{companyCode,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
#{companyName,jdbcType=VARCHAR},
</if>
<if test="fileType != null">
#{fileType,jdbcType=VARCHAR},
</if>
<if test="periodYear != null">
#{periodYear,jdbcType=INTEGER},
</if>
<if test="tmsPeriodMonth != null">
#{tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="periodMonth != null">
#{periodMonth,jdbcType=TINYINT},
</if>
<if test="periodStatus != null">
#{periodStatus,jdbcType=VARCHAR},
</if>
<if test="operator != null">
#{operator,jdbcType=VARCHAR},
</if>
<if test="operateTime != null">
#{operateTime,jdbcType=TIMESTAMP},
</if>
<if test="importResult != null">
#{importResult,jdbcType=BIT},
</if>
<if test="errorMsg != null">
#{errorMsg,jdbcType=VARCHAR},
</if>
<if test="recordSize != null">
#{recordSize,jdbcType=INTEGER},
</if>
<if test="display != null">
#{display,jdbcType=BIT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from data_import_log
<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 data_import_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.organizationId != null">
organization_id = #{record.organizationId,jdbcType=VARCHAR},
</if>
<if test="record.taxpayerIdNum != null">
taxpayer_id_num = #{record.taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.companyCode != null">
company_code = #{record.companyCode,jdbcType=VARCHAR},
</if>
<if test="record.companyName != null">
company_name = #{record.companyName,jdbcType=VARCHAR},
</if>
<if test="record.fileType != null">
file_type = #{record.fileType,jdbcType=VARCHAR},
</if>
<if test="record.periodYear != null">
period_year = #{record.periodYear,jdbcType=INTEGER},
</if>
<if test="record.tmsPeriodMonth != null">
tms_period_month = #{record.tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="record.periodMonth != null">
period_month = #{record.periodMonth,jdbcType=TINYINT},
</if>
<if test="record.periodStatus != null">
period_status = #{record.periodStatus,jdbcType=VARCHAR},
</if>
<if test="record.operator != null">
operator = #{record.operator,jdbcType=VARCHAR},
</if>
<if test="record.operateTime != null">
operate_time = #{record.operateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.importResult != null">
import_result = #{record.importResult,jdbcType=BIT},
</if>
<if test="record.errorMsg != null">
error_msg = #{record.errorMsg,jdbcType=VARCHAR},
</if>
<if test="record.recordSize != null">
record_size = #{record.recordSize,jdbcType=INTEGER},
</if>
<if test="record.display != null">
display = #{record.display,jdbcType=BIT},
</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>
</set>
<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 data_import_log
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
taxpayer_id_num = #{record.taxpayerIdNum,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
company_code = #{record.companyCode,jdbcType=VARCHAR},
company_name = #{record.companyName,jdbcType=VARCHAR},
file_type = #{record.fileType,jdbcType=VARCHAR},
period_year = #{record.periodYear,jdbcType=INTEGER},
tms_period_month = #{record.tmsPeriodMonth,jdbcType=TINYINT},
period_month = #{record.periodMonth,jdbcType=TINYINT},
period_status = #{record.periodStatus,jdbcType=VARCHAR},
operator = #{record.operator,jdbcType=VARCHAR},
operate_time = #{record.operateTime,jdbcType=TIMESTAMP},
import_result = #{record.importResult,jdbcType=BIT},
error_msg = #{record.errorMsg,jdbcType=VARCHAR},
record_size = #{record.recordSize,jdbcType=INTEGER},
display = #{record.display,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update data_import_log
<set>
<if test="organizationId != null">
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
<if test="taxpayerIdNum != null">
taxpayer_id_num = #{taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="companyCode != null">
company_code = #{companyCode,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
company_name = #{companyName,jdbcType=VARCHAR},
</if>
<if test="fileType != null">
file_type = #{fileType,jdbcType=VARCHAR},
</if>
<if test="periodYear != null">
period_year = #{periodYear,jdbcType=INTEGER},
</if>
<if test="tmsPeriodMonth != null">
tms_period_month = #{tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="periodMonth != null">
period_month = #{periodMonth,jdbcType=TINYINT},
</if>
<if test="periodStatus != null">
period_status = #{periodStatus,jdbcType=VARCHAR},
</if>
<if test="operator != null">
operator = #{operator,jdbcType=VARCHAR},
</if>
<if test="operateTime != null">
operate_time = #{operateTime,jdbcType=TIMESTAMP},
</if>
<if test="importResult != null">
import_result = #{importResult,jdbcType=BIT},
</if>
<if test="errorMsg != null">
error_msg = #{errorMsg,jdbcType=VARCHAR},
</if>
<if test="recordSize != null">
record_size = #{recordSize,jdbcType=INTEGER},
</if>
<if test="display != null">
display = #{display,jdbcType=BIT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update data_import_log
set organization_id = #{organizationId,jdbcType=VARCHAR},
taxpayer_id_num = #{taxpayerIdNum,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
company_code = #{companyCode,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
file_type = #{fileType,jdbcType=VARCHAR},
period_year = #{periodYear,jdbcType=INTEGER},
tms_period_month = #{tmsPeriodMonth,jdbcType=TINYINT},
period_month = #{periodMonth,jdbcType=TINYINT},
period_status = #{periodStatus,jdbcType=VARCHAR},
operator = #{operator,jdbcType=VARCHAR},
operate_time = #{operateTime,jdbcType=TIMESTAMP},
import_result = #{importResult,jdbcType=BIT},
error_msg = #{errorMsg,jdbcType=VARCHAR},
record_size = #{recordSize,jdbcType=INTEGER},
display = #{display,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" 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 data_import_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<?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.DataImportLogMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
<result column="taxpayer_id_num" jdbcType="VARCHAR" property="taxpayerIdNum" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="company_code" jdbcType="VARCHAR" property="companyCode" />
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
<result column="file_type" jdbcType="VARCHAR" property="fileType" />
<result column="period_year" jdbcType="INTEGER" property="periodYear" />
<result column="tms_period_month" jdbcType="TINYINT" property="tmsPeriodMonth" />
<result column="period_month" jdbcType="TINYINT" property="periodMonth" />
<result column="period_status" jdbcType="VARCHAR" property="periodStatus" />
<result column="operator" jdbcType="VARCHAR" property="operator" />
<result column="operate_time" jdbcType="TIMESTAMP" property="operateTime" />
<result column="import_result" jdbcType="BIT" property="importResult" />
<result column="error_msg" jdbcType="VARCHAR" property="errorMsg" />
<result column="record_size" jdbcType="INTEGER" property="recordSize" />
<result column="display" jdbcType="BIT" property="display" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="import_type" jdbcType="INTEGER" property="importType" />
</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, organization_id, taxpayer_id_num, type, company_code, company_name, file_type,
period_year, tms_period_month, period_month, period_status, operator, operate_time,
import_result, error_msg, record_size, display, create_time, update_time, import_type
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" 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 data_import_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from data_import_log
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 data_import_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from data_import_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into data_import_log (id, organization_id, taxpayer_id_num,
type, company_code, company_name,
file_type, period_year, tms_period_month,
period_month, period_status, operator,
operate_time, import_result, error_msg,
record_size, display, create_time,
update_time, import_type)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{taxpayerIdNum,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{companyCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
#{fileType,jdbcType=VARCHAR}, #{periodYear,jdbcType=INTEGER}, #{tmsPeriodMonth,jdbcType=TINYINT},
#{periodMonth,jdbcType=TINYINT}, #{periodStatus,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR},
#{operateTime,jdbcType=TIMESTAMP}, #{importResult,jdbcType=BIT}, #{errorMsg,jdbcType=VARCHAR},
#{recordSize,jdbcType=INTEGER}, #{display,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{importType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into data_import_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="organizationId != null">
organization_id,
</if>
<if test="taxpayerIdNum != null">
taxpayer_id_num,
</if>
<if test="type != null">
type,
</if>
<if test="companyCode != null">
company_code,
</if>
<if test="companyName != null">
company_name,
</if>
<if test="fileType != null">
file_type,
</if>
<if test="periodYear != null">
period_year,
</if>
<if test="tmsPeriodMonth != null">
tms_period_month,
</if>
<if test="periodMonth != null">
period_month,
</if>
<if test="periodStatus != null">
period_status,
</if>
<if test="operator != null">
operator,
</if>
<if test="operateTime != null">
operate_time,
</if>
<if test="importResult != null">
import_result,
</if>
<if test="errorMsg != null">
error_msg,
</if>
<if test="recordSize != null">
record_size,
</if>
<if test="display != null">
display,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="importType != null">
import_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="organizationId != null">
#{organizationId,jdbcType=VARCHAR},
</if>
<if test="taxpayerIdNum != null">
#{taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="companyCode != null">
#{companyCode,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
#{companyName,jdbcType=VARCHAR},
</if>
<if test="fileType != null">
#{fileType,jdbcType=VARCHAR},
</if>
<if test="periodYear != null">
#{periodYear,jdbcType=INTEGER},
</if>
<if test="tmsPeriodMonth != null">
#{tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="periodMonth != null">
#{periodMonth,jdbcType=TINYINT},
</if>
<if test="periodStatus != null">
#{periodStatus,jdbcType=VARCHAR},
</if>
<if test="operator != null">
#{operator,jdbcType=VARCHAR},
</if>
<if test="operateTime != null">
#{operateTime,jdbcType=TIMESTAMP},
</if>
<if test="importResult != null">
#{importResult,jdbcType=BIT},
</if>
<if test="errorMsg != null">
#{errorMsg,jdbcType=VARCHAR},
</if>
<if test="recordSize != null">
#{recordSize,jdbcType=INTEGER},
</if>
<if test="display != null">
#{display,jdbcType=BIT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="importType != null">
#{importType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from data_import_log
<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 data_import_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.organizationId != null">
organization_id = #{record.organizationId,jdbcType=VARCHAR},
</if>
<if test="record.taxpayerIdNum != null">
taxpayer_id_num = #{record.taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.companyCode != null">
company_code = #{record.companyCode,jdbcType=VARCHAR},
</if>
<if test="record.companyName != null">
company_name = #{record.companyName,jdbcType=VARCHAR},
</if>
<if test="record.fileType != null">
file_type = #{record.fileType,jdbcType=VARCHAR},
</if>
<if test="record.periodYear != null">
period_year = #{record.periodYear,jdbcType=INTEGER},
</if>
<if test="record.tmsPeriodMonth != null">
tms_period_month = #{record.tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="record.periodMonth != null">
period_month = #{record.periodMonth,jdbcType=TINYINT},
</if>
<if test="record.periodStatus != null">
period_status = #{record.periodStatus,jdbcType=VARCHAR},
</if>
<if test="record.operator != null">
operator = #{record.operator,jdbcType=VARCHAR},
</if>
<if test="record.operateTime != null">
operate_time = #{record.operateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.importResult != null">
import_result = #{record.importResult,jdbcType=BIT},
</if>
<if test="record.errorMsg != null">
error_msg = #{record.errorMsg,jdbcType=VARCHAR},
</if>
<if test="record.recordSize != null">
record_size = #{record.recordSize,jdbcType=INTEGER},
</if>
<if test="record.display != null">
display = #{record.display,jdbcType=BIT},
</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.importType != null">
import_type = #{record.importType,jdbcType=INTEGER},
</if>
</set>
<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 data_import_log
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
taxpayer_id_num = #{record.taxpayerIdNum,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
company_code = #{record.companyCode,jdbcType=VARCHAR},
company_name = #{record.companyName,jdbcType=VARCHAR},
file_type = #{record.fileType,jdbcType=VARCHAR},
period_year = #{record.periodYear,jdbcType=INTEGER},
tms_period_month = #{record.tmsPeriodMonth,jdbcType=TINYINT},
period_month = #{record.periodMonth,jdbcType=TINYINT},
period_status = #{record.periodStatus,jdbcType=VARCHAR},
operator = #{record.operator,jdbcType=VARCHAR},
operate_time = #{record.operateTime,jdbcType=TIMESTAMP},
import_result = #{record.importResult,jdbcType=BIT},
error_msg = #{record.errorMsg,jdbcType=VARCHAR},
record_size = #{record.recordSize,jdbcType=INTEGER},
display = #{record.display,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
import_type = #{record.importType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update data_import_log
<set>
<if test="organizationId != null">
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
<if test="taxpayerIdNum != null">
taxpayer_id_num = #{taxpayerIdNum,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="companyCode != null">
company_code = #{companyCode,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
company_name = #{companyName,jdbcType=VARCHAR},
</if>
<if test="fileType != null">
file_type = #{fileType,jdbcType=VARCHAR},
</if>
<if test="periodYear != null">
period_year = #{periodYear,jdbcType=INTEGER},
</if>
<if test="tmsPeriodMonth != null">
tms_period_month = #{tmsPeriodMonth,jdbcType=TINYINT},
</if>
<if test="periodMonth != null">
period_month = #{periodMonth,jdbcType=TINYINT},
</if>
<if test="periodStatus != null">
period_status = #{periodStatus,jdbcType=VARCHAR},
</if>
<if test="operator != null">
operator = #{operator,jdbcType=VARCHAR},
</if>
<if test="operateTime != null">
operate_time = #{operateTime,jdbcType=TIMESTAMP},
</if>
<if test="importResult != null">
import_result = #{importResult,jdbcType=BIT},
</if>
<if test="errorMsg != null">
error_msg = #{errorMsg,jdbcType=VARCHAR},
</if>
<if test="recordSize != null">
record_size = #{recordSize,jdbcType=INTEGER},
</if>
<if test="display != null">
display = #{display,jdbcType=BIT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="importType != null">
import_type = #{importType,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update data_import_log
set organization_id = #{organizationId,jdbcType=VARCHAR},
taxpayer_id_num = #{taxpayerIdNum,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
company_code = #{companyCode,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
file_type = #{fileType,jdbcType=VARCHAR},
period_year = #{periodYear,jdbcType=INTEGER},
tms_period_month = #{tmsPeriodMonth,jdbcType=TINYINT},
period_month = #{periodMonth,jdbcType=TINYINT},
period_status = #{periodStatus,jdbcType=VARCHAR},
operator = #{operator,jdbcType=VARCHAR},
operate_time = #{operateTime,jdbcType=TIMESTAMP},
import_result = #{importResult,jdbcType=BIT},
error_msg = #{errorMsg,jdbcType=VARCHAR},
record_size = #{recordSize,jdbcType=INTEGER},
display = #{display,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
import_type = #{importType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" 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 data_import_log
<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
......@@ -1821,6 +1821,7 @@
"CoverImportBalanceSheet": "Overwrite import BS",
"AddImportBalanceSheet": "Expand import BS",
"TMSPeriod": "TMS Period",
"ImportType": "Import Type",
"cashFlow": "Cash Flow",
"CashFlowDDTitle": "Cash Flow",
"invoiceData": "Invoice Data",
......
......@@ -2076,8 +2076,7 @@
"CoverImportBalanceSheet": "覆盖导入资产负债表",
"AddImportBalanceSheet": "追加导入资产负债表",
"TMSPeriod": "税务系统期间",
"ImportType":"导入方式",
"invoiceData": "发票资料",
"InvoiceDataTitle": "发票资料",
"IDTotalAmount": "合计",
......
......@@ -846,7 +846,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -861,8 +861,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -854,12 +854,12 @@
}, {
dataField: "periodYear",
allowHeaderFiltering: false,
width: '7%',
width: '5%',
caption: $translate.instant('YearPeriod')
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '8%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -874,8 +874,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -823,7 +823,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -838,8 +838,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -263,7 +263,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -278,8 +278,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -259,8 +259,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -252,8 +252,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -251,8 +251,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -267,8 +267,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -260,8 +260,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -285,8 +285,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -262,8 +262,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '20%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -288,7 +288,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -303,8 +303,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -274,7 +274,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -289,8 +289,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -272,7 +272,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -287,8 +287,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -274,7 +274,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -289,8 +289,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -302,7 +302,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -317,8 +317,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -839,7 +839,7 @@
}, {
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
width: '5%',
caption: $translate.instant('TMSPeriod')
}, {
dataField: "periodMonth",
......@@ -854,8 +854,23 @@
}, {
dataField: "errorMsg",
allowHeaderFiltering: false,
width: '15%',
width: '10%',
caption: $translate.instant('Status')
}, {
dataField: "importType",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('ImportType'),
calculateDisplayValue: function (data) {
var importType1 = _.find(constant.importTypeList, function (item) {
return item.value == data.importType;
});
if (importType1) {
return importType1.name;
} else {
return '未知';
}
}
}
],
onContentReady: function (e) {
......
......@@ -45,6 +45,12 @@ constant.priority = {
high: 3
}
constant.importTypeList = [
{value:0,name:"默认导入"},
{value:1,name:"覆盖导入"},
{value:2,name:"追加导入"}
]
constant.customer = {
codeMaxLength: 50,
nameMaxLength: 100,
......
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