diff --git a/WebContent/WEB-INF/etc/jbo/jbo_voucher.xml b/WebContent/WEB-INF/etc/jbo/jbo_voucher.xml index 49d8abd83..b95085768 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_voucher.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_voucher.xml @@ -298,6 +298,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src_jbo/jbo/voucher/VOUCHER_LIST.java b/src_jbo/jbo/voucher/VOUCHER_LIST.java new file mode 100644 index 000000000..344879580 --- /dev/null +++ b/src_jbo/jbo/voucher/VOUCHER_LIST.java @@ -0,0 +1,80 @@ +package jbo.voucher; + +import java.lang.String; + +/** +* ƾ֤б - JBO

+* Note: This file is generated by ADE tools, dont modify it.
+ +*/ +public interface VOUCHER_LIST{ + /** + * ƾ֤б

+ * ӳBizObjectClass + */ + public static final String CLASS_NAME = "jbo.voucher.VOUCHER_LIST"; + /** + * INT(32)
+ */ + public static final String SORT_NO = "SORT_NO"; + /** + * ƾ֤ STRING(32)
+ */ + public static final String F3 = "F3"; + /** + * ƾ֤ STRING(200)
+ */ + public static final String MODULE_NAME = "MODULE_NAME"; + /** + * ͬ STRING(60)
+ */ + public static final String CONTRACT_NUMBER = "CONTRACT_NUMBER"; + /** + * ժҪ STRING(200)
+ */ + public static final String F5 = "F5"; + /** + * STRING(32)
+ */ + public static final String F1 = "F1"; + /** + * STRING(32)
+ */ + public static final String F15 = "F15"; + /** + * STRING(32)
+ */ + public static final String MONEYS = "MONEYS"; + /** + * NC״̬ STRING(32)
+ */ + public static final String NC_FLAG = "NC_FLAG"; + /** + * NCκ STRING(32)
+ */ + public static final String NC_BATCH = "NC_BATCH"; + /** + * NC STRING(32)
+ */ + public static final String NC_DATE = "NC_DATE"; + /** + * ʱ STRING(32)
+ */ + public static final String GENERATE_DATE = "GENERATE_DATE"; + /** + * STRING(50)
+ */ + public static final String F48 = "F48"; + /** + * STRING(260)
+ */ + public static final String F50 = "F50"; + /** + * STRING(10)
+ */ + public static final String F51 = "F51"; + /** + * STRING(10)
+ */ + public static final String F52 = "F52"; +} \ No newline at end of file diff --git a/src_sql/预投SQL/v20220627/xzw20220627.sql b/src_sql/预投SQL/v20220627/xzw20220627.sql new file mode 100644 index 000000000..780ded771 --- /dev/null +++ b/src_sql/预投SQL/v20220627/xzw20220627.sql @@ -0,0 +1,21 @@ +-- ģVOUCHER_V8_LIST +DELETE FROM AWE_DO_CATALOG WHERE DONO='VOUCHER_V8_LIST'; +DELETE FROM AWE_DO_LIBRARY WHERE DONO='VOUCHER_V8_LIST'; + +INSERT INTO apzl.awe_do_catalog (dono, doname, dodescribe, dotype, doclass, isinuse, colcount, modeid, jboclass, jbofrom, jbowhere, jbogroup, jboorder, businessprocess, exportflag, inputuser, inputtime, updateuser, updatetime, remark, isvalidate, parent) VALUES ('VOUCHER_V8_LIST', 'V8ƾ֤', null, '30250', null, '1', '1', 'default', 'jbo.voucher.VOUCHER_LIST', 'O', '', '', 'SORT_NO desc', '', null, 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '', '1', ''); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1040', '1040', '1', 'O', 'f1', 'f1', 'String', '', '', '', '1', 'Date', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 1, '0', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1045', '1045', '1', 'O', 'f15', 'f15', 'String', '', '', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '0', 1, '0', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '', '', '1', '', '', '', ''); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1046', '1046', '1', 'O', 'MONEYS', 'MONEYS', 'Number', '', '', '', '1', 'Text', '2', '1', '', '', '', '20', '1', '0', '0', '1', '0', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '', '', '1', '', '', '', ''); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1060', '1010', '1', 'O', 'f3', 'f3', 'String', '', 'ƾ֤', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 1, '0', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1076', '1076', '1', 'O', 'NC_FLAG', 'NC_FLAG', 'String', '', 'NC״̬', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1077', '1077', '1', 'O', 'NC_BATCH', 'NC_BATCH', 'String', '', 'NCκ', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1078', '1078', '1', 'O', 'NC_DATE', 'NC_DATE', 'String', '', 'NC', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1275', '1015', '1', 'O', 'contract_number', 'contract_number', 'String', '', 'ͬ', '', '1', 'Text', '1', '1', '', '', '', '32', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1280', '1016', '1', 'O', 'f5', 'f5', 'String', '', 'ժҪ', '', '1', 'Text', '1', '1', '', '', '', '900', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '0', '', '1', '', '', '', 'Equals,Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1300', '1085', '1', 'O', 'GENERATE_DATE', 'GENERATE_DATE', 'String', '', '', '', '1', 'Date', '3', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'BigEqualsThan,Area'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1360', '1360', '1', 'O', 'f48', 'f48', 'String', '', '', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like,Equals'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1380', '1380', '1', 'O', 'f50', 'f50', 'String', '', '', '', '1', 'Text', '1', '1', '', '', '', '20', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like,Equals'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '1970', '1011', '1', 'O', 'module_name', 'module_name', 'String', '', 'ƾ֤', '', '1', 'Text', '1', '1', '', '', '', '500', '1', '0', '0', '1', '1', 1, '0', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '0', '', '1', '', '', '', 'Like'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '2110', '1072', '1', '', '''''', 'detail', 'String', '', 'ϸ', '', '1', 'Text', '1', '1', '', '', '', null, '1', '0', '0', '0', '0', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:34', '', '', '1', '', '', '', ''); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '2120', '2120', '1', 'O', 'f51', 'f51', 'String', '', '', '', '1', 'Text', '1', '1', '', '', '', '30', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like,Equals'); +INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('VOUCHER_V8_LIST', '2130', '2130', '1', 'O', 'f52', 'f52', 'String', '', '', '', '1', 'Text', '1', '1', '', '', '', '30', '1', '0', '0', '1', '1', 0, '', '', '', 'SYS_Designer', '2022/06/27 13:15:54', 'SYS_Designer', '2022/06/27 13:19:35', '0', '', '1', '', '', '', 'Like,Equals'); diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/GenerateVoucherSumJob.java b/src_tenwa/com/tenwa/lease/app/quartzmession/GenerateVoucherSumJob.java index 99962da55..bb9f45d5a 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/GenerateVoucherSumJob.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/GenerateVoucherSumJob.java @@ -5,8 +5,11 @@ 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.SqlObject; import com.amarsoft.awe.util.Transaction; import com.base.util.QuartzUtil; + +import org.quartz.DisallowConcurrentExecution; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; @@ -19,6 +22,7 @@ import java.sql.CallableStatement; * @author:  * @create: 2021-11-03 15:38 */ +@DisallowConcurrentExecution public class GenerateVoucherSumJob implements Job { @Override @@ -32,19 +36,42 @@ public class GenerateVoucherSumJob implements Job { 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(); + /** + * δмƾ֤м + */ + String sql="INSERT INTO VOUCHER_LIST( F3, MODULE_NAME, CONTRACT_NUMBER, F5, F1, F15, MONEYS, NC_FLAG, NC_BATCH, NC_DATE, GENERATE_DATE, F48, F50, F51, F52) SELECT V8.F3, MAX(V8.MODULE_NAME) AS MODULE_NAME, MAX(V8.F47) AS CONTRACT_NUMBER, MAX(V8.F5) AS F5, MAX(V8.F1) AS F1, MAX(V8.F15) AS F15, SUM(IFNULL(V8.F7,0))+SUM(IFNULL(V8.F8,0)) AS MONEYS, (SELECT CASE IFNULL(MAX(FLAG),'2') WHEN '1' THEN 'ɹ' WHEN '2' THEN 'δ' ELSE 'ʧ' END FROM NCXML_DETAIL_RECORDS O WHERE O.XML_TYPE='voucher' AND O.TABLE_NUM=V8.F3) AS NC_FLAG, (SELECT MAX(BATCH) FROM NCXML_DETAIL_RECORDS O WHERE O.XML_TYPE='voucher' AND O.TABLE_NUM=V8.F3) AS NC_BATCH, (SELECT MAX(O.CREATE_TIME) FROM NCXML_DETAIL_RECORDS O WHERE O.XML_TYPE='voucher' AND O.TABLE_NUM=V8.F3) AS NC_DATE, MAX(LEFT(V8.GENERATE_DATE,19)) AS GENERATE_DATE, MAX(V8.F48) AS F48, MAX(V8.F50) AS F50, MAX(V8.F51) AS F51, MAX(V8.F52) AS F52 FROM VOUCHER_V8 V8 WHERE V8.F9 IS NULL GROUP BY V8.F3 ORDER BY MAX(LEFT(V8.GENERATE_DATE,19))"; + int con = tran.executeSQL(new SqlObject(sql)); + System.out.println("ƾ֤б: "+con+"!!!"); + System.out.println("ƾ֤б: "+con+"!!!"); + System.out.println("ƾ֤б: "+con+"!!!"); + /** + * Ѳмƾ֤, ״̬ + */ + sql="UPDATE VOUCHER_V8 V8,VOUCHER_LIST VL SET V8.F9='Y' WHERE V8.F9 IS NULL AND V8.F3=VL.F3"; + con = tran.executeSQL(new SqlObject(sql)); + System.out.println("ƾ֤ϸǷм: "+con+"!!!"); + System.out.println("ƾ֤ϸǷм: "+con+"!!!"); + System.out.println("ƾ֤ϸǷм: "+con+"!!!"); + + /** + * ´״̬ + */ + sql="UPDATE VOUCHER_LIST VL,NCXML_DETAIL_RECORDS NDR SET VL.NC_FLAG=CASE IFNULL(NDR.FLAG,'2') WHEN '1' THEN 'ɹ' WHEN '2' THEN 'δ' ELSE 'ʧ' END, VL.NC_BATCH=NDR.BATCH,VL.NC_DATE=DATE_FORMAT(NDR.CREATE_TIME,'%Y/%m/%d') WHERE NDR.XML_TYPE='voucher' AND NDR.TABLE_NUM=VL.F3 AND VL.NC_FLAG<>'ɹ'"; + con = tran.executeSQL(new SqlObject(sql)); + System.out.println("ƾ֤б״̬: "+con+"!!!"); + System.out.println("ƾ֤б״̬: "+con+"!!!"); + System.out.println("ƾ֤б״̬: "+con+"!!!"); + /*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); + QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.GenerateVoucherSumJob", "success", "ɹ", curUserId); } catch (Exception e) { e.printStackTrace(); - QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CalcPenaltyJob", "error", "ʧ", curUserId); + QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.GenerateVoucherSumJob", "error", "ʧ", curUserId); try { if (tran != null) { tran.rollback();