|
|
@ -8,6 +8,7 @@ import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.common.utils.spring.SpringUtils; |
|
|
|
import com.ruoyi.common.utils.uuid.IdUtils; |
|
|
|
import com.zc.business.domain.DcDevice; |
|
|
|
import com.zc.business.domain.DcDispatch; |
|
|
|
import com.zc.business.domain.DcWarning; |
|
|
|
import com.zc.business.domain.DcWarningBatchConvert; |
|
|
@ -217,4 +218,20 @@ public class DcWarningController extends BaseController |
|
|
|
return toAjax(dcWarningService.falseAlarmResolution(dcWarning)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 导出 |
|
|
|
* |
|
|
|
* @param response 响应 |
|
|
|
* @param dcWarning 导入数据结果 |
|
|
|
*/ |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:warning:export')")
|
|
|
|
@Log(title = "导出事件", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("export") |
|
|
|
public void exportDevice(HttpServletResponse response, DcWarning dcWarning) { |
|
|
|
List<DcWarning> list = dcWarningService.export(dcWarning); |
|
|
|
ExcelUtil<DcWarning> util = new ExcelUtil<>(DcWarning.class); |
|
|
|
util.exportExcel(response, list, UniversalEnum.EVENT_DATA.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|