风控中台-修改总敞口金额逻辑
This commit is contained in:
parent
ad54e17b6e
commit
2bc245ef85
@ -5,6 +5,7 @@ import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.manage.CodeManager;
|
||||
import com.ample.esb.bean.amp.*;
|
||||
import com.ample.esb.bean.esb.MessageAppHead;
|
||||
@ -15,6 +16,7 @@ import com.ample.esb.common.ParamDataUtils;
|
||||
import com.ample.esb.service.AmpService;
|
||||
import com.ample.esb.util.DateUtils;
|
||||
import com.ample.esb.util.XstreamUtil;
|
||||
import com.tenwa.lease.flow.project.businessapply.LBBusinessPrimary;
|
||||
import jbo.app.tenwa.calc.*;
|
||||
import jbo.app.tenwa.customer.*;
|
||||
import jbo.com.tenwa.entity.comm.flow.CUSTOMER_HISTORY_INFO_TEMP;
|
||||
@ -25,6 +27,7 @@ import jbo.prd.PRD_SPECIFIC_LIBRARY;
|
||||
import jbo.sys.FLOW_TASK;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.util.*;
|
||||
|
||||
public class AmpServiceImpl extends EsbCommon implements AmpService {
|
||||
@ -1153,8 +1156,25 @@ public class AmpServiceImpl extends EsbCommon implements AmpService {
|
||||
return boChits;
|
||||
}
|
||||
public String getExposuresAmount() throws JBOException {
|
||||
BizObject boChit = JBOFactory.createBizObjectQuery(CUSTOMER_HISTORY_INFO_TEMP.CLASS_NAME,"FLOWUNID=:flowunid and customertype='主承租人' ").setParameter("flowunid",flowUnid).getSingleResult(false);
|
||||
String amount = boChit.getAttribute("EXPOSURE").toString();
|
||||
Transaction Sqlca = null;
|
||||
String amount = "0.00";
|
||||
try {
|
||||
Sqlca = Transaction.createTransaction("als");
|
||||
amount = LBBusinessPrimary.obtainExposureMoney(Sqlca,flowUnid).toString();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
if (Sqlca != null)
|
||||
try {
|
||||
Sqlca.commit();
|
||||
Sqlca.disConnect();
|
||||
Sqlca = null;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user