105 lines
3.8 KiB
105 lines
3.8 KiB
2 years ago
|
package com.ruoyi.tcZz.controller;
|
||
|
|
||
|
import java.util.List;
|
||
|
import javax.servlet.http.HttpServletResponse;
|
||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||
|
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.annotation.Log;
|
||
|
import com.ruoyi.common.core.controller.BaseController;
|
||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||
|
import com.ruoyi.common.enums.BusinessType;
|
||
|
import com.ruoyi.tcZz.domain.TcQlzxxdsjtj;
|
||
|
import com.ruoyi.tcZz.service.ITcQlzxxdsjtjService;
|
||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||
|
|
||
|
/**
|
||
|
* 清郎专项行动数据统计Controller
|
||
|
*
|
||
|
* @author ruoyi
|
||
|
* @date 2023-10-13
|
||
|
*/
|
||
|
@RestController
|
||
|
@RequestMapping("/tcZz/netManage/qlzxxdsjtj")
|
||
|
public class TcQlzxxdsjtjController extends BaseController
|
||
|
{
|
||
|
@Autowired
|
||
|
private ITcQlzxxdsjtjService tcQlzxxdsjtjService;
|
||
|
|
||
|
/**
|
||
|
* 查询清郎专项行动数据统计列表
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:list')")
|
||
|
@GetMapping("/list")
|
||
|
public TableDataInfo list(TcQlzxxdsjtj tcQlzxxdsjtj)
|
||
|
{
|
||
|
startPage();
|
||
|
List<TcQlzxxdsjtj> list = tcQlzxxdsjtjService.selectTcQlzxxdsjtjList(tcQlzxxdsjtj);
|
||
|
return getDataTable(list);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导出清郎专项行动数据统计列表
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:export')")
|
||
|
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.EXPORT)
|
||
|
@PostMapping("/export")
|
||
|
public void export(HttpServletResponse response, TcQlzxxdsjtj tcQlzxxdsjtj)
|
||
|
{
|
||
|
List<TcQlzxxdsjtj> list = tcQlzxxdsjtjService.selectTcQlzxxdsjtjList(tcQlzxxdsjtj);
|
||
|
ExcelUtil<TcQlzxxdsjtj> util = new ExcelUtil<TcQlzxxdsjtj>(TcQlzxxdsjtj.class);
|
||
|
util.exportExcel(response, list, "清郎专项行动数据统计数据");
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取清郎专项行动数据统计详细信息
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:query')")
|
||
|
@GetMapping(value = "/{id}")
|
||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||
|
{
|
||
|
return success(tcQlzxxdsjtjService.selectTcQlzxxdsjtjById(id));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 新增清郎专项行动数据统计
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:add')")
|
||
|
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.INSERT)
|
||
|
@PostMapping
|
||
|
public AjaxResult add(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj)
|
||
|
{
|
||
|
return toAjax(tcQlzxxdsjtjService.insertTcQlzxxdsjtj(tcQlzxxdsjtj));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 修改清郎专项行动数据统计
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:edit')")
|
||
|
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.UPDATE)
|
||
|
@PutMapping
|
||
|
public AjaxResult edit(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj)
|
||
|
{
|
||
|
return toAjax(tcQlzxxdsjtjService.updateTcQlzxxdsjtj(tcQlzxxdsjtj));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 删除清郎专项行动数据统计
|
||
|
*/
|
||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:remove')")
|
||
|
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.DELETE)
|
||
|
@DeleteMapping("/{ids}")
|
||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||
|
{
|
||
|
return toAjax(tcQlzxxdsjtjService.deleteTcQlzxxdsjtjByIds(ids));
|
||
|
}
|
||
|
}
|