|
|
@@ -97,7 +97,7 @@ public class MdModelParamsController extends BaseController {
|
|
|
@PostMapping("/addList")
|
|
|
public AjaxResult addList(@RequestBody List<MdModelParams> mdModelParams) {
|
|
|
if (StringUtils.isEmpty(mdModelParams)) return AjaxResult.error("数据为空");
|
|
|
- mdModelParamsService.deleteMdModelParamsByParGroup(mdModelParams.get(0).getParGroup());
|
|
|
+ mdModelParamsService.deleteMdModelParamsByMdid(mdModelParams.get(0).getMdid());
|
|
|
for (int i = 0; i < mdModelParams.size(); i++) {
|
|
|
mdModelParams.get(i).setSort(i);
|
|
|
}
|
|
|
@@ -107,8 +107,8 @@ public class MdModelParamsController extends BaseController {
|
|
|
|
|
|
@DeleteMapping("/removeAll")
|
|
|
public AjaxResult removeAll(MdModelParams mdModelParams) {
|
|
|
- if (StringUtils.isEmpty(mdModelParams.getParGroup())) return AjaxResult.error("数据为空");
|
|
|
- mdModelParamsService.deleteMdModelParamsByParGroup(mdModelParams.getParGroup());
|
|
|
+ if (StringUtils.isEmpty(mdModelParams.getMdid())) return AjaxResult.error("数据为空");
|
|
|
+ mdModelParamsService.deleteMdModelParamsByMdid(mdModelParams.getMdid());
|
|
|
return success("修改成功");
|
|
|
}
|
|
|
|