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 2e273129..934ba48c 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 @@ -359,7 +359,7 @@ public interface LCGrpPrintBLSQL { @SQL(value = "select address,zipcode,servicephone from ldcom where comcode='?ManageCom?'") SSRS getComInfoByManageCom(@Param("ManageCom") String ManageCom); - @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,(select PlanCode from lccontplan where grpcontno=a.GrpContNo and ContPlanCode=a.ContPlanCode limit 1),(select a.insuredappage from lcpol b where b.contno=a.contno and b.InsuredNo =a.InsuredNo 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,(select PlanCode from lccontplan where grpcontno=a.GrpContNo and ContPlanCode=a.ContPlanCode limit 1),(select a.insuredappage from lcpol b where b.contno=a.contno and b.InsuredNo =a.InsuredNo limit 1) From lcinsured a where a.RelationToMainInsured ='00' and a.ContNo ='?mContNo?'") SSRS getInsuredInfoByContNo(@Param("mContNo") String mContNo); @SQL(value = "select a.riskcode,a.InsuYear,a.InsuYearFlag, a.insuredappage from lcpol a,lmriskapp b where a.contno='?mContNo?' and a.polno=a.mainpolno and a.PolState in ('11','20','21','10') and b.riskcode = a.riskcode")