| | |
| | | case 2: |
| | | // 年内卡 |
| | | Date date1 = new Date(); |
| | | |
| | | date1.setMonth(11); |
| | | date1.setDate(31); |
| | | date1.setHours(23); |
| | |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查看惠民卡详情 |
| | |
| | | return ResultUtil.success(new ArrayList<>()); |
| | | } |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | LocalDateTime localDateTime = LocalDateTime.now().plusDays(365); |
| | | // 将LocalDateTime转换为Date类型 |
| | | Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); |
| | | String format = simpleDateFormat.format(date); |
| | | System.err.println(format); |
| | | } |
| | | /** |
| | | * 个人中心-我的惠民卡-查看详情 |
| | | */ |