日期:2014-05-17 浏览次数:20887 次
select b.policycode,b.casenumber,1 as total,'B1' as standard, getdate() as aa,'C' as grade from casemessage_ys b, policy a where a.policycode =b.policycode and a.insuredname = b.casedriver and b.hldtype='2' and lenth(a.insuredname)>=2 and lenth(a.insuredname)<=4 and b.isdown='0' and b.isstate='1' and (b.link='核赔' or b.link='已决')