经销商账户日志修改BUG
This commit is contained in:
parent
71ea0b4058
commit
53665f0989
@ -2,9 +2,11 @@ package com.tenwa.reckon.handler;
|
||||
|
||||
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_LOG;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.BizObjectQuery;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
@ -73,16 +75,23 @@ public class DistributorAccountLogHandler extends CommonHandler{
|
||||
protected void beforeUpdate(JBOTransaction tx, BizObject bo)
|
||||
throws Exception {//ÐÞ¸Äǰ
|
||||
|
||||
UBfore.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString());
|
||||
BizObjectManager bomPL = JBOFactory.getBizObjectManager(DISTRIBUTOR_ACCOUNT_TEMP.CLASS_NAME, tx);
|
||||
BizObject boPL = bomPL.newObject();
|
||||
BizObjectQuery boq = bomPL.createQuery(
|
||||
"select distributor_id,acc_number,account,is_main,acc_info,open_bank,provinceInfo,district FROM O WHERE id=:ID");
|
||||
boq.setParameter("ID",bo.getAttribute("id").getString());
|
||||
boPL = boq.getSingleResult();
|
||||
UBfore.setDistributorId(boPL.getAttribute("DISTRIBUTOR_ID")+"");
|
||||
UBfore.setActionType("UB");
|
||||
UBfore.setTimestamp(StringFunction.getTodayNow());
|
||||
UBfore.setAccNumber(bo.getAttribute("ACC_NUMBER").getString());
|
||||
UBfore.setAccount(bo.getAttribute("ACCOUNT").getString());
|
||||
UBfore.setIsMain(bo.getAttribute("IS_MAIN").getString());
|
||||
UBfore.setAccInfo(bo.getAttribute("ACC_INFO").getString());
|
||||
UBfore.setOpenBank(bo.getAttribute("OPEN_BANK").getString());
|
||||
UBfore.setProvince(bo.getAttribute("provinceInfo").getString());
|
||||
UBfore.setDistrict(bo.getAttribute("DISTRICT").getString());
|
||||
UBfore.setAccNumber(boPL.getAttribute("ACC_NUMBER")+"");
|
||||
UBfore.setAccount(boPL.getAttribute("ACCOUNT")+"");
|
||||
UBfore.setIsMain(boPL.getAttribute("IS_MAIN")+"");
|
||||
UBfore.setAccInfo(boPL.getAttribute("ACC_INFO")+"");
|
||||
UBfore.setOpenBank(boPL.getAttribute("OPEN_BANK")+"");
|
||||
UBfore.setProvince(boPL.getAttribute("PROVINCEINFO")+"");
|
||||
UBfore.setDistrict(boPL.getAttribute("DISTRICT")+"");
|
||||
UBfore.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString());
|
||||
distributorLogUtilAddAndUpdate(tx,UBfore);
|
||||
}
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user