13 lines
1.3 KiB
Plaintext
13 lines
1.3 KiB
Plaintext
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME"%>
|
|
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP"%>
|
|
<%@page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT"%>
|
|
<%@page import="com.amarsoft.are.jbo.BizObject"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
|
|
<%@page import="java.math.BigDecimal"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
|
String companyId = CurPage.getParameter("belongCompanyid");
|
|
String result = Sqlca.getString(new SqlObject("select case when count(1)>0 then 'true' else 'false' end res from lb_contract_info lci left join lb_file_mailarchiving_info lfmi on lfmi.CONTRACT_ID = lci.ID where (lfmi.ALLHANDOVERSTATUS is null or lfmi.ALLHANDOVERSTATUS = 'part' or lfmi.ALLHANDOVERSTATUS = 'none') and not exists (select 1 from LB_FILE_MAILARCHIVING_INFO_TEMP lfmit where lfmit.contract_id = lci.id and lfmit.is_flowing = '0') AND EXISTS (SELECT 1 FROM FLOW_OBJECT fo,FLOW_BUSSINESS_OBJECT fbo WHERE fo.objectno=fbo.flow_unid AND fo.phaseno='1000' AND fo.flowno='MortgageFileFlow' AND fbo.contract_id=lci.id) and lci.PROJECT_DEPT = '"+companyId+"'"));
|
|
out.println(result);
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |