灵活产品在测试一些问题
This commit is contained in:
parent
ca074e4858
commit
9e6b752293
@ -1086,8 +1086,8 @@ function saveRecord(sPostEvents){
|
||||
}
|
||||
//校验年利率是否合法
|
||||
var isFixedRate = "<%=isFixedRate%>";
|
||||
if("N" == isFixedRate){
|
||||
var yearRae = getItemValue(0,0,"YEAR_RATE");
|
||||
var yearRae = getItemValue(0,0,"YEAR_RATE");
|
||||
if("N" == isFixedRate && yearRae > 0 ){
|
||||
var rateTermMin = "<%=rateTermMin%>";
|
||||
var rateTermMax = "<%=rateTermMax%>";
|
||||
console.log(rateTermMin +"===" +yearRae+"====" +rateTermMax);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="GBK" standalone="no"?><ComponentTypes>
|
||||
<ComponentType ID="PRD0301" NAME="还款方式" RELATIVETEMPLETCOLNAME="RPT" STATUS="1"/>
|
||||
<ComponentType ID="PRD0390" NAME="产品收益" STATUS="1"/>
|
||||
<ComponentType ID="PRD0301" NAME="还款方式" RELATIVETEMPLETCOLNAME="RPT" STATUS="1"/>
|
||||
<ComponentType ID="PRD0315" NAME="费用设定" STATUS="1"/>
|
||||
<ComponentType ID="PRD01" NAME="准入要求" STATUS="2"/>
|
||||
<ComponentType ID="PRD0350" NAME="产品设定" STATUS="1"/>
|
||||
|
||||
@ -123,7 +123,7 @@ public class CreateTransactionExecutor implements Transaction {
|
||||
}
|
||||
String yearRate = bean.getCb().getYearRate();
|
||||
this.preHandle(bean.getCb(),bean);
|
||||
checkYearRate( bean.getCb(), bean, new BigDecimal( bean.getCb().getYearRate() ) );
|
||||
checkYearRate( bean.getCb(), bean, new BigDecimal( bean.getCb().getYearRate() ) );//当初理解错误,成本利率和年利率不一样
|
||||
if(bean.getCb().getRentOrRate().equals("rent")&&new BigDecimal(bean.getCb().getIncomeNumber()).multiply(new BigDecimal(bean.getCb().getRentValue())).compareTo(new BigDecimal(bean.getCb().getCleanLeaseMoney()))<0){
|
||||
throw new BusinessException("按租金算年利率租金总和必须大于融资额");
|
||||
}
|
||||
@ -139,6 +139,7 @@ public class CreateTransactionExecutor implements Transaction {
|
||||
// 返回参数上做处理
|
||||
return JSONEncoder.encode(jsonObject);
|
||||
}catch(BusinessException e){
|
||||
e.printStackTrace();
|
||||
try {
|
||||
tx.rollback();
|
||||
} catch (JBOException e1) {
|
||||
@ -184,11 +185,12 @@ public class CreateTransactionExecutor implements Transaction {
|
||||
try {
|
||||
Map<String, Map<String, String>> productRevenues = ProductParamUtil.getProductComponentType( tcb.getProductId(), "PRD0390" );
|
||||
tcb.setProductRevenues( productRevenues );
|
||||
String rateMin = productRevenues.get( "CostInterestRate" ).get( "CostInterestRate-MIN" );
|
||||
//年利率和成本利率不一样,对应的年利率改在页面进行校验
|
||||
/*String rateMin = productRevenues.get( "CostInterestRate" ).get( "CostInterestRate-MIN" );
|
||||
String rateMax = productRevenues.get( "CostInterestRate" ).get( "CostInterestRate-MAX" );
|
||||
if ( !( yearRate.compareTo( new BigDecimal( rateMax ) ) <= 0 && yearRate.compareTo( new BigDecimal( rateMin ) ) >= 0 ) ) {
|
||||
throw new BusinessException( "年利率: " + yearRate.setScale( 6, 4 ).toString() + ",不在产品配置区间范围内" );
|
||||
}
|
||||
}*/
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
throw new BusinessException( e.getMessage() );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user