修改web端邮寄归档可以发起一条空的合同

This commit is contained in:
zhangjun 2020-07-12 18:01:53 +08:00
parent 4db1f914e0
commit b656860edb

View File

@ -8,6 +8,6 @@
<%@ 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 lci.PROJECT_DEPT = '"+companyId+"'"));
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"%>