| | |
| | | // |
| | | // |
| | | //import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | //import com.ruoyi.common.utils.SmsUtil; |
| | | //import com.ruoyi.system.mapper.TBillMapper; |
| | | //import com.ruoyi.system.model.TBill; |
| | | //import com.ruoyi.system.model.TContract; |
| | |
| | | // // 用于更新违约金账单 |
| | | // // 每分钟执行一次的定时任务 |
| | | // |
| | | //// @Scheduled(cron = "0 0 0 * * ?") |
| | | // @Scheduled(cron = "0 * * * * ?") |
| | | // public void dayOfProportionBill() { |
| | | // try { |
| | |
| | | // } |
| | | // } |
| | | // |
| | | // public static void main(String[] args) { |
| | | // |
| | | //// LocalDateTime now = LocalDateTime.now().minusMonths(1).withDayOfMonth(31); |
| | | //// System.err.println(now); |
| | | //// LocalDateTime now2 = now.plusMonths(1); |
| | | //// System.err.println(now2); |
| | | //// |
| | | //// LocalDateTime now1 = LocalDateTime.now(); |
| | | //// long days = ChronoUnit.DAYS.between(now, now1); |
| | | //// long days2 = ChronoUnit.DAYS.between(now.plusDays(1), now1); |
| | | //// |
| | | //// System.err.println(days); |
| | | //// System.err.println(days2); |
| | | //// LocalDateTime endTime = now.with(TemporalAdjusters.lastDayOfMonth()).withSecond(59).withHour(23).withMinute(59); |
| | | //// |
| | | //// System.err.println(endTime); |
| | | // |
| | | // } |
| | | // |
| | | //} |