diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java index a734be31..116d1c58 100755 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java @@ -101,7 +101,7 @@ public class GenDsConfController { */ @SysLog("删除数据源表") @DeleteMapping("/{id}") - public R removeById(@PathVariable Long id) { + public R removeById(@PathVariable Integer id) { return R.ok(datasourceConfService.removeByDsId(id)); } diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java index 4f4d63e6..8ef6c64b 100755 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java @@ -100,7 +100,7 @@ public class GenFormConfController { @SysLog("通过id删除生成记录") @DeleteMapping("/{id}") @PreAuthorize("@pms.hasPermission('gen_form_del')") - public R removeById(@PathVariable Long id) { + public R removeById(@PathVariable Integer id) { return R.ok(genRecordService.removeById(id)); }