|
|
|
@ -3,6 +3,8 @@ package com.ruoyi.system.controller;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.vo.CompetitionVsRecordVo;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -51,13 +53,13 @@ public class CompetitionResultController extends BaseController
|
|
|
|
|
* 导出赛会中-赛程结果记录列表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:competitionResult:export")
|
|
|
|
|
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.EXPORT)
|
|
|
|
|
@Log(title = "赛会中赛程结果记录", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, CompetitionResult competitionResult)
|
|
|
|
|
{
|
|
|
|
|
List<CompetitionResult> list = competitionResultService.selectCompetitionResultList(competitionResult);
|
|
|
|
|
ExcelUtil<CompetitionResult> util = new ExcelUtil<CompetitionResult>(CompetitionResult.class);
|
|
|
|
|
util.exportExcel(response, list, "赛会中-赛程结果记录数据");
|
|
|
|
|
util.exportExcel(response, list, "赛会中赛程结果记录数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -74,7 +76,7 @@ public class CompetitionResultController extends BaseController
|
|
|
|
|
* 新增赛会中-赛程结果记录
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:competitionResult:add")
|
|
|
|
|
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.INSERT)
|
|
|
|
|
@Log(title = "赛会中赛程结果记录", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody CompetitionResult competitionResult)
|
|
|
|
|
{
|
|
|
|
@ -85,24 +87,32 @@ public class CompetitionResultController extends BaseController
|
|
|
|
|
* 修改赛会中-赛程结果记录
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:competitionResult:edit")
|
|
|
|
|
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.UPDATE)
|
|
|
|
|
@Log(title = "赛会中赛程结果记录", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody CompetitionResult competitionResult)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(competitionResultService.updateCompetitionResult(competitionResult));
|
|
|
|
|
}
|
|
|
|
|
@RequiresPermissions("system:competitionResult:batchEdit")
|
|
|
|
|
@Log(title = "赛会中-批量保存赛程结果记录", businessType = BusinessType.UPDATE)
|
|
|
|
|
@Log(title = "赛会中批量保存赛程结果记录", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/batchEdit")
|
|
|
|
|
public AjaxResult batchEdit(@RequestBody List<CompetitionResult> list)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(competitionResultService.batchUpdateCompetitionResult(list));
|
|
|
|
|
}
|
|
|
|
|
@RequiresPermissions("system:competitionResult:editData")
|
|
|
|
|
@Log(title = "赛会中保存赛程结果记录2", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/editData")
|
|
|
|
|
public AjaxResult editData(@RequestBody CompetitionVsRecordVo obj)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(competitionResultService.editData(obj));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除赛会中-赛程结果记录
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:competitionResult:remove")
|
|
|
|
|
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.DELETE)
|
|
|
|
|
@Log(title = "赛会中赛程结果记录", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|
{
|
|
|
|
|