dongyukun
7 天以前 e88fba9645a57535d858ce48da8e9d9a3dc84adc
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSchemeServiceImpl.java
@@ -63,16 +63,17 @@
    @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);
    }