if (createtime1 != null && !createtime1.equals(" ") && createtime2 != null && !createtime2.equals("")) {
long stime = Util.dateFormat(createtime1, "yyyy-MM-dd HH:mm");
long etime = Util.dateFormat(createtime2, "yyyy-MM-dd HH:mm");
props.setProperty("createtime", "<between>" + stime + " and " + etime);
}else if (createtime1 != null && !createtime1.equals("")) {
long stime = Util.dateFormat(createtime1, "yyyy-MM-dd HH:mm");
long etime = System.currentTimeMillis();
props.setProperty("createtime", "<between>" + stime + " and "+""); // >= 条件
}else if (createtime2 != null && !createtime2.equals("")) {
long stime = Util.dateFormat("1970-01-01 00:00", "yyyy-MM-dd HH:mm");
long etime = Util.dateFormat(createtime2, "yyyy-MM-dd HH:mm");
props.setProperty("createtime", "<between>" +"" + " and " + etime); // <= 条件