From 115ea3236846b5d95b51fc0934e89d13291bec1a Mon Sep 17 00:00:00 2001 From: wanghui <2788755484@qq.com> Date: Thu, 18 Jun 2026 15:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E5=87=AD=E8=AF=81=E6=89=93?= =?UTF-8?q?=E5=8D=B0SQL=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sinosoft/lis/sql/g_print/LCGrpPrintBLSQL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lis-module-grp-print-service/src/main/java/com/sinosoft/lis/sql/g_print/LCGrpPrintBLSQL.java b/lis-module-grp-print-service/src/main/java/com/sinosoft/lis/sql/g_print/LCGrpPrintBLSQL.java index 934ba48c..395a8c9c 100644 --- a/lis-module-grp-print-service/src/main/java/com/sinosoft/lis/sql/g_print/LCGrpPrintBLSQL.java +++ b/lis-module-grp-print-service/src/main/java/com/sinosoft/lis/sql/g_print/LCGrpPrintBLSQL.java @@ -347,7 +347,7 @@ public interface LCGrpPrintBLSQL { @SQL(value = "select polno,(select riskname from lmriskapp where RiskCode=a.RiskCode),InsuYear,InsuYearFlag,Amnt,Prem,BonusGetMode, ifnull((select P6 from lcdutysub lds where lds.BussType ='NB' and lds.BussNo =a.GrpContNo and lds.PolNo =a.PolNo limit 1) ,'---'), ifnull((select concat(P2*100,'%') from lcdutysub lds where lds.BussType ='NB' and lds.BussNo =a.GrpContNo and lds.PolNo =a.PolNo limit 1) ,'---'), Amnt , (select min(getstartdate) From lcget B1 where polno = a.polno and exists(select 'X' From lmdutyget b where getdutycode = b1.getdutycode and Type='0')),(select sum(money) from lcinsureacctrace c where contno= a.contno and exists(select 'X' from lmdutypay where payplancode = c.payplancode AND payplanname LIKE '%未归属%')),(select sum(money) from lcinsureacctrace c where contno= a.contno and exists(select 'X' from lmdutypay where payplancode = c.payplancode AND payplanname LIKE '%已归属%')),(select sum(money) from lcinsureacctrace c where contno= a.contno and exists(select 'X' from lmdutypay where payplancode = c.payplancode AND payplanname LIKE '%个人%')),(select dutyname from lmduty c where dutycode in (select dutycode from lcduty where polno=a.polno) limit 1),(select (select trim(codename) from ldcode where codetype='getintv' and code=c.getintv) from lcget c where polno=a.polno limit 1),(select to_char(getstartdate,'mm-dd') from lcget c where polno=a.polno limit 1) from lcpol a where contno='?ContNo?' order by (select subriskflag from lmriskapp where riskcode=a.riskcode) ") SSRS getLCPolInfoByContNo(@Param("ContNo") String ContNo); - @SQL(value = "select distinct b.riskname from lcpol a,lmriskapp b where b.RiskCode=a.RiskCode and contno='?ContNo?' order by b.subriskflag ") + @SQL(value = "select distinct b.riskname from lcpol a,lmriskapp b where b.RiskCode=a.RiskCode and contno='?ContNo?' ") SSRS getRiskNameByContNo(@Param("ContNo") String ContNo); @SQL(value = "select riskcode,InsuYear,InsuYearFlag,(select CODENAME From ldcode where codetype = 'periodunit' and code=a.InsuYearFlag) from lcpol a where contno='?ContNo?' and polno = mainpolno") @@ -387,7 +387,7 @@ public interface LCGrpPrintBLSQL { SSRS getRiskStatNameByRiskCode(@Param("tRiskCode") String tRiskCode); - @SQL(value = "select name,(select CodeName from ldcode a where a.CodeType ='sex' and code=a.sex),birthday,(select CodeName from ldcode a where a.CodeType ='idtype' and code=a.idtype),idno,(case when exists (select 1 from LCBnf b where b.contno=a.contno and b.bnftype = '1' and b.InsuredNo=a.InsuredNo) then (select b.name from LCBnf b where b.contno=a.contno and b.bnftype = '1' and b.InsuredNo=a.InsuredNo) else '法定继承人' end ) 附属被保人受益人,(select PlanCode from lccontplan where grpcontno=a.GrpContNo and ContPlanCode=a.ContPlanCode limit 1) 保障层级 From lcinsured a where a.RelationToMainInsured !='00' and a.ContNo ='?mContNo?'") + @SQL(value = "select name,(select CodeName from ldcode where CodeType ='sex' and code=a.sex),birthday,(select CodeName from ldcode where CodeType ='idtype' and code=a.idtype),idno,(case when exists (select 1 from LCBnf b where b.contno=a.contno and b.bnftype = '1' and b.InsuredNo=a.InsuredNo) then (select b.name from LCBnf b where b.contno=a.contno and b.bnftype = '1' and b.InsuredNo=a.InsuredNo) else '法定继承人' end ) 附属被保人受益人,(select PlanCode from lccontplan where grpcontno=a.GrpContNo and ContPlanCode=a.ContPlanCode limit 1) 保障层级 From lcinsured a where a.RelationToMainInsured !='00' and a.ContNo ='?mContNo?'") SSRS getRelaInsuredInfoByContNo(@Param("mContNo") String mContNo);