MyBatis-Plus时间判断

MyBatis-Plus时间判断

  • 实现

实现

QueryWrapper wrapper = new QueryWraapper();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date date = new Date(System.currentTimeMillis());
String nowDate = formatter.format(date);
wrapper.ge(EduActivity::getEndDate, nowDate);

你可能感兴趣的:(java类)