public static int getYYYYMMDD(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
int tmp = 0;
try {
tmp = Integer.valueOf(sdf.format(date));
} catch (Exception e) {
log.error("时间转换异常date={} e={}", date, e);
throw new RuntimeException("时间转换异常");
}
return tmp;
}