From c4e77734edacb14c4bd6ab7cdd0a28b17bfbf56f Mon Sep 17 00:00:00 2001 From: jianghongdong Date: Mon, 23 Jul 2018 16:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B0=83=E6=95=B4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=8E=E4=BF=AE=E6=94=B9=E8=B0=83=E6=95=B4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=9F=A5=E8=AF=A2=E4=B8=8A=E4=B8=80=E6=AC=A1=E7=9A=84?= =?UTF-8?q?=E5=9F=BA=E5=87=86=E5=88=A9=E7=8E=87=E5=8C=BA=E5=88=AB=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tenwa/Core/Standard/CentralLCStandardInterestList.jsp | 4 ++-- WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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 = "";