新增调整记录与修改调整记录查询上一次的基准利率区别处理
This commit is contained in:
parent
01c1aa880e
commit
c4e77734ed
@ -22,7 +22,7 @@
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Core/Standard/LCStandardInterestInfo.jsp";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
AsControl.OpenView(sUrl,'option=add','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/Standard/LCStandardInterestInfo.jsp";
|
||||
@ -31,7 +31,7 @@
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'id=' +sPara ,'_self','');
|
||||
AsControl.OpenView(sUrl,'id=' +sPara+"&option=edit" ,'_self','');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -5,8 +5,12 @@
|
||||
Content: ʾÀýÏêÇéÒ³Ãæ
|
||||
History Log:
|
||||
*/
|
||||
String sql = "select max(start_date),BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE from LC_STANDARD_INTEREST "+
|
||||
"where start_date<(select start_date from LC_STANDARD_INTEREST where id='"+CurPage.getParameter("id")+"')";
|
||||
String option = CurPage.getParameter("option");
|
||||
//新增和修改的查询逻辑不同,需要判断
|
||||
String sql = "select max(start_date),BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE from LC_STANDARD_INTEREST ";
|
||||
if("edit".equals(option)){
|
||||
sql += "where start_date<(select start_date from LC_STANDARD_INTEREST where id='"+CurPage.getParameter("id")+"')";
|
||||
}
|
||||
ASResultSet rs = Sqlca.getASResultSet2(sql);
|
||||
String BASE_RATE_HALF = "";
|
||||
String BASE_RATE_ONE = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user