修改基准利率sql问题~
This commit is contained in:
parent
43fb912192
commit
a10b4646f9
@ -8,9 +8,11 @@
|
||||
*/
|
||||
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 ";
|
||||
String sql = "select 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")+"')";
|
||||
sql+="where start_date=(select max(start_date) from LC_STANDARD_INTEREST where start_date<(select start_date from LC_STANDARD_INTEREST where id='"+CurPage.getParameter("id")+"'))";
|
||||
}else{
|
||||
sql += "where start_date=(select max(start_date) from LC_STANDARD_INTEREST)";
|
||||
}
|
||||
ASResultSet rs = Sqlca.getASResultSet2(sql);
|
||||
String BASE_RATE_HALF = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user