checkDate("fromdate2","d_day")=="<"
checkDate("fromdate2","d_day")=="="
这不可能同时成立的,将那里的&& 改成||试试