chore:凭证信息页面速度优化

This commit is contained in:
chaojie.li 2021-11-19 18:09:15 +08:00
parent 300d4421ae
commit 1dba9365ed
3 changed files with 288 additions and 134 deletions

View File

@ -1,132 +1,152 @@
<?xml version="1.0" encoding="UTF-8"?>
<jbo>
<package name="jbo.voucher" label="凭证相关配置">
<class name="LV_AUXILIARY_ACCOUNT" label="辅助账管理" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="AUX_NUMBER" label="辅助帐编号" type="STRING" length="32"/>
<attribute name="AUX_NAME" label="辅助帐名称" type="STRING" length="200"/>
<attribute name="VALUE_LIST" label="取值列表" type="STRING" length="200"/>
<attribute name="VALUE_MODE" label="取值方式" type="STRING" length="2000"/>
<attribute name="IS_USER" label="是否有效" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_AUXILIARY_ACCOUNT" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_BASIC_PARAM" label="基础参数库" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="编号" type="STRING" length="32"/>
<attribute name="PARAM_NAME" label="参数名" type="STRING" length="200"/>
<attribute name="PARAM_NUMBER" label="参数编号" type="STRING" length="32"/>
<attribute name="CALL_PARAM_NUMBER" label="调用参数名" type="STRING" length="200"/>
<attribute name="RETURN_TYPE" label="返回数据类型" type="STRING" length="32"/>
<attribute name="RETURN_NAME" label="返回参数名" type="STRING" length="200"/>
<attribute name="EXECUTION_TYPE" label="执行类型" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="JAVA类或SQL" type="STRING" length="2000"/>
<attribute name="REMARK" label="备注" type="STRING" length="2000"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_BASIC_PARAM" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_DEFAULT_ATTRIBUTE" label="默认属性库" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="编号" type="STRING" length="32"/>
<attribute name="ATTR_NAME" label="属性名" type="STRING" length="200"/>
<attribute name="ATTR_ID" label="属性ID" type="STRING" length="32"/>
<attribute name="ATTR_VALUE" label="属性值" type="STRING" length="32"/>
<attribute name="VOUCHER_TYPE" label="凭证分类" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_DEFAULT_ATTRIBUTE" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_STACTS_CONFIG" label="科目管理" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="OWNED_COMPANY" label="所属公司" type="STRING" length="200"/>
<attribute name="SUBJECTS_NAME" label="科目名称" type="STRING" length="3000"/>
<attribute name="SUBJECTS_CODE" label="科目编号" type="STRING" length="300"/>
<attribute name="AUXILIARY_TYPE" label="辅助帐类型" type="STRING" length="300"/>
<attribute name="ABSTRACT_TEMPLATE" label="摘要模板" type="STRING" length="200"/>
<attribute name="IS_USE" label="是否有效" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值方式" type="STRING" length="2000"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_STACTS_CONFIG" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_CONFIG" label="凭证配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="MODULAR_NUMBER" label="模块编号" type="STRING" length="200"/>
<attribute name="OWNED_COMPANY" label="所属公司" type="STRING" length="200"/>
<attribute name="PROJ_TYPE" label="项目类型" type="STRING" length="32"/>
<attribute name="INIT_CLASS" label="初始化类" type="STRING" length="1000"/>
<attribute name="VOUCHER_TYPE" label="凭证分类" type="STRING" length="32"/>
<attribute name="VOUCHER_NO" label="凭证编号" type="STRING" length="32"/>
<attribute name="FIR_KEY" label="关键字一" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_CONFIG" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_LOAN" label="借贷配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SORT_NUMBER" label="排序号" type="STRING" length="32"/>
<attribute name="LOAN_SUBJECT" label="科目" type="STRING" length="32"/>
<attribute name="LOAN_DIRECTION" label="借贷方向" type="STRING" length="32"/>
<attribute name="IS_CUSTOM_ABSTRACT" label="是否自定义摘要" type="STRING" length="2000"/>
<attribute name="VALUE_ABSTRACT" label="摘要" type="STRING" length="200"/>
<attribute name="IS_CUSTOM_VALUE" label="是否自定义取值" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值" type="STRING" length="2000"/>
<attribute name="VOUCHER_ID" label="凭证ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_LOAN" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_PARAM" label="参数配置列表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="参数编号" type="STRING" length="32"/>
<attribute name="PARAM_NAME" label="参数名" type="STRING" length="200"/>
<attribute name="VALUE_TYPE" label="取值类型" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值" type="STRING" length="2000"/>
<attribute name="VOUCHER_ID" label="凭证ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_PARAM" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<?xml version="1.0" encoding="UTF-8"?>
<jbo>
<package name="jbo.voucher" label="凭证相关配置">
<class name="LV_AUXILIARY_ACCOUNT" label="辅助账管理" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="AUX_NUMBER" label="辅助帐编号" type="STRING" length="32"/>
<attribute name="AUX_NAME" label="辅助帐名称" type="STRING" length="200"/>
<attribute name="VALUE_LIST" label="取值列表" type="STRING" length="200"/>
<attribute name="VALUE_MODE" label="取值方式" type="STRING" length="2000"/>
<attribute name="IS_USER" label="是否有效" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_AUXILIARY_ACCOUNT" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_BASIC_PARAM" label="基础参数库" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="编号" type="STRING" length="32"/>
<attribute name="PARAM_NAME" label="参数名" type="STRING" length="200"/>
<attribute name="PARAM_NUMBER" label="参数编号" type="STRING" length="32"/>
<attribute name="CALL_PARAM_NUMBER" label="调用参数名" type="STRING" length="200"/>
<attribute name="RETURN_TYPE" label="返回数据类型" type="STRING" length="32"/>
<attribute name="RETURN_NAME" label="返回参数名" type="STRING" length="200"/>
<attribute name="EXECUTION_TYPE" label="执行类型" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="JAVA类或SQL" type="STRING" length="2000"/>
<attribute name="REMARK" label="备注" type="STRING" length="2000"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_BASIC_PARAM" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_DEFAULT_ATTRIBUTE" label="默认属性库" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="编号" type="STRING" length="32"/>
<attribute name="ATTR_NAME" label="属性名" type="STRING" length="200"/>
<attribute name="ATTR_ID" label="属性ID" type="STRING" length="32"/>
<attribute name="ATTR_VALUE" label="属性值" type="STRING" length="32"/>
<attribute name="VOUCHER_TYPE" label="凭证分类" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_DEFAULT_ATTRIBUTE" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_STACTS_CONFIG" label="科目管理" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="OWNED_COMPANY" label="所属公司" type="STRING" length="200"/>
<attribute name="SUBJECTS_NAME" label="科目名称" type="STRING" length="3000"/>
<attribute name="SUBJECTS_CODE" label="科目编号" type="STRING" length="300"/>
<attribute name="AUXILIARY_TYPE" label="辅助帐类型" type="STRING" length="300"/>
<attribute name="ABSTRACT_TEMPLATE" label="摘要模板" type="STRING" length="200"/>
<attribute name="IS_USE" label="是否有效" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值方式" type="STRING" length="2000"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_STACTS_CONFIG" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_CONFIG" label="凭证配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="MODULAR_NUMBER" label="模块编号" type="STRING" length="200"/>
<attribute name="OWNED_COMPANY" label="所属公司" type="STRING" length="200"/>
<attribute name="PROJ_TYPE" label="项目类型" type="STRING" length="32"/>
<attribute name="INIT_CLASS" label="初始化类" type="STRING" length="1000"/>
<attribute name="VOUCHER_TYPE" label="凭证分类" type="STRING" length="32"/>
<attribute name="VOUCHER_NO" label="凭证编号" type="STRING" length="32"/>
<attribute name="FIR_KEY" label="关键字一" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_CONFIG" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_LOAN" label="借贷配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SORT_NUMBER" label="排序号" type="STRING" length="32"/>
<attribute name="LOAN_SUBJECT" label="科目" type="STRING" length="32"/>
<attribute name="LOAN_DIRECTION" label="借贷方向" type="STRING" length="32"/>
<attribute name="IS_CUSTOM_ABSTRACT" label="是否自定义摘要" type="STRING" length="2000"/>
<attribute name="VALUE_ABSTRACT" label="摘要" type="STRING" length="200"/>
<attribute name="IS_CUSTOM_VALUE" label="是否自定义取值" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值" type="STRING" length="2000"/>
<attribute name="VOUCHER_ID" label="凭证ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_LOAN" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LV_VOUCHER_PARAM" label="参数配置列表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="主键" type="STRING" length="32"/>
<attribute name="SERIAL_NUMBER" label="参数编号" type="STRING" length="32"/>
<attribute name="PARAM_NAME" label="参数名" type="STRING" length="200"/>
<attribute name="VALUE_TYPE" label="取值类型" type="STRING" length="32"/>
<attribute name="VALUE_MODE" label="取值" type="STRING" length="2000"/>
<attribute name="VOUCHER_ID" label="凭证ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LV_VOUCHER_PARAM" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="VOUCHER_V8_SUM" label="" keyAttributes="F3">
<attributes>
<attribute name="F3" label="凭证号" type="STRING" length="60" />
<attribute name="MODULE_NAME" label="业务模块" type="STRING" length="1500" />
<attribute name="F47" label="合同编号" type="STRING" length="600" />
<attribute name="F5" label="摘要" type="STRING" length="2700" />
<attribute name="F1" label="会计处理日" type="STRING" length="60" />
<attribute name="F15" label="到账日期" type="STRING" length="60" />
<attribute name="MONEY" label="借方金额" type="STRING" length="96" />
<attribute name="FLAG" label="传输状态" type="STRING" length="10" />
<attribute name="BATCH" label="批次号" type="STRING" length="32" />
<attribute name="CREATE_TIME" label="记录时间" type="STRING" length="32" />
<attribute name="GENERATE_DATE" label="凭证发生日期" type="STRING" length="60" />
<attribute name="F48" label="账套" type="STRING" length="600" />
<attribute name="F50" label="主体名称" type="STRING" length="600" />
<attribute name="F51" label="会计期间-年" type="STRING" length="30" />
<attribute name="F52" label="会计期间-月" type="STRING" length="30" />
</attributes>
</class>
<class name="VI_SNAP_JOINT_VOUCHER" label="卡扣凭证生成" keyAttributes="">
<attributes>
<attribute name="ID" label="租金计划ID" type="STRING"/>
@ -142,9 +162,9 @@
<attribute name="SUMMONEY" label="租金+罚息" type="STRING"/>
<attribute name="BANK_NAME" label="银行名称" type="STRING"/>
<attribute name="ACCOUNT" label="银行信息" type="STRING"/>
<attribute name="ACC_NUMBER" label="银行账号" type="STRING"/>
<attribute name="ACCOUNTING_DATE" label="记账日期" type="STRING"/>
<attribute name="income_ID" label="实收表ID" type="STRING"/>
<attribute name="ACC_NUMBER" label="银行账号" type="STRING"/>
<attribute name="ACCOUNTING_DATE" label="记账日期" type="STRING"/>
<attribute name="income_ID" label="实收表ID" type="STRING"/>
</attributes>
<manager>
@ -278,6 +298,6 @@
</managerProperties>
</manager>
</class>
</package>
</jbo>
</package>
</jbo>

View File

@ -0,0 +1,76 @@
package jbo.voucher;
import java.lang.String;
/**
* - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface VOUCHER_V8_SUM{
/**
* <br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.voucher.VOUCHER_V8_SUM";
/**
* 凭证号 STRING(60)<br>
*/
public static final String F3 = "F3";
/**
* 业务模块 STRING(1500)<br>
*/
public static final String MODULE_NAME = "MODULE_NAME";
/**
* 合同编号 STRING(600)<br>
*/
public static final String F47 = "F47";
/**
* 摘要 STRING(2700)<br>
*/
public static final String F5 = "F5";
/**
* 会计处理日 STRING(60)<br>
*/
public static final String F1 = "F1";
/**
* 到账日期 STRING(60)<br>
*/
public static final String F15 = "F15";
/**
* 借方金额 STRING(96)<br>
*/
public static final String MONEY = "MONEY";
/**
* 传输状态 STRING(10)<br>
*/
public static final String FLAG = "FLAG";
/**
* 批次号 STRING(32)<br>
*/
public static final String BATCH = "BATCH";
/**
* 记录时间 STRING(32)<br>
*/
public static final String CREATE_TIME = "CREATE_TIME";
/**
* 凭证发生日期 STRING(60)<br>
*/
public static final String GENERATE_DATE = "GENERATE_DATE";
/**
* 账套 STRING(600)<br>
*/
public static final String F48 = "F48";
/**
* 主体名称 STRING(600)<br>
*/
public static final String F50 = "F50";
/**
* 会计期间- STRING(30)<br>
*/
public static final String F51 = "F51";
/**
* 会计期间- STRING(30)<br>
*/
public static final String F52 = "F52";
}

View File

@ -0,0 +1,58 @@
package com.tenwa.lease.app.quartzmession;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.sql.Connection;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.util.Transaction;
import com.base.util.QuartzUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import java.sql.CallableStatement;
/**
* @program: apzl_leasing
* @description:
* @author: 李超杰
* @create: 2021-11-03 15:38
*/
public class GenerateVoucherSumJob implements Job {
@Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
JBOTransaction tx;
Transaction tran = null;
String startime = StringFunction.getTodayNow();
Object userId = jobExecutionContext.getTrigger().getJobDataMap().get("CurUserId");
String curUserId = userId == null? "system" : userId.toString();
try {
tx = JBOFactory.createJBOTransaction();
tran = Transaction.createTransaction(tx);
// 获取当前日期
// String todayDateStr = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd"));
Connection connection = tran.getConnection(tran);
CallableStatement callableStatement = connection.prepareCall("{call PROC_CALC_VOUCHER_SUM()}");
callableStatement.execute();
callableStatement.close();
tran.commit();
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CalcPenaltyJob", "success", "成功", curUserId);
} catch (Exception e) {
e.printStackTrace();
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CalcPenaltyJob", "error", "失败", curUserId);
try {
if (tran != null) {
tran.rollback();
}
} catch (JBOException e1) {
e1.printStackTrace();
}
throw new JobExecutionException(e);
}
}
}