| @@ -6,9 +6,9 @@ jdbc_password=123456 | |||
| #redis | |||
| redis_host=192.168.160.152 | |||
| redis_host=192.168.18.148 | |||
| redis_port=6379 | |||
| redis_pass=xdf@eastday88 | |||
| redis_pass=123456 | |||
| ##web | |||
| druidManagementAllow=192.168.1.193 | |||
| druidManagementDeny=192.168.1.102 | |||
| @@ -6,6 +6,7 @@ package com.xdf.creative.base.params.creative; | |||
| import com.baomidou.mybatisplus.annotation.IdType; | |||
| import com.baomidou.mybatisplus.annotation.TableId; | |||
| import com.xdf.creative.base.params.QueryParam; | |||
| import io.swagger.annotations.ApiModel; | |||
| import io.swagger.annotations.ApiModelProperty; | |||
| import lombok.Data; | |||
| @@ -15,16 +16,16 @@ import lombok.experimental.Accessors; | |||
| import java.util.Date; | |||
| /** | |||
| *@ClassName InnovationApplyParam | |||
| *@Description TODO | |||
| *@Author Kxg | |||
| *@Date 2022/9/19 10:48 | |||
| *@Version 1.0 | |||
| * @ClassName InnovationApplyQueryParam | |||
| * @Description TODO | |||
| * @Author Kxg | |||
| * @Date 2022/9/19 10:48 | |||
| * @Version 1.0 | |||
| **/ | |||
| @Data | |||
| @Accessors(chain = true) | |||
| @ApiModel(value = "InfoWordManageQueryParam对象", description = "词管理查询参数") | |||
| public class InnovationApplyQueryParam { | |||
| @ApiModel(value = "InnovationApplyQueryParam对象", description = "创新创业大赛查询参数") | |||
| public class InnovationApplyQueryParam extends QueryParam { | |||
| private static final long serialVersionUID = 1L; | |||
| @@ -1,9 +1,15 @@ | |||
| package com.hhrchina.web.mybatisPlus.temporaryFile.controller; | |||
| package com.xdf.creative.module.controller; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import com.xdf.creative.base.params.creative.InnovationApplyQueryParam; | |||
| import com.xdf.creative.module.entity.InnovationApply; | |||
| import com.xdf.creative.module.service.InnovationApplyService; | |||
| import com.xdf.creative.util.page.ApiResult; | |||
| import com.xdf.creative.util.page.PageTool; | |||
| import io.swagger.annotations.ApiOperation; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import org.springframework.stereotype.Controller; | |||
| import javax.annotation.Resource; | |||
| /** | |||
| * <p> | |||
| @@ -13,8 +19,30 @@ import org.springframework.stereotype.Controller; | |||
| * @author KanXianggui | |||
| * @since 2022-09-16 | |||
| */ | |||
| @Controller | |||
| @RequestMapping("/temporaryFile/innovationApply") | |||
| @RestController | |||
| @RequestMapping("/innovationApply") | |||
| public class InnovationApplyController { | |||
| @Resource | |||
| InnovationApplyService innovationApplyService; | |||
| /** | |||
| * 添加报名通道表 | |||
| */ | |||
| @GetMapping("/getInfoInnovationApplyPageList") | |||
| @ApiOperation(value = "添加innovationApply对象", notes = "添加报名通道表", response = ApiResult.class) | |||
| public ApiResult<Boolean> getInfoInnovationApplyPageList(@RequestBody InnovationApplyQueryParam innovationApplyQueryParam) { | |||
| PageTool<InnovationApply> innovationApplyPageList = innovationApplyService.getInfoInnovationApplyPageList(innovationApplyQueryParam); | |||
| return ApiResult.ok(innovationApplyPageList); | |||
| } | |||
| /** | |||
| * 添加报名通道表 | |||
| */ | |||
| @PostMapping("/add") | |||
| @ApiOperation(value = "添加innovationApply对象", notes = "添加报名通道表", response = ApiResult.class) | |||
| public ApiResult<Boolean> addInnovationApply(@RequestBody InnovationApply innovationApply) { | |||
| boolean flag = innovationApplyService.save(innovationApply); | |||
| return ApiResult.result(flag); | |||
| } | |||
| } | |||
| @@ -1,10 +1,15 @@ | |||
| package com.hhrchina.web.mybatisPlus.temporaryFile.pojo; | |||
| package com.xdf.creative.module.entity; | |||
| import com.baomidou.mybatisplus.annotation.TableName; | |||
| import com.baomidou.mybatisplus.annotation.IdType; | |||
| import java.util.Date; | |||
| import com.baomidou.mybatisplus.annotation.TableId; | |||
| import java.io.Serializable; | |||
| import com.xdf.creative.base.params.QueryParam; | |||
| import io.swagger.annotations.ApiModel; | |||
| import io.swagger.annotations.ApiModelProperty; | |||
| import lombok.Data; | |||
| @@ -21,7 +26,7 @@ import lombok.EqualsAndHashCode; | |||
| @Data | |||
| @EqualsAndHashCode(callSuper = false) | |||
| @TableName("web_innovation_apply") | |||
| @ApiModel(value="InnovationApply对象", description="文创上海创新创业报名通道表") | |||
| @ApiModel(value = "InnovationApply对象", description = "文创上海创新创业报名通道表") | |||
| public class InnovationApply implements Serializable { | |||
| private static final long serialVersionUID = 1L; | |||
| @@ -1,7 +1,7 @@ | |||
| package com.hhrchina.web.mybatisPlus.temporaryFile.mapper; | |||
| package com.xdf.creative.module.mapper; | |||
| import com.hhrchina.web.mybatisPlus.temporaryFile.pojo.InnovationApply; | |||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
| import com.xdf.creative.module.entity.InnovationApply; | |||
| /** | |||
| * <p> | |||
| @@ -1,7 +1,9 @@ | |||
| package com.hhrchina.web.mybatisPlus.temporaryFile.service; | |||
| package com.xdf.creative.module.service; | |||
| import com.hhrchina.web.mybatisPlus.temporaryFile.pojo.InnovationApply; | |||
| import com.baomidou.mybatisplus.extension.service.IService; | |||
| import com.xdf.creative.base.params.creative.InnovationApplyQueryParam; | |||
| import com.xdf.creative.module.entity.InnovationApply; | |||
| import com.xdf.creative.util.page.PageTool; | |||
| /** | |||
| * <p> | |||
| @@ -13,4 +15,11 @@ import com.baomidou.mybatisplus.extension.service.IService; | |||
| */ | |||
| public interface InnovationApplyService extends IService<InnovationApply> { | |||
| /** | |||
| * 获取分页对象 | |||
| * | |||
| * @param innovationApplyQueryParam | |||
| * @return | |||
| */ | |||
| PageTool<InnovationApply> getInfoInnovationApplyPageList(InnovationApplyQueryParam innovationApplyQueryParam); | |||
| } | |||
| @@ -97,6 +97,9 @@ public class ConfigPathInterceptor implements HandlerInterceptor { | |||
| ApiResult result = new ApiResult(); | |||
| //token失效 先检查是否存在 不存在则直接令牌过去重新登录 | |||
| OauthTokenQueryVo oauthTokenQueryVo= oauthTokenService.getOauthTokenByToken(token); | |||
| if (jwtProperties==null){ | |||
| setJwtPropertiesBean(); | |||
| } | |||
| if (JwtUtil.isExpired(token)) { | |||
| //先查token是否存在 | |||
| if(null==oauthTokenQueryVo){ | |||
| @@ -106,8 +109,6 @@ public class ConfigPathInterceptor implements HandlerInterceptor { | |||
| getResponseResult(response, result); | |||
| return false; | |||
| }else{ | |||
| setJwtPropertiesBean(); | |||
| if(new Date().getTime()-oauthTokenQueryVo.getUpdateTime().getTime()>jwtProperties.getExpireSecond()*1000){ | |||
| result.setCode(ApiCode.TOKEN_INVALID.getCode()); | |||
| result.setMsg(ApiCode.TOKEN_INVALID.getMsg()); | |||
| @@ -41,7 +41,8 @@ auth_skip_urls=\ | |||
| /infoContent/getInfoHtml,\ | |||
| /infoContent/getHtmlByInfo,\ | |||
| /wxGroup/getWebList,\ | |||
| /webInitiationApply/getExportPageList | |||
| /webInitiationApply/getExportPageList,\ | |||
| /innovationApply/**\ | |||
| upload_basePath:@upload_basePath@ | |||
| wx_basePath=wx/ | |||