<%@ page contentType="text/html; charset=GBK"%> <%@page import="com.tenwa.reckon.util.TbBeanTools"%> <%@page import="com.tenwa.reckon.bean.TabCalBean"%> <%@page import="com.amarsoft.are.jbo.JBOTransaction"%> <%@page import="com.tenwa.comm.util.jboutil.DataOperatorUtil"%> <%@ include file="/IncludeBegin.jsp"%><% /* Author: undefined 2017-08-02 Content: 示例详情页面 History Log: */ JBOTransaction tx=null; tx=JBOFactory.createJBOTransaction(); String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 BizObject flow=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_STANDARD_INTEREST_TEMP","flowunid=:flowunid").setParameter("flowunid", sFlowUnid).getSingleResult(false); String startdate=""; if(flow!=null){ startdate=flow.getAttribute("start_date").getString(); } BizObject flowold=null; String oldid=""; if(!startdate.equals("")&&startdate!=null){ String sql="SELECT id FROM LC_STANDARD_INTEREST WHERE start_date<:start_date ORDER BY start_date DESC LIMIT 0,1"; Map param=new HashMap(); param.put("start_date", startdate); List>list= DataOperatorUtil.getDataBySql(tx, sql, param); //flowold=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_STANDARD_INTEREST","SELECT id FROM O WHERE O.start_date<:start_date ORDER BY O.start_date DESC LIMIT 0,1").setParameter("start_date", startdate).getSingleResult(false); if(list.size()>0){ oldid=list.get(0).get("id"); } } tx.commit(); %><%@include file="/Resources/CodeParts/Frame02.jsp"%> <%@ include file="/IncludeEnd.jsp"%>