| | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | @Override |
| | | public Results son() { |
| | | SimpleDateFormat dateFormatTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | //获取用户执行人 |
| | | String userId = SecurityUtils.getUserId(); |
| | | // 减少 10 秒 |
| | |
| | | System.out.println("减少10秒后的日期时间:" + earlier); |
| | | RecordSonParam recordSonParam = new RecordSonParam(); |
| | | recordSonParam.setUserId(userId); |
| | | recordSonParam.setTime(dateFormatTime.format(now)); |
| | | recordSonParam.setBeforeTime(dateFormatTime.format(earlier)); |
| | | recordSonParam.setTime(fmt.format(now)); |
| | | recordSonParam.setBeforeTime(fmt.format(earlier)); |
| | | //根据姓名ID为执行人获取所有对应的计划名称 |
| | | List<ArdAppPatrolplan> list = patrolplanMapper.planUser(recordSonParam); |
| | | JSONArray jsonArray = new JSONArray(); |