|
|
@ -1,26 +1,17 @@
|
|
|
|
package com.ruoyi.zongzhi.controller;
|
|
|
|
package com.ruoyi.zongzhi.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
|
|
|
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.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
|
|
|
|
import com.ruoyi.zongzhi.domain.TcWpyrwwcl;
|
|
|
|
import com.ruoyi.zongzhi.service.ITcWpyrwwclService;
|
|
|
|
import com.ruoyi.zongzhi.service.ITcWpyrwwclService;
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 网评员任务完成率心Controller
|
|
|
|
* 网评员任务完成率心Controller
|
|
|
@ -31,18 +22,16 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/zongzhi/wpyrwwcl")
|
|
|
|
@RequestMapping("/zongzhi/wpyrwwcl")
|
|
|
|
@Api(tags = " 网评员任务完成率心")
|
|
|
|
@Api(tags = " 网评员任务完成率心")
|
|
|
|
public class TcWpyrwwclController extends BaseController
|
|
|
|
public class TcWpyrwwclController extends BaseController {
|
|
|
|
{
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ITcWpyrwwclService tcWpyrwwclService;
|
|
|
|
private ITcWpyrwwclService tcWpyrwwclService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询网评员任务完成率心列表
|
|
|
|
* 查询网评员任务完成率心列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:list')")
|
|
|
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
@GetMapping("/list")
|
|
|
|
public TableDataInfo list(TcWpyrwwcl tcWpyrwwcl)
|
|
|
|
public TableDataInfo list(TcWpyrwwcl tcWpyrwwcl) {
|
|
|
|
{
|
|
|
|
|
|
|
|
startPage();
|
|
|
|
startPage();
|
|
|
|
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
|
|
|
|
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
|
|
|
|
return getDataTable(list);
|
|
|
|
return getDataTable(list);
|
|
|
@ -51,11 +40,9 @@ public class TcWpyrwwclController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 导出网评员任务完成率心列表
|
|
|
|
* 导出网评员任务完成率心列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:export')")
|
|
|
|
|
|
|
|
@Log(title = "网评员任务完成率心", businessType = BusinessType.EXPORT)
|
|
|
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
@PostMapping("/export")
|
|
|
|
public void export(HttpServletResponse response, TcWpyrwwcl tcWpyrwwcl)
|
|
|
|
public void export(HttpServletResponse response, TcWpyrwwcl tcWpyrwwcl) {
|
|
|
|
{
|
|
|
|
|
|
|
|
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
|
|
|
|
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(tcWpyrwwcl);
|
|
|
|
ExcelUtil<TcWpyrwwcl> util = new ExcelUtil<TcWpyrwwcl>(TcWpyrwwcl.class);
|
|
|
|
ExcelUtil<TcWpyrwwcl> util = new ExcelUtil<TcWpyrwwcl>(TcWpyrwwcl.class);
|
|
|
|
util.exportExcel(response, list, "网评员任务完成率心数据");
|
|
|
|
util.exportExcel(response, list, "网评员任务完成率心数据");
|
|
|
@ -64,43 +51,36 @@ public class TcWpyrwwclController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取网评员任务完成率心详细信息
|
|
|
|
* 获取网评员任务完成率心详细信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:query')")
|
|
|
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
|
{
|
|
|
|
|
|
|
|
return success(tcWpyrwwclService.selectTcWpyrwwclById(id));
|
|
|
|
return success(tcWpyrwwclService.selectTcWpyrwwclById(id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增网评员任务完成率心
|
|
|
|
* 新增网评员任务完成率心
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:add')")
|
|
|
|
|
|
|
|
@Log(title = "网评员任务完成率心", businessType = BusinessType.INSERT)
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
@PostMapping
|
|
|
|
public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl)
|
|
|
|
public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl) {
|
|
|
|
{
|
|
|
|
|
|
|
|
return toAjax(tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl));
|
|
|
|
return toAjax(tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 修改网评员任务完成率心
|
|
|
|
* 修改网评员任务完成率心
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:edit')")
|
|
|
|
|
|
|
|
@Log(title = "网评员任务完成率心", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
@PutMapping
|
|
|
|
@PutMapping
|
|
|
|
public AjaxResult edit(@RequestBody TcWpyrwwcl tcWpyrwwcl)
|
|
|
|
public AjaxResult edit(@RequestBody TcWpyrwwcl tcWpyrwwcl) {
|
|
|
|
{
|
|
|
|
|
|
|
|
return toAjax(tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl));
|
|
|
|
return toAjax(tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 删除网评员任务完成率心
|
|
|
|
* 删除网评员任务完成率心
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:wpyrwwcl:remove')")
|
|
|
|
|
|
|
|
@Log(title = "网评员任务完成率心", businessType = BusinessType.DELETE)
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return toAjax(tcWpyrwwclService.deleteTcWpyrwwclByIds(ids));
|
|
|
|
return toAjax(tcWpyrwwclService.deleteTcWpyrwwclByIds(ids));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|