Commit 4c3cf747 authored by zhkwei's avatar zhkwei

CIT数据导入试算平衡表自动生成功能及整体优化

parent b5602edb
...@@ -135,6 +135,17 @@ public class DateUtils { ...@@ -135,6 +135,17 @@ public class DateUtils {
return period; return period;
} }
/**
* 将yyyy- 等字符串转换为区间格式 yyyy
* @param dateStr
* @return
*/
public static Integer strToPeriodY(String dateStr) {
dateStr = dateStr.replace(" ","");
Integer period = Integer.valueOf(dateStr.substring(0, 4));
return period;
}
/** /**
* 将yyyymm 字符串转换为区间格式 yyyyMM * 将yyyymm 字符串转换为区间格式 yyyyMM
......
...@@ -107,4 +107,6 @@ public interface CitJournalEntryAdjustMapper extends MyMapper { ...@@ -107,4 +107,6 @@ public interface CitJournalEntryAdjustMapper extends MyMapper {
int updateByPrimaryKey(CitJournalEntryAdjust record); int updateByPrimaryKey(CitJournalEntryAdjust record);
int insertBatch(List<CitJournalEntryAdjust> citJournalAdjustList); int insertBatch(List<CitJournalEntryAdjust> citJournalAdjustList);
List<CitJournalEntryAdjust> sumAmountByCondition(@Param("period") String period, @Param("orgList") List<String> orgList);
} }
\ No newline at end of file
...@@ -248,44 +248,44 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -248,44 +248,44 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
* 主体代码 * 主体代码
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_journal_entry_adjust.segment1 * This field corresponds to the database column cit_journal_entry_adjust.org_code
* *
* @mbg.generated * @mbg.generated
*/ */
private String segment1; private String orgCode;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 科目代码 * 科目代码
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_journal_entry_adjust.segment3 * This field corresponds to the database column cit_journal_entry_adjust.subject_code
* *
* @mbg.generated * @mbg.generated
*/ */
private String segment3; private String subjectCode;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 主体说明 * 主体说明
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_journal_entry_adjust.segment1_name * This field corresponds to the database column cit_journal_entry_adjust.org_name
* *
* @mbg.generated * @mbg.generated
*/ */
private String segment1Name; private String orgName;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 科目说明 * 科目说明
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_journal_entry_adjust.segment3_name * This field corresponds to the database column cit_journal_entry_adjust.subject_name
* *
* @mbg.generated * @mbg.generated
*/ */
private String segment3Name; private String subjectName;
/** /**
* Database Column Remarks: * Database Column Remarks:
...@@ -889,98 +889,98 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -889,98 +889,98 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_journal_entry_adjust.segment1 * This method returns the value of the database column cit_journal_entry_adjust.org_code
* *
* @return the value of cit_journal_entry_adjust.segment1 * @return the value of cit_journal_entry_adjust.org_code
* *
* @mbg.generated * @mbg.generated
*/ */
public String getSegment1() { public String getOrgCode() {
return segment1; return orgCode;
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_journal_entry_adjust.segment1 * This method sets the value of the database column cit_journal_entry_adjust.org_code
* *
* @param segment1 the value for cit_journal_entry_adjust.segment1 * @param orgCode the value for cit_journal_entry_adjust.org_code
* *
* @mbg.generated * @mbg.generated
*/ */
public void setSegment1(String segment1) { public void setOrgCode(String orgCode) {
this.segment1 = segment1 == null ? null : segment1.trim(); this.orgCode = orgCode == null ? null : orgCode.trim();
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_journal_entry_adjust.segment3 * This method returns the value of the database column cit_journal_entry_adjust.subject_code
* *
* @return the value of cit_journal_entry_adjust.segment3 * @return the value of cit_journal_entry_adjust.subject_code
* *
* @mbg.generated * @mbg.generated
*/ */
public String getSegment3() { public String getSubjectCode() {
return segment3; return subjectCode;
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_journal_entry_adjust.segment3 * This method sets the value of the database column cit_journal_entry_adjust.subject_code
* *
* @param segment3 the value for cit_journal_entry_adjust.segment3 * @param subjectCode the value for cit_journal_entry_adjust.subject_code
* *
* @mbg.generated * @mbg.generated
*/ */
public void setSegment3(String segment3) { public void setSubjectCode(String subjectCode) {
this.segment3 = segment3 == null ? null : segment3.trim(); this.subjectCode = subjectCode == null ? null : subjectCode.trim();
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_journal_entry_adjust.segment1_name * This method returns the value of the database column cit_journal_entry_adjust.org_name
* *
* @return the value of cit_journal_entry_adjust.segment1_name * @return the value of cit_journal_entry_adjust.org_name
* *
* @mbg.generated * @mbg.generated
*/ */
public String getSegment1Name() { public String getOrgName() {
return segment1Name; return orgName;
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_journal_entry_adjust.segment1_name * This method sets the value of the database column cit_journal_entry_adjust.org_name
* *
* @param segment1Name the value for cit_journal_entry_adjust.segment1_name * @param orgName the value for cit_journal_entry_adjust.org_name
* *
* @mbg.generated * @mbg.generated
*/ */
public void setSegment1Name(String segment1Name) { public void setOrgName(String orgName) {
this.segment1Name = segment1Name == null ? null : segment1Name.trim(); this.orgName = orgName == null ? null : orgName.trim();
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_journal_entry_adjust.segment3_name * This method returns the value of the database column cit_journal_entry_adjust.subject_name
* *
* @return the value of cit_journal_entry_adjust.segment3_name * @return the value of cit_journal_entry_adjust.subject_name
* *
* @mbg.generated * @mbg.generated
*/ */
public String getSegment3Name() { public String getSubjectName() {
return segment3Name; return subjectName;
} }
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_journal_entry_adjust.segment3_name * This method sets the value of the database column cit_journal_entry_adjust.subject_name
* *
* @param segment3Name the value for cit_journal_entry_adjust.segment3_name * @param subjectName the value for cit_journal_entry_adjust.subject_name
* *
* @mbg.generated * @mbg.generated
*/ */
public void setSegment3Name(String segment3Name) { public void setSubjectName(String subjectName) {
this.segment3Name = segment3Name == null ? null : segment3Name.trim(); this.subjectName = subjectName == null ? null : subjectName.trim();
} }
/** /**
...@@ -1208,10 +1208,10 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -1208,10 +1208,10 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
sb.append(", name=").append(name); sb.append(", name=").append(name);
sb.append(", voucherNum=").append(voucherNum); sb.append(", voucherNum=").append(voucherNum);
sb.append(", description=").append(description); sb.append(", description=").append(description);
sb.append(", segment1=").append(segment1); sb.append(", orgCode=").append(orgCode);
sb.append(", segment3=").append(segment3); sb.append(", subjectCode=").append(subjectCode);
sb.append(", segment1Name=").append(segment1Name); sb.append(", orgName=").append(orgName);
sb.append(", segment3Name=").append(segment3Name); sb.append(", subjectName=").append(subjectName);
sb.append(", accountedDr=").append(accountedDr); sb.append(", accountedDr=").append(accountedDr);
sb.append(", accountedCr=").append(accountedCr); sb.append(", accountedCr=").append(accountedCr);
sb.append(", createdBy=").append(createdBy); sb.append(", createdBy=").append(createdBy);
......
...@@ -111,6 +111,28 @@ public class CitTrialBalance extends BaseEntity implements Serializable { ...@@ -111,6 +111,28 @@ public class CitTrialBalance extends BaseEntity implements Serializable {
*/ */
private Integer accountPeriod; private Integer accountPeriod;
/**
* Database Column Remarks:
* 借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_trial_balance.debit_amount
*
* @mbg.generated
*/
private BigDecimal debitAmount;
/**
* Database Column Remarks:
* 贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_trial_balance.credit_amount
*
* @mbg.generated
*/
private BigDecimal creditAmount;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 期初余额 * 期初余额
...@@ -134,6 +156,8 @@ public class CitTrialBalance extends BaseEntity implements Serializable { ...@@ -134,6 +156,8 @@ public class CitTrialBalance extends BaseEntity implements Serializable {
private BigDecimal endingBalance; private BigDecimal endingBalance;
/** /**
* Database Column Remarks:
* 创建人
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_trial_balance.create_by * This field corresponds to the database column cit_trial_balance.create_by
...@@ -388,6 +412,54 @@ public class CitTrialBalance extends BaseEntity implements Serializable { ...@@ -388,6 +412,54 @@ public class CitTrialBalance extends BaseEntity implements Serializable {
this.accountPeriod = accountPeriod; this.accountPeriod = accountPeriod;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_trial_balance.debit_amount
*
* @return the value of cit_trial_balance.debit_amount
*
* @mbg.generated
*/
public BigDecimal getDebitAmount() {
return debitAmount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_trial_balance.debit_amount
*
* @param debitAmount the value for cit_trial_balance.debit_amount
*
* @mbg.generated
*/
public void setDebitAmount(BigDecimal debitAmount) {
this.debitAmount = debitAmount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_trial_balance.credit_amount
*
* @return the value of cit_trial_balance.credit_amount
*
* @mbg.generated
*/
public BigDecimal getCreditAmount() {
return creditAmount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_trial_balance.credit_amount
*
* @param creditAmount the value for cit_trial_balance.credit_amount
*
* @mbg.generated
*/
public void setCreditAmount(BigDecimal creditAmount) {
this.creditAmount = creditAmount;
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_trial_balance.beginning_balance * This method returns the value of the database column cit_trial_balance.beginning_balance
...@@ -529,6 +601,8 @@ public class CitTrialBalance extends BaseEntity implements Serializable { ...@@ -529,6 +601,8 @@ public class CitTrialBalance extends BaseEntity implements Serializable {
sb.append(", accountCode=").append(accountCode); sb.append(", accountCode=").append(accountCode);
sb.append(", accountDescription=").append(accountDescription); sb.append(", accountDescription=").append(accountDescription);
sb.append(", accountPeriod=").append(accountPeriod); sb.append(", accountPeriod=").append(accountPeriod);
sb.append(", debitAmount=").append(debitAmount);
sb.append(", creditAmount=").append(creditAmount);
sb.append(", beginningBalance=").append(beginningBalance); sb.append(", beginningBalance=").append(beginningBalance);
sb.append(", endingBalance=").append(endingBalance); sb.append(", endingBalance=").append(endingBalance);
sb.append(", createBy=").append(createBy); sb.append(", createBy=").append(createBy);
......
...@@ -786,6 +786,126 @@ public class CitTrialBalanceExample { ...@@ -786,6 +786,126 @@ public class CitTrialBalanceExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDebitAmountIsNull() {
addCriterion("debit_amount is null");
return (Criteria) this;
}
public Criteria andDebitAmountIsNotNull() {
addCriterion("debit_amount is not null");
return (Criteria) this;
}
public Criteria andDebitAmountEqualTo(BigDecimal value) {
addCriterion("debit_amount =", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountNotEqualTo(BigDecimal value) {
addCriterion("debit_amount <>", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountGreaterThan(BigDecimal value) {
addCriterion("debit_amount >", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("debit_amount >=", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountLessThan(BigDecimal value) {
addCriterion("debit_amount <", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountLessThanOrEqualTo(BigDecimal value) {
addCriterion("debit_amount <=", value, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountIn(List<BigDecimal> values) {
addCriterion("debit_amount in", values, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountNotIn(List<BigDecimal> values) {
addCriterion("debit_amount not in", values, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("debit_amount between", value1, value2, "debitAmount");
return (Criteria) this;
}
public Criteria andDebitAmountNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("debit_amount not between", value1, value2, "debitAmount");
return (Criteria) this;
}
public Criteria andCreditAmountIsNull() {
addCriterion("credit_amount is null");
return (Criteria) this;
}
public Criteria andCreditAmountIsNotNull() {
addCriterion("credit_amount is not null");
return (Criteria) this;
}
public Criteria andCreditAmountEqualTo(BigDecimal value) {
addCriterion("credit_amount =", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountNotEqualTo(BigDecimal value) {
addCriterion("credit_amount <>", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountGreaterThan(BigDecimal value) {
addCriterion("credit_amount >", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("credit_amount >=", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountLessThan(BigDecimal value) {
addCriterion("credit_amount <", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountLessThanOrEqualTo(BigDecimal value) {
addCriterion("credit_amount <=", value, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountIn(List<BigDecimal> values) {
addCriterion("credit_amount in", values, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountNotIn(List<BigDecimal> values) {
addCriterion("credit_amount not in", values, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("credit_amount between", value1, value2, "creditAmount");
return (Criteria) this;
}
public Criteria andCreditAmountNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("credit_amount not between", value1, value2, "creditAmount");
return (Criteria) this;
}
public Criteria andBeginningBalanceIsNull() { public Criteria andBeginningBalanceIsNull() {
addCriterion("beginning_balance is null"); addCriterion("beginning_balance is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
<result column="voucher_num" jdbcType="VARCHAR" property="voucherNum" /> <result column="voucher_num" jdbcType="VARCHAR" property="voucherNum" />
<result column="description" jdbcType="VARCHAR" property="description" /> <result column="description" jdbcType="VARCHAR" property="description" />
<result column="segment1" jdbcType="VARCHAR" property="segment1" /> <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
<result column="segment3" jdbcType="VARCHAR" property="segment3" /> <result column="subject_code" jdbcType="VARCHAR" property="subjectCode" />
<result column="segment1_name" jdbcType="VARCHAR" property="segment1Name" /> <result column="org_name" jdbcType="VARCHAR" property="orgName" />
<result column="segment3_name" jdbcType="VARCHAR" property="segment3Name" /> <result column="subject_name" jdbcType="VARCHAR" property="subjectName" />
<result column="accounted_dr" jdbcType="DECIMAL" property="accountedDr" /> <result column="accounted_dr" jdbcType="DECIMAL" property="accountedDr" />
<result column="accounted_cr" jdbcType="DECIMAL" property="accountedCr" /> <result column="accounted_cr" jdbcType="DECIMAL" property="accountedCr" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" /> <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
...@@ -113,8 +113,8 @@ ...@@ -113,8 +113,8 @@
--> -->
id, organization_id, project_id, period, date, source, ledger_id, ledger_name, currency_code, id, organization_id, project_id, period, date, source, ledger_id, ledger_name, currency_code,
status, header_id, line_num, approval_status, posted_status, account_period, accounting_date, status, header_id, line_num, approval_status, posted_status, account_period, accounting_date,
journal_source, category, name, voucher_num, description, segment1, segment3, segment1_name, journal_source, category, name, voucher_num, description, org_code, subject_code,
segment3_name, accounted_dr, accounted_cr, created_by, created_date, late_updated_by, org_name, subject_name, accounted_dr, accounted_cr, created_by, created_date, late_updated_by,
late_updated_date, create_time, update_time late_updated_date, create_time, update_time
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitJournalEntryAdjustExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitJournalEntryAdjustExample" resultMap="BaseResultMap">
...@@ -175,8 +175,8 @@ ...@@ -175,8 +175,8 @@
approval_status, posted_status, account_period, approval_status, posted_status, account_period,
accounting_date, journal_source, category, accounting_date, journal_source, category,
name, voucher_num, description, name, voucher_num, description,
segment1, segment3, segment1_name, org_code, subject_code, org_name,
segment3_name, accounted_dr, accounted_cr, subject_name, accounted_dr, accounted_cr,
created_by, created_date, late_updated_by, created_by, created_date, late_updated_by,
late_updated_date, create_time, update_time late_updated_date, create_time, update_time
) )
...@@ -187,8 +187,8 @@ ...@@ -187,8 +187,8 @@
#{approvalStatus,jdbcType=VARCHAR}, #{postedStatus,jdbcType=VARCHAR}, #{accountPeriod,jdbcType=INTEGER}, #{approvalStatus,jdbcType=VARCHAR}, #{postedStatus,jdbcType=VARCHAR}, #{accountPeriod,jdbcType=INTEGER},
#{accountingDate,jdbcType=TIMESTAMP}, #{journalSource,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{accountingDate,jdbcType=TIMESTAMP}, #{journalSource,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{voucherNum,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{voucherNum,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{segment1,jdbcType=VARCHAR}, #{segment3,jdbcType=VARCHAR}, #{segment1Name,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{subjectCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR},
#{segment3Name,jdbcType=VARCHAR}, #{accountedDr,jdbcType=DECIMAL}, #{accountedCr,jdbcType=DECIMAL}, #{subjectName,jdbcType=VARCHAR}, #{accountedDr,jdbcType=DECIMAL}, #{accountedCr,jdbcType=DECIMAL},
#{createdBy,jdbcType=VARCHAR}, #{createdDate,jdbcType=TIMESTAMP}, #{lateUpdatedBy,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR}, #{createdDate,jdbcType=TIMESTAMP}, #{lateUpdatedBy,jdbcType=VARCHAR},
#{lateUpdatedDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} #{lateUpdatedDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
) )
...@@ -263,17 +263,17 @@ ...@@ -263,17 +263,17 @@
<if test="description != null"> <if test="description != null">
description, description,
</if> </if>
<if test="segment1 != null"> <if test="orgCode != null">
segment1, org_code,
</if> </if>
<if test="segment3 != null"> <if test="subjectCode != null">
segment3, subject_code,
</if> </if>
<if test="segment1Name != null"> <if test="orgName != null">
segment1_name, org_name,
</if> </if>
<if test="segment3Name != null"> <if test="subjectName != null">
segment3_name, subject_name,
</if> </if>
<if test="accountedDr != null"> <if test="accountedDr != null">
accounted_dr, accounted_dr,
...@@ -364,17 +364,17 @@ ...@@ -364,17 +364,17 @@
<if test="description != null"> <if test="description != null">
#{description,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
</if> </if>
<if test="segment1 != null"> <if test="orgCode != null">
#{segment1,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR},
</if> </if>
<if test="segment3 != null"> <if test="subjectCode != null">
#{segment3,jdbcType=VARCHAR}, #{subjectCode,jdbcType=VARCHAR},
</if> </if>
<if test="segment1Name != null"> <if test="orgName != null">
#{segment1Name,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR},
</if> </if>
<if test="segment3Name != null"> <if test="subjectName != null">
#{segment3Name,jdbcType=VARCHAR}, #{subjectName,jdbcType=VARCHAR},
</if> </if>
<if test="accountedDr != null"> <if test="accountedDr != null">
#{accountedDr,jdbcType=DECIMAL}, #{accountedDr,jdbcType=DECIMAL},
...@@ -482,17 +482,17 @@ ...@@ -482,17 +482,17 @@
<if test="record.description != null"> <if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR},
</if> </if>
<if test="record.segment1 != null"> <if test="record.orgCode != null">
segment1 = #{record.segment1,jdbcType=VARCHAR}, org_code = #{record.orgCode,jdbcType=VARCHAR},
</if> </if>
<if test="record.segment3 != null"> <if test="record.subjectCode != null">
segment3 = #{record.segment3,jdbcType=VARCHAR}, subject_code = #{record.subjectCode,jdbcType=VARCHAR},
</if> </if>
<if test="record.segment1Name != null"> <if test="record.orgName != null">
segment1_name = #{record.segment1Name,jdbcType=VARCHAR}, org_name = #{record.orgName,jdbcType=VARCHAR},
</if> </if>
<if test="record.segment3Name != null"> <if test="record.subjectName != null">
segment3_name = #{record.segment3Name,jdbcType=VARCHAR}, subject_name = #{record.subjectName,jdbcType=VARCHAR},
</if> </if>
<if test="record.accountedDr != null"> <if test="record.accountedDr != null">
accounted_dr = #{record.accountedDr,jdbcType=DECIMAL}, accounted_dr = #{record.accountedDr,jdbcType=DECIMAL},
...@@ -550,10 +550,10 @@ ...@@ -550,10 +550,10 @@
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
voucher_num = #{record.voucherNum,jdbcType=VARCHAR}, voucher_num = #{record.voucherNum,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR},
segment1 = #{record.segment1,jdbcType=VARCHAR}, org_code = #{record.orgCode,jdbcType=VARCHAR},
segment3 = #{record.segment3,jdbcType=VARCHAR}, subject_code = #{record.subjectCode,jdbcType=VARCHAR},
segment1_name = #{record.segment1Name,jdbcType=VARCHAR}, org_name = #{record.orgName,jdbcType=VARCHAR},
segment3_name = #{record.segment3Name,jdbcType=VARCHAR}, subject_name = #{record.subjectName,jdbcType=VARCHAR},
accounted_dr = #{record.accountedDr,jdbcType=DECIMAL}, accounted_dr = #{record.accountedDr,jdbcType=DECIMAL},
accounted_cr = #{record.accountedCr,jdbcType=DECIMAL}, accounted_cr = #{record.accountedCr,jdbcType=DECIMAL},
created_by = #{record.createdBy,jdbcType=VARCHAR}, created_by = #{record.createdBy,jdbcType=VARCHAR},
...@@ -633,17 +633,17 @@ ...@@ -633,17 +633,17 @@
<if test="description != null"> <if test="description != null">
description = #{description,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR},
</if> </if>
<if test="segment1 != null"> <if test="orgCode != null">
segment1 = #{segment1,jdbcType=VARCHAR}, org_code = #{orgCode,jdbcType=VARCHAR},
</if> </if>
<if test="segment3 != null"> <if test="subjectCode != null">
segment3 = #{segment3,jdbcType=VARCHAR}, subject_code = #{subjectCode,jdbcType=VARCHAR},
</if> </if>
<if test="segment1Name != null"> <if test="orgName != null">
segment1_name = #{segment1Name,jdbcType=VARCHAR}, org_name = #{orgName,jdbcType=VARCHAR},
</if> </if>
<if test="segment3Name != null"> <if test="subjectName != null">
segment3_name = #{segment3Name,jdbcType=VARCHAR}, subject_name = #{subjectName,jdbcType=VARCHAR},
</if> </if>
<if test="accountedDr != null"> <if test="accountedDr != null">
accounted_dr = #{accountedDr,jdbcType=DECIMAL}, accounted_dr = #{accountedDr,jdbcType=DECIMAL},
...@@ -698,10 +698,10 @@ ...@@ -698,10 +698,10 @@
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
voucher_num = #{voucherNum,jdbcType=VARCHAR}, voucher_num = #{voucherNum,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR},
segment1 = #{segment1,jdbcType=VARCHAR}, org_code = #{orgCode,jdbcType=VARCHAR},
segment3 = #{segment3,jdbcType=VARCHAR}, subject_code = #{subjectCode,jdbcType=VARCHAR},
segment1_name = #{segment1Name,jdbcType=VARCHAR}, org_name = #{orgName,jdbcType=VARCHAR},
segment3_name = #{segment3Name,jdbcType=VARCHAR}, subject_name = #{subjectName,jdbcType=VARCHAR},
accounted_dr = #{accountedDr,jdbcType=DECIMAL}, accounted_dr = #{accountedDr,jdbcType=DECIMAL},
accounted_cr = #{accountedCr,jdbcType=DECIMAL}, accounted_cr = #{accountedCr,jdbcType=DECIMAL},
created_by = #{createdBy,jdbcType=VARCHAR}, created_by = #{createdBy,jdbcType=VARCHAR},
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
<result column="account_code" jdbcType="VARCHAR" property="accountCode" /> <result column="account_code" jdbcType="VARCHAR" property="accountCode" />
<result column="account_description" jdbcType="VARCHAR" property="accountDescription" /> <result column="account_description" jdbcType="VARCHAR" property="accountDescription" />
<result column="account_period" jdbcType="INTEGER" property="accountPeriod" /> <result column="account_period" jdbcType="INTEGER" property="accountPeriod" />
<result column="debit_amount" jdbcType="DECIMAL" property="debitAmount" />
<result column="credit_amount" jdbcType="DECIMAL" property="creditAmount" />
<result column="beginning_balance" jdbcType="DECIMAL" property="beginningBalance" /> <result column="beginning_balance" jdbcType="DECIMAL" property="beginningBalance" />
<result column="ending_balance" jdbcType="DECIMAL" property="endingBalance" /> <result column="ending_balance" jdbcType="DECIMAL" property="endingBalance" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> <result column="create_by" jdbcType="VARCHAR" property="createBy" />
...@@ -93,7 +95,8 @@ ...@@ -93,7 +95,8 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
id, organization_id, project_id, date, source, period, account_code, account_description, id, organization_id, project_id, date, source, period, account_code, account_description,
account_period, beginning_balance, ending_balance, create_by, create_time, update_time account_period, debit_amount, credit_amount, beginning_balance, ending_balance, create_by,
create_time, update_time
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitTrialBalanceExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitTrialBalanceExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -149,13 +152,15 @@ ...@@ -149,13 +152,15 @@
insert into cit_trial_balance (id, organization_id, project_id, insert into cit_trial_balance (id, organization_id, project_id,
date, source, period, date, source, period,
account_code, account_description, account_period, account_code, account_description, account_period,
beginning_balance, ending_balance, create_by, debit_amount, credit_amount, beginning_balance,
create_time, update_time) ending_balance, create_by, create_time,
update_time)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, #{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER},
#{accountCode,jdbcType=VARCHAR}, #{accountDescription,jdbcType=VARCHAR}, #{accountPeriod,jdbcType=INTEGER}, #{accountCode,jdbcType=VARCHAR}, #{accountDescription,jdbcType=VARCHAR}, #{accountPeriod,jdbcType=INTEGER},
#{beginningBalance,jdbcType=DECIMAL}, #{endingBalance,jdbcType=DECIMAL}, #{createBy,jdbcType=VARCHAR}, #{debitAmount,jdbcType=DECIMAL}, #{creditAmount,jdbcType=DECIMAL}, #{beginningBalance,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{endingBalance,jdbcType=DECIMAL}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.CitTrialBalance"> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.CitTrialBalance">
<!-- <!--
...@@ -191,6 +196,12 @@ ...@@ -191,6 +196,12 @@
<if test="accountPeriod != null"> <if test="accountPeriod != null">
account_period, account_period,
</if> </if>
<if test="debitAmount != null">
debit_amount,
</if>
<if test="creditAmount != null">
credit_amount,
</if>
<if test="beginningBalance != null"> <if test="beginningBalance != null">
beginning_balance, beginning_balance,
</if> </if>
...@@ -235,6 +246,12 @@ ...@@ -235,6 +246,12 @@
<if test="accountPeriod != null"> <if test="accountPeriod != null">
#{accountPeriod,jdbcType=INTEGER}, #{accountPeriod,jdbcType=INTEGER},
</if> </if>
<if test="debitAmount != null">
#{debitAmount,jdbcType=DECIMAL},
</if>
<if test="creditAmount != null">
#{creditAmount,jdbcType=DECIMAL},
</if>
<if test="beginningBalance != null"> <if test="beginningBalance != null">
#{beginningBalance,jdbcType=DECIMAL}, #{beginningBalance,jdbcType=DECIMAL},
</if> </if>
...@@ -296,6 +313,12 @@ ...@@ -296,6 +313,12 @@
<if test="record.accountPeriod != null"> <if test="record.accountPeriod != null">
account_period = #{record.accountPeriod,jdbcType=INTEGER}, account_period = #{record.accountPeriod,jdbcType=INTEGER},
</if> </if>
<if test="record.debitAmount != null">
debit_amount = #{record.debitAmount,jdbcType=DECIMAL},
</if>
<if test="record.creditAmount != null">
credit_amount = #{record.creditAmount,jdbcType=DECIMAL},
</if>
<if test="record.beginningBalance != null"> <if test="record.beginningBalance != null">
beginning_balance = #{record.beginningBalance,jdbcType=DECIMAL}, beginning_balance = #{record.beginningBalance,jdbcType=DECIMAL},
</if> </if>
...@@ -331,6 +354,8 @@ ...@@ -331,6 +354,8 @@
account_code = #{record.accountCode,jdbcType=VARCHAR}, account_code = #{record.accountCode,jdbcType=VARCHAR},
account_description = #{record.accountDescription,jdbcType=VARCHAR}, account_description = #{record.accountDescription,jdbcType=VARCHAR},
account_period = #{record.accountPeriod,jdbcType=INTEGER}, account_period = #{record.accountPeriod,jdbcType=INTEGER},
debit_amount = #{record.debitAmount,jdbcType=DECIMAL},
credit_amount = #{record.creditAmount,jdbcType=DECIMAL},
beginning_balance = #{record.beginningBalance,jdbcType=DECIMAL}, beginning_balance = #{record.beginningBalance,jdbcType=DECIMAL},
ending_balance = #{record.endingBalance,jdbcType=DECIMAL}, ending_balance = #{record.endingBalance,jdbcType=DECIMAL},
create_by = #{record.createBy,jdbcType=VARCHAR}, create_by = #{record.createBy,jdbcType=VARCHAR},
...@@ -371,6 +396,12 @@ ...@@ -371,6 +396,12 @@
<if test="accountPeriod != null"> <if test="accountPeriod != null">
account_period = #{accountPeriod,jdbcType=INTEGER}, account_period = #{accountPeriod,jdbcType=INTEGER},
</if> </if>
<if test="debitAmount != null">
debit_amount = #{debitAmount,jdbcType=DECIMAL},
</if>
<if test="creditAmount != null">
credit_amount = #{creditAmount,jdbcType=DECIMAL},
</if>
<if test="beginningBalance != null"> <if test="beginningBalance != null">
beginning_balance = #{beginningBalance,jdbcType=DECIMAL}, beginning_balance = #{beginningBalance,jdbcType=DECIMAL},
</if> </if>
...@@ -403,6 +434,8 @@ ...@@ -403,6 +434,8 @@
account_code = #{accountCode,jdbcType=VARCHAR}, account_code = #{accountCode,jdbcType=VARCHAR},
account_description = #{accountDescription,jdbcType=VARCHAR}, account_description = #{accountDescription,jdbcType=VARCHAR},
account_period = #{accountPeriod,jdbcType=INTEGER}, account_period = #{accountPeriod,jdbcType=INTEGER},
debit_amount = #{debitAmount,jdbcType=DECIMAL},
credit_amount = #{creditAmount,jdbcType=DECIMAL},
beginning_balance = #{beginningBalance,jdbcType=DECIMAL}, beginning_balance = #{beginningBalance,jdbcType=DECIMAL},
ending_balance = #{endingBalance,jdbcType=DECIMAL}, ending_balance = #{endingBalance,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR},
......
...@@ -93,19 +93,19 @@ ...@@ -93,19 +93,19 @@
<otherwise>'',</otherwise> <otherwise>'',</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.segment1 != null">#{item.segment1,jdbcType=VARCHAR},</when> <when test="item.orgCode != null">#{item.orgCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise> <otherwise>'',</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.segment3 != null">#{item.segment3,jdbcType=VARCHAR},</when> <when test="item.subjectCode != null">#{item.subjectCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise> <otherwise>'',</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.segment1Name != null">#{item.segment1Name,jdbcType=VARCHAR},</when> <when test="item.orgName != null">#{item.orgName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise> <otherwise>'',</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.segment3Name != null">#{item.segment3Name,jdbcType=VARCHAR},</when> <when test="item.subjectName != null">#{item.subjectName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise> <otherwise>'',</otherwise>
</choose> </choose>
<choose> <choose>
...@@ -141,8 +141,50 @@ ...@@ -141,8 +141,50 @@
<otherwise>CURRENT_TIMESTAMP,</otherwise> <otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose> </choose>
</trim> </trim>
</foreach>; </foreach>
;
SELECT 1 FROM DUAL; SELECT 1 FROM DUAL;
</insert> </insert>
<select id="sumAmountByCondition" parameterType="map" resultMap="BaseResultMap">
SELECT
subject_code as subject_code,
sum(jfinal.accounted_dr) as accounted_dr,
sum(jfinal.accounted_cr) as accounted_cr
from
(
select
cj.accounted_dr as accounted_dr,
cj.accounted_cr as accounted_cr ,
cj.subject_code as subject_code
from
cit_journal_entry_adjust cj
where
cj.period like #{period}
<if test="orgList != null and orgList.size > 0">
AND organization_id in
<foreach item="item" index="index" collection="orgList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
UNION ALL
select
j.accounted_dr as accounted_dr,
j.accounted_cr as accounted_cr,
j.segment3 as subject_code
from
journal_entry j
where
j.period like #{period}
<if test="orgList != null and orgList.size > 0">
AND organization_id in
<foreach item="item" index="index" collection="orgList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
) as jfinal
group by jfinal.subject_code
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -44,7 +44,14 @@ ...@@ -44,7 +44,14 @@
<when test="item.accountPeriod != null">#{item.accountPeriod,jdbcType=INTEGER},</when> <when test="item.accountPeriod != null">#{item.accountPeriod,jdbcType=INTEGER},</when>
<otherwise>0,</otherwise> <otherwise>0,</otherwise>
</choose> </choose>
<choose>
<when test="item.debitAmount != null">#{item.debitAmount,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.creditAmount != null">#{item.creditAmount,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose> <choose>
<when test="item.beginningBalance != null">#{item.beginningBalance,jdbcType=DECIMAL},</when> <when test="item.beginningBalance != null">#{item.beginningBalance,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise> <otherwise>0,</otherwise>
...@@ -69,5 +76,46 @@ ...@@ -69,5 +76,46 @@
</foreach>; </foreach>;
SELECT 1 FROM DUAL; SELECT 1 FROM DUAL;
</insert> </insert>
<select id="selectLastYearBegBla" parameterType="map" resultMap="BaseResultMap">
SELECT
subject_code as subject_code,
sum(jfinal.accounted_dr) as accounted_dr,
sum(jfinal.accounted_cr) as accounted_cr
from
(
select
cj.accounted_dr as accounted_dr,
cj.accounted_cr as accounted_cr ,
cj.subject_code as subject_code
from
cit_journal_entry_adjust cj
where
cj.period like #{period}
<if test="orgList != null and orgList.size > 0">
AND organization_id in
<foreach item="item" index="index" collection="orgList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
UNION ALL
select
j.accounted_dr as accounted_dr,
j.accounted_cr as accounted_cr,
j.segment3 as subject_code
from
journal_entry j
where
j.period like #{period}
<if test="orgList != null and orgList.size > 0">
AND organization_id in
<foreach item="item" index="index" collection="orgList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
) as jfinal
group by jfinal.subject_code
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -328,11 +328,11 @@ ...@@ -328,11 +328,11 @@
"InvoiceStatistics":"Invoice Statistics", "InvoiceStatistics":"Invoice Statistics",
"CITAdjustmentJournal":"CIT Adjustment Journal", "CITAdjustmentJournal":"CIT Adjustment Journal",
"CITTrialBalance":"CIT TrialBalance", "CITTrialBalance":"CIT TrialBalance",
"CITDocumentSubjectMappingTable":"CIT Document Subject Mapping Table", "CITDocumentSubjectMappingTable":"CIT Draft Subject Mapping",
"CITBalanceSheetPRC":"CIT Balance Sheet PRC", "CITBalanceSheetPRC":"CIT Balance Sheet PRC",
"CITProfitStatementPRC":"CIT Profit Statement PRC", "CITProfitStatementPRC":"CIT Profit Statement PRC",
"CITEAMAssetDisposalAmountRecord":"CIT EAM Asset Disposal Amount Record", "CITEAMAssetDisposalAmountRecord":"CIT EAM Disposal Amount",
"CITPreClassifiedDataSource":"CIT PreClassified DataSource", "CITPreClassifiedDataSource":"CIT PreClassified",
"Configuration":"Configuration", "Configuration":"Configuration",
"RevenueTypeConfiguration":"Revenue Type Config", "RevenueTypeConfiguration":"Revenue Type Config",
......
...@@ -876,10 +876,10 @@ ...@@ -876,10 +876,10 @@
"InvoiceStatistics":"发票统计资料", "InvoiceStatistics":"发票统计资料",
"CITAdjustmentJournal":"CIT-调整日记账", "CITAdjustmentJournal":"CIT-调整日记账",
"CITTrialBalance":"CIT-试算平衡表", "CITTrialBalance":"CIT-试算平衡表",
"CITDocumentSubjectMappingTable":"CIT-底稿&科目Mapping表", "CITDocumentSubjectMappingTable":"CIT-底稿科目Mapping",
"CITBalanceSheetPRC":"CIT-资产负债表(单家PRC)", "CITBalanceSheetPRC":"CIT-资产负债表(单家PRC)",
"CITProfitStatementPRC":"CIT-利润表(单家PRC)", "CITProfitStatementPRC":"CIT-利润表(单家PRC)",
"CITEAMAssetDisposalAmountRecord":"CIT-EAM资产处置金额记录表", "CITEAMAssetDisposalAmountRecord":"CIT-EAM处置金额记录表",
"CITPreClassifiedDataSource":"CIT-预提重分类数据源", "CITPreClassifiedDataSource":"CIT-预提重分类数据源",
"Configuration":"配置", "Configuration":"配置",
"RevenueTypeConfiguration":"收入类型配置", "RevenueTypeConfiguration":"收入类型配置",
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
$scope.importExcelFile = null; $scope.importExcelFile = null;
$scope.UploadPeriodTime = null; $scope.UploadPeriodTime = null;
$scope.companyList = [];
$scope.checkedCompanyList = [];
$scope.checkedCompanyCodeList = [];
$scope.checkedCompanyTypeList = "";
$scope.maxTitleLength = constant.maxButtonTitleLength;
//写日志 //写日志
var logDto = { var logDto = {
...@@ -143,7 +148,8 @@ ...@@ -143,7 +148,8 @@
return; return;
} }
var orgIds = JSON.stringify($scope.checkedCompanyCodeList); var orgIds = JSON.stringify($scope.checkedCompanyCodeList);
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
...@@ -397,6 +403,53 @@ ...@@ -397,6 +403,53 @@
}); });
}; };
$scope.selectOne = function () {
$scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) {
var index = $scope.checkedCompanyList.indexOf(i.id);
if(i.checked && index === -1) {
$scope.checkedCompanyList.push(i);
} else if (!i.checked && index !== -1){
$scope.checkedCompanyList.splice(index, 1);
}
});
$scope.selectedAll = $scope.companyList.length === $scope.checkedCompanyList.length;
$scope.checkedCompanyTypeList = "";
$scope.checkedCompanyCodeList = [];
angular.forEach($scope.checkedCompanyList,function (i) {
$scope.checkedCompanyTypeList += i.name+";";
$scope.checkedCompanyCodeList.push(i.id);
});
console.log($scope.checkedCompanyList);
};
$scope.selectAll = function () {
if($scope.selectedAll) {
$scope.selectedOne = true;
$scope.checkedCompanyList = [];
angular.forEach($scope.companyList, function (i, index) {
$scope.checkedCompanyList.push(i);
i.checked = true;
})
}else {
$scope.selectedOne = false;
$scope.checkedCompanyList = [];
angular.forEach($scope.companyList, function (i, index) {
i.checked = false;
})
}
$scope.checkedCompanyTypeList = "";
$scope.checkedCompanyCodeList = [];
angular.forEach($scope.checkedCompanyList,function (i) {
$scope.checkedCompanyTypeList += i.name;
$scope.checkedCompanyCodeList.push(i.id);
});
console.log($scope.checkedCompanyList);
};
$scope.downloadTemplate = function () { $scope.downloadTemplate = function () {
debugger; debugger;
templateService.citDownloadTemplate(constant.citImportFileType.BalanceSheetPrcAdjust).success(function (data, status, headers) { templateService.citDownloadTemplate(constant.citImportFileType.BalanceSheetPrcAdjust).success(function (data, status, headers) {
......
...@@ -140,6 +140,8 @@ ...@@ -140,6 +140,8 @@
SweetAlert.warning($translate.instant('PleaseSelectPeriod')); SweetAlert.warning($translate.instant('PleaseSelectPeriod'));
return; return;
} }
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
......
...@@ -140,7 +140,8 @@ ...@@ -140,7 +140,8 @@
SweetAlert.warning($translate.instant('PleaseSelectPeriod')); SweetAlert.warning($translate.instant('PleaseSelectPeriod'));
return; return;
} }
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
$scope.checkedCompanyCodeList = []; $scope.checkedCompanyCodeList = [];
$scope.checkedCompanyTypeList = ""; $scope.checkedCompanyTypeList = "";
$scope.maxTitleLength = constant.maxButtonTitleLength;
...@@ -151,7 +152,8 @@ ...@@ -151,7 +152,8 @@
} }
var orgIds = JSON.stringify($scope.checkedCompanyCodeList); var orgIds = JSON.stringify($scope.checkedCompanyCodeList);
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
...@@ -173,7 +175,7 @@ ...@@ -173,7 +175,7 @@
debugger; debugger;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.result) { if (resp.result || resp.data) {
debugger; debugger;
logDto.UpdateState = $translate.instant('ImportSuccess'); logDto.UpdateState = $translate.instant('ImportSuccess');
vatOperationLogService.addOperationLog(logDto); vatOperationLogService.addOperationLog(logDto);
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
$scope.checkedCompanyCodeList = []; $scope.checkedCompanyCodeList = [];
$scope.checkedCompanyTypeList = ""; $scope.checkedCompanyTypeList = "";
$scope.maxTitleLength = constant.maxButtonTitleLength;
//写日志 //写日志
var logDto = { var logDto = {
...@@ -147,7 +148,8 @@ ...@@ -147,7 +148,8 @@
return; return;
} }
var orgIds = JSON.stringify($scope.checkedCompanyCodeList); var orgIds = JSON.stringify($scope.checkedCompanyCodeList);
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
$scope.checkedCompanyCodeList = []; $scope.checkedCompanyCodeList = [];
$scope.checkedCompanyTypeList = ""; $scope.checkedCompanyTypeList = "";
$scope.maxTitleLength = constant.maxButtonTitleLength;
//写日志 //写日志
...@@ -148,7 +149,8 @@ ...@@ -148,7 +149,8 @@
return; return;
} }
var orgIds = JSON.stringify($scope.checkedCompanyCodeList); var orgIds = JSON.stringify($scope.checkedCompanyCodeList);
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
......
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
$scope.checkedCompanyCodeList = []; $scope.checkedCompanyCodeList = [];
$scope.checkedCompanyTypeList = ""; $scope.checkedCompanyTypeList = "";
$scope.maxTitleLength = constant.maxButtonTitleLength;
//写日志 //写日志
var logDto = { var logDto = {
...@@ -149,7 +151,8 @@ ...@@ -149,7 +151,8 @@
return; return;
} }
var orgIds = JSON.stringify($scope.checkedCompanyCodeList); var orgIds = JSON.stringify($scope.checkedCompanyCodeList);
//控制背景阴影的出现
$('#busy-indicator-container').show();
Upload.upload({ Upload.upload({
url: uploadUrl, url: uploadUrl,
data: { data: {
......
...@@ -1428,6 +1428,17 @@ constant.importFileType = { ...@@ -1428,6 +1428,17 @@ constant.importFileType = {
ExtractInvoiceData: 11 ExtractInvoiceData: 11
}; };
constant.citImportFileType = {
undefined: 0,
JournalAdjust: 1,
TrialBalance: 2,
DraftAccountMapping: 3,
BalanceSheetPrcAdjust: 4,
ProfitPrcAdjust: 5,
EAMAssetsDisposal: 6,
SalaryAdvance: 7
};
constant.fileTypeList = [ constant.fileTypeList = [
{code:0,type:"月度科目余额表"}, {code:0,type:"月度科目余额表"},
{code:1,type:"日记账"}, {code:1,type:"日记账"},
......
...@@ -9,5 +9,8 @@ webservices.factory('citImportDataService', ['$http', 'apiConfig', function ($ht ...@@ -9,5 +9,8 @@ webservices.factory('citImportDataService', ['$http', 'apiConfig', function ($ht
}, },
/***************************************批量数据导入服务(真) end**************************************************************/ /***************************************批量数据导入服务(真) end**************************************************************/
autoGeneTB: function () {
return $http.post('/citImport/getCitDataImportLog', apiConfig.create());
},
}; };
}]); }]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment