106 lines
4.5 KiB
Java
106 lines
4.5 KiB
Java
package com.ruoyi.rocketmq.controller;
|
|||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
import java.io.IOException;
|
||
|
|
import javax.servlet.http.HttpServletResponse;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
||
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
||
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
||
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
import com.ruoyi.common.log.annotation.Log;
|
||
|
|
import com.ruoyi.common.log.enums.BusinessType;
|
||
|
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||
|
|
import com.ruoyi.rocketmq.domain.InitialSystemOtherCollectData;
|
||
|
|
import com.ruoyi.rocketmq.service.IInitialSystemOtherCollectDataService;
|
||
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||
|
|
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||
|
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 交换机系统其他信息采集数据Controller
|
||
|
|
*
|
||
|
|
* @author gyt
|
||
|
|
* @date 2025-09-23
|
||
|
|
*/
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/systemOtherCollectData")
|
||
|
|
public class InitialSystemOtherCollectDataController extends BaseController
|
||
|
|
{
|
||
|
|
@Autowired
|
||
|
|
private IInitialSystemOtherCollectDataService initialSystemOtherCollectDataService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查询交换机系统其他信息采集数据列表
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:list")
|
||
|
|
@GetMapping("/list")
|
||
|
|
public TableDataInfo list(InitialSystemOtherCollectData initialSystemOtherCollectData)
|
||
|
|
{
|
||
|
|
startPage();
|
||
|
|
List<InitialSystemOtherCollectData> list = initialSystemOtherCollectDataService.selectInitialSystemOtherCollectDataList(initialSystemOtherCollectData);
|
||
|
|
return getDataTable(list);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 导出交换机系统其他信息采集数据列表
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:export")
|
||
|
|
@Log(title = "交换机系统其他信息采集数据", businessType = BusinessType.EXPORT)
|
||
|
|
@PostMapping("/export")
|
||
|
|
public void export(HttpServletResponse response, InitialSystemOtherCollectData initialSystemOtherCollectData)
|
||
|
|
{
|
||
|
|
List<InitialSystemOtherCollectData> list = initialSystemOtherCollectDataService.selectInitialSystemOtherCollectDataList(initialSystemOtherCollectData);
|
||
|
|
ExcelUtil<InitialSystemOtherCollectData> util = new ExcelUtil<InitialSystemOtherCollectData>(InitialSystemOtherCollectData.class);
|
||
|
|
util.exportExcel(response, list, "交换机系统其他信息采集数据数据");
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取交换机系统其他信息采集数据详细信息
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:query")
|
||
|
|
@GetMapping(value = "/{id}")
|
||
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||
|
|
{
|
||
|
|
return success(initialSystemOtherCollectDataService.selectInitialSystemOtherCollectDataById(id));
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新增交换机系统其他信息采集数据
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:add")
|
||
|
|
@Log(title = "交换机系统其他信息采集数据", businessType = BusinessType.INSERT)
|
||
|
|
@PostMapping
|
||
|
|
public AjaxResult add(@RequestBody InitialSystemOtherCollectData initialSystemOtherCollectData)
|
||
|
|
{
|
||
|
|
return toAjax(initialSystemOtherCollectDataService.insertInitialSystemOtherCollectData(initialSystemOtherCollectData));
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 修改交换机系统其他信息采集数据
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:edit")
|
||
|
|
@Log(title = "交换机系统其他信息采集数据", businessType = BusinessType.UPDATE)
|
||
|
|
@PutMapping
|
||
|
|
public AjaxResult edit(@RequestBody InitialSystemOtherCollectData initialSystemOtherCollectData)
|
||
|
|
{
|
||
|
|
return toAjax(initialSystemOtherCollectDataService.updateInitialSystemOtherCollectData(initialSystemOtherCollectData));
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除交换机系统其他信息采集数据
|
||
|
|
*/
|
||
|
|
@RequiresPermissions("rocketmq:systemOtherCollectData:remove")
|
||
|
|
@Log(title = "交换机系统其他信息采集数据", businessType = BusinessType.DELETE)
|
||
|
|
@DeleteMapping("/{ids}")
|
||
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||
|
|
{
|
||
|
|
return toAjax(initialSystemOtherCollectDataService.deleteInitialSystemOtherCollectDataByIds(ids));
|
||
|
|
}
|
||
|
|
}
|