qushaowei
2024-03-28 1a2258c4eca2e7514b6096004fa1c3e0036b402b
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/controller/MdcDriveTypeParamConfigController.java
@@ -11,6 +11,7 @@
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.mdc.dto.OptionsDto;
import org.jeecg.modules.mdc.entity.MdcDriveTypeParamConfig;
import org.jeecg.modules.mdc.service.IMdcDriveTypeParamConfigService;
import org.springframework.web.bind.annotation.*;
@@ -160,4 +161,20 @@
        return Result.OK(list);
    }
    @AutoLog(value = "驱动参数配置-获取控制系统类型下拉框选项")
    @ApiOperation(value = "驱动参数配置-获取控制系统类型下拉框选项", notes = "驱动参数配置-获取控制系统类型下拉框选项")
    @GetMapping(value = "/getDriveParamOptions")
    public Result<List<OptionsDto>> getDriveParamOptions() {
        List<OptionsDto> result = mdcDriveTypeParamConfigService.getDriveParamOptions();
        return Result.OK(result);
    }
    @AutoLog(value = "驱动参数配置-根据控制系统类型获取参数")
    @ApiOperation(value = "驱动参数配置-根据控制系统类型获取参数", notes = "驱动参数配置-根据控制系统类型获取参数")
    @GetMapping(value = "/getDriveParamOptionsByType")
    public Result<List<OptionsDto>> getDriveParamOptionsByType(@RequestParam(name = "controlSystemType", required = true) String controlSystemType) {
        List<OptionsDto> result = mdcDriveTypeParamConfigService.getDriveParamOptionsByType(controlSystemType);
        return Result.OK(result);
    }
}