|
|
@@ -17,6 +17,7 @@ import com.yunfeiyun.agmp.iotm.web.domain.resvo.IotWarnlogResVo;
|
|
|
import com.yunfeiyun.agmp.iotm.web.service.IIotWarnlogService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -118,6 +119,7 @@ public class IotWarnlogController extends BaseController{
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('iot:warn:record:remove')")
|
|
|
@Log(title = "告警记录", businessType = BusinessType.DELETE)
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
@DeleteMapping("/delete/{wrBids}")
|
|
|
public AjaxResult remove(@PathVariable String[] wrBids){
|
|
|
return toAjax(iotWarnlogService.deleteIotWarnlogByWlBids(wrBids,SecurityUtils.getTid()));
|