@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?'")
@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")