|
@ -118,8 +118,11 @@ public class BusinessAlertController extends BaseController { |
|
|
*/ |
|
|
*/ |
|
|
@Operation(summary ="预警推送-实时预警模块专用",description = "预警推送-实时预警模块专用") |
|
|
@Operation(summary ="预警推送-实时预警模块专用",description = "预警推送-实时预警模块专用") |
|
|
@GetMapping("/pushAlert") |
|
|
@GetMapping("/pushAlert") |
|
|
public R pushAlert(Long alertId) { |
|
|
public R pushAlert(Long alertId,String deptId,String deptName) { |
|
|
BusinessAlert businessAlert= businessAlertService.getBusinessAlert(alertId); |
|
|
BusinessAlert businessAlert= businessAlertService.getBusinessAlert(alertId); |
|
|
|
|
|
businessAlert.setDeptName(deptName); |
|
|
|
|
|
businessAlert.setDeptId(deptId); |
|
|
|
|
|
businessAlertService.updateBusinessAlert(businessAlert); |
|
|
RemoteStartProcess startProcess = new RemoteStartProcess(); |
|
|
RemoteStartProcess startProcess = new RemoteStartProcess(); |
|
|
startProcess.setBusinessId(String.valueOf(businessAlert.getId())); |
|
|
startProcess.setBusinessId(String.valueOf(businessAlert.getId())); |
|
|
startProcess.setFlowCode("alertChz"); |
|
|
startProcess.setFlowCode("alertChz"); |
|
|