| | |
| | | @Override |
| | | public List<StScheduleSchemeDTO> list(Map<String, Object> params) { |
| | | QueryWrapper<StScheduleSchemeEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("trigger_method", params.get("trigger_method")); |
| | | queryWrapper.eq("trigger_condition", params.get("trigger_condition")); |
| | | queryWrapper.eq("trigger_method", params.get("triggerMethod")); |
| | | queryWrapper.eq("trigger_condition", params.get("triggerCondition")); |
| | | List<StScheduleSchemeEntity> list = baseDao.selectList(queryWrapper); |
| | | return ConvertUtils.sourceToTarget(list, StScheduleSchemeDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public void updateTime(String id, Date scheduleTime) { |
| | | public void updateTime(String id, Date scheduleTime, String statusCode) { |
| | | StScheduleSchemeEntity entity = new StScheduleSchemeEntity(); |
| | | entity.setId(id); |
| | | entity.setRunStatus(statusCode); |
| | | entity.setScheduleTime(scheduleTime); |
| | | baseDao.updateById(entity); |
| | | } |