提前结清网银核销金额显示错误
This commit is contained in:
parent
e69d6d8164
commit
468d1b85a1
@ -1002,16 +1002,16 @@ public class CreateTransactionExecutor implements Transaction {
|
||||
public String updateEbank(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager letManage = JBOFactory.getBizObjectManager(LC_EBANK_TEMP.CLASS_NAME, tx);
|
||||
List<BizObject> lets = letManage.createQuery(" flowunid=:flowunid ").setParameter("flowunid",flowunid).getResultList(true);
|
||||
Double advanceMoney = new Double(cleanLeasemoney);
|
||||
for (BizObject let : lets) {
|
||||
Double mayopeMoney = new Double(let.getAttribute("MAYOPE_MONEY").getString());
|
||||
Double advanceMoney = new Double(cleanLeasemoney);
|
||||
if(mayopeMoney>=advanceMoney){
|
||||
let.setAttributeValue("HAD_MONEY", advanceMoney);
|
||||
let.setAttributeValue("MAYOPE_MONEY", mayopeMoney-advanceMoney);
|
||||
letManage.saveObject(let);
|
||||
break;
|
||||
}else{
|
||||
let.setAttributeValue("HAD_MONEY", advanceMoney-mayopeMoney);
|
||||
let.setAttributeValue("HAD_MONEY", mayopeMoney);
|
||||
advanceMoney = advanceMoney-mayopeMoney;
|
||||
let.setAttributeValue("MAYOPE_MONEY", 0);
|
||||
letManage.saveObject(let);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user