凭证相关--银行科目
This commit is contained in:
parent
c74d289fa5
commit
81c21e5b18
@ -36,7 +36,6 @@ public class ContractOnhireVoucher extends BaseBussiness {
|
||||
|
||||
cvld.CreateVoucher(FlowUnid, "PZ2018071000000009",Sqlca);// 收取客户手续费(按月分摊收入)--回租
|
||||
cvld.CreateVoucher(FlowUnid, "PZ2018080300000073",Sqlca);// 收取客户手续费(按月分摊收入)--直租
|
||||
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,23 +14,22 @@ import com.tenwa.voucher.service.VoucherJavaParamService;
|
||||
|
||||
public class auxiliaryContractAcc implements VoucherJavaParamService {
|
||||
|
||||
@Override
|
||||
public Map<String, String> getJavaParam(JBOTransaction tx,
|
||||
Map<String, String> param) throws BusinessException {
|
||||
Map<String,String>returnValue=new HashMap<String,String>();
|
||||
String ACC_NUMBER=param.get("ACC_NUMBER");
|
||||
returnValue.put("ACC_NUMBER",ACC_NUMBER);
|
||||
BizObject bo=null;
|
||||
try {
|
||||
bo=JBOFactory.getBizObjectManager(OWN_ACCOUNT.CLASS_NAME, tx)
|
||||
.createQuery("acc_title=:ACC_NUMBER").setParameter("ACC_NUMBER", ACC_NUMBER).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
returnValue.put("F6",bo.getAttribute("acc_title").toString());
|
||||
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param) throws BusinessException {
|
||||
Map<String,String>returnValue=new HashMap<String,String>();
|
||||
String ACC_NUMBER=param.get("ACC_NUMBER");
|
||||
returnValue.put("ACC_NUMBER",ACC_NUMBER);
|
||||
String FbSdk="Y";
|
||||
String state_="0010";
|
||||
BizObject bo=null;
|
||||
try {
|
||||
// 将银行账号与本方账号的银行号做匹配, 获取科目
|
||||
bo=JBOFactory.getBizObjectManager(OWN_ACCOUNT.CLASS_NAME, tx).createQuery("FbSdk=:FbSdk and state_=:state_").setParameter("FbSdk", FbSdk).setParameter("state_", state_).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
returnValue.put("F6",bo.getAttribute("acc_title").toString());
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
return returnValue;
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user