|
@@ -106,29 +106,23 @@ public class tbankpaybillsboc extends PaoCust {
|
|
|
cashbill.setValue("fstatus", "审核", 11l);// 状态
|
|
cashbill.setValue("fstatus", "审核", 11l);// 状态
|
|
|
cashbill.setValue("fsourceid", getUniqueIDValue(), 11l);// 状态
|
|
cashbill.setValue("fsourceid", getUniqueIDValue(), 11l);// 状态
|
|
|
cashbill.setValue("fsourceobject", getName(), 11l);// 状态
|
|
cashbill.setValue("fsourceobject", getName(), 11l);// 状态
|
|
|
- PaoSetRemote taccbal = cashbill.getPaoSet("$taccbal", "taccbal",
|
|
|
|
|
- "fagentnum='" + fagentnum + "'and faccclsnum='01'");
|
|
|
|
|
- PaoRemote taccbalpao = null;
|
|
|
|
|
- if (taccbal.isEmpty()) {
|
|
|
|
|
- taccbalpao = taccbal.addAtEnd();
|
|
|
|
|
- taccbalpao.setValue("fagentnum", fagentnum);
|
|
|
|
|
- taccbalpao.setValue("faccclsnum", "01");
|
|
|
|
|
- taccbalpao.setValue("fbalance", getDouble("txnamt"));
|
|
|
|
|
- } else {
|
|
|
|
|
- taccbalpao = taccbal.getPao(0);
|
|
|
|
|
- taccbalpao.setValue("fbalance", baseclass.tools.Math.add(
|
|
|
|
|
- taccbalpao.getDouble("fbalance"), getDouble("txnamt")));
|
|
|
|
|
- }
|
|
|
|
|
- setValue("fstatus", "已入账(系统)", 11l);
|
|
|
|
|
- if("NB".equals(getString("siteid"))) {
|
|
|
|
|
- cashbill.createAssignment(getMailByHrGroup(getString("siteid")+"1002"), "RECBILL", "中行银企直连收入凭证待审", "单号:" + cashbill.getString("fbillnum"));
|
|
|
|
|
|
|
+ PaoSetRemote taccbal = cashbill.getPaoSet("$taccbal", "taccbal",
|
|
|
|
|
+ "fagentnum='" + fagentnum + "'and faccclsnum='01'");
|
|
|
|
|
+ PaoRemote taccbalpao = null;
|
|
|
|
|
+ if (taccbal.isEmpty()) {
|
|
|
|
|
+ taccbalpao = taccbal.addAtEnd();
|
|
|
|
|
+ taccbalpao.setValue("fagentnum", fagentnum);
|
|
|
|
|
+ taccbalpao.setValue("faccclsnum", "01");
|
|
|
|
|
+ taccbalpao.setValue("fbalance", getDouble("txnamt"));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ taccbalpao = taccbal.getPao(0);
|
|
|
|
|
+ taccbalpao.setValue("fbalance", baseclass.tools.Math.add(
|
|
|
|
|
+ taccbalpao.getDouble("fbalance"), getDouble("txnamt")));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ setValue("fstatus", "已入账(系统)", 11l);
|
|
|
|
|
+ cashbill.createAssignment(getMailByHrGroup(getString("siteid") + "1002"), "RECBILL", "中行银企直连收入凭证待审", "单号:" + cashbill.getString("fbillnum"));
|
|
|
} else {
|
|
} else {
|
|
|
- if("NB".equals(getString("siteid"))) {
|
|
|
|
|
- sendEmail(getMailByHrGroup(getString("siteid")+"1002"), "中行银企直连对接异常", "找不到匹配的经销商信息。付款人:" + getString("ACNTNAME") + ";付款银行:" + getString("IBKNAME") + "付款账号:" + getString("ACTACN") + ";付款金额:" + getString("TXNAMT"));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ sendEmail(getMailByHrGroup(getString("siteid") + "1002"), "中行银企直连对接异常", "找不到匹配的经销商信息。付款人:" + getString("ACNTNAME") + ";付款银行:" + getString("IBKNAME") + "付款账号:" + getString("ACTACN") + ";付款金额:" + getString("TXNAMT"));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -172,19 +166,19 @@ public class tbankpaybillsboc extends PaoCust {
|
|
|
cashbill.setValue("fstatus", "审核", 11l);// 状态
|
|
cashbill.setValue("fstatus", "审核", 11l);// 状态
|
|
|
cashbill.setValue("fsourceid", getUniqueIDValue(), 11l);// 状态
|
|
cashbill.setValue("fsourceid", getUniqueIDValue(), 11l);// 状态
|
|
|
cashbill.setValue("fsourceobject", getName(), 11l);// 状态
|
|
cashbill.setValue("fsourceobject", getName(), 11l);// 状态
|
|
|
- PaoSetRemote taccbal = cashbill.getPaoSet("$taccbal", "taccbal",
|
|
|
|
|
- "fagentnum='" + fagentnum + "'and faccclsnum='01'");
|
|
|
|
|
- PaoRemote taccbalpao = null;
|
|
|
|
|
- if (taccbal.isEmpty()) {
|
|
|
|
|
- taccbalpao = taccbal.addAtEnd();
|
|
|
|
|
- taccbalpao.setValue("fagentnum", fagentnum);
|
|
|
|
|
- taccbalpao.setValue("faccclsnum", "01");
|
|
|
|
|
- taccbalpao.setValue("fbalance", getDouble("txnamt"));
|
|
|
|
|
- } else {
|
|
|
|
|
- taccbalpao = taccbal.getPao(0);
|
|
|
|
|
- taccbalpao.setValue("fbalance", baseclass.tools.Math.add(
|
|
|
|
|
- taccbalpao.getDouble("fbalance"), getDouble("txnamt")));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ PaoSetRemote taccbal = cashbill.getPaoSet("$taccbal", "taccbal",
|
|
|
|
|
+ "fagentnum='" + fagentnum + "'and faccclsnum='01'");
|
|
|
|
|
+ PaoRemote taccbalpao = null;
|
|
|
|
|
+ if (taccbal.isEmpty()) {
|
|
|
|
|
+ taccbalpao = taccbal.addAtEnd();
|
|
|
|
|
+ taccbalpao.setValue("fagentnum", fagentnum);
|
|
|
|
|
+ taccbalpao.setValue("faccclsnum", "01");
|
|
|
|
|
+ taccbalpao.setValue("fbalance", getDouble("txnamt"));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ taccbalpao = taccbal.getPao(0);
|
|
|
|
|
+ taccbalpao.setValue("fbalance", baseclass.tools.Math.add(
|
|
|
|
|
+ taccbalpao.getDouble("fbalance"), getDouble("txnamt")));
|
|
|
|
|
+ }
|
|
|
setValue("fstatus", "已入账(人工)", 11l);
|
|
setValue("fstatus", "已入账(人工)", 11l);
|
|
|
|
|
|
|
|
}
|
|
}
|