mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 03:44:57 +08:00
修改
This commit is contained in:
@@ -3,6 +3,10 @@ server:
|
|||||||
port: 8080
|
port: 8080
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 30MB
|
||||||
|
max-request-size: 100MB
|
||||||
application:
|
application:
|
||||||
# 应用名称
|
# 应用名称
|
||||||
name: ruoyi-gateway
|
name: ruoyi-gateway
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import com.ruoyi.common.core.constant.Constants;
|
import com.ruoyi.common.core.constant.Constants;
|
||||||
import com.ruoyi.common.core.exception.CheckedException;
|
import com.ruoyi.common.core.exception.CheckedException;
|
||||||
import com.ruoyi.common.core.exception.ServiceException;
|
import com.ruoyi.common.core.exception.ServiceException;
|
||||||
|
import com.ruoyi.common.core.exception.UtilException;
|
||||||
import com.ruoyi.common.core.utils.uuid.IdUtils;
|
import com.ruoyi.common.core.utils.uuid.IdUtils;
|
||||||
import com.ruoyi.common.redis.service.RedisService;
|
import com.ruoyi.common.redis.service.RedisService;
|
||||||
import com.ruoyi.common.security.utils.SecurityUtils;
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
||||||
@@ -305,7 +306,7 @@ public class CompetitionController extends BaseController
|
|||||||
return AjaxResult.success(smsResponse);
|
return AjaxResult.success(smsResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/teamEnrollExcleImport")
|
@PostMapping(value = "/teamEnrollExcleImport",produces = "application/json;charset=utf-8")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@ApiOperation(value = ApiTerminal.wxMiniProgram+"导入球队报名excel(包含图片)")
|
@ApiOperation(value = ApiTerminal.wxMiniProgram+"导入球队报名excel(包含图片)")
|
||||||
public AjaxResult teamEnrollExcleImport(
|
public AjaxResult teamEnrollExcleImport(
|
||||||
@@ -347,7 +348,7 @@ public class CompetitionController extends BaseController
|
|||||||
//读图片--结束
|
//读图片--结束
|
||||||
// printImg(maplist);
|
// printImg(maplist);
|
||||||
//获得数据的总行数
|
//获得数据的总行数
|
||||||
int totalRowNum = sheet.getLastRowNum();
|
int totalRowNum = sheet.getPhysicalNumberOfRows();
|
||||||
//todo 获取赛事编码
|
//todo 获取赛事编码
|
||||||
Row row1 = sheet.getRow(1);
|
Row row1 = sheet.getRow(1);
|
||||||
Cell cell1 = row1.getCell(5);
|
Cell cell1 = row1.getCell(5);
|
||||||
@@ -434,7 +435,7 @@ public class CompetitionController extends BaseController
|
|||||||
//保存图片
|
//保存图片
|
||||||
PictureData pictureData = maplist.get("5_0");
|
PictureData pictureData = maplist.get("5_0");
|
||||||
if (pictureData == null) {
|
if (pictureData == null) {
|
||||||
throw new CheckedException("球队logo不能为空");
|
throw new UtilException("球队logo不能为空");
|
||||||
}
|
}
|
||||||
byte[] data = pictureData.getData();
|
byte[] data = pictureData.getData();
|
||||||
//得到保存的file
|
//得到保存的file
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public interface CompetitionMembersMapper
|
|||||||
|
|
||||||
List<CompetitionMembersVo> getJoinCompetitionMembersPage(CompetitionMembersVo entity);
|
List<CompetitionMembersVo> getJoinCompetitionMembersPage(CompetitionMembersVo entity);
|
||||||
|
|
||||||
void deleteByMembers(Long competitionId, Long teamOfId);
|
void deleteByMembers(@Param(value = "competitionId")Long competitionId,@Param(value = "teamOfId") Long teamOfId);
|
||||||
|
|
||||||
List<CompetitionMembersVo> getCompetitionMembersByCompetitionId(Long competitionId);
|
List<CompetitionMembersVo> getCompetitionMembersByCompetitionId(Long competitionId);
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ mybatis:
|
|||||||
mapUnderscoreToCamelCase: true
|
mapUnderscoreToCamelCase: true
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 30MB
|
||||||
|
max-request-size: 100MB
|
||||||
application:
|
application:
|
||||||
# 应用名称
|
# 应用名称
|
||||||
name: ruoyi-system
|
name: ruoyi-system
|
||||||
|
|||||||
Reference in New Issue
Block a user