diff --git a/zc-business/src/main/java/com/zc/business/controller/DcWarningController.java b/zc-business/src/main/java/com/zc/business/controller/DcWarningController.java index 73ab8965..5c3115d9 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcWarningController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcWarningController.java @@ -80,9 +80,7 @@ public class DcWarningController extends BaseController @PostMapping public AjaxResult add(@RequestBody DcWarning dcWarning) { - //设置事件Id UUID无下划线格式32 - String uuid = IdUtils.fastSimpleUUID(); - dcWarning.setId(uuid); + return toAjax(dcWarningService.insertDcWarning(dcWarning)); }