| | |
| | | // 减少 10 秒 |
| | | LocalDateTime now = LocalDateTime.now(); // 获取当前日期时间 |
| | | LocalDateTime earlier = now.minusSeconds(10); // 减少30秒 |
| | | System.out.println("当前日期时间:" + now); |
| | | System.out.println("减少10秒后的日期时间:" + earlier); |
| | | RecordSonParam recordSonParam = new RecordSonParam(); |
| | | recordSonParam.setUserId(userId); |
| | | recordSonParam.setTime(fmt.format(now)); |
| | | recordSonParam.setBeforeTime(fmt.format(earlier)); |
| | | String n = fmt.format(now); |
| | | recordSonParam.setTime(n); |
| | | String e = fmt.format(earlier); |
| | | recordSonParam.setBeforeTime(e); |
| | | //根据姓名ID为执行人获取所有对应的计划名称 |
| | | List<ArdAppPatrolplan> list = patrolplanMapper.planUser(recordSonParam); |
| | | JSONArray jsonArray = new JSONArray(); |