diff --git a/WebContent/Tenwa/Core/Standard/CentralLCStandardInterestList.jsp b/WebContent/Tenwa/Core/Standard/CentralLCStandardInterestList.jsp index cbf4a522a..b1ae8b00a 100644 --- a/WebContent/Tenwa/Core/Standard/CentralLCStandardInterestList.jsp +++ b/WebContent/Tenwa/Core/Standard/CentralLCStandardInterestList.jsp @@ -22,7 +22,7 @@ <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp b/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp index cbab210a1..5adcd8442 100644 --- a/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp +++ b/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp @@ -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 = "";