parent
9181e9eb41
commit
974652f853
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionMembers;
|
||||
import com.ruoyi.system.service.ICompetitionMembersService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionMembers")
|
||||
public class CompetitionMembersController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionMembersService competitionMembersService;
|
||||
|
||||
/**
|
||||
* 查询比赛参与人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionMembers competitionMembers)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionMembers> list = competitionMembersService.selectCompetitionMembersList(competitionMembers);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出比赛参与人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:export")
|
||||
@Log(title = "比赛参与人员", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CompetitionMembers competitionMembers)
|
||||
{
|
||||
List<CompetitionMembers> list = competitionMembersService.selectCompetitionMembersList(competitionMembers);
|
||||
ExcelUtil<CompetitionMembers> util = new ExcelUtil<CompetitionMembers>(CompetitionMembers.class);
|
||||
util.exportExcel(response, list, "比赛参与人员数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取比赛参与人员详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionMembersService.selectCompetitionMembersById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增比赛参与人员
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:add")
|
||||
@Log(title = "比赛参与人员", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionMembers competitionMembers)
|
||||
{
|
||||
return toAjax(competitionMembersService.insertCompetitionMembers(competitionMembers));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改比赛参与人员
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:edit")
|
||||
@Log(title = "比赛参与人员", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionMembers competitionMembers)
|
||||
{
|
||||
return toAjax(competitionMembersService.updateCompetitionMembers(competitionMembers));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除比赛参与人员
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMembers:remove")
|
||||
@Log(title = "比赛参与人员", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionMembersService.deleteCompetitionMembersByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionMembersScore;
|
||||
import com.ruoyi.system.service.ICompetitionMembersScoreService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionMemberScore")
|
||||
public class CompetitionMembersScoreController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionMembersScoreService competitionMembersScoreService;
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionMembersScore> list = competitionMembersScoreService.selectCompetitionMembersScoreList(competitionMembersScore);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出赛会中-赛程-人员得分列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:export")
|
||||
@Log(title = "赛会中-赛程-人员得分", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
List<CompetitionMembersScore> list = competitionMembersScoreService.selectCompetitionMembersScoreList(competitionMembersScore);
|
||||
ExcelUtil<CompetitionMembersScore> util = new ExcelUtil<CompetitionMembersScore>(CompetitionMembersScore.class);
|
||||
util.exportExcel(response, list, "赛会中-赛程-人员得分数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取赛会中-赛程-人员得分详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionMembersScoreService.selectCompetitionMembersScoreById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程-人员得分
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:add")
|
||||
@Log(title = "赛会中-赛程-人员得分", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
return toAjax(competitionMembersScoreService.insertCompetitionMembersScore(competitionMembersScore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程-人员得分
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:edit")
|
||||
@Log(title = "赛会中-赛程-人员得分", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
return toAjax(competitionMembersScoreService.updateCompetitionMembersScore(competitionMembersScore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程-人员得分
|
||||
*/
|
||||
@RequiresPermissions("system:competitionMemberScore:remove")
|
||||
@Log(title = "赛会中-赛程-人员得分", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionMembersScoreService.deleteCompetitionMembersScoreByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionOfTeam;
|
||||
import com.ruoyi.system.service.ICompetitionOfTeamService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionOfTeam")
|
||||
public class CompetitionOfTeamController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionOfTeamService competitionOfTeamService;
|
||||
|
||||
/**
|
||||
* 查询赛会中-参赛队伍列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionOfTeam> list = competitionOfTeamService.selectCompetitionOfTeamList(competitionOfTeam);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出赛会中-参赛队伍列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:export")
|
||||
@Log(title = "赛会中-参赛队伍", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
List<CompetitionOfTeam> list = competitionOfTeamService.selectCompetitionOfTeamList(competitionOfTeam);
|
||||
ExcelUtil<CompetitionOfTeam> util = new ExcelUtil<CompetitionOfTeam>(CompetitionOfTeam.class);
|
||||
util.exportExcel(response, list, "赛会中-参赛队伍数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取赛会中-参赛队伍详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionOfTeamService.selectCompetitionOfTeamById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-参赛队伍
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:add")
|
||||
@Log(title = "赛会中-参赛队伍", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
return toAjax(competitionOfTeamService.insertCompetitionOfTeam(competitionOfTeam));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-参赛队伍
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:edit")
|
||||
@Log(title = "赛会中-参赛队伍", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
return toAjax(competitionOfTeamService.updateCompetitionOfTeam(competitionOfTeam));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-参赛队伍
|
||||
*/
|
||||
@RequiresPermissions("system:competitionOfTeam:remove")
|
||||
@Log(title = "赛会中-参赛队伍", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionOfTeamService.deleteCompetitionOfTeamByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionResult;
|
||||
import com.ruoyi.system.service.ICompetitionResultService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionResult")
|
||||
public class CompetitionResultController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionResultService competitionResultService;
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionResult competitionResult)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionResult> list = competitionResultService.selectCompetitionResultList(competitionResult);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出赛会中-赛程结果记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult: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, "赛会中-赛程结果记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取赛会中-赛程结果记录详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionResultService.selectCompetitionResultById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程结果记录
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult:add")
|
||||
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionResult competitionResult)
|
||||
{
|
||||
return toAjax(competitionResultService.insertCompetitionResult(competitionResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程结果记录
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult:edit")
|
||||
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionResult competitionResult)
|
||||
{
|
||||
return toAjax(competitionResultService.updateCompetitionResult(competitionResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程结果记录
|
||||
*/
|
||||
@RequiresPermissions("system:competitionResult:remove")
|
||||
@Log(title = "赛会中-赛程结果记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionResultService.deleteCompetitionResultByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionTeamGroup;
|
||||
import com.ruoyi.system.service.ICompetitionTeamGroupService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionTeamGroup")
|
||||
public class CompetitionTeamGroupController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionTeamGroupService competitionTeamGroupService;
|
||||
|
||||
/**
|
||||
* 查询赛会中-分组列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionTeamGroup> list = competitionTeamGroupService.selectCompetitionTeamGroupList(competitionTeamGroup);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出赛会中-分组列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:export")
|
||||
@Log(title = "赛会中-分组", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
List<CompetitionTeamGroup> list = competitionTeamGroupService.selectCompetitionTeamGroupList(competitionTeamGroup);
|
||||
ExcelUtil<CompetitionTeamGroup> util = new ExcelUtil<CompetitionTeamGroup>(CompetitionTeamGroup.class);
|
||||
util.exportExcel(response, list, "赛会中-分组数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取赛会中-分组详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionTeamGroupService.selectCompetitionTeamGroupById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-分组
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:add")
|
||||
@Log(title = "赛会中-分组", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
return toAjax(competitionTeamGroupService.insertCompetitionTeamGroup(competitionTeamGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-分组
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:edit")
|
||||
@Log(title = "赛会中-分组", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
return toAjax(competitionTeamGroupService.updateCompetitionTeamGroup(competitionTeamGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-分组
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamGroup:remove")
|
||||
@Log(title = "赛会中-分组", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionTeamGroupService.deleteCompetitionTeamGroupByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.system.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.system.domain.CompetitionTeamVsTeam;
|
||||
import com.ruoyi.system.service.ICompetitionTeamVsTeamService;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 赛会中-球队VS球队关系Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/competitionTeamVsTeam")
|
||||
public class CompetitionTeamVsTeamController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICompetitionTeamVsTeamService competitionTeamVsTeamService;
|
||||
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
startPage();
|
||||
List<CompetitionTeamVsTeam> list = competitionTeamVsTeamService.selectCompetitionTeamVsTeamList(competitionTeamVsTeam);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出赛会中-球队VS球队关系列表
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:export")
|
||||
@Log(title = "赛会中-球队VS球队关系", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
List<CompetitionTeamVsTeam> list = competitionTeamVsTeamService.selectCompetitionTeamVsTeamList(competitionTeamVsTeam);
|
||||
ExcelUtil<CompetitionTeamVsTeam> util = new ExcelUtil<CompetitionTeamVsTeam>(CompetitionTeamVsTeam.class);
|
||||
util.exportExcel(response, list, "赛会中-球队VS球队关系数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取赛会中-球队VS球队关系详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(competitionTeamVsTeamService.selectCompetitionTeamVsTeamById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-球队VS球队关系
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:add")
|
||||
@Log(title = "赛会中-球队VS球队关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
return toAjax(competitionTeamVsTeamService.insertCompetitionTeamVsTeam(competitionTeamVsTeam));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-球队VS球队关系
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:edit")
|
||||
@Log(title = "赛会中-球队VS球队关系", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
return toAjax(competitionTeamVsTeamService.updateCompetitionTeamVsTeam(competitionTeamVsTeam));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-球队VS球队关系
|
||||
*/
|
||||
@RequiresPermissions("system:competitionTeamVsTeam:remove")
|
||||
@Log(title = "赛会中-球队VS球队关系", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(competitionTeamVsTeamService.deleteCompetitionTeamVsTeamByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.system.domain.vo.TeamMembersVo;
|
||||
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.system.domain.TeamMembers;
|
||||
import com.ruoyi.system.service.ITeamMembersService;
|
||||
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 ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/teamMembers")
|
||||
public class TeamMembersController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITeamMembersService teamMembersService;
|
||||
|
||||
/**
|
||||
* 查询球队人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TeamMembersVo teamMembers)
|
||||
{
|
||||
startPage();
|
||||
List<TeamMembersVo> list = teamMembersService.selectTeamMembersList(teamMembers);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出球队人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:export")
|
||||
@Log(title = "球队人员", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TeamMembersVo teamMembers)
|
||||
{
|
||||
List<TeamMembersVo> list = teamMembersService.selectTeamMembersList(teamMembers);
|
||||
ExcelUtil<TeamMembersVo> util = new ExcelUtil<TeamMembersVo>(TeamMembersVo.class);
|
||||
util.exportExcel(response, list, "球队人员数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取球队人员详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(teamMembersService.selectTeamMembersById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增球队人员
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:add")
|
||||
@Log(title = "球队人员", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TeamMembers teamMembers)
|
||||
{
|
||||
return toAjax(teamMembersService.insertTeamMembers(teamMembers));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改球队人员
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:edit")
|
||||
@Log(title = "球队人员", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TeamMembers teamMembers)
|
||||
{
|
||||
return toAjax(teamMembersService.updateTeamMembers(teamMembers));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除球队人员
|
||||
*/
|
||||
@RequiresPermissions("system:teamMembers:remove")
|
||||
@Log(title = "球队人员", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(teamMembersService.deleteTeamMembersByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,392 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.annotation.Excel;
|
||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程-人员得分对象 competition_members_score
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionMembersScore extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 赛事id(competition的ID) */
|
||||
@Excel(name = "赛事id(competition的ID)")
|
||||
private Long competitionId;
|
||||
|
||||
/** 赛程id(competition_team_vs_team的ID) */
|
||||
@Excel(name = "赛程id(competition_team_vs_team的ID)")
|
||||
private Long competitionVsId;
|
||||
|
||||
/** 球队ID */
|
||||
@Excel(name = "球队ID")
|
||||
private Long teamId;
|
||||
|
||||
/** 球队名 */
|
||||
@Excel(name = "球队名")
|
||||
private String teamName;
|
||||
|
||||
/** 比赛节数 */
|
||||
@Excel(name = "比赛节数")
|
||||
private Long nodeNum;
|
||||
|
||||
/** 球队人员ID */
|
||||
@Excel(name = "球队人员ID")
|
||||
private Long teamUserId;
|
||||
|
||||
/** 球衣号 */
|
||||
@Excel(name = "球衣号")
|
||||
private String jerseyNumber;
|
||||
|
||||
/** 总得分 */
|
||||
@Excel(name = "总得分")
|
||||
private Long totalScore;
|
||||
|
||||
/** 2分球 */
|
||||
@Excel(name = "2分球")
|
||||
private Long twoPoints;
|
||||
|
||||
/** 3分球 */
|
||||
@Excel(name = "3分球")
|
||||
private Long threePoints;
|
||||
|
||||
/** 罚球 */
|
||||
@Excel(name = "罚球")
|
||||
private Long penalty;
|
||||
|
||||
/** 篮板 */
|
||||
@Excel(name = "篮板")
|
||||
private Long backboard;
|
||||
|
||||
/** 前板 */
|
||||
@Excel(name = "前板")
|
||||
private Long frontPlate;
|
||||
|
||||
/** 后板 */
|
||||
@Excel(name = "后板")
|
||||
private Long backPlate;
|
||||
|
||||
/** 助攻 */
|
||||
@Excel(name = "助攻")
|
||||
private Long assists;
|
||||
|
||||
/** 抢断 */
|
||||
@Excel(name = "抢断")
|
||||
private Long snatch;
|
||||
|
||||
/** 盖帽 */
|
||||
@Excel(name = "盖帽")
|
||||
private Long block;
|
||||
|
||||
/** 失误 */
|
||||
@Excel(name = "失误")
|
||||
private Long fault;
|
||||
|
||||
/** 犯规 */
|
||||
@Excel(name = "犯规")
|
||||
private Long breaks;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdTime;
|
||||
|
||||
/** 最后修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date lastUpdatedTime;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/** 最后修改人 */
|
||||
@Excel(name = "最后修改人")
|
||||
private String modifiedBy;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private Long isDeleted;
|
||||
|
||||
/** 是否首发球员 */
|
||||
@Excel(name = "是否首发球员")
|
||||
private Integer isFirstLaunch;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCompetitionId(Long competitionId)
|
||||
{
|
||||
this.competitionId = competitionId;
|
||||
}
|
||||
|
||||
public Long getCompetitionId()
|
||||
{
|
||||
return competitionId;
|
||||
}
|
||||
public void setCompetitionVsId(Long competitionVsId)
|
||||
{
|
||||
this.competitionVsId = competitionVsId;
|
||||
}
|
||||
|
||||
public Long getCompetitionVsId()
|
||||
{
|
||||
return competitionVsId;
|
||||
}
|
||||
public void setTeamId(Long teamId)
|
||||
{
|
||||
this.teamId = teamId;
|
||||
}
|
||||
|
||||
public Long getTeamId()
|
||||
{
|
||||
return teamId;
|
||||
}
|
||||
public void setTeamName(String teamName)
|
||||
{
|
||||
this.teamName = teamName;
|
||||
}
|
||||
|
||||
public String getTeamName()
|
||||
{
|
||||
return teamName;
|
||||
}
|
||||
public void setNodeNum(Long nodeNum)
|
||||
{
|
||||
this.nodeNum = nodeNum;
|
||||
}
|
||||
|
||||
public Long getNodeNum()
|
||||
{
|
||||
return nodeNum;
|
||||
}
|
||||
public void setTeamUserId(Long teamUserId)
|
||||
{
|
||||
this.teamUserId = teamUserId;
|
||||
}
|
||||
|
||||
public Long getTeamUserId()
|
||||
{
|
||||
return teamUserId;
|
||||
}
|
||||
public void setJerseyNumber(String jerseyNumber)
|
||||
{
|
||||
this.jerseyNumber = jerseyNumber;
|
||||
}
|
||||
|
||||
public String getJerseyNumber()
|
||||
{
|
||||
return jerseyNumber;
|
||||
}
|
||||
public void setTotalScore(Long totalScore)
|
||||
{
|
||||
this.totalScore = totalScore;
|
||||
}
|
||||
|
||||
public Long getTotalScore()
|
||||
{
|
||||
return totalScore;
|
||||
}
|
||||
public void setTwoPoints(Long twoPoints)
|
||||
{
|
||||
this.twoPoints = twoPoints;
|
||||
}
|
||||
|
||||
public Long getTwoPoints()
|
||||
{
|
||||
return twoPoints;
|
||||
}
|
||||
public void setThreePoints(Long threePoints)
|
||||
{
|
||||
this.threePoints = threePoints;
|
||||
}
|
||||
|
||||
public Long getThreePoints()
|
||||
{
|
||||
return threePoints;
|
||||
}
|
||||
public void setPenalty(Long penalty)
|
||||
{
|
||||
this.penalty = penalty;
|
||||
}
|
||||
|
||||
public Long getPenalty()
|
||||
{
|
||||
return penalty;
|
||||
}
|
||||
public void setBackboard(Long backboard)
|
||||
{
|
||||
this.backboard = backboard;
|
||||
}
|
||||
|
||||
public Long getBackboard()
|
||||
{
|
||||
return backboard;
|
||||
}
|
||||
public void setFrontPlate(Long frontPlate)
|
||||
{
|
||||
this.frontPlate = frontPlate;
|
||||
}
|
||||
|
||||
public Long getFrontPlate()
|
||||
{
|
||||
return frontPlate;
|
||||
}
|
||||
public void setBackPlate(Long backPlate)
|
||||
{
|
||||
this.backPlate = backPlate;
|
||||
}
|
||||
|
||||
public Long getBackPlate()
|
||||
{
|
||||
return backPlate;
|
||||
}
|
||||
public void setAssists(Long assists)
|
||||
{
|
||||
this.assists = assists;
|
||||
}
|
||||
|
||||
public Long getAssists()
|
||||
{
|
||||
return assists;
|
||||
}
|
||||
public void setSnatch(Long snatch)
|
||||
{
|
||||
this.snatch = snatch;
|
||||
}
|
||||
|
||||
public Long getSnatch()
|
||||
{
|
||||
return snatch;
|
||||
}
|
||||
public void setBlock(Long block)
|
||||
{
|
||||
this.block = block;
|
||||
}
|
||||
|
||||
public Long getBlock()
|
||||
{
|
||||
return block;
|
||||
}
|
||||
public void setFault(Long fault)
|
||||
{
|
||||
this.fault = fault;
|
||||
}
|
||||
|
||||
public Long getFault()
|
||||
{
|
||||
return fault;
|
||||
}
|
||||
public void setBreaks(Long breaks)
|
||||
{
|
||||
this.breaks = breaks;
|
||||
}
|
||||
|
||||
public Long getBreaks()
|
||||
{
|
||||
return breaks;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime)
|
||||
{
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
public void setLastUpdatedTime(Date lastUpdatedTime)
|
||||
{
|
||||
this.lastUpdatedTime = lastUpdatedTime;
|
||||
}
|
||||
|
||||
public Date getLastUpdatedTime()
|
||||
{
|
||||
return lastUpdatedTime;
|
||||
}
|
||||
public void setCreatedBy(String createdBy)
|
||||
{
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy()
|
||||
{
|
||||
return createdBy;
|
||||
}
|
||||
public void setModifiedBy(String modifiedBy)
|
||||
{
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public String getModifiedBy()
|
||||
{
|
||||
return modifiedBy;
|
||||
}
|
||||
public void setIsDeleted(Long isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public Long getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
public void setIsFirstLaunch(Integer isFirstLaunch)
|
||||
{
|
||||
this.isFirstLaunch = isFirstLaunch;
|
||||
}
|
||||
|
||||
public Integer getIsFirstLaunch()
|
||||
{
|
||||
return isFirstLaunch;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("competitionId", getCompetitionId())
|
||||
.append("competitionVsId", getCompetitionVsId())
|
||||
.append("teamId", getTeamId())
|
||||
.append("teamName", getTeamName())
|
||||
.append("nodeNum", getNodeNum())
|
||||
.append("teamUserId", getTeamUserId())
|
||||
.append("jerseyNumber", getJerseyNumber())
|
||||
.append("totalScore", getTotalScore())
|
||||
.append("twoPoints", getTwoPoints())
|
||||
.append("threePoints", getThreePoints())
|
||||
.append("penalty", getPenalty())
|
||||
.append("backboard", getBackboard())
|
||||
.append("frontPlate", getFrontPlate())
|
||||
.append("backPlate", getBackPlate())
|
||||
.append("assists", getAssists())
|
||||
.append("snatch", getSnatch())
|
||||
.append("block", getBlock())
|
||||
.append("fault", getFault())
|
||||
.append("breaks", getBreaks())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("remark", getRemark())
|
||||
.append("isFirstLaunch", getIsFirstLaunch())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,196 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.annotation.Excel;
|
||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 球队人员对象 team_members
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class TeamMembers extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 球队ID */
|
||||
@Excel(name = "球队ID")
|
||||
private Long teamId;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 角色编码 */
|
||||
@Excel(name = "角色编码")
|
||||
private String roleCode;
|
||||
|
||||
/** 球衣号码 */
|
||||
@Excel(name = "球衣号码")
|
||||
private String jerseyNumber;
|
||||
|
||||
/** 人员状态 */
|
||||
@Excel(name = "人员状态")
|
||||
private Integer status;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdTime;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/** 删除1 */
|
||||
@Excel(name = "删除1")
|
||||
private Long isDeleted;
|
||||
|
||||
/** 最后更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date lastUpdatedTime;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String modifiedBy;
|
||||
|
||||
/** 角色名称 */
|
||||
@Excel(name = "角色名称")
|
||||
private String roleName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTeamId(Long teamId)
|
||||
{
|
||||
this.teamId = teamId;
|
||||
}
|
||||
|
||||
public Long getTeamId()
|
||||
{
|
||||
return teamId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setRoleCode(String roleCode)
|
||||
{
|
||||
this.roleCode = roleCode;
|
||||
}
|
||||
|
||||
public String getRoleCode()
|
||||
{
|
||||
return roleCode;
|
||||
}
|
||||
public void setJerseyNumber(String jerseyNumber)
|
||||
{
|
||||
this.jerseyNumber = jerseyNumber;
|
||||
}
|
||||
|
||||
public String getJerseyNumber()
|
||||
{
|
||||
return jerseyNumber;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime)
|
||||
{
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
public void setCreatedBy(String createdBy)
|
||||
{
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy()
|
||||
{
|
||||
return createdBy;
|
||||
}
|
||||
public void setIsDeleted(Long isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public Long getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
public void setLastUpdatedTime(Date lastUpdatedTime)
|
||||
{
|
||||
this.lastUpdatedTime = lastUpdatedTime;
|
||||
}
|
||||
|
||||
public Date getLastUpdatedTime()
|
||||
{
|
||||
return lastUpdatedTime;
|
||||
}
|
||||
public void setModifiedBy(String modifiedBy)
|
||||
{
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public String getModifiedBy()
|
||||
{
|
||||
return modifiedBy;
|
||||
}
|
||||
public void setRoleName(String roleName)
|
||||
{
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public String getRoleName()
|
||||
{
|
||||
return roleName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("teamId", getTeamId())
|
||||
.append("userId", getUserId())
|
||||
.append("roleCode", getRoleCode())
|
||||
.append("jerseyNumber", getJerseyNumber())
|
||||
.append("status", getStatus())
|
||||
.append("remark", getRemark())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("roleName", getRoleName())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.system.domain.WxUser;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author 吴一博
|
||||
* @date 2022年11月03日 16:11
|
||||
* @Description
|
||||
*/
|
||||
@Data
|
||||
public class TeamMembersVo extends WxUser {
|
||||
private Long teamId;
|
||||
private Long userId;
|
||||
private String roleCode;
|
||||
private String jerseyNumber;
|
||||
private String roleName;
|
||||
private String status;
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionMembers;
|
||||
|
||||
/**
|
||||
* 比赛参与人员Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionMembersMapper
|
||||
{
|
||||
/**
|
||||
* 查询比赛参与人员
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 比赛参与人员
|
||||
*/
|
||||
public CompetitionMembers selectCompetitionMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询比赛参与人员列表
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 比赛参与人员集合
|
||||
*/
|
||||
public List<CompetitionMembers> selectCompetitionMembersList(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 新增比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionMembers(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 修改比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionMembers(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 删除比赛参与人员
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除比赛参与人员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionMembersScore;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程-人员得分Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionMembersScoreMapper
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 赛会中-赛程-人员得分
|
||||
*/
|
||||
public CompetitionMembersScore selectCompetitionMembersScoreById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分列表
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 赛会中-赛程-人员得分集合
|
||||
*/
|
||||
public List<CompetitionMembersScore> selectCompetitionMembersScoreList(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionMembersScore(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionMembersScore(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程-人员得分
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersScoreById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程-人员得分
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersScoreByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionOfTeam;
|
||||
|
||||
/**
|
||||
* 赛会中-参赛队伍Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionOfTeamMapper
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-参赛队伍
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 赛会中-参赛队伍
|
||||
*/
|
||||
public CompetitionOfTeam selectCompetitionOfTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-参赛队伍列表
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 赛会中-参赛队伍集合
|
||||
*/
|
||||
public List<CompetitionOfTeam> selectCompetitionOfTeamList(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 新增赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionOfTeam(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 修改赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionOfTeam(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 删除赛会中-参赛队伍
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionOfTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-参赛队伍
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionOfTeamByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionResult;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程结果记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionResultMapper
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 赛会中-赛程结果记录
|
||||
*/
|
||||
public CompetitionResult selectCompetitionResultById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录列表
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 赛会中-赛程结果记录集合
|
||||
*/
|
||||
public List<CompetitionResult> selectCompetitionResultList(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionResult(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionResult(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程结果记录
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionResultById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程结果记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionResultByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionTeamGroup;
|
||||
|
||||
/**
|
||||
* 赛会中-分组Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionTeamGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-分组
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 赛会中-分组
|
||||
*/
|
||||
public CompetitionTeamGroup selectCompetitionTeamGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-分组列表
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 赛会中-分组集合
|
||||
*/
|
||||
public List<CompetitionTeamGroup> selectCompetitionTeamGroupList(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 新增赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 修改赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 删除赛会中-分组
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-分组
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamGroupByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionTeamVsTeam;
|
||||
|
||||
/**
|
||||
* 赛会中-球队VS球队关系Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface CompetitionTeamVsTeamMapper
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 赛会中-球队VS球队关系
|
||||
*/
|
||||
public CompetitionTeamVsTeam selectCompetitionTeamVsTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系列表
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 赛会中-球队VS球队关系集合
|
||||
*/
|
||||
public List<CompetitionTeamVsTeam> selectCompetitionTeamVsTeamList(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 新增赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 修改赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 删除赛会中-球队VS球队关系
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamVsTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-球队VS球队关系
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamVsTeamByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.TeamMembers;
|
||||
import com.ruoyi.system.domain.vo.TeamMembersVo;
|
||||
|
||||
/**
|
||||
* 球队人员Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface TeamMembersMapper
|
||||
{
|
||||
/**
|
||||
* 查询球队人员
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 球队人员
|
||||
*/
|
||||
public TeamMembers selectTeamMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询球队人员列表
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 球队人员集合
|
||||
*/
|
||||
public List<TeamMembersVo> selectTeamMembersList(TeamMembersVo teamMembers);
|
||||
|
||||
/**
|
||||
* 新增球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTeamMembers(TeamMembers teamMembers);
|
||||
|
||||
/**
|
||||
* 修改球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTeamMembers(TeamMembers teamMembers);
|
||||
|
||||
/**
|
||||
* 删除球队人员
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeamMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除球队人员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeamMembersByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionMembersScore;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程-人员得分Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionMembersScoreService
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 赛会中-赛程-人员得分
|
||||
*/
|
||||
public CompetitionMembersScore selectCompetitionMembersScoreById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分列表
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 赛会中-赛程-人员得分集合
|
||||
*/
|
||||
public List<CompetitionMembersScore> selectCompetitionMembersScoreList(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionMembersScore(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionMembersScore(CompetitionMembersScore competitionMembersScore);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程-人员得分
|
||||
*
|
||||
* @param ids 需要删除的赛会中-赛程-人员得分主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersScoreByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程-人员得分信息
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersScoreById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionMembers;
|
||||
|
||||
/**
|
||||
* 比赛参与人员Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionMembersService
|
||||
{
|
||||
/**
|
||||
* 查询比赛参与人员
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 比赛参与人员
|
||||
*/
|
||||
public CompetitionMembers selectCompetitionMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询比赛参与人员列表
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 比赛参与人员集合
|
||||
*/
|
||||
public List<CompetitionMembers> selectCompetitionMembersList(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 新增比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionMembers(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 修改比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionMembers(CompetitionMembers competitionMembers);
|
||||
|
||||
/**
|
||||
* 批量删除比赛参与人员
|
||||
*
|
||||
* @param ids 需要删除的比赛参与人员主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除比赛参与人员信息
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionMembersById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionOfTeam;
|
||||
|
||||
/**
|
||||
* 赛会中-参赛队伍Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionOfTeamService
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-参赛队伍
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 赛会中-参赛队伍
|
||||
*/
|
||||
public CompetitionOfTeam selectCompetitionOfTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-参赛队伍列表
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 赛会中-参赛队伍集合
|
||||
*/
|
||||
public List<CompetitionOfTeam> selectCompetitionOfTeamList(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 新增赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionOfTeam(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 修改赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionOfTeam(CompetitionOfTeam competitionOfTeam);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-参赛队伍
|
||||
*
|
||||
* @param ids 需要删除的赛会中-参赛队伍主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionOfTeamByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除赛会中-参赛队伍信息
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionOfTeamById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionResult;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程结果记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionResultService
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 赛会中-赛程结果记录
|
||||
*/
|
||||
public CompetitionResult selectCompetitionResultById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录列表
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 赛会中-赛程结果记录集合
|
||||
*/
|
||||
public List<CompetitionResult> selectCompetitionResultList(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionResult(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionResult(CompetitionResult competitionResult);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程结果记录
|
||||
*
|
||||
* @param ids 需要删除的赛会中-赛程结果记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionResultByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程结果记录信息
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionResultById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionTeamGroup;
|
||||
|
||||
/**
|
||||
* 赛会中-分组Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionTeamGroupService
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-分组
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 赛会中-分组
|
||||
*/
|
||||
public CompetitionTeamGroup selectCompetitionTeamGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-分组列表
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 赛会中-分组集合
|
||||
*/
|
||||
public List<CompetitionTeamGroup> selectCompetitionTeamGroupList(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 新增赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 修改赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-分组
|
||||
*
|
||||
* @param ids 需要删除的赛会中-分组主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除赛会中-分组信息
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamGroupById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompetitionTeamVsTeam;
|
||||
|
||||
/**
|
||||
* 赛会中-球队VS球队关系Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ICompetitionTeamVsTeamService
|
||||
{
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 赛会中-球队VS球队关系
|
||||
*/
|
||||
public CompetitionTeamVsTeam selectCompetitionTeamVsTeamById(Long id);
|
||||
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系列表
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 赛会中-球队VS球队关系集合
|
||||
*/
|
||||
public List<CompetitionTeamVsTeam> selectCompetitionTeamVsTeamList(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 新增赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 修改赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam);
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-球队VS球队关系
|
||||
*
|
||||
* @param ids 需要删除的赛会中-球队VS球队关系主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamVsTeamByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除赛会中-球队VS球队关系信息
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompetitionTeamVsTeamById(Long id);
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.TeamMembers;
|
||||
import com.ruoyi.system.domain.vo.TeamMembersVo;
|
||||
|
||||
/**
|
||||
* 球队人员Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public interface ITeamMembersService
|
||||
{
|
||||
/**
|
||||
* 查询球队人员
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 球队人员
|
||||
*/
|
||||
public TeamMembers selectTeamMembersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询球队人员列表
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 球队人员集合
|
||||
*/
|
||||
public List<TeamMembersVo> selectTeamMembersList(TeamMembersVo teamMembers);
|
||||
|
||||
/**
|
||||
* 新增球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTeamMembers(TeamMembers teamMembers);
|
||||
|
||||
/**
|
||||
* 修改球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTeamMembers(TeamMembers teamMembers);
|
||||
|
||||
/**
|
||||
* 批量删除球队人员
|
||||
*
|
||||
* @param ids 需要删除的球队人员主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeamMembersByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除球队人员信息
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeamMembersById(Long id);
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionMembersScoreMapper;
|
||||
import com.ruoyi.system.domain.CompetitionMembersScore;
|
||||
import com.ruoyi.system.service.ICompetitionMembersScoreService;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程-人员得分Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionMembersScoreServiceImpl implements ICompetitionMembersScoreService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionMembersScoreMapper competitionMembersScoreMapper;
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 赛会中-赛程-人员得分
|
||||
*/
|
||||
@Override
|
||||
public CompetitionMembersScore selectCompetitionMembersScoreById(Long id)
|
||||
{
|
||||
return competitionMembersScoreMapper.selectCompetitionMembersScoreById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程-人员得分列表
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 赛会中-赛程-人员得分
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionMembersScore> selectCompetitionMembersScoreList(CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
return competitionMembersScoreMapper.selectCompetitionMembersScoreList(competitionMembersScore);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionMembersScore(CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
return competitionMembersScoreMapper.insertCompetitionMembersScore(competitionMembersScore);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程-人员得分
|
||||
*
|
||||
* @param competitionMembersScore 赛会中-赛程-人员得分
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionMembersScore(CompetitionMembersScore competitionMembersScore)
|
||||
{
|
||||
return competitionMembersScoreMapper.updateCompetitionMembersScore(competitionMembersScore);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程-人员得分
|
||||
*
|
||||
* @param ids 需要删除的赛会中-赛程-人员得分主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionMembersScoreByIds(Long[] ids)
|
||||
{
|
||||
return competitionMembersScoreMapper.deleteCompetitionMembersScoreByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程-人员得分信息
|
||||
*
|
||||
* @param id 赛会中-赛程-人员得分主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionMembersScoreById(Long id)
|
||||
{
|
||||
return competitionMembersScoreMapper.deleteCompetitionMembersScoreById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionMembersMapper;
|
||||
import com.ruoyi.system.domain.CompetitionMembers;
|
||||
import com.ruoyi.system.service.ICompetitionMembersService;
|
||||
|
||||
/**
|
||||
* 比赛参与人员Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionMembersServiceImpl implements ICompetitionMembersService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionMembersMapper competitionMembersMapper;
|
||||
|
||||
/**
|
||||
* 查询比赛参与人员
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 比赛参与人员
|
||||
*/
|
||||
@Override
|
||||
public CompetitionMembers selectCompetitionMembersById(Long id)
|
||||
{
|
||||
return competitionMembersMapper.selectCompetitionMembersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询比赛参与人员列表
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 比赛参与人员
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionMembers> selectCompetitionMembersList(CompetitionMembers competitionMembers)
|
||||
{
|
||||
return competitionMembersMapper.selectCompetitionMembersList(competitionMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionMembers(CompetitionMembers competitionMembers)
|
||||
{
|
||||
return competitionMembersMapper.insertCompetitionMembers(competitionMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改比赛参与人员
|
||||
*
|
||||
* @param competitionMembers 比赛参与人员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionMembers(CompetitionMembers competitionMembers)
|
||||
{
|
||||
return competitionMembersMapper.updateCompetitionMembers(competitionMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除比赛参与人员
|
||||
*
|
||||
* @param ids 需要删除的比赛参与人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionMembersByIds(Long[] ids)
|
||||
{
|
||||
return competitionMembersMapper.deleteCompetitionMembersByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除比赛参与人员信息
|
||||
*
|
||||
* @param id 比赛参与人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionMembersById(Long id)
|
||||
{
|
||||
return competitionMembersMapper.deleteCompetitionMembersById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionOfTeamMapper;
|
||||
import com.ruoyi.system.domain.CompetitionOfTeam;
|
||||
import com.ruoyi.system.service.ICompetitionOfTeamService;
|
||||
|
||||
/**
|
||||
* 赛会中-参赛队伍Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionOfTeamServiceImpl implements ICompetitionOfTeamService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionOfTeamMapper competitionOfTeamMapper;
|
||||
|
||||
/**
|
||||
* 查询赛会中-参赛队伍
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 赛会中-参赛队伍
|
||||
*/
|
||||
@Override
|
||||
public CompetitionOfTeam selectCompetitionOfTeamById(Long id)
|
||||
{
|
||||
return competitionOfTeamMapper.selectCompetitionOfTeamById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询赛会中-参赛队伍列表
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 赛会中-参赛队伍
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionOfTeam> selectCompetitionOfTeamList(CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
return competitionOfTeamMapper.selectCompetitionOfTeamList(competitionOfTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionOfTeam(CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
return competitionOfTeamMapper.insertCompetitionOfTeam(competitionOfTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-参赛队伍
|
||||
*
|
||||
* @param competitionOfTeam 赛会中-参赛队伍
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionOfTeam(CompetitionOfTeam competitionOfTeam)
|
||||
{
|
||||
return competitionOfTeamMapper.updateCompetitionOfTeam(competitionOfTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-参赛队伍
|
||||
*
|
||||
* @param ids 需要删除的赛会中-参赛队伍主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionOfTeamByIds(Long[] ids)
|
||||
{
|
||||
return competitionOfTeamMapper.deleteCompetitionOfTeamByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-参赛队伍信息
|
||||
*
|
||||
* @param id 赛会中-参赛队伍主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionOfTeamById(Long id)
|
||||
{
|
||||
return competitionOfTeamMapper.deleteCompetitionOfTeamById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionResultMapper;
|
||||
import com.ruoyi.system.domain.CompetitionResult;
|
||||
import com.ruoyi.system.service.ICompetitionResultService;
|
||||
|
||||
/**
|
||||
* 赛会中-赛程结果记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionResultServiceImpl implements ICompetitionResultService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionResultMapper competitionResultMapper;
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 赛会中-赛程结果记录
|
||||
*/
|
||||
@Override
|
||||
public CompetitionResult selectCompetitionResultById(Long id)
|
||||
{
|
||||
return competitionResultMapper.selectCompetitionResultById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询赛会中-赛程结果记录列表
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 赛会中-赛程结果记录
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionResult> selectCompetitionResultList(CompetitionResult competitionResult)
|
||||
{
|
||||
return competitionResultMapper.selectCompetitionResultList(competitionResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionResult(CompetitionResult competitionResult)
|
||||
{
|
||||
return competitionResultMapper.insertCompetitionResult(competitionResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-赛程结果记录
|
||||
*
|
||||
* @param competitionResult 赛会中-赛程结果记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionResult(CompetitionResult competitionResult)
|
||||
{
|
||||
return competitionResultMapper.updateCompetitionResult(competitionResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-赛程结果记录
|
||||
*
|
||||
* @param ids 需要删除的赛会中-赛程结果记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionResultByIds(Long[] ids)
|
||||
{
|
||||
return competitionResultMapper.deleteCompetitionResultByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-赛程结果记录信息
|
||||
*
|
||||
* @param id 赛会中-赛程结果记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionResultById(Long id)
|
||||
{
|
||||
return competitionResultMapper.deleteCompetitionResultById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionTeamGroupMapper;
|
||||
import com.ruoyi.system.domain.CompetitionTeamGroup;
|
||||
import com.ruoyi.system.service.ICompetitionTeamGroupService;
|
||||
|
||||
/**
|
||||
* 赛会中-分组Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionTeamGroupServiceImpl implements ICompetitionTeamGroupService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionTeamGroupMapper competitionTeamGroupMapper;
|
||||
|
||||
/**
|
||||
* 查询赛会中-分组
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 赛会中-分组
|
||||
*/
|
||||
@Override
|
||||
public CompetitionTeamGroup selectCompetitionTeamGroupById(Long id)
|
||||
{
|
||||
return competitionTeamGroupMapper.selectCompetitionTeamGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询赛会中-分组列表
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 赛会中-分组
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionTeamGroup> selectCompetitionTeamGroupList(CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
return competitionTeamGroupMapper.selectCompetitionTeamGroupList(competitionTeamGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
return competitionTeamGroupMapper.insertCompetitionTeamGroup(competitionTeamGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-分组
|
||||
*
|
||||
* @param competitionTeamGroup 赛会中-分组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionTeamGroup(CompetitionTeamGroup competitionTeamGroup)
|
||||
{
|
||||
return competitionTeamGroupMapper.updateCompetitionTeamGroup(competitionTeamGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-分组
|
||||
*
|
||||
* @param ids 需要删除的赛会中-分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionTeamGroupByIds(Long[] ids)
|
||||
{
|
||||
return competitionTeamGroupMapper.deleteCompetitionTeamGroupByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-分组信息
|
||||
*
|
||||
* @param id 赛会中-分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionTeamGroupById(Long id)
|
||||
{
|
||||
return competitionTeamGroupMapper.deleteCompetitionTeamGroupById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.CompetitionTeamVsTeamMapper;
|
||||
import com.ruoyi.system.domain.CompetitionTeamVsTeam;
|
||||
import com.ruoyi.system.service.ICompetitionTeamVsTeamService;
|
||||
|
||||
/**
|
||||
* 赛会中-球队VS球队关系Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class CompetitionTeamVsTeamServiceImpl implements ICompetitionTeamVsTeamService
|
||||
{
|
||||
@Autowired
|
||||
private CompetitionTeamVsTeamMapper competitionTeamVsTeamMapper;
|
||||
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 赛会中-球队VS球队关系
|
||||
*/
|
||||
@Override
|
||||
public CompetitionTeamVsTeam selectCompetitionTeamVsTeamById(Long id)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.selectCompetitionTeamVsTeamById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询赛会中-球队VS球队关系列表
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 赛会中-球队VS球队关系
|
||||
*/
|
||||
@Override
|
||||
public List<CompetitionTeamVsTeam> selectCompetitionTeamVsTeamList(CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.selectCompetitionTeamVsTeamList(competitionTeamVsTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.insertCompetitionTeamVsTeam(competitionTeamVsTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改赛会中-球队VS球队关系
|
||||
*
|
||||
* @param competitionTeamVsTeam 赛会中-球队VS球队关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompetitionTeamVsTeam(CompetitionTeamVsTeam competitionTeamVsTeam)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.updateCompetitionTeamVsTeam(competitionTeamVsTeam);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除赛会中-球队VS球队关系
|
||||
*
|
||||
* @param ids 需要删除的赛会中-球队VS球队关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionTeamVsTeamByIds(Long[] ids)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.deleteCompetitionTeamVsTeamByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除赛会中-球队VS球队关系信息
|
||||
*
|
||||
* @param id 赛会中-球队VS球队关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompetitionTeamVsTeamById(Long id)
|
||||
{
|
||||
return competitionTeamVsTeamMapper.deleteCompetitionTeamVsTeamById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.vo.TeamMembersVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.TeamMembersMapper;
|
||||
import com.ruoyi.system.domain.TeamMembers;
|
||||
import com.ruoyi.system.service.ITeamMembersService;
|
||||
|
||||
/**
|
||||
* 球队人员Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
@Service
|
||||
public class TeamMembersServiceImpl implements ITeamMembersService
|
||||
{
|
||||
@Autowired
|
||||
private TeamMembersMapper teamMembersMapper;
|
||||
|
||||
/**
|
||||
* 查询球队人员
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 球队人员
|
||||
*/
|
||||
@Override
|
||||
public TeamMembers selectTeamMembersById(Long id)
|
||||
{
|
||||
return teamMembersMapper.selectTeamMembersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询球队人员列表
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 球队人员
|
||||
*/
|
||||
@Override
|
||||
public List<TeamMembersVo> selectTeamMembersList(TeamMembersVo teamMembers)
|
||||
{
|
||||
return teamMembersMapper.selectTeamMembersList(teamMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTeamMembers(TeamMembers teamMembers)
|
||||
{
|
||||
return teamMembersMapper.insertTeamMembers(teamMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改球队人员
|
||||
*
|
||||
* @param teamMembers 球队人员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTeamMembers(TeamMembers teamMembers)
|
||||
{
|
||||
return teamMembersMapper.updateTeamMembers(teamMembers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除球队人员
|
||||
*
|
||||
* @param ids 需要删除的球队人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTeamMembersByIds(Long[] ids)
|
||||
{
|
||||
return teamMembersMapper.deleteTeamMembersByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除球队人员信息
|
||||
*
|
||||
* @param id 球队人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTeamMembersById(Long id)
|
||||
{
|
||||
return teamMembersMapper.deleteTeamMembersById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,196 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionMembersMapper">
|
||||
|
||||
<resultMap type="CompetitionMembers" id="CompetitionMembersResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="roleCode" column="role_code" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionTeamId" column="competition_team_id" />
|
||||
<result property="score" column="score" />
|
||||
<result property="penalty" column="penalty" />
|
||||
<result property="twoPoints" column="two_points" />
|
||||
<result property="threePoints" column="three_points" />
|
||||
<result property="breaks" column="breaks" />
|
||||
<result property="rebound" column="rebound" />
|
||||
<result property="block" column="block" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="competitionOfTeamId" column="competition_of_team_id" />
|
||||
<result property="competitionNature" column="competition_nature" />
|
||||
<result property="realName" column="real_name" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="idType" column="id_type" />
|
||||
<result property="idCardNo" column="id_card_no" />
|
||||
<result property="contactsTel" column="contacts_tel" />
|
||||
<result property="contacts" column="contacts" />
|
||||
<result property="contactsAreaCode" column="contacts_area_code" />
|
||||
<result property="personalPhoto" column="personal_photo" />
|
||||
<result property="isFirstLaunch" column="is_first_launch" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionMembersVo">
|
||||
select id, user_id, role_code, competition_id, competition_team_id, score, penalty, two_points, three_points, breaks, rebound, block, is_deleted, created_by, modified_by, created_time, last_updated_time, status, user_type, competition_of_team_id, competition_nature, real_name, jersey_number, id_type, id_card_no, contacts_tel, contacts, contacts_area_code, personal_photo, is_first_launch from competition_members
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionMembersList" parameterType="CompetitionMembers" resultMap="CompetitionMembersResult">
|
||||
<include refid="selectCompetitionMembersVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="roleCode != null and roleCode != ''"> and role_code = #{roleCode}</if>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionTeamId != null "> and competition_team_id = #{competitionTeamId}</if>
|
||||
<if test="score != null "> and score = #{score}</if>
|
||||
<if test="penalty != null "> and penalty = #{penalty}</if>
|
||||
<if test="twoPoints != null "> and two_points = #{twoPoints}</if>
|
||||
<if test="threePoints != null "> and three_points = #{threePoints}</if>
|
||||
<if test="breaks != null "> and breaks = #{breaks}</if>
|
||||
<if test="rebound != null "> and rebound = #{rebound}</if>
|
||||
<if test="block != null "> and block = #{block}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="userType != null "> and user_type = #{userType}</if>
|
||||
<if test="competitionOfTeamId != null "> and competition_of_team_id = #{competitionOfTeamId}</if>
|
||||
<if test="competitionNature != null "> and competition_nature = #{competitionNature}</if>
|
||||
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and jersey_number = #{jerseyNumber}</if>
|
||||
<if test="idType != null and idType != ''"> and id_type = #{idType}</if>
|
||||
<if test="idCardNo != null and idCardNo != ''"> and id_card_no = #{idCardNo}</if>
|
||||
<if test="contactsTel != null and contactsTel != ''"> and contacts_tel = #{contactsTel}</if>
|
||||
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
|
||||
<if test="contactsAreaCode != null and contactsAreaCode != ''"> and contacts_area_code = #{contactsAreaCode}</if>
|
||||
<if test="personalPhoto != null and personalPhoto != ''"> and personal_photo = #{personalPhoto}</if>
|
||||
<if test="isFirstLaunch != null "> and is_first_launch = #{isFirstLaunch}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionMembersById" parameterType="Long" resultMap="CompetitionMembersResult">
|
||||
<include refid="selectCompetitionMembersVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionMembers" parameterType="CompetitionMembers" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_members
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="roleCode != null">role_code,</if>
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionTeamId != null">competition_team_id,</if>
|
||||
<if test="score != null">score,</if>
|
||||
<if test="penalty != null">penalty,</if>
|
||||
<if test="twoPoints != null">two_points,</if>
|
||||
<if test="threePoints != null">three_points,</if>
|
||||
<if test="breaks != null">breaks,</if>
|
||||
<if test="rebound != null">rebound,</if>
|
||||
<if test="block != null">block,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="userType != null">user_type,</if>
|
||||
<if test="competitionOfTeamId != null">competition_of_team_id,</if>
|
||||
<if test="competitionNature != null">competition_nature,</if>
|
||||
<if test="realName != null">real_name,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="idType != null">id_type,</if>
|
||||
<if test="idCardNo != null">id_card_no,</if>
|
||||
<if test="contactsTel != null">contacts_tel,</if>
|
||||
<if test="contacts != null">contacts,</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code,</if>
|
||||
<if test="personalPhoto != null">personal_photo,</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="roleCode != null">#{roleCode},</if>
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionTeamId != null">#{competitionTeamId},</if>
|
||||
<if test="score != null">#{score},</if>
|
||||
<if test="penalty != null">#{penalty},</if>
|
||||
<if test="twoPoints != null">#{twoPoints},</if>
|
||||
<if test="threePoints != null">#{threePoints},</if>
|
||||
<if test="breaks != null">#{breaks},</if>
|
||||
<if test="rebound != null">#{rebound},</if>
|
||||
<if test="block != null">#{block},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="userType != null">#{userType},</if>
|
||||
<if test="competitionOfTeamId != null">#{competitionOfTeamId},</if>
|
||||
<if test="competitionNature != null">#{competitionNature},</if>
|
||||
<if test="realName != null">#{realName},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="idType != null">#{idType},</if>
|
||||
<if test="idCardNo != null">#{idCardNo},</if>
|
||||
<if test="contactsTel != null">#{contactsTel},</if>
|
||||
<if test="contacts != null">#{contacts},</if>
|
||||
<if test="contactsAreaCode != null">#{contactsAreaCode},</if>
|
||||
<if test="personalPhoto != null">#{personalPhoto},</if>
|
||||
<if test="isFirstLaunch != null">#{isFirstLaunch},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionMembers" parameterType="CompetitionMembers">
|
||||
update competition_members
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="roleCode != null">role_code = #{roleCode},</if>
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionTeamId != null">competition_team_id = #{competitionTeamId},</if>
|
||||
<if test="score != null">score = #{score},</if>
|
||||
<if test="penalty != null">penalty = #{penalty},</if>
|
||||
<if test="twoPoints != null">two_points = #{twoPoints},</if>
|
||||
<if test="threePoints != null">three_points = #{threePoints},</if>
|
||||
<if test="breaks != null">breaks = #{breaks},</if>
|
||||
<if test="rebound != null">rebound = #{rebound},</if>
|
||||
<if test="block != null">block = #{block},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="userType != null">user_type = #{userType},</if>
|
||||
<if test="competitionOfTeamId != null">competition_of_team_id = #{competitionOfTeamId},</if>
|
||||
<if test="competitionNature != null">competition_nature = #{competitionNature},</if>
|
||||
<if test="realName != null">real_name = #{realName},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="idType != null">id_type = #{idType},</if>
|
||||
<if test="idCardNo != null">id_card_no = #{idCardNo},</if>
|
||||
<if test="contactsTel != null">contacts_tel = #{contactsTel},</if>
|
||||
<if test="contacts != null">contacts = #{contacts},</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if>
|
||||
<if test="personalPhoto != null">personal_photo = #{personalPhoto},</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch = #{isFirstLaunch},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionMembersById" parameterType="Long">
|
||||
delete from competition_members where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionMembersByIds" parameterType="String">
|
||||
delete from competition_members where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionMembersScoreMapper">
|
||||
|
||||
<resultMap type="CompetitionMembersScore" id="CompetitionMembersScoreResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionVsId" column="competition_vs_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="nodeNum" column="node_num" />
|
||||
<result property="teamUserId" column="team_user_id" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="totalScore" column="total_score" />
|
||||
<result property="twoPoints" column="two_points" />
|
||||
<result property="threePoints" column="three_points" />
|
||||
<result property="penalty" column="penalty" />
|
||||
<result property="backboard" column="backboard" />
|
||||
<result property="frontPlate" column="front_plate" />
|
||||
<result property="backPlate" column="back_plate" />
|
||||
<result property="assists" column="assists" />
|
||||
<result property="snatch" column="snatch" />
|
||||
<result property="block" column="block" />
|
||||
<result property="fault" column="fault" />
|
||||
<result property="breaks" column="breaks" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isFirstLaunch" column="is_first_launch" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionMembersScoreVo">
|
||||
select id, competition_id, competition_vs_id, team_id, team_name, node_num, team_user_id, jersey_number, total_score, two_points, three_points, penalty, backboard, front_plate, back_plate, assists, snatch, block, fault, breaks, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, is_first_launch from competition_members_score
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionMembersScoreList" parameterType="CompetitionMembersScore" resultMap="CompetitionMembersScoreResult">
|
||||
<include refid="selectCompetitionMembersScoreVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionVsId != null "> and competition_vs_id = #{competitionVsId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="nodeNum != null "> and node_num = #{nodeNum}</if>
|
||||
<if test="teamUserId != null "> and team_user_id = #{teamUserId}</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and jersey_number = #{jerseyNumber}</if>
|
||||
<if test="totalScore != null "> and total_score = #{totalScore}</if>
|
||||
<if test="twoPoints != null "> and two_points = #{twoPoints}</if>
|
||||
<if test="threePoints != null "> and three_points = #{threePoints}</if>
|
||||
<if test="penalty != null "> and penalty = #{penalty}</if>
|
||||
<if test="backboard != null "> and backboard = #{backboard}</if>
|
||||
<if test="frontPlate != null "> and front_plate = #{frontPlate}</if>
|
||||
<if test="backPlate != null "> and back_plate = #{backPlate}</if>
|
||||
<if test="assists != null "> and assists = #{assists}</if>
|
||||
<if test="snatch != null "> and snatch = #{snatch}</if>
|
||||
<if test="block != null "> and block = #{block}</if>
|
||||
<if test="fault != null "> and fault = #{fault}</if>
|
||||
<if test="breaks != null "> and breaks = #{breaks}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="isFirstLaunch != null "> and is_first_launch = #{isFirstLaunch}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionMembersScoreById" parameterType="Long" resultMap="CompetitionMembersScoreResult">
|
||||
<include refid="selectCompetitionMembersScoreVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionMembersScore" parameterType="CompetitionMembersScore" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_members_score
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionVsId != null">competition_vs_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="nodeNum != null">node_num,</if>
|
||||
<if test="teamUserId != null">team_user_id,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="totalScore != null">total_score,</if>
|
||||
<if test="twoPoints != null">two_points,</if>
|
||||
<if test="threePoints != null">three_points,</if>
|
||||
<if test="penalty != null">penalty,</if>
|
||||
<if test="backboard != null">backboard,</if>
|
||||
<if test="frontPlate != null">front_plate,</if>
|
||||
<if test="backPlate != null">back_plate,</if>
|
||||
<if test="assists != null">assists,</if>
|
||||
<if test="snatch != null">snatch,</if>
|
||||
<if test="block != null">block,</if>
|
||||
<if test="fault != null">fault,</if>
|
||||
<if test="breaks != null">breaks,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionVsId != null">#{competitionVsId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="nodeNum != null">#{nodeNum},</if>
|
||||
<if test="teamUserId != null">#{teamUserId},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="totalScore != null">#{totalScore},</if>
|
||||
<if test="twoPoints != null">#{twoPoints},</if>
|
||||
<if test="threePoints != null">#{threePoints},</if>
|
||||
<if test="penalty != null">#{penalty},</if>
|
||||
<if test="backboard != null">#{backboard},</if>
|
||||
<if test="frontPlate != null">#{frontPlate},</if>
|
||||
<if test="backPlate != null">#{backPlate},</if>
|
||||
<if test="assists != null">#{assists},</if>
|
||||
<if test="snatch != null">#{snatch},</if>
|
||||
<if test="block != null">#{block},</if>
|
||||
<if test="fault != null">#{fault},</if>
|
||||
<if test="breaks != null">#{breaks},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isFirstLaunch != null">#{isFirstLaunch},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionMembersScore" parameterType="CompetitionMembersScore">
|
||||
update competition_members_score
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionVsId != null">competition_vs_id = #{competitionVsId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="nodeNum != null">node_num = #{nodeNum},</if>
|
||||
<if test="teamUserId != null">team_user_id = #{teamUserId},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="totalScore != null">total_score = #{totalScore},</if>
|
||||
<if test="twoPoints != null">two_points = #{twoPoints},</if>
|
||||
<if test="threePoints != null">three_points = #{threePoints},</if>
|
||||
<if test="penalty != null">penalty = #{penalty},</if>
|
||||
<if test="backboard != null">backboard = #{backboard},</if>
|
||||
<if test="frontPlate != null">front_plate = #{frontPlate},</if>
|
||||
<if test="backPlate != null">back_plate = #{backPlate},</if>
|
||||
<if test="assists != null">assists = #{assists},</if>
|
||||
<if test="snatch != null">snatch = #{snatch},</if>
|
||||
<if test="block != null">block = #{block},</if>
|
||||
<if test="fault != null">fault = #{fault},</if>
|
||||
<if test="breaks != null">breaks = #{breaks},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch = #{isFirstLaunch},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionMembersScoreById" parameterType="Long">
|
||||
delete from competition_members_score where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionMembersScoreByIds" parameterType="String">
|
||||
delete from competition_members_score where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionOfTeamMapper">
|
||||
|
||||
<resultMap type="CompetitionOfTeam" id="CompetitionOfTeamResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="contacts" column="contacts" />
|
||||
<result property="contactsTel" column="contacts_tel" />
|
||||
<result property="contactsAreaCode" column="contacts_area_code" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionOfTeamVo">
|
||||
select id, competition_id, team_id, team_name, competition_group, created_time, status, last_updated_time, created_by, modified_by, is_deleted, remark, contacts, contacts_tel, contacts_area_code, serial_number from competition_of_team
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionOfTeamList" parameterType="CompetitionOfTeam" resultMap="CompetitionOfTeamResult">
|
||||
<include refid="selectCompetitionOfTeamVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
|
||||
<if test="contactsTel != null and contactsTel != ''"> and contacts_tel = #{contactsTel}</if>
|
||||
<if test="contactsAreaCode != null and contactsAreaCode != ''"> and contacts_area_code = #{contactsAreaCode}</if>
|
||||
<if test="serialNumber != null "> and serial_number = #{serialNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionOfTeamById" parameterType="Long" resultMap="CompetitionOfTeamResult">
|
||||
<include refid="selectCompetitionOfTeamVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionOfTeam" parameterType="CompetitionOfTeam" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_of_team
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="contacts != null">contacts,</if>
|
||||
<if test="contactsTel != null">contacts_tel,</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code,</if>
|
||||
<if test="serialNumber != null">serial_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="contacts != null">#{contacts},</if>
|
||||
<if test="contactsTel != null">#{contactsTel},</if>
|
||||
<if test="contactsAreaCode != null">#{contactsAreaCode},</if>
|
||||
<if test="serialNumber != null">#{serialNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionOfTeam" parameterType="CompetitionOfTeam">
|
||||
update competition_of_team
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="contacts != null">contacts = #{contacts},</if>
|
||||
<if test="contactsTel != null">contacts_tel = #{contactsTel},</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if>
|
||||
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionOfTeamById" parameterType="Long">
|
||||
delete from competition_of_team where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionOfTeamByIds" parameterType="String">
|
||||
delete from competition_of_team where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionResultMapper">
|
||||
|
||||
<resultMap type="CompetitionResult" id="CompetitionResultResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionVsId" column="competition_vs_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="oneNodeScore" column="one_node_score" />
|
||||
<result property="twoNodeScore" column="two_node_score" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="threeNodeScore" column="three_node_score" />
|
||||
<result property="fourNodeScore" column="four_node_score" />
|
||||
<result property="fiveNodeScore" column="five_node_score" />
|
||||
<result property="sixNodeScore" column="six_node_score" />
|
||||
<result property="integral" column="integral" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionResultVo">
|
||||
select id, competition_id, competition_vs_id, team_id, team_name, one_node_score, two_node_score, competition_group, status, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, three_node_score, four_node_score, five_node_score, six_node_score, integral from competition_result
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionResultList" parameterType="CompetitionResult" resultMap="CompetitionResultResult">
|
||||
<include refid="selectCompetitionResultVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionVsId != null "> and competition_vs_id = #{competitionVsId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="oneNodeScore != null "> and one_node_score = #{oneNodeScore}</if>
|
||||
<if test="twoNodeScore != null "> and two_node_score = #{twoNodeScore}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="threeNodeScore != null "> and three_node_score = #{threeNodeScore}</if>
|
||||
<if test="fourNodeScore != null "> and four_node_score = #{fourNodeScore}</if>
|
||||
<if test="fiveNodeScore != null "> and five_node_score = #{fiveNodeScore}</if>
|
||||
<if test="sixNodeScore != null "> and six_node_score = #{sixNodeScore}</if>
|
||||
<if test="integral != null "> and integral = #{integral}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionResultById" parameterType="Long" resultMap="CompetitionResultResult">
|
||||
<include refid="selectCompetitionResultVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionResult" parameterType="CompetitionResult" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionVsId != null">competition_vs_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="oneNodeScore != null">one_node_score,</if>
|
||||
<if test="twoNodeScore != null">two_node_score,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="threeNodeScore != null">three_node_score,</if>
|
||||
<if test="fourNodeScore != null">four_node_score,</if>
|
||||
<if test="fiveNodeScore != null">five_node_score,</if>
|
||||
<if test="sixNodeScore != null">six_node_score,</if>
|
||||
<if test="integral != null">integral,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionVsId != null">#{competitionVsId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="oneNodeScore != null">#{oneNodeScore},</if>
|
||||
<if test="twoNodeScore != null">#{twoNodeScore},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="threeNodeScore != null">#{threeNodeScore},</if>
|
||||
<if test="fourNodeScore != null">#{fourNodeScore},</if>
|
||||
<if test="fiveNodeScore != null">#{fiveNodeScore},</if>
|
||||
<if test="sixNodeScore != null">#{sixNodeScore},</if>
|
||||
<if test="integral != null">#{integral},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionResult" parameterType="CompetitionResult">
|
||||
update competition_result
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionVsId != null">competition_vs_id = #{competitionVsId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="oneNodeScore != null">one_node_score = #{oneNodeScore},</if>
|
||||
<if test="twoNodeScore != null">two_node_score = #{twoNodeScore},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="threeNodeScore != null">three_node_score = #{threeNodeScore},</if>
|
||||
<if test="fourNodeScore != null">four_node_score = #{fourNodeScore},</if>
|
||||
<if test="fiveNodeScore != null">five_node_score = #{fiveNodeScore},</if>
|
||||
<if test="sixNodeScore != null">six_node_score = #{sixNodeScore},</if>
|
||||
<if test="integral != null">integral = #{integral},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionResultById" parameterType="Long">
|
||||
delete from competition_result where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionResultByIds" parameterType="String">
|
||||
delete from competition_result where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionTeamGroupMapper">
|
||||
|
||||
<resultMap type="CompetitionTeamGroup" id="CompetitionTeamGroupResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isCycle" column="is_cycle" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionTeamGroupVo">
|
||||
select id, competition_id, competition_group, created_time, status, last_updated_time, created_by, modified_by, is_deleted, remark, is_cycle from competition_team_group
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionTeamGroupList" parameterType="CompetitionTeamGroup" resultMap="CompetitionTeamGroupResult">
|
||||
<include refid="selectCompetitionTeamGroupVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="isCycle != null "> and is_cycle = #{isCycle}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionTeamGroupById" parameterType="Long" resultMap="CompetitionTeamGroupResult">
|
||||
<include refid="selectCompetitionTeamGroupVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionTeamGroup" parameterType="CompetitionTeamGroup" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_team_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isCycle != null">is_cycle,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isCycle != null">#{isCycle},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionTeamGroup" parameterType="CompetitionTeamGroup">
|
||||
update competition_team_group
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isCycle != null">is_cycle = #{isCycle},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionTeamGroupById" parameterType="Long">
|
||||
delete from competition_team_group where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionTeamGroupByIds" parameterType="String">
|
||||
delete from competition_team_group where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionTeamVsTeamMapper">
|
||||
|
||||
<resultMap type="CompetitionTeamVsTeam" id="CompetitionTeamVsTeamResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="mainTeamId" column="main_team_id" />
|
||||
<result property="mainTeamName" column="main_team_name" />
|
||||
<result property="guestTeamId" column="guest_team_id" />
|
||||
<result property="guestTeamName" column="guest_team_name" />
|
||||
<result property="competitionTime" column="competition_time" />
|
||||
<result property="buildingId" column="building_id" />
|
||||
<result property="buildingName" column="building_name" />
|
||||
<result property="competitionAddress" column="competition_address" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="mainTeamScore" column="main_team_score" />
|
||||
<result property="guestTeamScore" column="guest_team_score" />
|
||||
<result property="vsType" column="vs_type" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionTeamVsTeamVo">
|
||||
select id, competition_id, main_team_id, main_team_name, guest_team_id, guest_team_name, competition_time, building_id, building_name, competition_address, competition_group, status, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, main_team_score, guest_team_score, vs_type, batch_number from competition_team_vs_team
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionTeamVsTeamList" parameterType="CompetitionTeamVsTeam" resultMap="CompetitionTeamVsTeamResult">
|
||||
<include refid="selectCompetitionTeamVsTeamVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="mainTeamId != null "> and main_team_id = #{mainTeamId}</if>
|
||||
<if test="mainTeamName != null and mainTeamName != ''"> and main_team_name like concat('%', #{mainTeamName}, '%')</if>
|
||||
<if test="guestTeamId != null "> and guest_team_id = #{guestTeamId}</if>
|
||||
<if test="guestTeamName != null and guestTeamName != ''"> and guest_team_name like concat('%', #{guestTeamName}, '%')</if>
|
||||
<if test="competitionTime != null "> and competition_time = #{competitionTime}</if>
|
||||
<if test="buildingId != null "> and building_id = #{buildingId}</if>
|
||||
<if test="buildingName != null and buildingName != ''"> and building_name like concat('%', #{buildingName}, '%')</if>
|
||||
<if test="competitionAddress != null and competitionAddress != ''"> and competition_address = #{competitionAddress}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="mainTeamScore != null "> and main_team_score = #{mainTeamScore}</if>
|
||||
<if test="guestTeamScore != null "> and guest_team_score = #{guestTeamScore}</if>
|
||||
<if test="vsType != null and vsType != ''"> and vs_type = #{vsType}</if>
|
||||
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionTeamVsTeamById" parameterType="Long" resultMap="CompetitionTeamVsTeamResult">
|
||||
<include refid="selectCompetitionTeamVsTeamVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionTeamVsTeam" parameterType="CompetitionTeamVsTeam" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_team_vs_team
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="mainTeamId != null">main_team_id,</if>
|
||||
<if test="mainTeamName != null">main_team_name,</if>
|
||||
<if test="guestTeamId != null">guest_team_id,</if>
|
||||
<if test="guestTeamName != null">guest_team_name,</if>
|
||||
<if test="competitionTime != null">competition_time,</if>
|
||||
<if test="buildingId != null">building_id,</if>
|
||||
<if test="buildingName != null">building_name,</if>
|
||||
<if test="competitionAddress != null">competition_address,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="mainTeamScore != null">main_team_score,</if>
|
||||
<if test="guestTeamScore != null">guest_team_score,</if>
|
||||
<if test="vsType != null">vs_type,</if>
|
||||
<if test="batchNumber != null">batch_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="mainTeamId != null">#{mainTeamId},</if>
|
||||
<if test="mainTeamName != null">#{mainTeamName},</if>
|
||||
<if test="guestTeamId != null">#{guestTeamId},</if>
|
||||
<if test="guestTeamName != null">#{guestTeamName},</if>
|
||||
<if test="competitionTime != null">#{competitionTime},</if>
|
||||
<if test="buildingId != null">#{buildingId},</if>
|
||||
<if test="buildingName != null">#{buildingName},</if>
|
||||
<if test="competitionAddress != null">#{competitionAddress},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="mainTeamScore != null">#{mainTeamScore},</if>
|
||||
<if test="guestTeamScore != null">#{guestTeamScore},</if>
|
||||
<if test="vsType != null">#{vsType},</if>
|
||||
<if test="batchNumber != null">#{batchNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionTeamVsTeam" parameterType="CompetitionTeamVsTeam">
|
||||
update competition_team_vs_team
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="mainTeamId != null">main_team_id = #{mainTeamId},</if>
|
||||
<if test="mainTeamName != null">main_team_name = #{mainTeamName},</if>
|
||||
<if test="guestTeamId != null">guest_team_id = #{guestTeamId},</if>
|
||||
<if test="guestTeamName != null">guest_team_name = #{guestTeamName},</if>
|
||||
<if test="competitionTime != null">competition_time = #{competitionTime},</if>
|
||||
<if test="buildingId != null">building_id = #{buildingId},</if>
|
||||
<if test="buildingName != null">building_name = #{buildingName},</if>
|
||||
<if test="competitionAddress != null">competition_address = #{competitionAddress},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="mainTeamScore != null">main_team_score = #{mainTeamScore},</if>
|
||||
<if test="guestTeamScore != null">guest_team_score = #{guestTeamScore},</if>
|
||||
<if test="vsType != null">vs_type = #{vsType},</if>
|
||||
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionTeamVsTeamById" parameterType="Long">
|
||||
delete from competition_team_vs_team where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionTeamVsTeamByIds" parameterType="String">
|
||||
delete from competition_team_vs_team where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.TeamMembersMapper">
|
||||
|
||||
<resultMap type="TeamMembers" id="TeamMembersResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="roleCode" column="role_code" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="isDeleted" column="IS_DELETED" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="roleName" column="role_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTeamMembersVo">
|
||||
select id, team_id, user_id, role_code, jersey_number, status, remark, created_time, created_by, IS_DELETED, last_updated_time, modified_by, role_name from team_members
|
||||
</sql>
|
||||
<select id="selectTeamMembersById" parameterType="Long" resultMap="TeamMembersResult">
|
||||
<include refid="selectTeamMembersVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectTeamMembersList" resultType="com.ruoyi.system.domain.vo.TeamMembersVo">
|
||||
select t.id, t.team_id, t.user_id, t.role_code, t.jersey_number, t.status, t.remark, t.created_time,
|
||||
t.created_by, t.IS_DELETED, t.last_updated_time, t.modified_by, t.role_name,u.*
|
||||
from team_members t left join user_info u on u.id = t.user_id
|
||||
<where>
|
||||
t.IS_DELETED = 0 and u.IS_DELETED = 0
|
||||
<if test="teamId != null "> and t.team_id = #{teamId}</if>
|
||||
<if test="userId != null "> and t.user_id = #{userId}</if>
|
||||
<if test="roleCode != null and roleCode != ''"> and t.role_code = #{roleCode}</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and t.jersey_number = #{jerseyNumber}</if>
|
||||
<if test="status != null "> and t.status = #{status}</if>
|
||||
<if test="createdTime != null "> and t.created_time = #{createdTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and t.created_by = #{createdBy}</if>
|
||||
<if test="lastUpdatedTime != null "> and t.last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and t.cmodified_by = #{modifiedBy}</if>
|
||||
<if test="roleName != null and roleName != ''"> and t.role_name like concat('%', #{roleName}, '%')</if>
|
||||
<if test="userName != null "> and t.user_name like concat('%', #{userName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
<insert id="insertTeamMembers" parameterType="TeamMembers" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into team_members
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="roleCode != null">role_code,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="isDeleted != null">IS_DELETED,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="roleName != null">role_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="roleCode != null">#{roleCode},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="roleName != null">#{roleName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTeamMembers" parameterType="TeamMembers">
|
||||
update team_members
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="roleCode != null">role_code = #{roleCode},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="isDeleted != null">IS_DELETED = #{isDeleted},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="roleName != null">role_name = #{roleName},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTeamMembersById" parameterType="Long">
|
||||
delete from team_members where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTeamMembersByIds" parameterType="String">
|
||||
delete from team_members where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询赛会中-赛程-人员得分列表
|
||||
export function listCompetitionMemberScore(query) {
|
||||
return request({
|
||||
url: '/system/competitionMemberScore/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询赛会中-赛程-人员得分详细
|
||||
export function getCompetitionMemberScore(id) {
|
||||
return request({
|
||||
url: '/system/competitionMemberScore/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增赛会中-赛程-人员得分
|
||||
export function addCompetitionMemberScore(data) {
|
||||
return request({
|
||||
url: '/system/competitionMemberScore',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改赛会中-赛程-人员得分
|
||||
export function updateCompetitionMemberScore(data) {
|
||||
return request({
|
||||
url: '/system/competitionMemberScore',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除赛会中-赛程-人员得分
|
||||
export function delCompetitionMemberScore(id) {
|
||||
return request({
|
||||
url: '/system/competitionMemberScore/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询比赛参与人员列表
|
||||
export function listCompetitionMembers(query) {
|
||||
return request({
|
||||
url: '/system/competitionMembers/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询比赛参与人员详细
|
||||
export function getCompetitionMembers(id) {
|
||||
return request({
|
||||
url: '/system/competitionMembers/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增比赛参与人员
|
||||
export function addCompetitionMembers(data) {
|
||||
return request({
|
||||
url: '/system/competitionMembers',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改比赛参与人员
|
||||
export function updateCompetitionMembers(data) {
|
||||
return request({
|
||||
url: '/system/competitionMembers',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除比赛参与人员
|
||||
export function delCompetitionMembers(id) {
|
||||
return request({
|
||||
url: '/system/competitionMembers/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询赛会中-参赛队伍列表
|
||||
export function listCompetitionOfTeam(query) {
|
||||
return request({
|
||||
url: '/system/competitionOfTeam/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询赛会中-参赛队伍详细
|
||||
export function getCompetitionOfTeam(id) {
|
||||
return request({
|
||||
url: '/system/competitionOfTeam/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增赛会中-参赛队伍
|
||||
export function addCompetitionOfTeam(data) {
|
||||
return request({
|
||||
url: '/system/competitionOfTeam',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改赛会中-参赛队伍
|
||||
export function updateCompetitionOfTeam(data) {
|
||||
return request({
|
||||
url: '/system/competitionOfTeam',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除赛会中-参赛队伍
|
||||
export function delCompetitionOfTeam(id) {
|
||||
return request({
|
||||
url: '/system/competitionOfTeam/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询赛会中-赛程结果记录列表
|
||||
export function listCompetitionResult(query) {
|
||||
return request({
|
||||
url: '/system/competitionResult/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询赛会中-赛程结果记录详细
|
||||
export function getCompetitionResult(id) {
|
||||
return request({
|
||||
url: '/system/competitionResult/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增赛会中-赛程结果记录
|
||||
export function addCompetitionResult(data) {
|
||||
return request({
|
||||
url: '/system/competitionResult',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改赛会中-赛程结果记录
|
||||
export function updateCompetitionResult(data) {
|
||||
return request({
|
||||
url: '/system/competitionResult',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除赛会中-赛程结果记录
|
||||
export function delCompetitionResult(id) {
|
||||
return request({
|
||||
url: '/system/competitionResult/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询赛会中-分组列表
|
||||
export function listCompetitionTeamGroup(query) {
|
||||
return request({
|
||||
url: '/system/competitionTeamGroup/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询赛会中-分组详细
|
||||
export function getCompetitionTeamGroup(id) {
|
||||
return request({
|
||||
url: '/system/competitionTeamGroup/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增赛会中-分组
|
||||
export function addCompetitionTeamGroup(data) {
|
||||
return request({
|
||||
url: '/system/competitionTeamGroup',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改赛会中-分组
|
||||
export function updateCompetitionTeamGroup(data) {
|
||||
return request({
|
||||
url: '/system/competitionTeamGroup',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除赛会中-分组
|
||||
export function delCompetitionTeamGroup(id) {
|
||||
return request({
|
||||
url: '/system/competitionTeamGroup/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询赛会中-球队VS球队关系列表
|
||||
export function listCompetitionTeamVsTeam(query) {
|
||||
return request({
|
||||
url: '/system/competitionTeamVsTeam/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询赛会中-球队VS球队关系详细
|
||||
export function getCompetitionTeamVsTeam(id) {
|
||||
return request({
|
||||
url: '/system/competitionTeamVsTeam/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增赛会中-球队VS球队关系
|
||||
export function addCompetitionTeamVsTeam(data) {
|
||||
return request({
|
||||
url: '/system/competitionTeamVsTeam',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改赛会中-球队VS球队关系
|
||||
export function updateCompetitionTeamVsTeam(data) {
|
||||
return request({
|
||||
url: '/system/competitionTeamVsTeam',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除赛会中-球队VS球队关系
|
||||
export function delCompetitionTeamVsTeam(id) {
|
||||
return request({
|
||||
url: '/system/competitionTeamVsTeam/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询球队人员列表
|
||||
export function listTeamMembers(query) {
|
||||
return request({
|
||||
url: '/system/teamMembers/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询球队人员详细
|
||||
export function getTeamMembers(id) {
|
||||
return request({
|
||||
url: '/system/teamMembers/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增球队人员
|
||||
export function addTeamMembers(data) {
|
||||
return request({
|
||||
url: '/system/teamMembers',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改球队人员
|
||||
export function updateTeamMembers(data) {
|
||||
return request({
|
||||
url: '/system/teamMembers',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除球队人员
|
||||
export function delTeamMembers(id) {
|
||||
return request({
|
||||
url: '/system/teamMembers/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,604 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="赛事id(competition的ID)" prop="competitionId">
|
||||
<el-input
|
||||
v-model="queryParams.competitionId"
|
||||
placeholder="请输入赛事id(competition的ID)"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="赛程id(competition_team_vs_team的ID)" prop="competitionVsId">
|
||||
<el-input
|
||||
v-model="queryParams.competitionVsId"
|
||||
placeholder="请输入赛程id(competition_team_vs_team的ID)"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球队ID" prop="teamId">
|
||||
<el-input
|
||||
v-model="queryParams.teamId"
|
||||
placeholder="请输入球队ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球队名" prop="teamName">
|
||||
<el-input
|
||||
v-model="queryParams.teamName"
|
||||
placeholder="请输入球队名"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="比赛节数" prop="nodeNum">
|
||||
<el-input
|
||||
v-model="queryParams.nodeNum"
|
||||
placeholder="请输入比赛节数"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球队人员ID" prop="teamUserId">
|
||||
<el-input
|
||||
v-model="queryParams.teamUserId"
|
||||
placeholder="请输入球队人员ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球衣号" prop="jerseyNumber">
|
||||
<el-input
|
||||
v-model="queryParams.jerseyNumber"
|
||||
placeholder="请输入球衣号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="总得分" prop="totalScore">
|
||||
<el-input
|
||||
v-model="queryParams.totalScore"
|
||||
placeholder="请输入总得分"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="2分球" prop="twoPoints">
|
||||
<el-input
|
||||
v-model="queryParams.twoPoints"
|
||||
placeholder="请输入2分球"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="3分球" prop="threePoints">
|
||||
<el-input
|
||||
v-model="queryParams.threePoints"
|
||||
placeholder="请输入3分球"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="罚球" prop="penalty">
|
||||
<el-input
|
||||
v-model="queryParams.penalty"
|
||||
placeholder="请输入罚球"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="篮板" prop="backboard">
|
||||
<el-input
|
||||
v-model="queryParams.backboard"
|
||||
placeholder="请输入篮板"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="前板" prop="frontPlate">
|
||||
<el-input
|
||||
v-model="queryParams.frontPlate"
|
||||
placeholder="请输入前板"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="后板" prop="backPlate">
|
||||
<el-input
|
||||
v-model="queryParams.backPlate"
|
||||
placeholder="请输入后板"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="助攻" prop="assists">
|
||||
<el-input
|
||||
v-model="queryParams.assists"
|
||||
placeholder="请输入助攻"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="抢断" prop="snatch">
|
||||
<el-input
|
||||
v-model="queryParams.snatch"
|
||||
placeholder="请输入抢断"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盖帽" prop="block">
|
||||
<el-input
|
||||
v-model="queryParams.block"
|
||||
placeholder="请输入盖帽"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="失误" prop="fault">
|
||||
<el-input
|
||||
v-model="queryParams.fault"
|
||||
placeholder="请输入失误"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="犯规" prop="breaks">
|
||||
<el-input
|
||||
v-model="queryParams.breaks"
|
||||
placeholder="请输入犯规"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="最后修改时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择最后修改时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input
|
||||
v-model="queryParams.createdBy"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="最后修改人" prop="modifiedBy">
|
||||
<el-input
|
||||
v-model="queryParams.modifiedBy"
|
||||
placeholder="请输入最后修改人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否删除" prop="isDeleted">
|
||||
<el-input
|
||||
v-model="queryParams.isDeleted"
|
||||
placeholder="请输入是否删除"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否首发球员" prop="isFirstLaunch">
|
||||
<el-input
|
||||
v-model="queryParams.isFirstLaunch"
|
||||
placeholder="请输入是否首发球员"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:competitionMemberScore:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:competitionMemberScore:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:competitionMemberScore:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:competitionMemberScore:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="competitionMemberScoreList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="id" align="center" prop="id" />
|
||||
<el-table-column label="赛事id(competition的ID)" align="center" prop="competitionId" />
|
||||
<el-table-column label="赛程id(competition_team_vs_team的ID)" align="center" prop="competitionVsId" />
|
||||
<el-table-column label="球队ID" align="center" prop="teamId" />
|
||||
<el-table-column label="球队名" align="center" prop="teamName" />
|
||||
<el-table-column label="比赛节数" align="center" prop="nodeNum" />
|
||||
<el-table-column label="球队人员ID" align="center" prop="teamUserId" />
|
||||
<el-table-column label="球衣号" align="center" prop="jerseyNumber" />
|
||||
<el-table-column label="总得分" align="center" prop="totalScore" />
|
||||
<el-table-column label="2分球" align="center" prop="twoPoints" />
|
||||
<el-table-column label="3分球" align="center" prop="threePoints" />
|
||||
<el-table-column label="罚球" align="center" prop="penalty" />
|
||||
<el-table-column label="篮板" align="center" prop="backboard" />
|
||||
<el-table-column label="前板" align="center" prop="frontPlate" />
|
||||
<el-table-column label="后板" align="center" prop="backPlate" />
|
||||
<el-table-column label="助攻" align="center" prop="assists" />
|
||||
<el-table-column label="抢断" align="center" prop="snatch" />
|
||||
<el-table-column label="盖帽" align="center" prop="block" />
|
||||
<el-table-column label="失误" align="center" prop="fault" />
|
||||
<el-table-column label="犯规" align="center" prop="breaks" />
|
||||
<el-table-column label="创建时间" align="center" prop="createdTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="最后修改时间" align="center" prop="lastUpdatedTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.lastUpdatedTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" prop="createdBy" />
|
||||
<el-table-column label="最后修改人" align="center" prop="modifiedBy" />
|
||||
<el-table-column label="是否删除" align="center" prop="isDeleted" />
|
||||
<el-table-column label="备注说明" align="center" prop="remark" />
|
||||
<el-table-column label="是否首发球员" align="center" prop="isFirstLaunch" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:competitionMemberScore:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:competitionMemberScore:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改赛会中-赛程-人员得分对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="赛事id(competition的ID)" prop="competitionId">
|
||||
<el-input v-model="form.competitionId" placeholder="请输入赛事id(competition的ID)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="赛程id(competition_team_vs_team的ID)" prop="competitionVsId">
|
||||
<el-input v-model="form.competitionVsId" placeholder="请输入赛程id(competition_team_vs_team的ID)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队ID" prop="teamId">
|
||||
<el-input v-model="form.teamId" placeholder="请输入球队ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队名" prop="teamName">
|
||||
<el-input v-model="form.teamName" placeholder="请输入球队名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="比赛节数" prop="nodeNum">
|
||||
<el-input v-model="form.nodeNum" placeholder="请输入比赛节数" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球队人员ID" prop="teamUserId">
|
||||
<el-input v-model="form.teamUserId" placeholder="请输入球队人员ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球衣号" prop="jerseyNumber">
|
||||
<el-input v-model="form.jerseyNumber" placeholder="请输入球衣号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="总得分" prop="totalScore">
|
||||
<el-input v-model="form.totalScore" placeholder="请输入总得分" />
|
||||
</el-form-item>
|
||||
<el-form-item label="2分球" prop="twoPoints">
|
||||
<el-input v-model="form.twoPoints" placeholder="请输入2分球" />
|
||||
</el-form-item>
|
||||
<el-form-item label="3分球" prop="threePoints">
|
||||
<el-input v-model="form.threePoints" placeholder="请输入3分球" />
|
||||
</el-form-item>
|
||||
<el-form-item label="罚球" prop="penalty">
|
||||
<el-input v-model="form.penalty" placeholder="请输入罚球" />
|
||||
</el-form-item>
|
||||
<el-form-item label="篮板" prop="backboard">
|
||||
<el-input v-model="form.backboard" placeholder="请输入篮板" />
|
||||
</el-form-item>
|
||||
<el-form-item label="前板" prop="frontPlate">
|
||||
<el-input v-model="form.frontPlate" placeholder="请输入前板" />
|
||||
</el-form-item>
|
||||
<el-form-item label="后板" prop="backPlate">
|
||||
<el-input v-model="form.backPlate" placeholder="请输入后板" />
|
||||
</el-form-item>
|
||||
<el-form-item label="助攻" prop="assists">
|
||||
<el-input v-model="form.assists" placeholder="请输入助攻" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抢断" prop="snatch">
|
||||
<el-input v-model="form.snatch" placeholder="请输入抢断" />
|
||||
</el-form-item>
|
||||
<el-form-item label="盖帽" prop="block">
|
||||
<el-input v-model="form.block" placeholder="请输入盖帽" />
|
||||
</el-form-item>
|
||||
<el-form-item label="失误" prop="fault">
|
||||
<el-input v-model="form.fault" placeholder="请输入失误" />
|
||||
</el-form-item>
|
||||
<el-form-item label="犯规" prop="breaks">
|
||||
<el-input v-model="form.breaks" placeholder="请输入犯规" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="最后修改时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择最后修改时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input v-model="form.createdBy" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="最后修改人" prop="modifiedBy">
|
||||
<el-input v-model="form.modifiedBy" placeholder="请输入最后修改人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否删除" prop="isDeleted">
|
||||
<el-input v-model="form.isDeleted" placeholder="请输入是否删除" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注说明" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否首发球员" prop="isFirstLaunch">
|
||||
<el-input v-model="form.isFirstLaunch" placeholder="请输入是否首发球员" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listCompetitionMemberScore, getCompetitionMemberScore, delCompetitionMemberScore, addCompetitionMemberScore, updateCompetitionMemberScore } from "@/api/system/competitionMemberScore";
|
||||
|
||||
export default {
|
||||
name: "CompetitionMemberScore",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 赛会中-赛程-人员得分表格数据
|
||||
competitionMemberScoreList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
competitionId: null,
|
||||
competitionVsId: null,
|
||||
teamId: null,
|
||||
teamName: null,
|
||||
nodeNum: null,
|
||||
teamUserId: null,
|
||||
jerseyNumber: null,
|
||||
totalScore: null,
|
||||
twoPoints: null,
|
||||
threePoints: null,
|
||||
penalty: null,
|
||||
backboard: null,
|
||||
frontPlate: null,
|
||||
backPlate: null,
|
||||
assists: null,
|
||||
snatch: null,
|
||||
block: null,
|
||||
fault: null,
|
||||
breaks: null,
|
||||
createdTime: null,
|
||||
lastUpdatedTime: null,
|
||||
createdBy: null,
|
||||
modifiedBy: null,
|
||||
isDeleted: null,
|
||||
isFirstLaunch: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询赛会中-赛程-人员得分列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listCompetitionMemberScore(this.queryParams).then(response => {
|
||||
this.competitionMemberScoreList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
competitionId: null,
|
||||
competitionVsId: null,
|
||||
teamId: null,
|
||||
teamName: null,
|
||||
nodeNum: null,
|
||||
teamUserId: null,
|
||||
jerseyNumber: null,
|
||||
totalScore: null,
|
||||
twoPoints: null,
|
||||
threePoints: null,
|
||||
penalty: null,
|
||||
backboard: null,
|
||||
frontPlate: null,
|
||||
backPlate: null,
|
||||
assists: null,
|
||||
snatch: null,
|
||||
block: null,
|
||||
fault: null,
|
||||
breaks: null,
|
||||
createdTime: null,
|
||||
lastUpdatedTime: null,
|
||||
createdBy: null,
|
||||
modifiedBy: null,
|
||||
isDeleted: null,
|
||||
remark: null,
|
||||
isFirstLaunch: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加赛会中-赛程-人员得分";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getCompetitionMemberScore(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改赛会中-赛程-人员得分";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateCompetitionMemberScore(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addCompetitionMemberScore(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除赛会中-赛程-人员得分编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delCompetitionMemberScore(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/competitionMemberScore/export', {
|
||||
...this.queryParams
|
||||
}, `competitionMemberScore_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -0,0 +1,400 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="球队ID" prop="teamId">
|
||||
<el-input
|
||||
v-model="queryParams.teamId"
|
||||
placeholder="请输入球队ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="用户ID" prop="userId">
|
||||
<el-input
|
||||
v-model="queryParams.userId"
|
||||
placeholder="请输入用户ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="角色编码" prop="roleCode">
|
||||
<el-input
|
||||
v-model="queryParams.roleCode"
|
||||
placeholder="请输入角色编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="球衣号码" prop="jerseyNumber">
|
||||
<el-input
|
||||
v-model="queryParams.jerseyNumber"
|
||||
placeholder="请输入球衣号码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input
|
||||
v-model="queryParams.createdBy"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="删除1" prop="isDeleted">
|
||||
<el-input
|
||||
v-model="queryParams.isDeleted"
|
||||
placeholder="请输入删除1"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="最后更新时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择最后更新时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="modifiedBy">
|
||||
<el-input
|
||||
v-model="queryParams.modifiedBy"
|
||||
placeholder="请输入${comment}"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="角色名称" prop="roleName">
|
||||
<el-input
|
||||
v-model="queryParams.roleName"
|
||||
placeholder="请输入角色名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:teamMembers:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:teamMembers:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:teamMembers:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:teamMembers:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="teamMembersList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="ID" align="center" prop="id" />
|
||||
<el-table-column label="球队ID" align="center" prop="teamId" />
|
||||
<el-table-column label="用户ID" align="center" prop="userId" />
|
||||
<el-table-column label="角色编码" align="center" prop="roleCode" />
|
||||
<el-table-column label="球衣号码" align="center" prop="jerseyNumber" />
|
||||
<el-table-column label="人员状态" align="center" prop="status" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="创建时间" align="center" prop="createdTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" prop="createdBy" />
|
||||
<el-table-column label="删除1" align="center" prop="isDeleted" />
|
||||
<el-table-column label="最后更新时间" align="center" prop="lastUpdatedTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.lastUpdatedTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="${comment}" align="center" prop="modifiedBy" />
|
||||
<el-table-column label="角色名称" align="center" prop="roleName" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:teamMembers:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:teamMembers:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改球队人员对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="球队ID" prop="teamId">
|
||||
<el-input v-model="form.teamId" placeholder="请输入球队ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户ID" prop="userId">
|
||||
<el-input v-model="form.userId" placeholder="请输入用户ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="角色编码" prop="roleCode">
|
||||
<el-input v-model="form.roleCode" placeholder="请输入角色编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="球衣号码" prop="jerseyNumber">
|
||||
<el-input v-model="form.jerseyNumber" placeholder="请输入球衣号码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createdTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.createdTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createdBy">
|
||||
<el-input v-model="form.createdBy" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="删除1" prop="isDeleted">
|
||||
<el-input v-model="form.isDeleted" placeholder="请输入删除1" />
|
||||
</el-form-item>
|
||||
<el-form-item label="最后更新时间" prop="lastUpdatedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.lastUpdatedTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择最后更新时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="modifiedBy">
|
||||
<el-input v-model="form.modifiedBy" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="角色名称" prop="roleName">
|
||||
<el-input v-model="form.roleName" placeholder="请输入角色名称" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTeamMembers, getTeamMembers, delTeamMembers, addTeamMembers, updateTeamMembers } from "@/api/system/teamMembers";
|
||||
|
||||
export default {
|
||||
name: "TeamMembers",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 球队人员表格数据
|
||||
teamMembersList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
teamId: null,
|
||||
userId: null,
|
||||
roleCode: null,
|
||||
jerseyNumber: null,
|
||||
status: null,
|
||||
createdTime: null,
|
||||
createdBy: null,
|
||||
isDeleted: null,
|
||||
lastUpdatedTime: null,
|
||||
modifiedBy: null,
|
||||
roleName: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
status: [
|
||||
{ required: true, message: "人员状态不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询球队人员列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listTeamMembers(this.queryParams).then(response => {
|
||||
this.teamMembersList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
teamId: null,
|
||||
userId: null,
|
||||
roleCode: null,
|
||||
jerseyNumber: null,
|
||||
status: 0,
|
||||
remark: null,
|
||||
createdTime: null,
|
||||
createdBy: null,
|
||||
isDeleted: null,
|
||||
lastUpdatedTime: null,
|
||||
modifiedBy: null,
|
||||
roleName: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加球队人员";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getTeamMembers(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改球队人员";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateTeamMembers(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addTeamMembers(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除球队人员编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delTeamMembers(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/teamMembers/export', {
|
||||
...this.queryParams
|
||||
}, `teamMembers_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue