| | |
| | | /** |
| | | * 参赛数据id |
| | | */ |
| | | private Long id; |
| | | private Long participantId; |
| | | /** |
| | | * 参赛人员类型 |
| | | */ |
| | | private Integer participantType; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | |
| | | @ResponseBody |
| | | @PostMapping("/addWorldCup") |
| | | public ResultUtil addWorldCup(WorldCup worldCup, String stores){ |
| | | worldCup.setStatus(1); |
| | | if(worldCup.getStartTime().before(new Date())){ |
| | | worldCup.setStatus(2); |
| | | }else{ |
| | | worldCup.setStatus(1); |
| | | } |
| | | worldCup.setCreateTime(new Date()); |
| | | worldCup.setMatchNumber(0); |
| | | Integer integer = worldCupClient.addWorldCup(worldCup); |
| | |
| | | if(worldCup1.getStartTime().before(DateUtil.getDate())){ |
| | | return ResultUtil.error("赛事已开始,不能编辑"); |
| | | } |
| | | if(worldCup.getStartTime().before(new Date())){ |
| | | worldCup.setStatus(2); |
| | | }else{ |
| | | worldCup.setStatus(1); |
| | | } |
| | | worldCupClient.editWorldCup(worldCup); |
| | | worldCupStoreClient.delWorldCupStore(worldCup.getId()); |
| | | JSONArray jsonArray = JSON.parseArray(stores); |
| | |
| | | |
| | | |
| | | @RequestMapping("/openWorldCupGameStatisticsListInfo") |
| | | public String openWorldCupGameStatisticsListInfo(Model model, Integer id){ |
| | | model.addAttribute("id", id); |
| | | public String openWorldCupGameStatisticsListInfo(Model model, Long participantId, Integer participantType){ |
| | | model.addAttribute("participantId", participantId); |
| | | model.addAttribute("participantType", participantType); |
| | | return PREFIX + "worldCupGameStatisticsListInfo.html"; |
| | | } |
| | | |
| | |
| | | text-indent: 10px; |
| | | } |
| | | .el-upload__input{ |
| | | display: none; |
| | | display: none !important; |
| | | } |
| | | </style> |
| | | <div class="ibox float-e-margins"> |
| | |
| | | text-indent: 10px; |
| | | } |
| | | .el-upload__input{ |
| | | display: none; |
| | | display: none !important; |
| | | } |
| | | </style> |
| | | <div class="ibox float-e-margins"> |
| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${id}"> |
| | | <input type="hidden" id="participantId" value="${participantId}"> |
| | | <input type="hidden" id="participantType" value="${participantType}"> |
| | | <div class="row"> |
| | | <div class="col-sm-3"> |
| | | <#NameCon id="name" name="用户姓名:" /> |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | 'intro': intro, |
| | | 'content': content, |
| | | 'stores': JSON.stringify(WorldCupInfo.stores) |
| | | } |
| | | if(null != registrationClosingTime && '' != registrationClosingTime){ |
| | | data.registrationClosingTime = registrationClosingTime; |
| | | } |
| | | |
| | | //提交信息 |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | 'content': content, |
| | | 'stores': JSON.stringify(WorldCupInfo.stores) |
| | | } |
| | | if(null != registrationClosingTime && '' != registrationClosingTime){ |
| | | data.registrationClosingTime = registrationClosingTime; |
| | | } |
| | | |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/worldCup/editWorldCup", function (res) { |
| | |
| | | |
| | | WorldCupGameStatisticsListInfo.search = function () { |
| | | var queryData = {}; |
| | | queryData['id'] = $("#id").val(); |
| | | queryData['participantId'] = $("#participantId").val(); |
| | | queryData['participantType'] = $("#participantType").val(); |
| | | queryData['name'] = $("#name").val(); |
| | | WorldCupGameStatisticsListInfo.table.refresh({query: queryData}); |
| | | }; |
| | |
| | | var table = new BSTable(WorldCupGameStatisticsListInfo.id, "/worldCupRecords/worldCupGameStatisticsListInfo", defaultColunms); |
| | | table.setPaginationType("server"); |
| | | table.setQueryParams({ |
| | | 'id': $('#id').val() |
| | | 'participantId': $('#participantId').val(), |
| | | 'participantType': $('#participantType').val() |
| | | }) |
| | | WorldCupGameStatisticsListInfo.table = table.init(); |
| | | |