|
@ -80,9 +80,7 @@ public class DcWarningController extends BaseController |
|
|
@PostMapping |
|
|
@PostMapping |
|
|
public AjaxResult add(@RequestBody DcWarning dcWarning) |
|
|
public AjaxResult add(@RequestBody DcWarning dcWarning) |
|
|
{ |
|
|
{ |
|
|
//设置事件Id UUID无下划线格式32
|
|
|
|
|
|
String uuid = IdUtils.fastSimpleUUID(); |
|
|
|
|
|
dcWarning.setId(uuid); |
|
|
|
|
|
return toAjax(dcWarningService.insertDcWarning(dcWarning)); |
|
|
return toAjax(dcWarningService.insertDcWarning(dcWarning)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|