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

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

parent 1f74d0af
...@@ -215,6 +215,19 @@ public class DataImportLogDto implements Serializable { ...@@ -215,6 +215,19 @@ public class DataImportLogDto implements Serializable {
*/ */
private Date updateTime; 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 was generated by MyBatis Generator.
* This field corresponds to the database table data_import_log * This field corresponds to the database table data_import_log
...@@ -623,12 +636,14 @@ public class DataImportLogDto implements Serializable { ...@@ -623,12 +636,14 @@ public class DataImportLogDto implements Serializable {
this.recordSize = recordSize; this.recordSize = recordSize;
} }
/** public Integer getImportType() {
* This method was generated by MyBatis Generator. return importType;
* This method corresponds to the database table data_import_log }
*
* @mbg.generated public void setImportType(Integer importType) {
*/ this.importType = importType;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
...@@ -637,6 +652,7 @@ public class DataImportLogDto implements Serializable { ...@@ -637,6 +652,7 @@ public class DataImportLogDto implements Serializable {
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", organizationId=").append(organizationId); sb.append(", organizationId=").append(organizationId);
sb.append(", taxpayerIdNum=").append(taxpayerIdNum);
sb.append(", type=").append(type); sb.append(", type=").append(type);
sb.append(", companyCode=").append(companyCode); sb.append(", companyCode=").append(companyCode);
sb.append(", companyName=").append(companyName); sb.append(", companyName=").append(companyName);
...@@ -649,8 +665,10 @@ public class DataImportLogDto implements Serializable { ...@@ -649,8 +665,10 @@ public class DataImportLogDto implements Serializable {
sb.append(", operateTime=").append(operateTime); sb.append(", operateTime=").append(operateTime);
sb.append(", importResult=").append(importResult); sb.append(", importResult=").append(importResult);
sb.append(", errorMsg=").append(errorMsg); sb.append(", errorMsg=").append(errorMsg);
sb.append(", recordSize=").append(recordSize);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
sb.append(", importType=").append(importType);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
......
...@@ -283,7 +283,8 @@ public class DataImportService extends BaseService { ...@@ -283,7 +283,8 @@ public class DataImportService extends BaseService {
EnumImportType.ProfitLoss.getCode(), period/100, EnumImportType.ProfitLoss.getCode(), period/100,
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
companyName, fileType); companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) { if (organizations.size() < 1) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
...@@ -460,6 +461,8 @@ public class DataImportService extends BaseService { ...@@ -460,6 +461,8 @@ public class DataImportService extends BaseService {
EnumImportType.BalanceSheet.getCode(), period/100, EnumImportType.BalanceSheet.getCode(), period/100,
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
companyName, fileType); companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) { if (organizations.size() < 1) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
...@@ -611,6 +614,8 @@ public class DataImportService extends BaseService { ...@@ -611,6 +614,8 @@ public class DataImportService extends BaseService {
EnumImportType.CashFlow.getCode(), period/100, EnumImportType.CashFlow.getCode(), period/100,
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
companyName, fileType); companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) { if (organizations.size() < 1) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
...@@ -767,6 +772,8 @@ public class DataImportService extends BaseService { ...@@ -767,6 +772,8 @@ public class DataImportService extends BaseService {
EnumImportType.InvoiceData.getCode(), period/100, EnumImportType.InvoiceData.getCode(), period/100,
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
companyName, fileType); companyName, fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) { if (organizations.size() < 1) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
...@@ -978,7 +985,8 @@ public class DataImportService extends BaseService { ...@@ -978,7 +985,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
rlits.get(0).getSubjectName(), ""); rlits.get(0).getSubjectName(), "");
dataImportLog.setRecordSize(rlits.size()); dataImportLog.setRecordSize(rlits.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){ if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
...@@ -1081,7 +1089,8 @@ public class DataImportService extends BaseService { ...@@ -1081,7 +1089,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, ats.get(0).getPeriod()%100, tmsPeriod%100, ats.get(0).getPeriod()%100,
ats.get(0).getSegment1Name(), ""); ats.get(0).getSegment1Name(), "");
dataImportLog.setRecordSize(ats.size()); dataImportLog.setRecordSize(ats.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){ if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
...@@ -1185,7 +1194,8 @@ public class DataImportService extends BaseService { ...@@ -1185,7 +1194,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, cprs.get(0).getPeriod()%100, tmsPeriod%100, cprs.get(0).getPeriod()%100,
"", ""); "", "");
dataImportLog.setRecordSize(cprs.size()); dataImportLog.setRecordSize(cprs.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){ if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
...@@ -1289,6 +1299,8 @@ public class DataImportService extends BaseService { ...@@ -1289,6 +1299,8 @@ public class DataImportService extends BaseService {
EnumImportType.CertifiedInvoicesList.getCode(), period/100, EnumImportType.CertifiedInvoicesList.getCode(), period/100,
tmsPeriod%100, period%100, tmsPeriod%100, period%100,
"", fileType); "", fileType);
//添加导入类型
dataImportLog.setImportType(importType);
if (organizations.size() < 1) { if (organizations.size() < 1) {
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
...@@ -1453,7 +1465,8 @@ public class DataImportService extends BaseService { ...@@ -1453,7 +1465,8 @@ public class DataImportService extends BaseService {
tmsPeriod%100, irs.get(0).getPeriod()%100, tmsPeriod%100, irs.get(0).getPeriod()%100,
irs.get(0).getBillingBody(), ""); irs.get(0).getBillingBody(), "");
dataImportLog.setRecordSize(irs.size()); dataImportLog.setRecordSize(irs.size());
//添加导入类型
dataImportLog.setImportType(importType);
if(orgs.size()<1){ if(orgs.size()<1){
dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError); dataImportLog.setErrorMsg(ErrorMessageCN.NoCompanyError);
dataImportLog.setImportResult(false); dataImportLog.setImportResult(false);
......
...@@ -41,11 +41,19 @@ ...@@ -41,11 +41,19 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/> <property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/>
</javaClientGenerator> </javaClientGenerator>
<table tableName="analysis_expected_tax_return" domainObjectName="AnalysisExpectedTaxReturn"> <table tableName="data_import_log" domainObjectName="DataImportLog">
<property name="useActualColumnNames" value="false"/> <property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <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>
<!--<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">--> <!--<table tableName="cit_distribution" domainObjectName="CitDistribution">-->
<!--<property name="useActualColumnNames" value="false"/>--> <!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>--> <!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
...@@ -62,13 +70,7 @@ ...@@ -62,13 +70,7 @@
<columnOverride column="num_of_branches" javaType="java.lang.Integer" jdbcType="TINYINT"/> <columnOverride column="num_of_branches" javaType="java.lang.Integer" jdbcType="TINYINT"/>
</table> </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"> <table tableName="organization_extra" domainObjectName="OrganizationExtra">
<property name="useActualColumnNames" value="false"/> <property name="useActualColumnNames" value="false"/>
......
...@@ -106,5 +106,6 @@ public interface DataImportLogMapper extends MyMapper { ...@@ -106,5 +106,6 @@ public interface DataImportLogMapper extends MyMapper {
*/ */
int updateByPrimaryKey(DataImportLog record); int updateByPrimaryKey(DataImportLog record);
int displayOld(@Param("type") Integer type); int displayOld(@Param("type") Integer type);
} }
\ No newline at end of file
...@@ -220,6 +220,18 @@ public class DataImportLog extends BaseEntity implements Serializable { ...@@ -220,6 +220,18 @@ public class DataImportLog extends BaseEntity implements Serializable {
*/ */
private Date updateTime; 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 was generated by MyBatis Generator.
* This field corresponds to the database table data_import_log * This field corresponds to the database table data_import_log
...@@ -684,6 +696,30 @@ public class DataImportLog extends BaseEntity implements Serializable { ...@@ -684,6 +696,30 @@ public class DataImportLog extends BaseEntity implements Serializable {
this.updateTime = 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 was generated by MyBatis Generator.
* This method corresponds to the database table data_import_log * This method corresponds to the database table data_import_log
...@@ -715,6 +751,7 @@ public class DataImportLog extends BaseEntity implements Serializable { ...@@ -715,6 +751,7 @@ public class DataImportLog extends BaseEntity implements Serializable {
sb.append(", display=").append(display); sb.append(", display=").append(display);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
sb.append(", importType=").append(importType);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
......
...@@ -1414,6 +1414,66 @@ public class DataImportLogExample { ...@@ -1414,6 +1414,66 @@ public class DataImportLogExample {
addCriterion("update_time not between", value1, value2, "updateTime"); addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andImportTypeIsNull() {
addCriterion("import_type is null");
return (Criteria) this;
}
public Criteria andImportTypeIsNotNull() {
addCriterion("import_type is not null");
return (Criteria) this;
}
public Criteria andImportTypeEqualTo(Integer value) {
addCriterion("import_type =", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeNotEqualTo(Integer value) {
addCriterion("import_type <>", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeGreaterThan(Integer value) {
addCriterion("import_type >", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("import_type >=", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeLessThan(Integer value) {
addCriterion("import_type <", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeLessThanOrEqualTo(Integer value) {
addCriterion("import_type <=", value, "importType");
return (Criteria) this;
}
public Criteria andImportTypeIn(List<Integer> values) {
addCriterion("import_type in", values, "importType");
return (Criteria) this;
}
public Criteria andImportTypeNotIn(List<Integer> values) {
addCriterion("import_type not in", values, "importType");
return (Criteria) this;
}
public Criteria andImportTypeBetween(Integer value1, Integer value2) {
addCriterion("import_type between", value1, value2, "importType");
return (Criteria) this;
}
public Criteria andImportTypeNotBetween(Integer value1, Integer value2) {
addCriterion("import_type not between", value1, value2, "importType");
return (Criteria) this;
}
} }
/** /**
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<result column="display" jdbcType="BIT" property="display" /> <result column="display" jdbcType="BIT" property="display" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="import_type" jdbcType="INTEGER" property="importType" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
--> -->
id, organization_id, taxpayer_id_num, type, company_code, company_name, file_type, 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, period_year, tms_period_month, period_month, period_status, operator, operate_time,
import_result, error_msg, record_size, display, create_time, update_time import_result, error_msg, record_size, display, create_time, update_time, import_type
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -158,14 +159,14 @@ ...@@ -158,14 +159,14 @@
period_month, period_status, operator, period_month, period_status, operator,
operate_time, import_result, error_msg, operate_time, import_result, error_msg,
record_size, display, create_time, record_size, display, create_time,
update_time) update_time, import_type)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{taxpayerIdNum,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{taxpayerIdNum,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{companyCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{companyCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
#{fileType,jdbcType=VARCHAR}, #{periodYear,jdbcType=INTEGER}, #{tmsPeriodMonth,jdbcType=TINYINT}, #{fileType,jdbcType=VARCHAR}, #{periodYear,jdbcType=INTEGER}, #{tmsPeriodMonth,jdbcType=TINYINT},
#{periodMonth,jdbcType=TINYINT}, #{periodStatus,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR}, #{periodMonth,jdbcType=TINYINT}, #{periodStatus,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR},
#{operateTime,jdbcType=TIMESTAMP}, #{importResult,jdbcType=BIT}, #{errorMsg,jdbcType=VARCHAR}, #{operateTime,jdbcType=TIMESTAMP}, #{importResult,jdbcType=BIT}, #{errorMsg,jdbcType=VARCHAR},
#{recordSize,jdbcType=INTEGER}, #{display,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{recordSize,jdbcType=INTEGER}, #{display,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP}, #{importType,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.DataImportLog"> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.DataImportLog">
<!-- <!--
...@@ -231,6 +232,9 @@ ...@@ -231,6 +232,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="importType != null">
import_type,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -290,6 +294,9 @@ ...@@ -290,6 +294,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="importType != null">
#{importType,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultType="java.lang.Long">
...@@ -366,6 +373,9 @@ ...@@ -366,6 +373,9 @@
<if test="record.updateTime != null"> <if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.importType != null">
import_type = #{record.importType,jdbcType=INTEGER},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -395,7 +405,8 @@ ...@@ -395,7 +405,8 @@
record_size = #{record.recordSize,jdbcType=INTEGER}, record_size = #{record.recordSize,jdbcType=INTEGER},
display = #{record.display,jdbcType=BIT}, display = #{record.display,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP} update_time = #{record.updateTime,jdbcType=TIMESTAMP},
import_type = #{record.importType,jdbcType=INTEGER}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -461,6 +472,9 @@ ...@@ -461,6 +472,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="importType != null">
import_type = #{importType,jdbcType=INTEGER},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
...@@ -487,7 +501,8 @@ ...@@ -487,7 +501,8 @@
record_size = #{recordSize,jdbcType=INTEGER}, record_size = #{recordSize,jdbcType=INTEGER},
display = #{display,jdbcType=BIT}, display = #{display,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP},
import_type = #{importType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultMap="BaseResultMap"> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.DataImportLogExample" resultMap="BaseResultMap">
......
...@@ -1821,6 +1821,7 @@ ...@@ -1821,6 +1821,7 @@
"CoverImportBalanceSheet": "Overwrite import BS", "CoverImportBalanceSheet": "Overwrite import BS",
"AddImportBalanceSheet": "Expand import BS", "AddImportBalanceSheet": "Expand import BS",
"TMSPeriod": "TMS Period", "TMSPeriod": "TMS Period",
"ImportType": "Import Type",
"cashFlow": "Cash Flow", "cashFlow": "Cash Flow",
"CashFlowDDTitle": "Cash Flow", "CashFlowDDTitle": "Cash Flow",
"invoiceData": "Invoice Data", "invoiceData": "Invoice Data",
......
...@@ -2076,8 +2076,7 @@ ...@@ -2076,8 +2076,7 @@
"CoverImportBalanceSheet": "覆盖导入资产负债表", "CoverImportBalanceSheet": "覆盖导入资产负债表",
"AddImportBalanceSheet": "追加导入资产负债表", "AddImportBalanceSheet": "追加导入资产负债表",
"TMSPeriod": "税务系统期间", "TMSPeriod": "税务系统期间",
"ImportType":"导入方式",
"invoiceData": "发票资料", "invoiceData": "发票资料",
"InvoiceDataTitle": "发票资料", "InvoiceDataTitle": "发票资料",
"IDTotalAmount": "合计", "IDTotalAmount": "合计",
......
...@@ -846,7 +846,7 @@ ...@@ -846,7 +846,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -861,8 +861,23 @@ ...@@ -861,8 +861,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -854,12 +854,12 @@ ...@@ -854,12 +854,12 @@
}, { }, {
dataField: "periodYear", dataField: "periodYear",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '7%', width: '5%',
caption: $translate.instant('YearPeriod') caption: $translate.instant('YearPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '8%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -874,8 +874,23 @@ ...@@ -874,8 +874,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -823,7 +823,7 @@ ...@@ -823,7 +823,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -838,8 +838,23 @@ ...@@ -838,8 +838,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -278,8 +278,23 @@ ...@@ -278,8 +278,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -259,8 +259,23 @@ ...@@ -259,8 +259,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -252,8 +252,23 @@ ...@@ -252,8 +252,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -251,8 +251,23 @@ ...@@ -251,8 +251,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -267,8 +267,23 @@ ...@@ -267,8 +267,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -260,8 +260,23 @@ ...@@ -260,8 +260,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -285,8 +285,23 @@ ...@@ -285,8 +285,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -262,8 +262,23 @@ ...@@ -262,8 +262,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -303,8 +303,23 @@ ...@@ -303,8 +303,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -289,8 +289,23 @@ ...@@ -289,8 +289,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -287,8 +287,23 @@ ...@@ -287,8 +287,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -289,8 +289,23 @@ ...@@ -289,8 +289,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -317,8 +317,23 @@ ...@@ -317,8 +317,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -839,7 +839,7 @@ ...@@ -839,7 +839,7 @@
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '5%',
caption: $translate.instant('TMSPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodMonth", dataField: "periodMonth",
...@@ -854,8 +854,23 @@ ...@@ -854,8 +854,23 @@
}, { }, {
dataField: "errorMsg", dataField: "errorMsg",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '10%',
caption: $translate.instant('Status') 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) { onContentReady: function (e) {
......
...@@ -45,6 +45,12 @@ constant.priority = { ...@@ -45,6 +45,12 @@ constant.priority = {
high: 3 high: 3
} }
constant.importTypeList = [
{value:0,name:"默认导入"},
{value:1,name:"覆盖导入"},
{value:2,name:"追加导入"}
]
constant.customer = { constant.customer = {
codeMaxLength: 50, codeMaxLength: 50,
nameMaxLength: 100, 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