|
|
|
@ -1,36 +1,33 @@
|
|
|
|
|
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.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.tcZz.domain.TcYqxxltj;
|
|
|
|
|
import com.ruoyi.tcZz.service.ITcYqxxltjService;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 舆情信息量统计明細Controller
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
* @date 2023-10-12
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@Api(tags = "舆情信息量统计明細")
|
|
|
|
|
@RequestMapping("/tcZz/netWorkYq/yqxxltj")
|
|
|
|
|
public class TcYqxxltjController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
public class TcYqxxltjController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITcYqxxltjService tcYqxxltjService;
|
|
|
|
|
|
|
|
|
@ -39,8 +36,7 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:list')")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(TcYqxxltj tcYqxxltj)
|
|
|
|
|
{
|
|
|
|
|
public TableDataInfo list(TcYqxxltj tcYqxxltj) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
@ -52,8 +48,7 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:export')")
|
|
|
|
|
@Log(title = "舆情信息量统计明細", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj)
|
|
|
|
|
{
|
|
|
|
|
public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj) {
|
|
|
|
|
List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj);
|
|
|
|
|
ExcelUtil<TcYqxxltj> util = new ExcelUtil<TcYqxxltj>(TcYqxxltj.class);
|
|
|
|
|
util.exportExcel(response, list, "舆情信息量统计明細数据");
|
|
|
|
@ -64,8 +59,7 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:query')")
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
|
|
{
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
|
|
return success(tcYqxxltjService.selectTcYqxxltjById(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -75,8 +69,7 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:add')")
|
|
|
|
|
@Log(title = "舆情信息量统计明細", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj)
|
|
|
|
|
{
|
|
|
|
|
public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj) {
|
|
|
|
|
return toAjax(tcYqxxltjService.insertTcYqxxltj(tcYqxxltj));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -86,8 +79,7 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:edit')")
|
|
|
|
|
@Log(title = "舆情信息量统计明細", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj)
|
|
|
|
|
{
|
|
|
|
|
public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj) {
|
|
|
|
|
return toAjax(tcYqxxltjService.updateTcYqxxltj(tcYqxxltj));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -96,9 +88,32 @@ public class TcYqxxltjController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:remove')")
|
|
|
|
|
@Log(title = "舆情信息量统计明細", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|
{
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
|
|
return toAjax(tcYqxxltjService.deleteTcYqxxltjByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询舆情信息量统计明細列表
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "查询舆情信息量统计明細列表", response = TcYqxxltj.class)
|
|
|
|
|
@GetMapping("/ListNoToken")
|
|
|
|
|
public TableDataInfo ListNoToken(TcYqxxltj tcYqxxltj) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导入
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("通用导入excel信息")
|
|
|
|
|
@PostMapping("/common/importExcel")
|
|
|
|
|
public AjaxResult importExcel(MultipartFile file) throws Exception {
|
|
|
|
|
ExcelUtil<TcYqxxltj> util = new ExcelUtil<TcYqxxltj>(TcYqxxltj.class);
|
|
|
|
|
List<TcYqxxltj> YqxxltjList = util.importExcel(file.getInputStream());
|
|
|
|
|
tcYqxxltjService.importUser(YqxxltjList);
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|