|
@@ -3,6 +3,7 @@ package com.ruoyi.interfaces.controller;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
+import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.interfaces.domain.MdModelParams;
|
|
import com.ruoyi.interfaces.domain.MdModelParams;
|
|
|
import com.ruoyi.interfaces.service.IMdModelParamsService;
|
|
import com.ruoyi.interfaces.service.IMdModelParamsService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -94,6 +95,21 @@ public class MdModelParamsController extends BaseController
|
|
|
return toAjax(mdModelParamsService.insertMdModelParams(mdModelParams));
|
|
return toAjax(mdModelParamsService.insertMdModelParams(mdModelParams));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 批量新增模型参数信息
|
|
|
|
|
+ */
|
|
|
|
|
+ @ApiOperation("新增模型参数信息")
|
|
|
|
|
+ @Log(title = "模型参数信息", businessType = BusinessType.INSERT)
|
|
|
|
|
+ @PostMapping("/addList")
|
|
|
|
|
+ public AjaxResult addList(@RequestBody List<MdModelParams> mdModelParams)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (StringUtils.isEmpty(mdModelParams)) return AjaxResult.error("数据为空");
|
|
|
|
|
+ mdModelParamsService.deleteMdModelParamsByMdid(mdModelParams.get(0).getMdid());
|
|
|
|
|
+ mdModelParams.forEach(mdModelParamsService::insertMdModelParams);
|
|
|
|
|
+ return success("插入成功");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 修改模型参数信息
|
|
* 修改模型参数信息
|
|
|
*/
|
|
*/
|