mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 19:51:56 +08:00
新增页面1
This commit is contained in:
@@ -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,447 @@
|
||||
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
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionMembers extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 角色编码 */
|
||||
@Excel(name = "角色编码")
|
||||
private String roleCode;
|
||||
|
||||
/** 比赛ID */
|
||||
@Excel(name = "比赛ID")
|
||||
private Long competitionId;
|
||||
|
||||
/** 参赛球队id */
|
||||
@Excel(name = "参赛球队id")
|
||||
private Long competitionTeamId;
|
||||
|
||||
/** 比赛得分 */
|
||||
@Excel(name = "比赛得分")
|
||||
private Integer score;
|
||||
|
||||
/** 总罚球 */
|
||||
@Excel(name = "总罚球")
|
||||
private Integer penalty;
|
||||
|
||||
/** 2分球 */
|
||||
@Excel(name = "2分球")
|
||||
private Integer twoPoints;
|
||||
|
||||
/** 3分球 */
|
||||
@Excel(name = "3分球")
|
||||
private Integer threePoints;
|
||||
|
||||
/** 总犯规 */
|
||||
@Excel(name = "总犯规")
|
||||
private Integer breaks;
|
||||
|
||||
/** 总篮板球 */
|
||||
@Excel(name = "总篮板球")
|
||||
private Integer rebound;
|
||||
|
||||
/** 总盖帽 */
|
||||
@Excel(name = "总盖帽")
|
||||
private Integer block;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private Integer isDeleted;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/** 最后修改人 */
|
||||
@Excel(name = "最后修改人")
|
||||
private String modifiedBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@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 Integer status;
|
||||
|
||||
/** 人员类型:0=球员;1=队长 */
|
||||
@Excel(name = "人员类型:0=球员;1=队长")
|
||||
private Integer userType;
|
||||
|
||||
/** competition_of_team主键ID */
|
||||
@Excel(name = "competition_of_team主键ID")
|
||||
private Long competitionOfTeamId;
|
||||
|
||||
/** 比赛性质(0=约战;1=赛事) */
|
||||
@Excel(name = "比赛性质", readConverterExp = "0==约战;1=赛事")
|
||||
private Long competitionNature;
|
||||
|
||||
/** 真实姓名 */
|
||||
@Excel(name = "真实姓名")
|
||||
private String realName;
|
||||
|
||||
/** 球衣号 */
|
||||
@Excel(name = "球衣号")
|
||||
private String jerseyNumber;
|
||||
|
||||
/** 证件类型(身份证) */
|
||||
@Excel(name = "证件类型", readConverterExp = "身=份证")
|
||||
private String idType;
|
||||
|
||||
/** 证件号码 */
|
||||
@Excel(name = "证件号码")
|
||||
private String idCardNo;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String contactsTel;
|
||||
|
||||
/** 联系人 */
|
||||
@Excel(name = "联系人")
|
||||
private String contacts;
|
||||
|
||||
/** 联系人区号 */
|
||||
@Excel(name = "联系人区号")
|
||||
private String contactsAreaCode;
|
||||
|
||||
/** 个人照片(最新) */
|
||||
@Excel(name = "个人照片", readConverterExp = "最=新")
|
||||
private String personalPhoto;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Integer isFirstLaunch;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
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 setCompetitionId(Long competitionId)
|
||||
{
|
||||
this.competitionId = competitionId;
|
||||
}
|
||||
|
||||
public Long getCompetitionId()
|
||||
{
|
||||
return competitionId;
|
||||
}
|
||||
public void setCompetitionTeamId(Long competitionTeamId)
|
||||
{
|
||||
this.competitionTeamId = competitionTeamId;
|
||||
}
|
||||
|
||||
public Long getCompetitionTeamId()
|
||||
{
|
||||
return competitionTeamId;
|
||||
}
|
||||
public void setScore(Integer score)
|
||||
{
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public Integer getScore()
|
||||
{
|
||||
return score;
|
||||
}
|
||||
public void setPenalty(Integer penalty)
|
||||
{
|
||||
this.penalty = penalty;
|
||||
}
|
||||
|
||||
public Integer getPenalty()
|
||||
{
|
||||
return penalty;
|
||||
}
|
||||
public void setTwoPoints(Integer twoPoints)
|
||||
{
|
||||
this.twoPoints = twoPoints;
|
||||
}
|
||||
|
||||
public Integer getTwoPoints()
|
||||
{
|
||||
return twoPoints;
|
||||
}
|
||||
public void setThreePoints(Integer threePoints)
|
||||
{
|
||||
this.threePoints = threePoints;
|
||||
}
|
||||
|
||||
public Integer getThreePoints()
|
||||
{
|
||||
return threePoints;
|
||||
}
|
||||
public void setBreaks(Integer breaks)
|
||||
{
|
||||
this.breaks = breaks;
|
||||
}
|
||||
|
||||
public Integer getBreaks()
|
||||
{
|
||||
return breaks;
|
||||
}
|
||||
public void setRebound(Integer rebound)
|
||||
{
|
||||
this.rebound = rebound;
|
||||
}
|
||||
|
||||
public Integer getRebound()
|
||||
{
|
||||
return rebound;
|
||||
}
|
||||
public void setBlock(Integer block)
|
||||
{
|
||||
this.block = block;
|
||||
}
|
||||
|
||||
public Integer getBlock()
|
||||
{
|
||||
return block;
|
||||
}
|
||||
public void setIsDeleted(Integer isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public Integer getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
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 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 setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setUserType(Integer userType)
|
||||
{
|
||||
this.userType = userType;
|
||||
}
|
||||
|
||||
public Integer getUserType()
|
||||
{
|
||||
return userType;
|
||||
}
|
||||
public void setCompetitionOfTeamId(Long competitionOfTeamId)
|
||||
{
|
||||
this.competitionOfTeamId = competitionOfTeamId;
|
||||
}
|
||||
|
||||
public Long getCompetitionOfTeamId()
|
||||
{
|
||||
return competitionOfTeamId;
|
||||
}
|
||||
public void setCompetitionNature(Long competitionNature)
|
||||
{
|
||||
this.competitionNature = competitionNature;
|
||||
}
|
||||
|
||||
public Long getCompetitionNature()
|
||||
{
|
||||
return competitionNature;
|
||||
}
|
||||
public void setRealName(String realName)
|
||||
{
|
||||
this.realName = realName;
|
||||
}
|
||||
|
||||
public String getRealName()
|
||||
{
|
||||
return realName;
|
||||
}
|
||||
public void setJerseyNumber(String jerseyNumber)
|
||||
{
|
||||
this.jerseyNumber = jerseyNumber;
|
||||
}
|
||||
|
||||
public String getJerseyNumber()
|
||||
{
|
||||
return jerseyNumber;
|
||||
}
|
||||
public void setIdType(String idType)
|
||||
{
|
||||
this.idType = idType;
|
||||
}
|
||||
|
||||
public String getIdType()
|
||||
{
|
||||
return idType;
|
||||
}
|
||||
public void setIdCardNo(String idCardNo)
|
||||
{
|
||||
this.idCardNo = idCardNo;
|
||||
}
|
||||
|
||||
public String getIdCardNo()
|
||||
{
|
||||
return idCardNo;
|
||||
}
|
||||
public void setContactsTel(String contactsTel)
|
||||
{
|
||||
this.contactsTel = contactsTel;
|
||||
}
|
||||
|
||||
public String getContactsTel()
|
||||
{
|
||||
return contactsTel;
|
||||
}
|
||||
public void setContacts(String contacts)
|
||||
{
|
||||
this.contacts = contacts;
|
||||
}
|
||||
|
||||
public String getContacts()
|
||||
{
|
||||
return contacts;
|
||||
}
|
||||
public void setContactsAreaCode(String contactsAreaCode)
|
||||
{
|
||||
this.contactsAreaCode = contactsAreaCode;
|
||||
}
|
||||
|
||||
public String getContactsAreaCode()
|
||||
{
|
||||
return contactsAreaCode;
|
||||
}
|
||||
public void setPersonalPhoto(String personalPhoto)
|
||||
{
|
||||
this.personalPhoto = personalPhoto;
|
||||
}
|
||||
|
||||
public String getPersonalPhoto()
|
||||
{
|
||||
return personalPhoto;
|
||||
}
|
||||
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("userId", getUserId())
|
||||
.append("roleCode", getRoleCode())
|
||||
.append("competitionId", getCompetitionId())
|
||||
.append("competitionTeamId", getCompetitionTeamId())
|
||||
.append("score", getScore())
|
||||
.append("penalty", getPenalty())
|
||||
.append("twoPoints", getTwoPoints())
|
||||
.append("threePoints", getThreePoints())
|
||||
.append("breaks", getBreaks())
|
||||
.append("rebound", getRebound())
|
||||
.append("block", getBlock())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("status", getStatus())
|
||||
.append("userType", getUserType())
|
||||
.append("competitionOfTeamId", getCompetitionOfTeamId())
|
||||
.append("competitionNature", getCompetitionNature())
|
||||
.append("realName", getRealName())
|
||||
.append("jerseyNumber", getJerseyNumber())
|
||||
.append("idType", getIdType())
|
||||
.append("idCardNo", getIdCardNo())
|
||||
.append("contactsTel", getContactsTel())
|
||||
.append("contacts", getContacts())
|
||||
.append("contactsAreaCode", getContactsAreaCode())
|
||||
.append("personalPhoto", getPersonalPhoto())
|
||||
.append("isFirstLaunch", getIsFirstLaunch())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -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,238 @@
|
||||
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_of_team
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionOfTeam extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 赛事id(competition的ID) */
|
||||
@Excel(name = "赛事id(competition的ID)")
|
||||
private Long competitionId;
|
||||
|
||||
/** 球队ID */
|
||||
@Excel(name = "球队ID")
|
||||
private Long teamId;
|
||||
|
||||
/** 球队名 */
|
||||
@Excel(name = "球队名")
|
||||
private String teamName;
|
||||
|
||||
/** 球队所属的组 */
|
||||
@Excel(name = "球队所属的组")
|
||||
private String competitionGroup;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdTime;
|
||||
|
||||
/** 状态 0=申请,1=同意;-1=驳回 */
|
||||
@Excel(name = "状态 0=申请,1=同意;-1=驳回")
|
||||
private Integer status;
|
||||
|
||||
/** 最后修改时间 */
|
||||
@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 String contacts;
|
||||
|
||||
/** 联系人电话 */
|
||||
@Excel(name = "联系人电话")
|
||||
private String contactsTel;
|
||||
|
||||
/** 联系人电话区号 */
|
||||
@Excel(name = "联系人电话区号")
|
||||
private String contactsAreaCode;
|
||||
|
||||
/** 组内的序号 */
|
||||
@Excel(name = "组内的序号")
|
||||
private Long serialNumber;
|
||||
|
||||
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 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 setCompetitionGroup(String competitionGroup)
|
||||
{
|
||||
this.competitionGroup = competitionGroup;
|
||||
}
|
||||
|
||||
public String getCompetitionGroup()
|
||||
{
|
||||
return competitionGroup;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime)
|
||||
{
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
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 setContacts(String contacts)
|
||||
{
|
||||
this.contacts = contacts;
|
||||
}
|
||||
|
||||
public String getContacts()
|
||||
{
|
||||
return contacts;
|
||||
}
|
||||
public void setContactsTel(String contactsTel)
|
||||
{
|
||||
this.contactsTel = contactsTel;
|
||||
}
|
||||
|
||||
public String getContactsTel()
|
||||
{
|
||||
return contactsTel;
|
||||
}
|
||||
public void setContactsAreaCode(String contactsAreaCode)
|
||||
{
|
||||
this.contactsAreaCode = contactsAreaCode;
|
||||
}
|
||||
|
||||
public String getContactsAreaCode()
|
||||
{
|
||||
return contactsAreaCode;
|
||||
}
|
||||
public void setSerialNumber(Long serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public Long getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("competitionId", getCompetitionId())
|
||||
.append("teamId", getTeamId())
|
||||
.append("teamName", getTeamName())
|
||||
.append("competitionGroup", getCompetitionGroup())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("status", getStatus())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("remark", getRemark())
|
||||
.append("contacts", getContacts())
|
||||
.append("contactsTel", getContactsTel())
|
||||
.append("contactsAreaCode", getContactsAreaCode())
|
||||
.append("serialNumber", getSerialNumber())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
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_result
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionResult 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;
|
||||
|
||||
/** 比赛节数1计分 */
|
||||
@Excel(name = "比赛节数1计分")
|
||||
private Long oneNodeScore;
|
||||
|
||||
/** 比赛节数2计分 */
|
||||
@Excel(name = "比赛节数2计分")
|
||||
private Long twoNodeScore;
|
||||
|
||||
/** 比赛分组(A,B,C) */
|
||||
@Excel(name = "比赛分组(A,B,C)")
|
||||
private String competitionGroup;
|
||||
|
||||
/** 状态-1=已取消; 0=报名中,1=比赛中;2=已结束 */
|
||||
@Excel(name = "状态-1=已取消; 0=报名中,1=比赛中;2=已结束")
|
||||
private Integer status;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
|
||||
/** 比赛节数3计分 */
|
||||
@Excel(name = "比赛节数3计分")
|
||||
private Long threeNodeScore;
|
||||
|
||||
/** 比赛节数4计分 */
|
||||
@Excel(name = "比赛节数4计分")
|
||||
private Long fourNodeScore;
|
||||
|
||||
/** 比赛节数5计分 */
|
||||
@Excel(name = "比赛节数5计分")
|
||||
private Long fiveNodeScore;
|
||||
|
||||
/** 比赛节数6计分 */
|
||||
@Excel(name = "比赛节数6计分")
|
||||
private Long sixNodeScore;
|
||||
|
||||
/** 比赛积分 */
|
||||
@Excel(name = "比赛积分")
|
||||
private Long integral;
|
||||
|
||||
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 setOneNodeScore(Long oneNodeScore)
|
||||
{
|
||||
this.oneNodeScore = oneNodeScore;
|
||||
}
|
||||
|
||||
public Long getOneNodeScore()
|
||||
{
|
||||
return oneNodeScore;
|
||||
}
|
||||
public void setTwoNodeScore(Long twoNodeScore)
|
||||
{
|
||||
this.twoNodeScore = twoNodeScore;
|
||||
}
|
||||
|
||||
public Long getTwoNodeScore()
|
||||
{
|
||||
return twoNodeScore;
|
||||
}
|
||||
public void setCompetitionGroup(String competitionGroup)
|
||||
{
|
||||
this.competitionGroup = competitionGroup;
|
||||
}
|
||||
|
||||
public String getCompetitionGroup()
|
||||
{
|
||||
return competitionGroup;
|
||||
}
|
||||
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 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 setThreeNodeScore(Long threeNodeScore)
|
||||
{
|
||||
this.threeNodeScore = threeNodeScore;
|
||||
}
|
||||
|
||||
public Long getThreeNodeScore()
|
||||
{
|
||||
return threeNodeScore;
|
||||
}
|
||||
public void setFourNodeScore(Long fourNodeScore)
|
||||
{
|
||||
this.fourNodeScore = fourNodeScore;
|
||||
}
|
||||
|
||||
public Long getFourNodeScore()
|
||||
{
|
||||
return fourNodeScore;
|
||||
}
|
||||
public void setFiveNodeScore(Long fiveNodeScore)
|
||||
{
|
||||
this.fiveNodeScore = fiveNodeScore;
|
||||
}
|
||||
|
||||
public Long getFiveNodeScore()
|
||||
{
|
||||
return fiveNodeScore;
|
||||
}
|
||||
public void setSixNodeScore(Long sixNodeScore)
|
||||
{
|
||||
this.sixNodeScore = sixNodeScore;
|
||||
}
|
||||
|
||||
public Long getSixNodeScore()
|
||||
{
|
||||
return sixNodeScore;
|
||||
}
|
||||
public void setIntegral(Long integral)
|
||||
{
|
||||
this.integral = integral;
|
||||
}
|
||||
|
||||
public Long getIntegral()
|
||||
{
|
||||
return integral;
|
||||
}
|
||||
|
||||
@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("oneNodeScore", getOneNodeScore())
|
||||
.append("twoNodeScore", getTwoNodeScore())
|
||||
.append("competitionGroup", getCompetitionGroup())
|
||||
.append("status", getStatus())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("remark", getRemark())
|
||||
.append("threeNodeScore", getThreeNodeScore())
|
||||
.append("fourNodeScore", getFourNodeScore())
|
||||
.append("fiveNodeScore", getFiveNodeScore())
|
||||
.append("sixNodeScore", getSixNodeScore())
|
||||
.append("integral", getIntegral())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
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_team_group
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionTeamGroup extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 赛事id(competition的ID) */
|
||||
@Excel(name = "赛事id(competition的ID)")
|
||||
private Long competitionId;
|
||||
|
||||
/** 球队所属的组 */
|
||||
@Excel(name = "球队所属的组")
|
||||
private String competitionGroup;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdTime;
|
||||
|
||||
/** 状态 0=申请,1=同意;-1=驳回 */
|
||||
@Excel(name = "状态 0=申请,1=同意;-1=驳回")
|
||||
private Integer status;
|
||||
|
||||
/** 最后修改时间 */
|
||||
@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;
|
||||
|
||||
/** 循环赛编排状态 0=未编排,1=已编排 */
|
||||
@Excel(name = "循环赛编排状态 0=未编排,1=已编排")
|
||||
private Long isCycle;
|
||||
|
||||
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 setCompetitionGroup(String competitionGroup)
|
||||
{
|
||||
this.competitionGroup = competitionGroup;
|
||||
}
|
||||
|
||||
public String getCompetitionGroup()
|
||||
{
|
||||
return competitionGroup;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime)
|
||||
{
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime()
|
||||
{
|
||||
return createdTime;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
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 setIsCycle(Long isCycle)
|
||||
{
|
||||
this.isCycle = isCycle;
|
||||
}
|
||||
|
||||
public Long getIsCycle()
|
||||
{
|
||||
return isCycle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("competitionId", getCompetitionId())
|
||||
.append("competitionGroup", getCompetitionGroup())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("status", getStatus())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("remark", getRemark())
|
||||
.append("isCycle", getIsCycle())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 赛会中-球队VS球队关系对象 competition_team_vs_team
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-11-03
|
||||
*/
|
||||
public class CompetitionTeamVsTeam extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 赛事id(competition的ID) */
|
||||
@Excel(name = "赛事id(competition的ID)")
|
||||
private Long competitionId;
|
||||
|
||||
/** 主队ID */
|
||||
@Excel(name = "主队ID")
|
||||
private Long mainTeamId;
|
||||
|
||||
/** 主队名 */
|
||||
@Excel(name = "主队名")
|
||||
private String mainTeamName;
|
||||
|
||||
/** 客队ID */
|
||||
@Excel(name = "客队ID")
|
||||
private Long guestTeamId;
|
||||
|
||||
/** 客队名 */
|
||||
@Excel(name = "客队名")
|
||||
private String guestTeamName;
|
||||
|
||||
/** 比赛时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "比赛时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date competitionTime;
|
||||
|
||||
/** 球场ID */
|
||||
@Excel(name = "球场ID")
|
||||
private Long buildingId;
|
||||
|
||||
/** 球场名称 */
|
||||
@Excel(name = "球场名称")
|
||||
private String buildingName;
|
||||
|
||||
/** 比赛地址 */
|
||||
@Excel(name = "比赛地址")
|
||||
private String competitionAddress;
|
||||
|
||||
/** 比赛分组(A,B,C) */
|
||||
@Excel(name = "比赛分组(A,B,C)")
|
||||
private String competitionGroup;
|
||||
|
||||
/** 状态-1=已取消; 0=报名中,1=比赛中;2=已结束 */
|
||||
@Excel(name = "状态-1=已取消; 0=报名中,1=比赛中;2=已结束")
|
||||
private Integer status;
|
||||
|
||||
/** 创建时间 */
|
||||
@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 Long mainTeamScore;
|
||||
|
||||
/** 客队得分 */
|
||||
@Excel(name = "客队得分")
|
||||
private Long guestTeamScore;
|
||||
|
||||
/** 比赛类型:循环赛,淘汰赛 */
|
||||
@Excel(name = "比赛类型:循环赛,淘汰赛")
|
||||
private String vsType;
|
||||
|
||||
/** 系统生成的赛程的批次号 */
|
||||
@Excel(name = "系统生成的赛程的批次号")
|
||||
private String batchNumber;
|
||||
|
||||
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 setMainTeamId(Long mainTeamId)
|
||||
{
|
||||
this.mainTeamId = mainTeamId;
|
||||
}
|
||||
|
||||
public Long getMainTeamId()
|
||||
{
|
||||
return mainTeamId;
|
||||
}
|
||||
public void setMainTeamName(String mainTeamName)
|
||||
{
|
||||
this.mainTeamName = mainTeamName;
|
||||
}
|
||||
|
||||
public String getMainTeamName()
|
||||
{
|
||||
return mainTeamName;
|
||||
}
|
||||
public void setGuestTeamId(Long guestTeamId)
|
||||
{
|
||||
this.guestTeamId = guestTeamId;
|
||||
}
|
||||
|
||||
public Long getGuestTeamId()
|
||||
{
|
||||
return guestTeamId;
|
||||
}
|
||||
public void setGuestTeamName(String guestTeamName)
|
||||
{
|
||||
this.guestTeamName = guestTeamName;
|
||||
}
|
||||
|
||||
public String getGuestTeamName()
|
||||
{
|
||||
return guestTeamName;
|
||||
}
|
||||
public void setCompetitionTime(Date competitionTime)
|
||||
{
|
||||
this.competitionTime = competitionTime;
|
||||
}
|
||||
|
||||
public Date getCompetitionTime()
|
||||
{
|
||||
return competitionTime;
|
||||
}
|
||||
public void setBuildingId(Long buildingId)
|
||||
{
|
||||
this.buildingId = buildingId;
|
||||
}
|
||||
|
||||
public Long getBuildingId()
|
||||
{
|
||||
return buildingId;
|
||||
}
|
||||
public void setBuildingName(String buildingName)
|
||||
{
|
||||
this.buildingName = buildingName;
|
||||
}
|
||||
|
||||
public String getBuildingName()
|
||||
{
|
||||
return buildingName;
|
||||
}
|
||||
public void setCompetitionAddress(String competitionAddress)
|
||||
{
|
||||
this.competitionAddress = competitionAddress;
|
||||
}
|
||||
|
||||
public String getCompetitionAddress()
|
||||
{
|
||||
return competitionAddress;
|
||||
}
|
||||
public void setCompetitionGroup(String competitionGroup)
|
||||
{
|
||||
this.competitionGroup = competitionGroup;
|
||||
}
|
||||
|
||||
public String getCompetitionGroup()
|
||||
{
|
||||
return competitionGroup;
|
||||
}
|
||||
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 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 setMainTeamScore(Long mainTeamScore)
|
||||
{
|
||||
this.mainTeamScore = mainTeamScore;
|
||||
}
|
||||
|
||||
public Long getMainTeamScore()
|
||||
{
|
||||
return mainTeamScore;
|
||||
}
|
||||
public void setGuestTeamScore(Long guestTeamScore)
|
||||
{
|
||||
this.guestTeamScore = guestTeamScore;
|
||||
}
|
||||
|
||||
public Long getGuestTeamScore()
|
||||
{
|
||||
return guestTeamScore;
|
||||
}
|
||||
public void setVsType(String vsType)
|
||||
{
|
||||
this.vsType = vsType;
|
||||
}
|
||||
|
||||
public String getVsType()
|
||||
{
|
||||
return vsType;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("competitionId", getCompetitionId())
|
||||
.append("mainTeamId", getMainTeamId())
|
||||
.append("mainTeamName", getMainTeamName())
|
||||
.append("guestTeamId", getGuestTeamId())
|
||||
.append("guestTeamName", getGuestTeamName())
|
||||
.append("competitionTime", getCompetitionTime())
|
||||
.append("buildingId", getBuildingId())
|
||||
.append("buildingName", getBuildingName())
|
||||
.append("competitionAddress", getCompetitionAddress())
|
||||
.append("competitionGroup", getCompetitionGroup())
|
||||
.append("status", getStatus())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("lastUpdatedTime", getLastUpdatedTime())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("modifiedBy", getModifiedBy())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.append("remark", getRemark())
|
||||
.append("mainTeamScore", getMainTeamScore())
|
||||
.append("guestTeamScore", getGuestTeamScore())
|
||||
.append("vsType", getVsType())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.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>
|
||||
Reference in New Issue
Block a user