adoQuery1.SQL.Add('select * from customer where 合同截止时间='''+S+'''');