|
@ -107,10 +107,10 @@ public class BusinessAlertController extends BaseController { |
|
|
*/ |
|
|
*/ |
|
|
@Operation(summary ="ai实时流预警保存-用于演示",description = "ai实时流预警保存-用于演示") |
|
|
@Operation(summary ="ai实时流预警保存-用于演示",description = "ai实时流预警保存-用于演示") |
|
|
@PostMapping("/saveAlert") |
|
|
@PostMapping("/saveAlert") |
|
|
public R<BusinessAlert> saveAlert(@RequestBody BusinessAlertVo vo) { |
|
|
public R<BusinessAlert> saveAlert(@RequestBody BusinessAlert vo) { |
|
|
vo.setBusinessType(2); |
|
|
vo.setBusinessType(2); |
|
|
vo.setHandleType("verify"); |
|
|
vo.setHandleType("verify"); |
|
|
BusinessAlert businessAlert = businessAlertService.addBusinessAlert(vo); |
|
|
BusinessAlert businessAlert = businessAlertService.addAlert(vo); |
|
|
return R.ok(businessAlert); |
|
|
return R.ok(businessAlert); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|