| | |
| | | @Override |
| | | public MdkScheduleRespDTO runSchedule(MdkScheduleReqDTO reqDTO) { |
| | | MdkScheduleRespDTO resp = new MdkScheduleRespDTO(); |
| | | resp.setScheduleCode(reqDTO.getScheduleCode()); |
| | | resp.setScheduleTime(reqDTO.getScheduleTime()); |
| | | if (reqDTO.getScheduleTime() == null) { |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.set(Calendar.MILLISECOND, 0); |
| | | calendar.set(Calendar.SECOND, 0); |
| | | resp.setScheduleTime(calendar.getTime()); |
| | | reqDTO.setScheduleTime(calendar.getTime()); |
| | | } |
| | | resp.setScheduleCode(reqDTO.getScheduleCode()); |
| | | resp.setScheduleTime(reqDTO.getScheduleTime()); |
| | | String catchKey = "ScheduleResult:" + reqDTO.getScheduleCode(); |
| | | try { |
| | | if (redisTemplate.hasKey(catchKey)) { |