57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
<%@page import="com.amarsoft.are.jbo.BizObject"%>
|
|
<%@page import="jbo.app.tenwa.calc.VI_LC_RENT_PLAN"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
|
|
<%@page import="java.math.BigDecimal"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
|
String flowunid = CurPage.getParameter("flowunid");
|
|
String factDate = CurPage.getParameter("factDate");
|
|
String planIDs = CurPage.getParameter("planIDs");
|
|
String overCorpuss = CurPage.getParameter("overCorpuss");
|
|
String overInterests = CurPage.getParameter("overInterests");
|
|
String overPenaltys = CurPage.getParameter("overPenaltys");
|
|
String mayopeMoney = CurPage.getParameter("mayopeMoney");
|
|
String[] planID = planIDs.split("@");
|
|
String[] overCorpus = overCorpuss.split("@");
|
|
String[] overInterest = overInterests.split("@");
|
|
String[] overPenalty = overPenaltys.split("@");
|
|
boolean flag = true;
|
|
SqlObject so = new SqlObject("select case when mayope_money != "+mayopeMoney+" then 0 else 1 end from lc_ebank_temp where flowunid='"+flowunid+"'");
|
|
if("0".equals(Sqlca.getString(so))){
|
|
flag = false;
|
|
}
|
|
boolean flagR = true;
|
|
boolean flagP = true;
|
|
for(int i=0;i<planID.length;i++){
|
|
String sql = "select case when (corpus_over != " + overCorpus[i]+" or interest_over != " + overInterest[i] + ") then 0 else 1 end from vi_lc_rent_plan where id='"+planID[i]+"'";
|
|
so = new SqlObject(sql);
|
|
String result = Sqlca.getString(so);
|
|
if("0".equals(result)){
|
|
flagR = false;
|
|
}
|
|
sql = "select case when round(getRentPenalty(payment_number,plan_list,'"+factDate+"')-fact_penalty,2) != " + overPenalty[i]+" then 0 else 1 end from vi_lc_rent_plan where id='"+planID[i]+"'";
|
|
so = new SqlObject(sql);
|
|
result = Sqlca.getString(so);
|
|
if("0".equals(result)){
|
|
flagP = false;
|
|
}
|
|
}
|
|
String outResult = "";
|
|
if(!flagR){
|
|
outResult += "ERROR";
|
|
}else{
|
|
outResult += "SUCCESS";
|
|
}
|
|
if(!flagP){
|
|
outResult += "@ERROR";
|
|
}else{
|
|
outResult += "@SUCCESS";
|
|
}
|
|
if(!flag){
|
|
outResult += "@ERROR";
|
|
}else{
|
|
outResult += "@SUCCESS";
|
|
}
|
|
out.println(outResult);
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |