From 2b1f0a2c96389b4409545124adf82919f14eecba Mon Sep 17 00:00:00 2001 From: zzk Date: Mon, 18 Sep 2023 09:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E4=BF=A1=E6=81=AF=E5=85=B1?= =?UTF-8?q?=E5=90=8C=E7=94=B3=E8=AF=B7=E4=BA=BA=E5=8F=96=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Comm/CustomerHistory/CustomerHistoryInformation.jsp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp index ccf0ad04e..49e1ed6b5 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp @@ -10,7 +10,7 @@ String productId=CurPage.getParameter("ProductId"); String projectId=CurPage.getParameter("ProjectId"); String khcertid = Sqlca.getString("select ci.certid from lb_union_lessee_temp lul left join customer_info ci on ci.customerid = lul.CUSTOMER_ID where lul.IS_MAIN = 'Y' and lul.flowunid='"+flowunid+"'"); - String gtcertid = Sqlca.getString("select cf.certid from customer_family_temp cf where cf.flowunid='"+flowunid+"'"); + String gtcertid = Sqlca.getString("select cf.certid from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); String dbcertid = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID asc limit 1"); String dbcertid2 = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID desc limit 1"); //客户传参 @@ -23,14 +23,15 @@ String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&type=guarantee"; //判断是否有共同承租人和担保人 - String custnum1 = Sqlca.getString("select count(cf.id) as num from customer_family_temp cf where cf.flowunid='"+flowunid+"'"); + String custnum1 = Sqlca.getString("select count(cf.id) as num from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); String custnum2 = Sqlca.getString("select count(lul.ID) as num from lb_guarantee_unit_temp lul where lul.flowunid='"+flowunid+"'"); + Integer c = Integer.valueOf(custnum1); Integer a = Integer.valueOf(custnum2); String show1 = "false"; String show2 = "false"; String show3 = "false"; - if (custnum1 != null||custnum1 != "null"){show1 = "true";} + if (c>0){show1 = "true";} if (a >= 1){show2 = "true";} if (a > 1){show3 = "true";}