Browse Source

20201010_pt合并到master

master
zy_Java 5 years ago
parent
commit
3f7c8673f2
  1. 4
      cloudutil/src/main/java/com/ccsens/cloudutil/aspect/LogAspect.java
  2. 10
      cloudutil/src/main/java/com/ccsens/cloudutil/aspect/MustLoginAspect.java
  3. 60
      cloudutil/src/main/java/com/ccsens/cloudutil/bean/tall/dto/WpsDto.java
  4. 15
      cloudutil/src/main/java/com/ccsens/cloudutil/bean/tall/vo/WpsVo.java
  5. 72
      cloudutil/src/main/java/com/ccsens/cloudutil/feign/TallFeignClient.java
  6. 6
      cloudutil/src/main/resources/application-util-prod.yml
  7. 64
      cloudutil/src/main/resources/application-util-test.yml
  8. 2
      ct/src/main/java/com/ccsens/ct/config/SpringConfig.java
  9. 5
      ct/src/main/resources/application-test.yml
  10. 9
      ct/src/main/resources/druid-test.yml
  11. 25
      game/src/main/java/com/ccsens/game/api/ClientController.java
  12. 37
      game/src/main/java/com/ccsens/game/api/ScreenController.java
  13. 17
      game/src/main/java/com/ccsens/game/bean/dto/ClientDto.java
  14. 20
      game/src/main/java/com/ccsens/game/bean/dto/ScreenDto.java
  15. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/AckMessageDto.java
  16. 6
      game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java
  17. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageWithAnswerDto.java
  18. 18
      game/src/main/java/com/ccsens/game/bean/dto/message/BaseMessageDto.java
  19. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/ChromeMessageDto.java
  20. 5
      game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageCountOut.java
  21. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageWithChangeStatusIn.java
  22. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageWithGetUrlDto.java
  23. 3
      game/src/main/java/com/ccsens/game/bean/dto/message/HeartMessageDto.java
  24. 5
      game/src/main/java/com/ccsens/game/bean/dto/message/PPTCtlMessageDto.java
  25. 11
      game/src/main/java/com/ccsens/game/bean/po/GameGroup.java
  26. 70
      game/src/main/java/com/ccsens/game/bean/po/GameGroupExample.java
  27. 44
      game/src/main/java/com/ccsens/game/bean/po/GameRecord.java
  28. 240
      game/src/main/java/com/ccsens/game/bean/po/GameRecordExample.java
  29. 21
      game/src/main/java/com/ccsens/game/bean/vo/ClientVo.java
  30. 32
      game/src/main/java/com/ccsens/game/bean/vo/ScreenVo.java
  31. 12
      game/src/main/java/com/ccsens/game/config/SpringConfig.java
  32. 17
      game/src/main/java/com/ccsens/game/mq/GameDto.java
  33. 106
      game/src/main/java/com/ccsens/game/mq/GameScoreListener.java
  34. 2
      game/src/main/java/com/ccsens/game/netty/ChannelManager.java
  35. 4
      game/src/main/java/com/ccsens/game/netty/wsserver/WebSocketDecoder.java
  36. 28
      game/src/main/java/com/ccsens/game/netty/wsserver/WebSocketHandler.java
  37. 27
      game/src/main/java/com/ccsens/game/persist/dao/GameGroupDao.java
  38. 162
      game/src/main/java/com/ccsens/game/service/ClientService.java
  39. 23
      game/src/main/java/com/ccsens/game/service/IClientService.java
  40. 9
      game/src/main/java/com/ccsens/game/service/IMessageService.java
  41. 24
      game/src/main/java/com/ccsens/game/service/IScreenService.java
  42. 22
      game/src/main/java/com/ccsens/game/service/MessageService.java
  43. 988
      game/src/main/java/com/ccsens/game/service/ScreenService.java
  44. 21
      game/src/main/java/com/ccsens/game/util/GameConstant.java
  45. 59
      game/src/main/java/com/ccsens/game/util/SendMsg.java
  46. 5
      game/src/main/resources/application-dev.yml
  47. 37
      game/src/main/resources/application-prod.yml
  48. 16
      game/src/main/resources/application-test.yml
  49. 4
      game/src/main/resources/application.yml
  50. 94
      game/src/main/resources/archive/SQ.txt
  51. BIN
      game/src/main/resources/archive/流程图.png
  52. 3
      game/src/main/resources/druid-test.yml
  53. 59
      game/src/main/resources/mapper_dao/GameGroupDao.xml
  54. 25
      game/src/main/resources/mapper_raw/GameGroupMapper.xml
  55. 77
      game/src/main/resources/mapper_raw/GameRecordMapper.xml
  56. 2
      game/src/main/resources/mbg.xml
  57. 18
      health/src/main/java/com/ccsens/health/api/DebugController.java
  58. 7
      health/src/main/java/com/ccsens/health/api/WxTest.java
  59. 2
      health/src/main/java/com/ccsens/health/config/SpringConfig.java
  60. 4
      health/src/main/java/com/ccsens/health/service/AsyncService.java
  61. 3
      health/src/main/java/com/ccsens/health/service/ClockService.java
  62. 3
      health/src/main/java/com/ccsens/health/service/WeiXinService.java
  63. 2
      ht/src/main/java/com/ccsens/ht/service/DoctorService.java
  64. 10
      ht/src/main/resources/application-prod.yml
  65. 173
      mt/src/main/java/com/ccsens/mt/api/CompeteController.java
  66. 51
      mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java
  67. 38
      mt/src/main/java/com/ccsens/mt/api/DebugController.java
  68. 77
      mt/src/main/java/com/ccsens/mt/api/DepartmentController.java
  69. 84
      mt/src/main/java/com/ccsens/mt/api/FileController.java
  70. 51
      mt/src/main/java/com/ccsens/mt/api/LevelController.java
  71. 1
      mt/src/main/java/com/ccsens/mt/api/ScoreController.java
  72. 126
      mt/src/main/java/com/ccsens/mt/api/TopicController.java
  73. 56
      mt/src/main/java/com/ccsens/mt/api/VideoController.java
  74. 66
      mt/src/main/java/com/ccsens/mt/api/VoteController.java
  75. 231
      mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java
  76. 111
      mt/src/main/java/com/ccsens/mt/bean/dto/LevelDto.java
  77. 23
      mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java
  78. 126
      mt/src/main/java/com/ccsens/mt/bean/dto/TopicDto.java
  79. 42
      mt/src/main/java/com/ccsens/mt/bean/dto/VideoDto.java
  80. 8
      mt/src/main/java/com/ccsens/mt/bean/dto/VoteDto.java
  81. 21
      mt/src/main/java/com/ccsens/mt/bean/dto/message/BaseMessageDto.java
  82. 106
      mt/src/main/java/com/ccsens/mt/bean/po/CommonFile.java
  83. 711
      mt/src/main/java/com/ccsens/mt/bean/po/CommonFileExample.java
  84. 84
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java
  85. 571
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java
  86. 95
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyRole.java
  87. 621
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyRoleExample.java
  88. 128
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java
  89. 821
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java
  90. 194
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java
  91. 1221
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java
  92. 95
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerFamily.java
  93. 631
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerFamilyExample.java
  94. 161
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java
  95. 991
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java
  96. 95
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectGroup.java
  97. 631
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectGroupExample.java
  98. 128
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java
  99. 801
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java
  100. 139
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java

4
cloudutil/src/main/java/com/ccsens/cloudutil/aspect/LogAspect.java

@ -49,7 +49,9 @@ public class LogAspect {
}
@Pointcut("execution(* com.ccsens.tall.web..*(..)) || execution(* com.ccsens.ht.api..*(..))")
@Pointcut("execution(* com.ccsens.tall.web..*(..)) || execution(* com.ccsens.ht.api..*(..))" +
" || execution(* com.ccsens.mt.api..*(..)) || execution(* com.ccsens.game.api..*(..))" +
" || execution(* com.ccsens.health.api..*(..)) || execution(* com.ccsens.pims.api..*(..))")
public void logAdvice(){
}

10
cloudutil/src/main/java/com/ccsens/cloudutil/aspect/MustLoginAspect.java

@ -1,5 +1,6 @@
package com.ccsens.cloudutil.aspect;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.cloudutil.annotation.MustLogin;
@ -52,7 +53,10 @@ public class MustLoginAspect {
QueryDto dto = args == null || args.length < 1 ? null : (QueryDto) args[0];
//获取userId
JsonResponse response = tallFeignClient.getUserIdByToken(authHeader);
JsonResponse response = null;
if(StrUtil.isNotEmpty(authHeader)){
response = tallFeignClient.getUserIdByToken(authHeader);
}
log.info("{}获取userId:{}", authHeader, response);
Signature signature = pjp.getSignature();
@ -62,7 +66,7 @@ public class MustLoginAspect {
if (mustLoginAnnotation == null) {
log.info("不是必须登录,有token,则添加userId,没有则不添加");
if (response.getCode().intValue() == CodeEnum.SUCCESS.getCode().intValue() && response.getData() != null) {
if (response != null && response.getCode().intValue() == CodeEnum.SUCCESS.getCode().intValue() && response.getData() != null) {
JSONObject json = JSONObject.parseObject(JSON.toJSONString(response.getData()));
Long userId = json.getLong("id");
if (dto != null) {
@ -73,7 +77,7 @@ public class MustLoginAspect {
return result;
}
//必须登录,未登录直接返回未登录相关信息
if (response.getCode().intValue() != CodeEnum.SUCCESS.getCode().intValue()) {
if (response == null || response.getCode().intValue() != CodeEnum.SUCCESS.getCode().intValue()) {
return response;
}
if (response.getData() == null) {

60
cloudutil/src/main/java/com/ccsens/cloudutil/bean/tall/dto/WpsDto.java

@ -0,0 +1,60 @@
package com.ccsens.cloudutil.bean.tall.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Map;
@Data
public class WpsDto {
@Data
@ApiModel("业务和WPS")
public static class Business{
@ApiModelProperty("业务ID")
private Long businessId;
@ApiModelProperty("wps文件ID")
private Long wpsFileId;
@ApiModelProperty("业务类型 0项目WBS 1交付物 2会议记录。后面是pims内的表:3产品依据表,4产品收入表,5成本表,6损益表,7现金流表")
private Byte businessType;
@ApiModelProperty("用户ID")
private Long userId;
@ApiModelProperty("文件名")
private String fileName;
@ApiModelProperty("文件路径,默认在WebConstant.UPLOAD_PATH_BASE下")
private String filePath;
@ApiModelProperty("文件大小")
private Long fileSize;
@ApiModelProperty("操作类型 值:WebConstant Wps USER_OPERATION... ")
private byte operation;
@ApiModelProperty("操作权限 WebConstant Wps PROJECT_PRIVILEGE...")
private byte privilege;
@ApiModelProperty("操作权限查询路径")
private String privilegeQueryUrl;
}
@Data
@ApiModel("查找wps文件路径")
public static class VisitWpsUrl{
@NotNull
@ApiModelProperty("业务ID")
private Long businessId;
@NotNull
@ApiModelProperty("业务类型")
private byte businessType;
@NotNull
@ApiModelProperty("userId")
private Long userId;
@ApiModelProperty("访问路径")
private Map<String, String> params;
}
@Data
@ApiModel("异步通知")
public static class Async{
@ApiModelProperty("文件ID")
private Long fileId;
}
}

15
cloudutil/src/main/java/com/ccsens/cloudutil/bean/tall/vo/WpsVo.java

@ -0,0 +1,15 @@
package com.ccsens.cloudutil.bean.tall.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class WpsVo {
@Data
public static class BusinessFileIdAndPath{
@ApiModelProperty("业务id")
private Long businessId;
@ApiModelProperty("文件路径")
private String filePath;
}
}

72
cloudutil/src/main/java/com/ccsens/cloudutil/feign/TallFeignClient.java

@ -4,23 +4,20 @@ import com.ccsens.cloudutil.bean.QueryParam;
import com.ccsens.cloudutil.bean.tall.dto.LogDto;
import com.ccsens.cloudutil.bean.tall.dto.MemberRoleDto;
import com.ccsens.cloudutil.bean.tall.dto.UserDto;
import com.ccsens.cloudutil.bean.tall.vo.MemberVo;
import com.ccsens.cloudutil.bean.tall.vo.PluginVo;
import com.ccsens.cloudutil.bean.tall.vo.TaskVo;
import com.ccsens.cloudutil.bean.tall.vo.UserVo;
import com.ccsens.cloudutil.bean.tall.dto.WpsDto;
import com.ccsens.cloudutil.bean.tall.vo.*;
import com.ccsens.util.JsonResponse;
import feign.Param;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.configurationprocessor.json.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;
/**
* @description:
@ -116,7 +113,7 @@ public interface TallFeignClient {
*
* @return
*/
@GetMapping("/users/userInfo")
@GetMapping("/users/getUserInfo")
JsonResponse<MemberVo.MemberInfo> getUserByUserId(@RequestParam(name = "userId") Long userId);
@ -156,6 +153,36 @@ public interface TallFeignClient {
@GetMapping("/plugins/task")
Long getTaskIdByTaskPluginId(@RequestParam(name = "taskPluginId") Long taskPluginId);
/**
* 保存WPS业务和文件记录
*/
@RequestMapping("/wps/saveWps")
JsonResponse saveWpsFile(WpsDto.Business business);
/**
* 保存WPS业务和文件记录
*/
@RequestMapping("/wps/visitUrls")
List<String> queryVisitUrls(WpsDto.VisitWpsUrl visitWpsUrl);
/**
* 根据wpsId查询wps文件路径
*/
@GetMapping("/wps/wpsId")
JsonResponse<WpsVo.BusinessFileIdAndPath> getPathByWpsId(@RequestParam(name = "wpsId")Long wpsId);
/**
* 查找wps文件路径
*/
@GetMapping("/v1/3rd/getFilePath")
String getWpsFilePath(@RequestParam(name = "businessId") Long businessId,@RequestParam(name = "businessType") byte businessType);
/**
* 通过userId呵taskId查找用户信息
*/
@GetMapping("/users/memberByTask")
JsonResponse<MemberVo.MemberInfo> getMemberInfoByUserIdAndTaskId(@RequestParam(name = "userId") Long userId,@RequestParam(name = "taskId") Long taskId);
}
@Slf4j
@ -243,6 +270,31 @@ class TallFeignClientFallBack implements FallbackFactory<TallFeignClient> {
public Long getTaskIdByTaskPluginId(Long taskPluginId) {
return null;
}
@Override
public JsonResponse saveWpsFile(WpsDto.Business business) {
return JsonResponse.newInstance().fail();
}
@Override
public List<String> queryVisitUrls(WpsDto.VisitWpsUrl visitWpsUrl) {
return null;
}
@Override
public JsonResponse<WpsVo.BusinessFileIdAndPath> getPathByWpsId(Long async) {
return JsonResponse.newInstance().fail();
}
@Override
public String getWpsFilePath(Long businessId, byte businessType) {
return null;
}
@Override
public JsonResponse<MemberVo.MemberInfo> getMemberInfoByUserIdAndTaskId(Long userId, Long taskId) {
return JsonResponse.newInstance().fail();
}
};
}

6
cloudutil/src/main/resources/application-util-prod.yml

@ -20,8 +20,10 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
# defaultZone: http://admin:admin@140.143.228.3:7010/eureka/
defaultZone: http://admin:admin@81.70.54.64:7010/eureka/
# defaultZone: http://admin:admin@81.70.54.64:7010/eureka/
defaultZone: http://admin:admin@192.144.182.42:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true

64
cloudutil/src/main/resources/application-util-test.yml

@ -1,3 +1,65 @@
#<<<<<<< HEAD
##服务端点暴露
#management:
# endpoints:
# web:
# exposure:
# # 暴露xxx端点,如需暴露多个,用,分隔;如需暴露所有端点,用'*'
# include: auditevents,caches,conditions,flyway,health,heapdump,httptrace,info,integrationgraph,jolokia,logfile,loggers,liquibase,metrics,mappings,prometheus,scheduledtasks,sessions,shutdown,threaddump,hystrix.stream
## # 不暴露哪些端点
## exclude: env,beans,configprops
# endpoint:
# health:
# # 是否展示健康检查详情
# show-details: always
# health:
# redis:
# enabled: false
##eureka注册
#eureka:
# client:
# service-url:
# # 指定eureka server通信地址,注意/eureka/小尾巴不能少
# #defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
## defaultZone: http://admin:admin@49.233.89.188:7010/eureka/
# defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
# instance:
# # 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
# prefer-ip-address: true
# metadata-map:
# management:
# context-path: ${server.servlet.context-path:}/actuator
# home-page-url-path: ${server.servlet.context-path:}/
# status-page-url-path: ${server.servlet.context-path:}/actuator/info
# health-check-url-path: ${server.servlet.context-path:}/actuator/health
#feign:
# client:
# config:
# default:
# connectTime: 5000
# readTimeout: 5000
# # NONE【性能最佳,适用于生产】:不记录任何日志(默认值)。
# # BASIC【适用于生产环境追踪问题】:仅记录请求方法、URL、响应状态代码以及执行时间。
# # HEADERS:记录BASIC级别的基础上,记录请求和响应的header。
# # FULL【比较适用于开发及测试环境定位问题】:记录请求和响应的header、body和元数据
# loggerLevel: basic
# hystrix:
# enabled: true
## sleuth
#logging:
# level:
# root: info
# org.springframework.cloud.sleuth: DEBUG
#spring:
## zipkin:
## base-url: http://49.233.89.188:9411
## sleuth:
## sampler:
## # 采样率,模式0.1,也就是10%,为了便于观察效果,改为1.0,也就是100%。生产环境建议保持默认。
## probability: 1.0
# cloud:
# inetutils:
#=======
#服务端点暴露
management:
endpoints:
@ -20,8 +82,8 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
# defaultZone: http://admin:admin@49.233.89.188:7010/eureka/
defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
# defaultZone: http://admin:admin@test.tall.wiki:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true

2
ct/src/main/java/com/ccsens/ct/config/SpringConfig.java

@ -111,7 +111,7 @@ public class SpringConfig implements WebMvcConfigurer {
.addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler("/uploads/**")
.addResourceLocations("file:///home/cloud/tall/uploads/");
.addResourceLocations("file:///home/cloud/ct/uploads/");
//super.addResourceHandlers(registry);
}

5
ct/src/main/resources/application-test.yml

@ -8,7 +8,8 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: api.ccsens.com
# host: api.ccsens.com
host: 127.0.0.1
password: 111111
port: 5672
username: admin
@ -28,4 +29,4 @@ swagger:
enable: true
eureka:
instance:
ip-address: 49.233.89.188
ip-address: 192.168.0.99

9
ct/src/main/resources/druid-test.yml

@ -15,7 +15,8 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password:
# password:
password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -27,7 +28,11 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
<<<<<<< HEAD
=======
# url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8
>>>>>>> pt
url: jdbc:mysql://test.tall.wiki/ct?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_GAME
env: CCSENS_TALL

25
game/src/main/java/com/ccsens/game/api/ClientController.java

@ -2,13 +2,13 @@ package com.ccsens.game.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.ScreenDto;
import com.ccsens.game.bean.vo.ClientVo;
import com.ccsens.game.bean.vo.ScreenVo;
import com.ccsens.game.service.IClientService;
import com.ccsens.game.service.IScreenService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@ -30,13 +30,26 @@ public class ClientController {
@Autowired
private IScreenService screenService;
@ApiOperation(value = "查看组内排行榜", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "groupMembers", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<ClientVo.MemberInfo>> groupMembers(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GroupRanking> params) throws Exception {
log.info("查看组内排行榜:{}",params);
PageInfo<ClientVo.MemberInfo> rankingAll = clientService.groupMembers(params.getParam());
log.info("查询组内排行榜结束");
return JsonResponse.newInstance().ok(rankingAll);
}
@ApiOperation(value = "查看全部排行榜", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "members", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<ClientVo.RankingAll> startAgain(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GatRanking> params) throws Exception {
public JsonResponse<ClientVo.RankingAll> members(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GatRanking> params) throws Exception {
log.info("查看全部排行榜:{}",params);
ClientVo.RankingAll rankingAll = clientService.getRankingAll(params);
log.info("查询排行榜结束");
return JsonResponse.newInstance().ok(rankingAll);
}
@ -46,8 +59,9 @@ public class ClientController {
})
@RequestMapping(value = "joinGame", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<ClientVo.Join> joinGame(@ApiParam @Validated @RequestBody QueryDto<ClientDto.Join> params) throws Exception {
log.info("查看全部排行榜:{}",params);
log.info("参加游戏:{}",params);
ClientVo.Join join = clientService.join(params.getParam(), params.getUserId());
log.info("参加游戏结果:{}", join);
return JsonResponse.newInstance().ok(join);
}
@ -57,7 +71,6 @@ public class ClientController {
@RequestMapping(value = "activityRule", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<String>> getGameActivityRule(@ApiParam @RequestParam Long recordId) throws Exception {
log.info("获取游戏规则:{}",recordId);
List<String> gameActivityRule = screenService.getGameActivityRule(screenService.getGameTypeId(recordId));
return JsonResponse.newInstance().ok(gameActivityRule);
}
@ -89,6 +102,7 @@ public class ClientController {
public JsonResponse<List<ScreenVo.Group>> getGroupByRecordId(@ApiParam @RequestParam Long recordId) throws Exception {
log.info("根据游戏id获取分组信息:{}",recordId);
List<ScreenVo.Group> groupList = screenService.getGroupByRecordId(recordId);
log.info("分组查询结束");
return JsonResponse.newInstance().ok(groupList);
}
@ -97,8 +111,9 @@ public class ClientController {
})
@RequestMapping(value = "task", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public JsonResponse<ScreenVo.RecordInfo> getRecordByTaskId(@ApiParam @RequestParam Long taskId,String gameType) throws Exception {
log.info("根据游戏id获取分组信息:{}",taskId);
log.info("根据任务id获取游戏记录id:{}",taskId);
ScreenVo.RecordInfo recordInfo = screenService.getRecordByTaskId(taskId,gameType);
log.info("游戏信息:{}", recordInfo);
return JsonResponse.newInstance().ok(recordInfo);
}
}

37
game/src/main/java/com/ccsens/game/api/ScreenController.java

@ -7,23 +7,30 @@ import com.ccsens.game.bean.vo.ScreenVo;
import com.ccsens.game.service.IScreenService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.annotation.Resource;
import java.util.List;
/**
* 大屏相关接口
* @author zy
*/
@Slf4j
@Api(tags = "大屏相关api" , description = "ScreenController")
@RestController
@RequestMapping("/screen")
public class ScreenController {
@Autowired
@Resource
private IScreenService screenService;
@MustLogin
@ -76,4 +83,26 @@ public class ScreenController {
return JsonResponse.newInstance().ok(url);
}
@Login
@ApiOperation(value = "手机端再玩一次", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "startAgainByPhone", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<String> startAgainByPhone(@ApiParam @Validated @RequestBody QueryDto<ScreenDto.StartAgainByPhone> params) throws Exception {
log.info("手机端再玩一次:{}",params);
Long recordId = screenService.startAgainByPhone(params);
return JsonResponse.newInstance().ok(recordId);
}
@Login
@ApiOperation(value = "自定义游戏时查询游戏配置信息excel", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/config", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<String>> getConfig(@ApiParam @Validated @RequestBody QueryDto<ScreenDto.GetConfig> params) throws Exception {
log.info("查询游戏配置信息excel:{}",params);
List<String> url = screenService.getConfig(params);
return JsonResponse.newInstance().ok(url);
}
}

17
game/src/main/java/com/ccsens/game/bean/dto/ClientDto.java

@ -23,9 +23,9 @@ public class ClientDto {
@NotNull(message = "请选择的时间")
@ApiModelProperty("本地时间")
private Long localTime;
@ApiModelProperty
@NotNull(message = "请选择项目")
private Long projectId;
// @ApiModelProperty("不再传参")
// @NotNull(message = "请选择项目")
// private Long projectId;
@ApiModelProperty("分组id,不是分组游戏则为空")
private Long groupId;
}
@ -70,5 +70,16 @@ public class ClientDto {
private int pageSize;
}
@Data
@ApiModel("getRanking")
public static class GroupRanking{
@ApiModelProperty("分组id")
private Long groupId;
@ApiModelProperty("页数")
private int pageNum;
@ApiModelProperty("每页多少条")
private int pageSize;
}
}

20
game/src/main/java/com/ccsens/game/bean/dto/ScreenDto.java

@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
@ -35,6 +36,14 @@ public class ScreenDto {
private Long projectId;
}
@Data
@ApiModel("手机端再玩一次")
public static class StartAgainByPhone{
@NotEmpty
@ApiModelProperty("游戏类型")
private String gameType;
}
@Data
@ApiModel
public static class MemberRecordAndTime{
@ -57,5 +66,16 @@ public class ScreenDto {
private Byte startStatus;
}
@Data
@ApiModel("查看配置文件")
public static class GetConfig{
@NotNull
@ApiModelProperty("任务id")
private Long taskId;
@NotNull
@ApiModelProperty("要创建的小游戏的类型 例如: SQ:数钱 SP:赛跑 BH:拔河")
private String gameType;
}
}

3
game/src/main/java/com/ccsens/game/bean/dto/message/AckMessageDto.java

@ -7,8 +7,7 @@ import lombok.Setter;
@Data
public class AckMessageDto extends BaseMessageDto {
@Setter
@Getter
@lombok.Data
public static class Data {
Long msgId;
}

6
game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java

@ -2,14 +2,12 @@ package com.ccsens.game.bean.dto.message;
import com.ccsens.util.WebConstant;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
public class AuthMessageDto extends BaseMessageDto {
@Setter
@Getter
@lombok.Data
public static class Data{
//游戏id
private String id;
private String userId;
private String channelId;

3
game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageWithAnswerDto.java

@ -7,8 +7,7 @@ import lombok.Setter;
@Data
public class AuthMessageWithAnswerDto extends BaseMessageDto{
@Setter
@Getter
@lombok.Data
public static class Data{
private Boolean success;
private String phase;

18
game/src/main/java/com/ccsens/game/bean/dto/message/BaseMessageDto.java

@ -1,8 +1,13 @@
package com.ccsens.game.bean.dto.message;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.util.bean.message.common.InMessage;
import lombok.Data;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Data
public class BaseMessageDto {
@ -32,4 +37,17 @@ public class BaseMessageDto {
private MessageUser sender;
private List<MessageUser> receivers;
// private Object data;
public Set<String> receiversTransTos() {
Set<String> tos = new HashSet<>();
if (CollectionUtil.isEmpty(receivers)) {
return tos;
}
receivers.forEach(receiver -> {
InMessage.To to = new InMessage.To(receiver.getUserId());
tos.add(JSONObject.toJSONString(to));
});
return tos;
}
}

3
game/src/main/java/com/ccsens/game/bean/dto/message/ChromeMessageDto.java

@ -10,8 +10,7 @@ import lombok.Setter;
*/
@Data
public class ChromeMessageDto extends BaseMessageDto{
@Setter
@Getter
@lombok.Data
public static class Data{
private Long projectId;
private Long recordId;

5
game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageCountOut.java

@ -2,12 +2,9 @@ package com.ccsens.game.bean.dto.message;
import com.ccsens.util.WebConstant;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
public class GameMessageCountOut extends BaseMessageDto {
@Setter
@Getter
@lombok.Data
public static class Data{
private int totalTimes;
private int totalScore;

3
game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageWithChangeStatusIn.java

@ -7,8 +7,7 @@ import lombok.Setter;
@Data
public class GameMessageWithChangeStatusIn extends BaseMessageDto{
@Setter
@Getter
@lombok.Data
public static class Data{
private String recordId;
private int gameStatus;

3
game/src/main/java/com/ccsens/game/bean/dto/message/GameMessageWithGetUrlDto.java

@ -7,8 +7,7 @@ import lombok.Setter;
@Data
public class GameMessageWithGetUrlDto extends BaseMessageDto {
@Setter
@Getter
@lombok.Data
public static class Data{
private Long recordId;
private String url;

3
game/src/main/java/com/ccsens/game/bean/dto/message/HeartMessageDto.java

@ -7,8 +7,7 @@ import lombok.Setter;
@Data
public class HeartMessageDto extends BaseMessageDto{
@Setter
@Getter
@lombok.Data
public static class Data{
private int major;
private int minor;

5
game/src/main/java/com/ccsens/game/bean/dto/message/PPTCtlMessageDto.java

@ -2,16 +2,13 @@ package com.ccsens.game.bean.dto.message;
import com.ccsens.util.WebConstant;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
/**
* @author __zHangSan
*/
@Data
public class PPTCtlMessageDto extends BaseMessageDto{
@Setter
@Getter
@lombok.Data
public static class Data{
/**
* Supported Operation: up,down,begin,end

11
game/src/main/java/com/ccsens/game/bean/po/GameGroup.java

@ -18,6 +18,8 @@ public class GameGroup implements Serializable {
private Byte recStatus;
private String headPortraitUrl;
private static final long serialVersionUID = 1L;
public Long getId() {
@ -76,6 +78,14 @@ public class GameGroup implements Serializable {
this.recStatus = recStatus;
}
public String getHeadPortraitUrl() {
return headPortraitUrl;
}
public void setHeadPortraitUrl(String headPortraitUrl) {
this.headPortraitUrl = headPortraitUrl == null ? null : headPortraitUrl.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@ -89,6 +99,7 @@ public class GameGroup implements Serializable {
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", headPortraitUrl=").append(headPortraitUrl);
sb.append("]");
return sb.toString();
}

70
game/src/main/java/com/ccsens/game/bean/po/GameGroupExample.java

@ -544,6 +544,76 @@ public class GameGroupExample {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlIsNull() {
addCriterion("head_portrait_url is null");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlIsNotNull() {
addCriterion("head_portrait_url is not null");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlEqualTo(String value) {
addCriterion("head_portrait_url =", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlNotEqualTo(String value) {
addCriterion("head_portrait_url <>", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlGreaterThan(String value) {
addCriterion("head_portrait_url >", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlGreaterThanOrEqualTo(String value) {
addCriterion("head_portrait_url >=", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlLessThan(String value) {
addCriterion("head_portrait_url <", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlLessThanOrEqualTo(String value) {
addCriterion("head_portrait_url <=", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlLike(String value) {
addCriterion("head_portrait_url like", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlNotLike(String value) {
addCriterion("head_portrait_url not like", value, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlIn(List<String> values) {
addCriterion("head_portrait_url in", values, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlNotIn(List<String> values) {
addCriterion("head_portrait_url not in", values, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlBetween(String value1, String value2) {
addCriterion("head_portrait_url between", value1, value2, "headPortraitUrl");
return (Criteria) this;
}
public Criteria andHeadPortraitUrlNotBetween(String value1, String value2) {
addCriterion("head_portrait_url not between", value1, value2, "headPortraitUrl");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

44
game/src/main/java/com/ccsens/game/bean/po/GameRecord.java

@ -28,6 +28,14 @@ public class GameRecord implements Serializable {
private Byte recStatus;
private Byte gameGroup;
private Integer duration;
private Integer memberLimit;
private Byte rankRule;
private static final long serialVersionUID = 1L;
public Long getId() {
@ -126,6 +134,38 @@ public class GameRecord implements Serializable {
this.recStatus = recStatus;
}
public Byte getGameGroup() {
return gameGroup;
}
public void setGameGroup(Byte gameGroup) {
this.gameGroup = gameGroup;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public Integer getMemberLimit() {
return memberLimit;
}
public void setMemberLimit(Integer memberLimit) {
this.memberLimit = memberLimit;
}
public Byte getRankRule() {
return rankRule;
}
public void setRankRule(Byte rankRule) {
this.rankRule = rankRule;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@ -144,6 +184,10 @@ public class GameRecord implements Serializable {
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", gameGroup=").append(gameGroup);
sb.append(", duration=").append(duration);
sb.append(", memberLimit=").append(memberLimit);
sb.append(", rankRule=").append(rankRule);
sb.append("]");
return sb.toString();
}

240
game/src/main/java/com/ccsens/game/bean/po/GameRecordExample.java

@ -844,6 +844,246 @@ public class GameRecordExample {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andGameGroupIsNull() {
addCriterion("game_group is null");
return (Criteria) this;
}
public Criteria andGameGroupIsNotNull() {
addCriterion("game_group is not null");
return (Criteria) this;
}
public Criteria andGameGroupEqualTo(Byte value) {
addCriterion("game_group =", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupNotEqualTo(Byte value) {
addCriterion("game_group <>", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupGreaterThan(Byte value) {
addCriterion("game_group >", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupGreaterThanOrEqualTo(Byte value) {
addCriterion("game_group >=", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupLessThan(Byte value) {
addCriterion("game_group <", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupLessThanOrEqualTo(Byte value) {
addCriterion("game_group <=", value, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupIn(List<Byte> values) {
addCriterion("game_group in", values, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupNotIn(List<Byte> values) {
addCriterion("game_group not in", values, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupBetween(Byte value1, Byte value2) {
addCriterion("game_group between", value1, value2, "gameGroup");
return (Criteria) this;
}
public Criteria andGameGroupNotBetween(Byte value1, Byte value2) {
addCriterion("game_group not between", value1, value2, "gameGroup");
return (Criteria) this;
}
public Criteria andDurationIsNull() {
addCriterion("duration is null");
return (Criteria) this;
}
public Criteria andDurationIsNotNull() {
addCriterion("duration is not null");
return (Criteria) this;
}
public Criteria andDurationEqualTo(Integer value) {
addCriterion("duration =", value, "duration");
return (Criteria) this;
}
public Criteria andDurationNotEqualTo(Integer value) {
addCriterion("duration <>", value, "duration");
return (Criteria) this;
}
public Criteria andDurationGreaterThan(Integer value) {
addCriterion("duration >", value, "duration");
return (Criteria) this;
}
public Criteria andDurationGreaterThanOrEqualTo(Integer value) {
addCriterion("duration >=", value, "duration");
return (Criteria) this;
}
public Criteria andDurationLessThan(Integer value) {
addCriterion("duration <", value, "duration");
return (Criteria) this;
}
public Criteria andDurationLessThanOrEqualTo(Integer value) {
addCriterion("duration <=", value, "duration");
return (Criteria) this;
}
public Criteria andDurationIn(List<Integer> values) {
addCriterion("duration in", values, "duration");
return (Criteria) this;
}
public Criteria andDurationNotIn(List<Integer> values) {
addCriterion("duration not in", values, "duration");
return (Criteria) this;
}
public Criteria andDurationBetween(Integer value1, Integer value2) {
addCriterion("duration between", value1, value2, "duration");
return (Criteria) this;
}
public Criteria andDurationNotBetween(Integer value1, Integer value2) {
addCriterion("duration not between", value1, value2, "duration");
return (Criteria) this;
}
public Criteria andMemberLimitIsNull() {
addCriterion("member_limit is null");
return (Criteria) this;
}
public Criteria andMemberLimitIsNotNull() {
addCriterion("member_limit is not null");
return (Criteria) this;
}
public Criteria andMemberLimitEqualTo(Integer value) {
addCriterion("member_limit =", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitNotEqualTo(Integer value) {
addCriterion("member_limit <>", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitGreaterThan(Integer value) {
addCriterion("member_limit >", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitGreaterThanOrEqualTo(Integer value) {
addCriterion("member_limit >=", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitLessThan(Integer value) {
addCriterion("member_limit <", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitLessThanOrEqualTo(Integer value) {
addCriterion("member_limit <=", value, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitIn(List<Integer> values) {
addCriterion("member_limit in", values, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitNotIn(List<Integer> values) {
addCriterion("member_limit not in", values, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitBetween(Integer value1, Integer value2) {
addCriterion("member_limit between", value1, value2, "memberLimit");
return (Criteria) this;
}
public Criteria andMemberLimitNotBetween(Integer value1, Integer value2) {
addCriterion("member_limit not between", value1, value2, "memberLimit");
return (Criteria) this;
}
public Criteria andRankRuleIsNull() {
addCriterion("rank_rule is null");
return (Criteria) this;
}
public Criteria andRankRuleIsNotNull() {
addCriterion("rank_rule is not null");
return (Criteria) this;
}
public Criteria andRankRuleEqualTo(Byte value) {
addCriterion("rank_rule =", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleNotEqualTo(Byte value) {
addCriterion("rank_rule <>", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleGreaterThan(Byte value) {
addCriterion("rank_rule >", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleGreaterThanOrEqualTo(Byte value) {
addCriterion("rank_rule >=", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleLessThan(Byte value) {
addCriterion("rank_rule <", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleLessThanOrEqualTo(Byte value) {
addCriterion("rank_rule <=", value, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleIn(List<Byte> values) {
addCriterion("rank_rule in", values, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleNotIn(List<Byte> values) {
addCriterion("rank_rule not in", values, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleBetween(Byte value1, Byte value2) {
addCriterion("rank_rule between", value1, value2, "rankRule");
return (Criteria) this;
}
public Criteria andRankRuleNotBetween(Byte value1, Byte value2) {
addCriterion("rank_rule not between", value1, value2, "rankRule");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

21
game/src/main/java/com/ccsens/game/bean/vo/ClientVo.java

@ -59,6 +59,10 @@ public class ClientVo {
private Long startLocalTime;
@ApiModelProperty("客户端结束时间")
private Long endLocalTime;
@ApiModelProperty("玩家当前的分数")
private int score = 0;
@ApiModelProperty("玩家当前的次数")
private int times = 0;
}
@Data
@ApiModel("ClientVoCompletedData")
@ -85,6 +89,23 @@ public class ClientVo {
private Integer groupSort;
}
@Data
@ApiModel("分组的信息")
public static class GroupVo{
@ApiModelProperty("分组的id")
private Long groupId;
@ApiModelProperty("分组的名称")
private String groupName;
@ApiModelProperty("头像")
private String headPortraitUrl;
@ApiModelProperty("该组的总分/均分")
private int groupScore;
@ApiModelProperty("该组总次数")
private int groupTimes;
@ApiModelProperty("code")
private String code;
}
@Data
@ApiModel("RankingAll")
public static class RankingAll{

32
game/src/main/java/com/ccsens/game/bean/vo/ScreenVo.java

@ -1,11 +1,9 @@
package com.ccsens.game.bean.vo;
import com.ccsens.game.bean.po.GameUserJoin;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
@Data
@ -13,7 +11,7 @@ public class ScreenVo {
@Data
@ApiModel
public static class UrlVo{
@ApiModelProperty("大屏的路径")
@ApiModelProperty("游戏的id")
private Long id;
@ApiModelProperty("大屏的路径")
private String url;
@ -26,6 +24,8 @@ public class ScreenVo {
public static class GameInfoVo{
@ApiModelProperty("二维码路径")
private String QRCodeUrl;
@ApiModelProperty("游戏时长")
private int time;
@ApiModelProperty("游戏状态 0未开始 1准备中 2进行中 3已结束")
private Byte gameStatus;
@ApiModelProperty("可玩总次数")
@ -33,9 +33,9 @@ public class ScreenVo {
@ApiModelProperty("已用次数")
private int usedCount ;
@ApiModelProperty("总人数")
private int totalMembers ;
private int totalMembers;
@ApiModelProperty("分组信息")
private List<GroupVo> groups ;
private List<GroupVo> groups;
@ApiModelProperty("未开始")
private PendingData pendingData;
@ -55,6 +55,8 @@ public class ScreenVo {
private Long groupId ;
@ApiModelProperty("分组名称")
private String groupName ;
@ApiModelProperty("头像")
private String headPortraitUrl;
@ApiModelProperty("该组参赛总人数")
private int totalGroupMembers ;
}
@ -92,8 +94,10 @@ public class ScreenVo {
private int totalTimes;
@ApiModelProperty("总分数")
private int totalScore;
@ApiModelProperty("平均每人多少")
@ApiModelProperty("平均每人多少")
private int averageTimes;
@ApiModelProperty("平均多少分")
private int averageScore;
@ApiModelProperty("平均次数超过百分之多少人")
private int over;
@ApiModelProperty("总人数")
@ -156,14 +160,24 @@ public class ScreenVo {
private Long groupId;
@ApiModelProperty("分组的名称")
private String groupName;
@ApiModelProperty("头像")
private String headPortraitUrl;
@ApiModelProperty("该组的总分/均分")
private Integer score;
@ApiModelProperty("该组的总次数/均次数")
private Integer times;
@ApiModelProperty("该组的总分")
private int score;
@ApiModelProperty("该组总人数")
private int totalMembers;
private Integer totalScore;
@ApiModelProperty("该组的总次数")
private Integer totalTimes;
@ApiModelProperty("该组总人数")
private Integer totalMembers;
@ApiModelProperty("code")
private String code;
}
@Data
@ApiModel
public static class RecordInfo{

12
game/src/main/java/com/ccsens/game/config/SpringConfig.java

@ -78,12 +78,12 @@ public class SpringConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
// .allowedMethods("*") // 允许提交请求的方法,*表示全部允许
// .allowedOrigins("*") // #允许向该服务器提交请求的URI,*表示全部允许
// .allowCredentials(true) // 允许cookies跨域
// .allowedHeaders("*") // #允许访问的头信息,*表示全部
// .maxAge(18000L); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了
.allowedOrigins("*") // #允许向该服务器提交请求的URI,*表示全部允许
.allowCredentials(true) // 允许cookies跨域
.allowedHeaders("*") // #允许访问的头信息,*表示全部
.maxAge(18000L); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了
}
@ -116,7 +116,7 @@ public class SpringConfig implements WebMvcConfigurer {
.addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler("/uploads/**")
.addResourceLocations("file:///home/cloud/tall/uploads/");
.addResourceLocations("file:///home/cloud/game/uploads/");
//super.addResourceHandlers(registry);
}

17
game/src/main/java/com/ccsens/game/mq/GameDto.java

@ -0,0 +1,17 @@
package com.ccsens.game.mq;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* @description:
* @author: whj
* @time: 2020/6/5 16:19
*/
@ApiModel("游戏相关的参数")
public class GameDto {
@Data
public static class GameMsg{
private Long recordId;
}
}

106
game/src/main/java/com/ccsens/game/mq/GameScoreListener.java

@ -0,0 +1,106 @@
package com.ccsens.game.mq;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.message.GameMessageCountOut;
import com.ccsens.game.util.GameConstant;
import com.ccsens.util.RedisUtil;
import com.ccsens.util.bean.message.common.InMessage;
import com.ccsens.util.bean.message.common.MessageConstant;
import com.ccsens.util.bean.message.common.OutMessage;
import com.ccsens.util.bean.message.common.OutMessageSet;
import com.ccsens.util.config.RabbitMQConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
/**
* @description:
* @author: whj
* @time: 2020/6/5 14:30
*/
@Slf4j
@Component
@RabbitListener(queues = RabbitMQConfig.GAME_SCORE)
public class GameScoreListener {
@Autowired
private RedisUtil redisUtil;
@Autowired
private AmqpTemplate rabbitTemplate;
@RabbitHandler
public void process(String messageJson) throws IOException {
log.info("计算分数 {}",messageJson);
OutMessageSet outMessageSet = JSONObject.parseObject(messageJson, OutMessageSet.class);
Set<OutMessage> messageSet = outMessageSet.getMessageSet();
if (CollectionUtil.isEmpty(messageSet)) {
return;
}
messageSet.forEach(outMessage -> {
InMessage.To to = JSONObject.parseObject(outMessage.getFrom(), InMessage.To.class);
Long userId = to.getId();
GameDto.GameMsg gameMsg = JSONObject.parseObject(outMessage.getData(), GameDto.GameMsg.class);
Long recordId = gameMsg.getRecordId();
log.info("统计分数:{},{}",userId, recordId);
GameMessageCountOut gameMessageCountOut = clientAddTimes(userId,recordId);
// 发送给消息系统
InMessage inMessage = new InMessage();
Set<String> tos = new HashSet<>();
tos.add(JSONObject.toJSONString(new InMessage.To(userId)));
inMessage.setToDomain(MessageConstant.DomainType.User);
inMessage.setTos(tos);
inMessage.setData(JSONObject.toJSONString(gameMessageCountOut));
// rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, inMessage);
rabbitTemplate.convertAndSend(RabbitMQConfig.GAME_SCORE, inMessage);
});
}
public GameMessageCountOut clientAddTimes(Long userId, Long recordId) {
GameMessageCountOut gameMessageCountOut = new GameMessageCountOut();
log.info("userId:{}", userId);
if (userId == null || recordId == null) {
return gameMessageCountOut;
}
String gameUserKey = GameConstant.generateGameKey(recordId);
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(gameUserKey, 0, -1);
if (CollectionUtil.isEmpty(typedTuples)) {
return gameMessageCountOut;
}
for(ZSetOperations.TypedTuple<Object> type : typedTuples) {
ClientDto.RedisUser user = JSON.parseObject((String)type.getValue(), ClientDto.RedisUser.class);
if (user.getUserId().longValue() == userId.longValue()) {
int score = type.getScore().intValue();
String userStatus = GameConstant.generateGameStatusKey(recordId);
String gameStausObj = (String)redisUtil.get(userStatus);
if (StrUtil.isBlank(gameStausObj) || gameStausObj.equals(String.valueOf(GameConstant.GAME_COMPLETED))){
gameMessageCountOut = new GameMessageCountOut(score/100, score);
return gameMessageCountOut;
}
score += 100;
redisUtil.zsSet(gameUserKey, JSON.toJSONString(user), score);
gameMessageCountOut.getData().setTotalScore(score);
gameMessageCountOut.getData().setTotalTimes(score/100);
return gameMessageCountOut;
}
}
return gameMessageCountOut;
}
}

2
game/src/main/java/com/ccsens/game/netty/ChannelManager.java

@ -386,7 +386,7 @@ public class ChannelManager {
}
public static String getRecordIdByChannel(Channel channel) {
System.out.println(rawChannels.containsKey(channel) ? rawChannels.get(channel).getRecordId() : null);
log.info(rawChannels.containsKey(channel) ? rawChannels.get(channel).getRecordId() : null);
return rawChannels.containsKey(channel) ? rawChannels.get(channel).getRecordId() : null;
}
}

4
game/src/main/java/com/ccsens/game/netty/wsserver/WebSocketDecoder.java

@ -6,6 +6,7 @@ import com.ccsens.util.WebConstant;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -15,6 +16,7 @@ import java.util.List;
/**
* @author wei
*/
@Slf4j
public class WebSocketDecoder extends MessageToMessageDecoder<TextWebSocketFrame> {
private static Logger logger = LoggerFactory.getLogger(WebSocketDecoder.class);
@ -37,7 +39,7 @@ protected void decode(ChannelHandlerContext channelHandlerContext, TextWebSocket
String text = msg.text();
BaseMessageDto baseMessage = JacksonUtil.jsonToBean(text,BaseMessageDto.class);
WebConstant.Message_Type type = WebConstant.Message_Type.phaseOf(baseMessage.getType());
System.out.println(text);
log.info(text);
switch (type){
case Heart: {
out.add(JacksonUtil.jsonToBean(text, HeartMessageDto.class));

28
game/src/main/java/com/ccsens/game/netty/wsserver/WebSocketHandler.java

@ -4,8 +4,11 @@ package com.ccsens.game.netty.wsserver;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.message.*;
import com.ccsens.game.bean.po.GameGroup;
import com.ccsens.game.bean.po.GameRecord;
import com.ccsens.game.netty.ChannelManager;
import com.ccsens.game.service.IClientService;
import com.ccsens.game.service.IMessageService;
@ -91,7 +94,7 @@ public class WebSocketHandler extends SimpleChannelInboundHandler<BaseMessageDto
log.info("接受到消息的时间+++++++++++++++++++++++{}:{},{}",baseMessage.getType(), new Date(), System.currentTimeMillis());
MessageConstant.GameClientMessageType gameClientMessageType = MessageConstant.GameClientMessageType.valueOf(baseMessage.getType());
System.out.println(baseMessage);
log.info(String.valueOf(baseMessage));
try {
switch (gameClientMessageType) {
case Heart: {
@ -149,10 +152,17 @@ public class WebSocketHandler extends SimpleChannelInboundHandler<BaseMessageDto
public GameMessageCountOut clientAddTimes(String userId, String recordId) {
GameMessageCountOut gameMessageCountOut = new GameMessageCountOut();
log.info("userId:{}", userId);
if (StrUtil.isBlank(userId) || StrUtil.isBlank(userId)) {
if (StrUtil.isBlank(userId) || StrUtil.isBlank(recordId)) {
return gameMessageCountOut;
}
Long recordIdLong = Long.parseLong(recordId);
String gameRecordStr = (String) redisUtil.get(GameConstant.generateGameStatusKey(recordIdLong));
if(StrUtil.isEmpty(gameRecordStr)){
return gameMessageCountOut;
}
GameRecord record = JSON.parseObject(gameRecordStr, GameRecord.class);
String gameUserKey = GameConstant.generateGameKey(recordIdLong);
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(gameUserKey, 0, -1);
@ -163,14 +173,22 @@ public class WebSocketHandler extends SimpleChannelInboundHandler<BaseMessageDto
ClientDto.RedisUser user = JSON.parseObject((String)type.getValue(), ClientDto.RedisUser.class);
if (user.getUserId().longValue() == Long.parseLong(userId)) {
int score = type.getScore().intValue();
String userStatus = GameConstant.generateGameStatusKey(recordIdLong);
String gameStausObj = (String)redisUtil.get(userStatus);
if (StrUtil.isBlank(gameStausObj) || gameStausObj.equals(String.valueOf(GameConstant.GAME_COMPLETED))){
if (record.getGameStatus() == GameConstant.GAME_COMPLETED){
gameMessageCountOut = new GameMessageCountOut(score/100, score);
return gameMessageCountOut;
}
score += 100;
redisUtil.zsSet(gameUserKey, JSON.toJSONString(user), score);
String groupKey = recordId + "_group";
Set<Object> objectSet = redisUtil.zsGet(groupKey, 0, -1);
objectSet.forEach(o -> {
GameGroup gameGroup = JSONObject.parseObject((String) o, GameGroup.class);
if(gameGroup.getId().longValue() == user.getGroupId().longValue()){
Double o1 = (Double)redisUtil.zsGetScore(groupKey, o);
redisUtil.zsSet(groupKey, o, o1 + 100,600);
}
});
gameMessageCountOut.getData().setTotalScore(score);
gameMessageCountOut.getData().setTotalTimes(score/100);
return gameMessageCountOut;

27
game/src/main/java/com/ccsens/game/persist/dao/GameGroupDao.java

@ -1,9 +1,36 @@
package com.ccsens.game.persist.dao;
import com.ccsens.game.bean.po.GameGroup;
import com.ccsens.game.bean.vo.ClientVo;
import com.ccsens.game.bean.vo.ScreenVo;
import com.ccsens.game.persist.mapper.GameGroupMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface GameGroupDao extends GameGroupMapper {
/**
* 查询分组信息
* @param id 游戏ID
* @return 分组信息
*/
List<ScreenVo.GroupVo> queryGroups(@Param("gameId") Long id);
/**
* 查询各组分数次数
* @param groupId 分组ID
* @param gameId 游戏ID
* @param rankRule 排序规则
* @return 分组分数次数
*/
List<ClientVo.GroupVo> queryScores(@Param("groupId") long groupId, @Param("gameId") long gameId, @Param("rankRule") byte rankRule);
/**
* 查询组内成员排名
* @param groupId 组ID
* @return 成员信息
*/
List<ClientVo.MemberInfo> groupMemberRank(@Param("groupId") Long groupId);
}

162
game/src/main/java/com/ccsens/game/service/ClientService.java

@ -8,27 +8,33 @@ import com.alibaba.fastjson.JSON;
import com.ccsens.cloudutil.bean.tall.vo.MemberVo;
import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.message.*;
import com.ccsens.game.bean.dto.message.GameMessageCountOut;
import com.ccsens.game.bean.po.*;
import com.ccsens.game.bean.vo.ClientVo;
import com.ccsens.game.bean.vo.ScreenVo;
import com.ccsens.game.persist.dao.*;
import com.ccsens.game.util.GameConstant;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.RedisUtil;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.ccsens.util.bean.dto.QueryDto;
import java.util.*;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @description:
* @description: 游戏客户端接口
* @author: wuHuiJuan
* @create: 2019/12/26 15:01
*/
@ -36,25 +42,25 @@ import java.util.*;
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class ClientService implements IClientService {
@Autowired
@Resource
private GameUserPayDao gameUserPayDao;
@Autowired
@Resource
private GameTypeDao gameTypeDao;
@Autowired
@Resource
private GameUserJoinDao gameUserJoinDao;
@Autowired
@Resource
private GameUserJoinGroupDao gameUserJoinGroupDao;
@Autowired
@Resource
private GameGroupDao gameGroupDao;
@Autowired
@Resource
private GameUserJoinGroupDao userJoinGroupDao;
@Autowired
@Resource
private Snowflake snowflake;
@Autowired
@Resource
private RedisUtil redisUtil;
@Autowired
@Resource
private TallFeignClient tallFeignClient;
@Autowired
@Resource
private IScreenService screenService;
@ -66,17 +72,27 @@ public class ClientService implements IClientService {
log.info("{}时间差:{}", userId, timeMore);
//获取游戏信息
GameRecord gameRecord = screenService.getGameRecord(join.getUrlId());
//获取游戏的购买记录和类型
GameUserPay gameUserPay = gameUserPayDao.selectByPrimaryKey(gameRecord.getUserPayId());
GameType gameType = gameTypeDao.selectByPrimaryKey(gameUserPay.getGameTypeId());
Boolean isGroup = gameType.getIsGroup() == 1;
log.info("游戏信息:{}", gameRecord);
if (gameRecord == null) {
log.info("未找到游戏信息");
throw new BaseException(CodeEnum.PARAM_ERROR);
}
boolean isGroup = gameRecord.getGameGroup() == GameConstant.GAME_GROUP;
if (isGroup) {
if (ObjectUtil.isNull(join.getGroupId())) {
log.info("分组信息为空");
throw new BaseException(CodeEnum.GROUP_NOT_CHOICE);
}
GameGroup gameGroup = gameGroupDao.selectByPrimaryKey(join.getGroupId());
if(gameGroup == null || gameGroup.getRecordId().longValue() != join.getUrlId().longValue()){
log.info("分组信息不正确,分组id:{},游戏id:{}",join.getGroupId(),join.getUrlId());
throw new BaseException(CodeEnum.PARAM_ERROR);
}
}
//获取游戏的购买记录和类型
// TODO 暂时没有购买相关的,先不查询
// GameUserPay gameUserPay = gameUserPayDao.selectByPrimaryKey(gameRecord.getUserPayId());
//根据游戏ID和用户ID查询用户是否加入
GameUserJoinExample example = new GameUserJoinExample();
@ -88,6 +104,7 @@ public class ClientService implements IClientService {
return joinResult(gameUserJoins.get(0), gameRecord, isGroup, join.getGroupId());
}
//游戏已结束
if (gameRecord.getGameStatus().byteValue() == GameConstant.GAME_COMPLETED) {
ClientVo.Join joinVo = initStatusAndCount(gameRecord);
@ -98,12 +115,26 @@ public class ClientService implements IClientService {
completedData.setOver(0);
if(isGroup){
ClientVo.GroupScore groupScore = getGroupScore(join.getGroupId(),gameRecord.getId());
ClientVo.GroupScore groupScore = getGroupScore(join.getGroupId(), gameRecord);
// getGroupScore(join.getGroupId(),gameRecord.getId());
completedData.setGroupScore(groupScore);
}
joinVo.setCompletedData(completedData);
return joinVo;
}
// 判断是否达到组内上限
if (isGroup) {
GameUserJoinGroupExample groupExample = new GameUserJoinGroupExample();
groupExample.createCriteria().andGameGroupIdEqualTo(join.getGroupId());
long count = gameUserJoinGroupDao.countByExample(groupExample);
log.info("组内人数:{},上限:{}", count, gameRecord.getMemberLimit());
if (count >= gameRecord.getMemberLimit()) {
throw new BaseException(CodeEnum.GROUP_MEMBER_LIMIT);
}
}
//准备中
boolean prepare = gameRecord.getGameStatus().byteValue() == GameConstant.GAME_PREPARATION;
//进行中
@ -119,11 +150,13 @@ public class ClientService implements IClientService {
userJoin.setLocalStartTime(prepare || processing ? gameRecord.getStartTime() + timeMore : 0);
userJoin.setLocalEndTime(prepare || processing ? gameRecord.getEndTime() + timeMore : 0);
// 获取头像和用户名
JsonResponse<MemberVo.MemberInfo> memberInfo = tallFeignClient.getMemberByUserId(userId, join.getProjectId());
if (memberInfo.getData() == null) {
memberInfo = tallFeignClient.getUserByUserId(userId);
}
if (memberInfo.getCode().intValue() == CodeEnum.SUCCESS.getCode() && memberInfo.getData() != null) {
// JsonResponse<MemberVo.MemberInfo> memberInfo = tallFeignClient.getMemberInfoByUserIdAndTaskId(userId, gameRecord.getTaskId());
// if (memberInfo.getData() == null) {
// memberInfo = tallFeignClient.getUserByUserId(userId);
// }
JsonResponse<MemberVo.MemberInfo> memberInfo = tallFeignClient.getUserByUserId(userId);
if (memberInfo != null && memberInfo.getCode().intValue() == CodeEnum.SUCCESS.getCode().intValue() && memberInfo.getData() != null) {
userJoin.setAvatarUrl(memberInfo.getData().getAvatarUrl());
userJoin.setNickname(memberInfo.getData().getNickname());
@ -151,15 +184,16 @@ public class ClientService implements IClientService {
gameUserJoinDao.insertSelective(userJoin);
//如果是分组游戏,则添加用户与组的关联表
if (isGroup) {
if (ObjectUtil.isNull(join.getGroupId())) {
log.info("分组信息为空");
throw new BaseException(CodeEnum.PARAM_ERROR);
}
GameUserJoinGroup userJoinGroup = new GameUserJoinGroup();
userJoinGroup.setId(snowflake.nextId());
userJoinGroup.setUserJoinId(userJoin.getId());
userJoinGroup.setGameGroupId(join.getGroupId());
userJoinGroupDao.insertSelective(userJoinGroup);
// 缓存小组人数
String key = join.getGroupId() + GameConstant.GAME_GROUP_NUM;
Object o = redisUtil.get(key);
redisUtil.set(key, o == null ? 1 : (int)o + 1, GameConstant.REDIS_TIME_TWENTY);
}
// 3.更新redis(sort set key:分数 value:头像,姓名)
if (prepare || processing) {
@ -216,6 +250,18 @@ public class ClientService implements IClientService {
ClientVo.ProcessingData processingData = new ClientVo.ProcessingData();
processingData.setStartLocalTime(join.getLocalStartTime());
processingData.setEndLocalTime(join.getLocalEndTime());
String gameUserKey = GameConstant.generateGameKey(gameRecord.getId());
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsGetWithScore(gameUserKey, 0, -1);
log.info("进行中加入查询redis内的分数信息:{}",typedTuples);
if(CollectionUtil.isNotEmpty(typedTuples)) {
typedTuples.forEach(type -> {
ClientDto.RedisUser user = JSON.parseObject((String)type.getValue(), ClientDto.RedisUser.class);
if(user.getUserId().longValue() == join.getUserId().longValue()){
processingData.setScore(type.getScore().intValue());
processingData.setTimes(type.getScore().intValue() / 100);
}
});
}
joinVo.setProcessingData(processingData);
break;
case GameConstant.GAME_COMPLETED:
@ -223,7 +269,7 @@ public class ClientService implements IClientService {
ClientVo.CompletedData completedData = new ClientVo.CompletedData();
//如果是分组游戏,获取本组信息
if(isGroup){
ClientVo.GroupScore groupScore = getGroupScore(groupId,gameRecord.getId());
ClientVo.GroupScore groupScore = getGroupScore(groupId,gameRecord);
completedData.setGroupScore(groupScore);
}
completedData.setTimes(join.getTimes());
@ -247,6 +293,23 @@ public class ClientService implements IClientService {
log.info("参加游戏:{}", joinVo);
return joinVo;
}
@Override
public ClientVo.GroupScore getGroupScore(long groupId,GameRecord record){
log.info("查询成绩:{},{}", groupId, record);
ClientVo.GroupScore score = new ClientVo.GroupScore();
List<ClientVo.GroupVo> scores = gameGroupDao.queryScores(groupId, record.getId(), record.getRankRule());
for (int i = 0; i < scores.size(); i++) {
ClientVo.GroupVo groupVo = scores.get(i);
if (groupVo.getGroupId() == groupId) {
score.setGroupSort(i);
score.setGroupScore(groupVo.getGroupScore());
score.setGroupTimes(groupVo.getGroupTimes());
return score;
}
}
log.info("{},{}没有找到组信息", groupId, record);
return score;
}
/**
* 获取本组的信息
@ -257,6 +320,28 @@ public class ClientService implements IClientService {
int otherGroupScore = 0;
//查找所有队伍
String groupKey = recordId + "_group";
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(groupKey, 0, -1);
if(CollectionUtil.isNotEmpty(typedTuples)){
List<ScreenVo.GroupVo> vos = new ArrayList<>();
AtomicInteger index = new AtomicInteger(0);
typedTuples.forEach(type -> {
index.set(index.get() + 1);
GameGroup gameGroup = JSON.parseObject((String) type.getValue(), GameGroup.class);
if(gameGroup.getId().longValue() == groupId.longValue()){
groupScore.setGroupScore(type.getScore().intValue());
groupScore.setGroupTimes(type.getScore().intValue() / 100);
groupScore.setGroupSort(index.get());
}
});
if(groupScore.getGroupSort() != null) {
return groupScore;
}
}
GameGroupExample gameGroupExample = new GameGroupExample();
gameGroupExample.createCriteria().andRecordIdEqualTo(recordId);
List<GameGroup> gameGroupList = gameGroupDao.selectByExample(gameGroupExample);
@ -312,8 +397,8 @@ public class ClientService implements IClientService {
// 游戏状态
joinVo.setGameStatus(gameRecord.getGameStatus());
// 总人数
long count = redisUtil.zsGetSize(GameConstant.generateGameKey(gameRecord.getId()));
if (count <= 0) {
Long count = redisUtil.zsGetSize(GameConstant.generateGameKey(gameRecord.getId()));
if (count == null || count <= 0) {
GameUserJoinExample userJoinExample = new GameUserJoinExample();
userJoinExample.createCriteria().andRecordIdEqualTo(gameRecord.getId());
count = gameUserJoinDao.countByExample(userJoinExample);
@ -517,4 +602,13 @@ public class ClientService implements IClientService {
List<GameGroup> gameGroupList = gameGroupDao.selectByExample(gameGroupExample);
return gameGroupList;
}
@Override
public PageInfo<ClientVo.MemberInfo> groupMembers(ClientDto.GroupRanking groupRanking) {
log.info("查询组内成员排序:{}", groupRanking);
PageHelper.startPage(groupRanking.getPageNum(), groupRanking.getPageSize());
List<ClientVo.MemberInfo> infos = gameGroupDao.groupMemberRank(groupRanking.getGroupId());
log.info("结果:{}", infos);
return new PageInfo<>(infos);
}
}

23
game/src/main/java/com/ccsens/game/service/IClientService.java

@ -3,8 +3,10 @@ package com.ccsens.game.service;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.message.BaseMessageDto;
import com.ccsens.game.bean.dto.message.GameMessageCountOut;
import com.ccsens.game.bean.po.GameRecord;
import com.ccsens.game.bean.vo.ClientVo;
import com.ccsens.util.bean.dto.QueryDto;
import com.github.pagehelper.PageInfo;
/**
* @description:
@ -30,9 +32,24 @@ public interface IClientService {
/**
* 查询本组游戏的分数信息
* @param groupId
* @param recordId
* @return
* @param groupId 分组ID
* @param recordId 游戏ID
* @return 分组信息
*/
ClientVo.GroupScore getGroupScore(Long groupId,Long recordId);
/**
* 查询本组游戏的分数信息
* @param groupId 分组ID
* @param record 游戏信息
* @return 分组信息
*/
ClientVo.GroupScore getGroupScore(long groupId, GameRecord record);
/**
* 查询组内成员排行
* @param groupRanking
* @return 排行
*/
PageInfo<ClientVo.MemberInfo> groupMembers(ClientDto.GroupRanking groupRanking);
}

9
game/src/main/java/com/ccsens/game/service/IMessageService.java

@ -1,14 +1,17 @@
package com.ccsens.game.service;
import com.ccsens.game.bean.dto.message.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ccsens.game.bean.dto.message.AckMessageDto;
import com.ccsens.game.bean.dto.message.AuthMessageDto;
import com.ccsens.game.bean.dto.message.ChromeMessageDto;
import com.ccsens.game.bean.dto.message.GameMessageWithChangeStatusOut;
import io.netty.channel.ChannelHandlerContext;
import java.util.List;
import java.util.Set;
public interface IMessageService {
//获取路径后给每个人发送游戏路径消息
void sendGameMessageWithGetUrl(ChromeMessageDto message) throws Exception;
void sendGameMessageWithGetUrl(ChromeMessageDto messag, Set<String> userIdSet) throws Exception;
void doAckMessageWithAck(String userId, AckMessageDto message);

24
game/src/main/java/com/ccsens/game/service/IScreenService.java

@ -15,6 +15,13 @@ public interface IScreenService {
ScreenVo.GameStatusVo getGameStatusVo(QueryDto<ScreenDto.MemberRecord> params);
/**
* 查找分组信息排序
* @param gameRecord 游戏记录
* @return 返回排序后的每个组的信息
*/
List<ScreenVo.GroupVo> getGroupScore2(GameRecord gameRecord);
String startAgain(QueryDto<ScreenDto.MemberRecord> params) throws Exception;
/**
@ -39,9 +46,26 @@ public interface IScreenService {
Long getGameTypeId(Long recordId);
/**
* 根据游戏id获取分组信息
* @param recordId 游戏id
* @return 返回分组信息
*/
List<ScreenVo.Group> getGroupByRecordId(Long recordId);
ScreenVo.RecordInfo getRecordByTaskId(Long taskId,String gameType);
Map<String, Object> getGroupTotalScore(Long groupId);
/**
* 查询游戏配置excel
* @param params
* @return
*/
List<String> getConfig(QueryDto<ScreenDto.GetConfig> params)throws Exception;
/**
* 手机端再玩一次
*/
Long startAgainByPhone(QueryDto<ScreenDto.StartAgainByPhone> params);
}

22
game/src/main/java/com/ccsens/game/service/MessageService.java

@ -1,6 +1,7 @@
package com.ccsens.game.service;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.game.bean.dto.message.*;
import com.ccsens.game.bean.po.GameUserJoin;
@ -9,15 +10,17 @@ import com.ccsens.game.netty.ChannelManager;
import com.ccsens.game.persist.dao.GameUserJoinDao;
import com.ccsens.util.JacksonUtil;
import com.ccsens.util.WebConstant;
import com.ccsens.util.bean.message.common.InMessage;
import com.ccsens.util.bean.message.common.MessageConstant;
import com.ccsens.util.config.RabbitMQConfig;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Set;
import static com.ccsens.game.netty.ChannelManager.sendTo;
@ -32,10 +35,17 @@ public class MessageService implements IMessageService {
private GameUserJoinDao gameUserJoinDao;
@Override
public void sendGameMessageWithGetUrl(ChromeMessageDto message) throws Exception {
System.out.println(JacksonUtil.beanToJson(message));
rabbitTemplate.convertAndSend(RabbitMQConfig.RabbitMQ_QUEUE_NAME,
JacksonUtil.beanToJson(message));
public void sendGameMessageWithGetUrl(ChromeMessageDto message, Set<String> userIdSet) throws Exception {
log.info(JacksonUtil.beanToJson(message));
// rabbitTemplate.convertAndSend(RabbitMQConfig.RabbitMQ_QUEUE_NAME,
// JacksonUtil.beanToJson(message));
InMessage inMessage = new InMessage();
inMessage.setToDomain(MessageConstant.DomainType.User);
inMessage.setTos(userIdSet);
inMessage.setData(JSONObject.toJSONString(message));
log.info("新建或再玩一次发送消息:{}",inMessage);
rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, JSONObject.toJSONString(inMessage));
}
@Override
@ -49,7 +59,7 @@ public class MessageService implements IMessageService {
@Override
public void doAuthMessageWithAuth(ChannelHandlerContext ctx, AuthMessageDto message) {
System.out.println(message);
log.info("{}",message);
//ws连接认证
String userId = message.getData().getUserId();
if (userId == null) {

988
game/src/main/java/com/ccsens/game/service/ScreenService.java

File diff suppressed because it is too large

21
game/src/main/java/com/ccsens/game/util/GameConstant.java

@ -29,14 +29,35 @@ public class GameConstant {
/**游戏key*/
public static final String GAME_SCORE_KEY = "_scores";
public static final String GAME_STATUS_KEY = "_status";
/**游戏分组人数key 分组ID_group_num*/
public static final String GAME_GROUP_NUM = "_group_num";
/**数据默认保存 10分钟*/
public static final long REDIS_TIME = 600 ;
/**缓存时间:20minute*/
public static final long REDIS_TIME_TWENTY = 1200 ;
/**倒计时:10s ms值*/
public static final long COUNT_DOWN_TIME = 10*1000;
/**游戏时长:1分钟 ms值*/
public static final long GAME_TIME = 60*1000;
/**再来一次*/
public static final byte GAME_RESTART_STATUS = 1;
/**个人*/
public static final String EXCEL_GAME_INDIVIDUAL = "个人";
/**团体*/
public static final String EXCEL_GAME_GROUP = "团队";
/**按人均分排名*/
public static final String GAME_RANK_AVE = "按人均分排名";
/**按总分排名*/
public static final String GAME_RANK_TOTAL = "按总分排名";
/**排序规则:平均分*/
public static final byte RANK_RULE_AVA = 1;
/**排序规则:总分*/
public static final byte RANK_RULE_TOTAL = 0;
/**游戏:分组*/
public static final byte GAME_GROUP = 1;
/**游戏:单人*/
public static final byte GAME_SINGLE = 0;
/**
* 生成游戏key

59
game/src/main/java/com/ccsens/game/util/SendMsg.java

@ -6,24 +6,23 @@ import com.alibaba.fastjson.JSON;
import com.ccsens.game.bean.dto.ClientDto;
import com.ccsens.game.bean.dto.message.ChangeStatusMessageDto;
import com.ccsens.game.bean.dto.message.GameMessageWithChangeStatusOut;
import com.ccsens.game.bean.po.GameGroup;
import com.ccsens.game.bean.po.GameGroupExample;
import com.ccsens.game.bean.po.GameRecord;
import com.ccsens.game.bean.vo.ClientVo;
import com.ccsens.game.persist.dao.GameGroupDao;
import com.ccsens.game.persist.dao.GameUserJoinDao;
import com.ccsens.game.service.ClientService;
import com.ccsens.game.bean.vo.ScreenVo;
import com.ccsens.game.service.IClientService;
import com.ccsens.game.service.IScreenService;
import com.ccsens.util.JacksonUtil;
import com.ccsens.util.RedisUtil;
import com.ccsens.util.WebConstant;
import com.ccsens.util.config.RabbitMQConfig;
import com.fasterxml.jackson.core.JsonProcessingException;
import io.swagger.models.auth.In;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
@ -39,11 +38,14 @@ import java.util.concurrent.TimeUnit;
@Service
@Slf4j
public class SendMsg {
@Autowired
private ClientService clientService;
@Autowired
@Resource
private IClientService clientService;
@Lazy
@Resource
private IScreenService screenService;
@Resource
private AmqpTemplate rabbitTemplate;
@Autowired
@Resource
private RedisUtil redisUtil;
public void sendStatus(GameRecord gameRecord, List<ClientDto.RedisUser> userJoins, byte status) throws JsonProcessingException {
@ -53,14 +55,24 @@ public class SendMsg {
if (CollectionUtil.isEmpty(userJoins)) {
return;
}
Set<String> userIds = new HashSet<>();
userJoins.forEach(join -> {
outs.add(getMsg(userJoins, gameRecord, join, status));
// InMessage inMessage = new InMessage();
//
// userIds.add(String.valueOf(join.getUserId()));
// inMessage.setToDomain(MessageConstant.DomainType.User);
// inMessage.setTos(userIds);
// inMessage.setData(JSONObject.toJSONString(getMsg(userJoins, gameRecord, join, status)));
// rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, JSONObject.toJSONString(inMessage));
});
if (CollectionUtil.isNotEmpty(outs)) {
rabbitTemplate.convertAndSend(RabbitMQConfig.GAME_STATUS, JacksonUtil.beanToJson(outs));
log.info("发送成功:{}", JacksonUtil.beanToJson(outs));
}
}
public GameMessageWithChangeStatusOut getMsg(List<ClientDto.RedisUser> userJoins, GameRecord gameRecord, ClientDto.RedisUser join, byte gameStatus) {
@ -70,6 +82,7 @@ public class SendMsg {
data.setRecordId(gameRecord.getId());
data.setGameStatus(gameStatus);
out.setUserId(join.getUserId());
out.setType(WebConstant.Message_Type.ChangeStatus.phase);
ChangeStatusMessageDto dtos = new ChangeStatusMessageDto();
switch (gameStatus) {
case GameConstant.GAME_COMPLETED:
@ -77,7 +90,20 @@ public class SendMsg {
ChangeStatusMessageDto.CompletedData completedData = new ChangeStatusMessageDto.CompletedData();
//如果是分组游戏,获取本组分数信息
if (ObjectUtil.isNotNull(join.getGroupId())) {
ClientVo.GroupScore groupScore = clientService.getGroupScore(join.getGroupId(),gameRecord.getId());
// ClientVo.GroupScore groupScore = clientService.getGroupScore(join.getGroupId(),gameRecord.getId());
// completedData.setGroupScore(groupScore);
ClientVo.GroupScore groupScore = new ClientVo.GroupScore();
List<ScreenVo.GroupVo> groupVoList = screenService.getGroupScore2(gameRecord);
for (int i = 0; i < groupVoList.size(); i++) {
ScreenVo.GroupVo groupVo = groupVoList.get(i);
if(groupVo.getGroupId().longValue() == join.getGroupId().longValue()){
groupScore = new ClientVo.GroupScore();
groupScore.setGroupScore(groupVo.getTotalScore());
groupScore.setGroupTimes(groupVo.getTotalTimes());
groupScore.setGroupSort(i+1);
break;
}
}
completedData.setGroupScore(groupScore);
}
completedData.setTimes(join.getTimes());
@ -100,6 +126,7 @@ public class SendMsg {
pendingData.setEndLocalTime(join.getLocalEndTime());
dtos.setPendingData(pendingData);
break;
default:
}
data.setChangeStatusMessageDto(dtos);
out.setData(data);
@ -109,9 +136,9 @@ public class SendMsg {
/**
* 定时任务
*
* @param executor
* @param delayTime
* @param runnable
* @param executor 执行者
* @param delayTime 延时时间
* @param runnable 线程
*/
public void sendMsg(ScheduledExecutorService executor, long delayTime, Runnable runnable) {
executor.schedule(new Thread(runnable), delayTime, TimeUnit.MILLISECONDS);

5
game/src/main/resources/application-dev.yml

@ -27,3 +27,8 @@ spring:
swagger:
enable: true
gatewayUrl: https://test.tall.wiki/gateway/
notGatewayUrl: https://test.tall.wiki/
file:
qrCode: https://test.tall.wiki/gateway/tall/uploads/
openWX: 0

37
game/src/main/resources/application-prod.yml

@ -0,0 +1,37 @@
server:
port: 7050
servlet:
context-path:
spring:
application:
name: game
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: 127.0.0.1
password: 111111
port: 5672
username: admin
redis:
database: 0
host: 127.0.0.1
jedis:
pool:
max-active: 200
max-idle: 10
max-wait: -1ms
min-idle: 0
password: ''
port: 6379
timeout: 1000ms
swagger:
enable: true
eureka:
instance:
ip-address: 192.144.182.42
gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/
file:
qrCode: https://www.tall.wiki/gateway/tall/v1.0/uploads/
openWX: 1

16
game/src/main/resources/application-test.yml

@ -8,7 +8,11 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
<<<<<<< HEAD
host: 81.70.54.64
=======
host: 127.0.0.1
>>>>>>> pt
password: 111111
port: 5672
username: admin
@ -28,4 +32,14 @@ swagger:
enable: true
eureka:
instance:
ip-address: 192.168.0.99
<<<<<<< HEAD
ip-address: 192.168.0.99
=======
ip-address: 192.168.0.99
gatewayUrl: https://test.tall.wiki/gateway/
notGatewayUrl: https://test.tall.wiki/
file:
qrCode: https://test.tall.wiki/gateway/tall/v1.0/uploads/
openWX: 0
>>>>>>> pt

4
game/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: test
include: common, util-test
active: prod
include: common, util-prod

94
game/src/main/resources/archive/SQ.txt

@ -0,0 +1,94 @@
tall game anyring SQ
1.PT获取配置(有则取已存,无则取默认)
2.PT获取大屏路径
创建游戏购买记录,默认10次
添加游戏记录(根据配置,无配置,游戏类型默认是分组,则给默认分组)
给项目下所有用户发送 大屏路径 游戏ID 项目ID 游戏类型
3.开始游戏
游戏在准备中,进行中,已结合不能再开始
更新db游戏状态和开始、结束时间(配置游戏时长)
更新redis游戏状态为准备中 10分钟
更新redis各分组分数(0分 10分钟)
定时更新
进行中:修改redis和db的游戏状态,redis游戏信息
结束时:1.修改redis和db的游戏状态,redis游戏信息
2.将游戏下用户的分数更新到数据库
更新db用户的开始和结束时间
更新redis游戏下所有用户的分数(0分 10分钟)
定时推送客户端
准备中0 根据redis查询用户信息,通知用户游戏倒计时 游戏开始时间和结束时间
进行中10 根据redis查询用户信息,通知用户游戏倒计时 游戏开始时间和结束时间
结束时70 根据redis查询用户信息,通知用户结束,分组分数,个人分数
个人分数:查询游戏下的所有用户,分装起分数信息,次数(分数/100),排名,超过%
分组分数:查询redis所有分组分数,获取分数,次数,排名
redis无数据,查数据库分组信息
4.查询游戏基本信息
1.查询游戏基本信息(redis,db)
2.用户总数(redis用户分数长度,db)
3.分组
redis:查询分组分数,依次查询组内总人数(redis),根据计分规则,修改分数和次数(总分,均分)
若均分,则重新排序
db:查询数据库分数总人数等信息
总分,返回
均分,重新计算,排序,返回(注:此处次数为计算均次数)
4.根据状态,查询其他信息
未开始:规则等
准备中:开始时间 (大屏:游戏 用户:用户参加游戏的开始时间db)
已结束:个人赛:
redis:查询所有人的分数,计算总分,总次数,平均次数,超过%
db:查询所有人的成绩,计算上述信息
前十名(redis/db)
团体赛:
查询所有团队分数(redis/db),计算总分,总次数,均分,均次数
查询均分超过%(db)
查询前十名
5.查询游戏状态
1.查询游戏基本信息(redis,db)
2.用户总数(redis用户分数长度,db)
3.分组(同查详情)
3.根据状态,查询其他信息
准备中:开始时间 (大屏:游戏 用户:用户参加游戏的开始时间db)
进行中:未分组,前十名(redis/db)
分组,=分组
已结束:同详情
6.加入游戏
1.游戏分组,分组ID为null或不正确,返回参数有误
2.用户已加入(db)
返回分组信息
准备中、进行中:开始、结束时间
已结束:
分组成绩(db)
个人成绩,超过%,排名(db)
3.游戏已结束:
个人成绩为0
团队成绩(db)
4.组内成员达到上限 返回达到上限
5.保存用户加入游戏(db)
查询用户user信息
昵称为空取phone,中间四位脱敏
6.若分组,保存分组信息(db),更新redis改组人数
7.若游戏在进行中或准备中,更新redis用户分数
8.返回用户信息(同2)
7.根据游戏id获取分组信息 db
8.根据任务id获取游戏记录id db
9.组内排行榜
查库
10.全员排行榜
redis/db 所有人分数排名+总数
11.授权:token,recordId
12.计分
1.获取授权时的userid,record, 为空,return
2.游戏结束,return
3.redis 用户分数(recordId+userid)为空,return
4.更新redis用户分数(+100)
5.redis 更新所属分组分数
6.分会总分数,总次数

BIN
game/src/main/resources/archive/流程图.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

3
game/src/main/resources/druid-test.yml

@ -27,7 +27,10 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
<<<<<<< HEAD
# url: jdbc:mysql://test.tall.wiki/game?useUnicode=true&characterEncoding=UTF-8
=======
>>>>>>> pt
url: jdbc:mysql://49.233.89.188:3306/game?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL

59
game/src/main/resources/mapper_dao/GameGroupDao.xml

@ -0,0 +1,59 @@
<?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.ccsens.game.persist.dao.GameGroupDao">
<select id="queryGroups" resultType="com.ccsens.game.bean.vo.ScreenVo$GroupVo">
SELECT
g.id AS groupId,
g.NAME AS groupName,
g.head_portrait_url as headPortraitUrl,
sum( u.score ) AS score,
count( ug.id ) AS totalMembers
FROM
t_game_group g
LEFT JOIN ( SELECT * FROM t_game_user_join_group WHERE rec_status = 0 ) ug ON g.id = ug.game_group_id
LEFT JOIN ( SELECT * FROM t_game_user_join WHERE rec_status = 0 ) u ON ug.user_join_id = u.id
WHERE
g.rec_status = 0
AND g.record_id = #{gameId}
GROUP BY
g.id
order by sum(u.score) desc
</select>
<select id="queryScores" resultType="com.ccsens.game.bean.vo.ClientVo$GroupVo">
SELECT
g.id AS groupId,
g.head_portrait_url as headPortraitUrl,
g.NAME AS groupName,
if (${rankRule}=1,sum(u.score),(if(count( ug.id )=0, 0 ,sum(u.score)/count( ug.id )))) AS groupScore,
sum(u.times) as groupTimes
FROM
t_game_group g
LEFT JOIN ( SELECT * FROM t_game_user_join_group WHERE rec_status = 0 ) ug ON g.id = ug.game_group_id
LEFT JOIN ( SELECT * FROM t_game_user_join WHERE rec_status = 0 ) u ON ug.user_join_id = u.id
WHERE
g.rec_status = 0
AND g.record_id = #{gameId}
GROUP BY
g.id
order by groupScore desc
</select>
<select id="groupMemberRank" resultType="com.ccsens.game.bean.vo.ClientVo$MemberInfo">
SELECT
u.id,
u.avatar_url AS headImgUrl,
u.nickname,
u.score,
u.times
FROM
t_game_user_join u,
t_game_user_join_group g
WHERE
u.id = g.user_join_id
AND g.game_group_id = #{groupId}
AND u.rec_status = 0
AND g.rec_status = 0
ORDER BY
u.score DESC
</select>
</mapper>

25
game/src/main/resources/mapper_raw/GameGroupMapper.xml

@ -9,6 +9,7 @@
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
<result column="head_portrait_url" jdbcType="VARCHAR" property="headPortraitUrl" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -69,7 +70,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, record_id, code, name, created_at, updated_at, rec_status
id, record_id, code, name, created_at, updated_at, rec_status, head_portrait_url
</sql>
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameGroupExample" resultMap="BaseResultMap">
select
@ -104,10 +105,10 @@
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameGroup">
insert into t_game_group (id, record_id, code,
name, created_at, updated_at,
rec_status)
rec_status, head_portrait_url)
values (#{id,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
#{recStatus,jdbcType=TINYINT}, #{headPortraitUrl,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameGroup">
insert into t_game_group
@ -133,6 +134,9 @@
<if test="recStatus != null">
rec_status,
</if>
<if test="headPortraitUrl != null">
head_portrait_url,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -156,6 +160,9 @@
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
<if test="headPortraitUrl != null">
#{headPortraitUrl,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameGroupExample" resultType="java.lang.Long">
@ -188,6 +195,9 @@
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
<if test="record.headPortraitUrl != null">
head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -201,7 +211,8 @@
name = #{record.name,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
rec_status = #{record.recStatus,jdbcType=TINYINT},
head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -227,6 +238,9 @@
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
<if test="headPortraitUrl != null">
head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@ -237,7 +251,8 @@
name = #{name,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
rec_status = #{recStatus,jdbcType=TINYINT},
head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

77
game/src/main/resources/mapper_raw/GameRecordMapper.xml

@ -14,6 +14,10 @@
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
<result column="game_group" jdbcType="TINYINT" property="gameGroup" />
<result column="duration" jdbcType="INTEGER" property="duration" />
<result column="member_limit" jdbcType="INTEGER" property="memberLimit" />
<result column="rank_rule" jdbcType="TINYINT" property="rankRule" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -75,7 +79,8 @@
</sql>
<sql id="Base_Column_List">
id, user_pay_id, task_id, url, QR_code_url, time_difference, start_time, end_time,
game_status, created_at, updated_at, rec_status
game_status, created_at, updated_at, rec_status, game_group, duration, member_limit,
rank_rule
</sql>
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultMap="BaseResultMap">
select
@ -111,13 +116,15 @@
insert into t_game_record (id, user_pay_id, task_id,
url, QR_code_url, time_difference,
start_time, end_time, game_status,
created_at, updated_at, rec_status
)
created_at, updated_at, rec_status,
game_group, duration, member_limit,
rank_rule)
values (#{id,jdbcType=BIGINT}, #{userPayId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT},
#{url,jdbcType=VARCHAR}, #{qrCodeUrl,jdbcType=VARCHAR}, #{timeDifference,jdbcType=INTEGER},
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{gameStatus,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT},
#{gameGroup,jdbcType=TINYINT}, #{duration,jdbcType=INTEGER}, #{memberLimit,jdbcType=INTEGER},
#{rankRule,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameRecord">
insert into t_game_record
@ -158,6 +165,18 @@
<if test="recStatus != null">
rec_status,
</if>
<if test="gameGroup != null">
game_group,
</if>
<if test="duration != null">
duration,
</if>
<if test="memberLimit != null">
member_limit,
</if>
<if test="rankRule != null">
rank_rule,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -196,6 +215,18 @@
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
<if test="gameGroup != null">
#{gameGroup,jdbcType=TINYINT},
</if>
<if test="duration != null">
#{duration,jdbcType=INTEGER},
</if>
<if test="memberLimit != null">
#{memberLimit,jdbcType=INTEGER},
</if>
<if test="rankRule != null">
#{rankRule,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameRecordExample" resultType="java.lang.Long">
@ -243,6 +274,18 @@
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
<if test="record.gameGroup != null">
game_group = #{record.gameGroup,jdbcType=TINYINT},
</if>
<if test="record.duration != null">
duration = #{record.duration,jdbcType=INTEGER},
</if>
<if test="record.memberLimit != null">
member_limit = #{record.memberLimit,jdbcType=INTEGER},
</if>
<if test="record.rankRule != null">
rank_rule = #{record.rankRule,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -261,7 +304,11 @@
game_status = #{record.gameStatus,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
rec_status = #{record.recStatus,jdbcType=TINYINT},
game_group = #{record.gameGroup,jdbcType=TINYINT},
duration = #{record.duration,jdbcType=INTEGER},
member_limit = #{record.memberLimit,jdbcType=INTEGER},
rank_rule = #{record.rankRule,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -302,6 +349,18 @@
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
<if test="gameGroup != null">
game_group = #{gameGroup,jdbcType=TINYINT},
</if>
<if test="duration != null">
duration = #{duration,jdbcType=INTEGER},
</if>
<if test="memberLimit != null">
member_limit = #{memberLimit,jdbcType=INTEGER},
</if>
<if test="rankRule != null">
rank_rule = #{rankRule,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@ -317,7 +376,11 @@
game_status = #{gameStatus,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
rec_status = #{recStatus,jdbcType=TINYINT},
game_group = #{gameGroup,jdbcType=TINYINT},
duration = #{duration,jdbcType=INTEGER},
member_limit = #{memberLimit,jdbcType=INTEGER},
rank_rule = #{rankRule,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

2
game/src/main/resources/mbg.xml

@ -57,7 +57,7 @@
</javaClientGenerator>
<!-- <table tableName="t_game_type" domainObjectName="GameType"></table>-->
<!--<table tableName="t_game_user_pay" domainObjectName="GameUserPay"></table>-->
<!-- <table tableName="t_game_record" domainObjectName="GameRecord"></table>-->
<table tableName="t_game_record" domainObjectName="GameRecord"></table>
<!-- <table tableName="t_game_user_join" domainObjectName="GameUserJoin"></table>-->
<!--<table tableName="t_game_score_log" domainObjectName="GameScoreLog"></table>-->
<!--<table tableName="t_game_activity_rule" domainObjectName="GameActivityRule"></table>-->

18
health/src/main/java/com/ccsens/health/api/DebugController.java

@ -1,8 +1,6 @@
package com.ccsens.health.api;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.WebConstant;
import com.ccsens.util.wx.WxXcxUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@ -31,14 +29,14 @@ public class DebugController {
})
@RequestMapping(value="qrcode",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse qrcode(HttpServletRequest request) throws Exception {
WxXcxUtil.LineColor color = new WxXcxUtil.LineColor();
color.r = "243";
color.g = "139";
color.b = "0";
WxXcxUtil.getWxCode("pages/index/index"
,"d=1218855229722857472",color,"/home/cloud/tall/uploads/qrCode/00112.png");
// WxXcxUtil.getWxCodeTest("pages/index/index?t=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODM4MDc3MzcsInN1YiI6IjEyMTg4NTUyMjk3MjI4NTc0NzIiLCJhdXRoSWQiOiIxMTc3MDQwNjY"
// ,"d=1217647686598135808",color,"/home/cloud/tall/uploads/qrCode/158357267174.png");
// WxXcxUtil.LineColor color = new WxXcxUtil.LineColor();
// color.r = "243";
// color.g = "139";
// color.b = "0";
// WxXcxUtil.getWxCode("pages/index/index"
// ,"d=1218855229722857472",color,"/home/cloud/tall/uploads/qrCode/00112.png",null);
//// WxXcxUtil.getWxCodeTest("pages/index/index?t=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODM4MDc3MzcsInN1YiI6IjEyMTg4NTUyMjk3MjI4NTc0NzIiLCJhdXRoSWQiOiIxMTc3MDQwNjY"
//// ,"d=1217647686598135808",color,"/home/cloud/tall/uploads/qrCode/158357267174.png");
return JsonResponse.newInstance().ok("完成");
}

7
health/src/main/java/com/ccsens/health/api/WxTest.java

@ -5,6 +5,7 @@ import cn.hutool.json.JSONUtil;
import com.ccsens.util.JacksonUtil;
import com.ccsens.util.enterprisewx.AesException;
import com.ccsens.util.enterprisewx.WXBizMsgCrypt;
import lombok.extern.slf4j.Slf4j;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
@ -14,7 +15,7 @@ import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.StringReader;
import java.net.URLDecoder;
@Slf4j
public class WxTest {
public static void main(String[] args) throws Exception {
String sToken = "4CxIpRDBWHMiePP3x6muNe4hRj";
@ -31,9 +32,9 @@ public class WxTest {
String sVerifyNonce = "1";
String sEchoStr = wxcpt.VerifyURL(sVerifyMsgSig, sVerifyTimeStamp,
sVerifyNonce, sVerifyEchoStr);
System.out.println("verifyurl echostr: " + sEchoStr);
log.info("verifyurl echostr: " + sEchoStr);
String s = JacksonUtil.xmlToJson(sEchoStr);
System.out.println("s:"+s);
log.info("s:"+s);
}

2
health/src/main/java/com/ccsens/health/config/SpringConfig.java

@ -111,7 +111,7 @@ public class SpringConfig implements WebMvcConfigurer {
.addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler("/uploads/**")
.addResourceLocations("file:///home/cloud/tall/uploads/");
.addResourceLocations("file:///home/cloud/health/uploads/");
//super.addResourceHandlers(registry);
}

4
health/src/main/java/com/ccsens/health/service/AsyncService.java

@ -2,7 +2,6 @@ package com.ccsens.health.service;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.health.bean.po.HealthRecords;
import com.ccsens.health.bean.vo.HealthVo;
import com.ccsens.health.util.HealthConstant;
import com.ccsens.util.PropUtil;
@ -10,7 +9,6 @@ import com.ccsens.util.RedisUtil;
import com.ccsens.util.WebConstant;
import com.ccsens.util.wx.WxXcxUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;
@ -40,7 +38,7 @@ public class AsyncService implements IAsyncService {
String fileName = "/qrCode/" + cn.hutool.core.date.DateUtil.today() + "/" + System.currentTimeMillis() + ".png";
String path = WebConstant.UPLOAD_PATH_BASE+fileName;
WxXcxUtil.getWxCode(WebConstant.QRCODE_HEALTH
,scene,color,path);
,scene,color,path,"health");
String qrcodePath = PropUtil.qrCode + fileName;
log.info("二维码路径:{}", qrcodePath);
return new AsyncResult<String>(qrcodePath);

3
health/src/main/java/com/ccsens/health/service/ClockService.java

@ -20,7 +20,6 @@ import com.ccsens.util.exception.BaseException;
import com.ccsens.util.wx.WxXcxUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.netflix.discovery.provider.ISerializer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@ -297,7 +296,7 @@ public class ClockService implements IClockService {
String fileName = "/qrCode/" + cn.hutool.core.date.DateUtil.today() + "/" + System.currentTimeMillis() + ".png";
String path = WebConstant.UPLOAD_PATH_BASE + fileName;
WxXcxUtil.getWxCode(WebConstant.QRCODE_SITE
, "d=" + siteQrcode.getId() + "&t=" + createQRCode.getType(), null, path);
, "d=" + siteQrcode.getId() + "&t=" + createQRCode.getType(), null, path,"health");
qrcodePath = PropUtil.qrCode + fileName;
log.info("调用微信生成二维码");
} else {

3
health/src/main/java/com/ccsens/health/service/WeiXinService.java

@ -273,10 +273,11 @@ public class WeiXinService implements IWeiXinService {
* @param departments
*/
private void insertBatchDepartment(List<Department> departments) {
TransactionStatus status = TransactionUtil.getTransactionStatus(transactionManager);
int size = departments.size();
int once = 100;
for (int i = 0; i < size; i+=once) {
TransactionStatus status = TransactionUtil.getTransactionStatus(transactionManager);
int end = i+once > size ? size : i+once;
try {
departmentDao.insertBatch(departments.subList(i, end));

2
ht/src/main/java/com/ccsens/ht/service/DoctorService.java

@ -19,14 +19,12 @@ import com.ccsens.util.exception.BaseException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource;
import java.util.ArrayList;

10
ht/src/main/resources/application-prod.yml

@ -21,7 +21,11 @@ spring:
max-idle: 10
max-wait: -1ms
min-idle: 0
<<<<<<< HEAD
password: ''
=======
password: 'areowqr!@43ef'
>>>>>>> pt
port: 6379
timeout: 1000ms
@ -38,4 +42,8 @@ ht:
name: 认知功能评测云平台系统
eureka:
instance:
ip-address: 81.70.54.64
<<<<<<< HEAD
ip-address: 81.70.54.64
=======
ip-address: 71.80.54.64
>>>>>>> pt

173
mt/src/main/java/com/ccsens/mt/api/CompeteController.java

@ -0,0 +1,173 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.vo.CompeteVo;
import com.ccsens.mt.service.ICompeteService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "线上体育竞技比赛", description = "")
@RestController
@RequestMapping("/compete")
public class CompeteController {
@Resource
private ICompeteService competeService;
@MustLogin
@ApiOperation(value = "查看当前是第几届比赛", notes = "")
@RequestMapping(value = "/competeTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompeteTime> getCompeteTime(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("查看当前是第几届比赛:{}",params);
CompeteVo.CompeteTime competeTime = competeService.getCompeteTime(params);
return JsonResponse.newInstance().ok(competeTime);
}
@MustLogin
@ApiOperation(value = "查看组别信息", notes = "")
@RequestMapping(value = "/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<CompeteVo.CompeteGroup>> queryCompeteGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("查看组别信息:{}",params);
List<CompeteVo.CompeteGroup> competeGroups = competeService.queryCompeteGroup(params);
return JsonResponse.newInstance().ok(competeGroups);
}
@MustLogin
@ApiOperation(value = "根据项目查找组别信息 ", notes = "")
@RequestMapping(value = "/group/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<CompeteVo.CompeteGroup>> queryGroupByProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.QueryGroupByProject> params) {
log.info("扫码加入团队:{}",params);
List<CompeteVo.CompeteGroup> groupByProject = competeService.queryGroupByProject(params);
return JsonResponse.newInstance().ok(groupByProject);
}
@MustLogin
@ApiOperation(value = "模糊查询参赛单位", notes = "")
@RequestMapping(value = "/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<CompeteVo.CompeteCompany>> queryCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTypeAndKey> params) {
log.info("模糊查询参赛单位:{}",params);
List<CompeteVo.CompeteCompany> competeCompanyList = competeService.queryCompeteCompany(params);
return JsonResponse.newInstance().ok(competeCompanyList);
}
@MustLogin
@ApiOperation(value = "刷新redis内的参赛单位信息", notes = "")
@RequestMapping(value = "/sync/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse syncCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("刷新redis内的参赛单位信息:{}",params);
competeService.syncCompeteCompany(params);
return JsonResponse.newInstance().ok();
}
@MustLogin
@ApiOperation(value = "提交报名基本信息", notes = "")
@RequestMapping(value = "/save/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompetePlayerInfo> saveCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompetePlayerInfo> params) {
log.info("提交报名基本信息:{}",params);
CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompetePlayerInfo(params);
return JsonResponse.newInstance().ok(competePlayerInfo);
}
@MustLogin
@ApiOperation(value = "查看参赛项目信息", notes = "")
@RequestMapping(value = "/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<CompeteVo.CompeteProject>> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("查看参赛项目信息:{}",params);
List<CompeteVo.CompeteProject> competeProjects = competeService.queryCompeteProject(params);
return JsonResponse.newInstance().ok(competeProjects);
}
// @MustLogin
// @ApiOperation(value = "根据组别查看比赛项目 ", notes = "")
// @RequestMapping(value = "/project/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
// public JsonResponse<List<CompeteVo.CompeteSecondProject>> queryProjectByGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.QueryProjectByGroup> params) {
// log.info("扫码加入团队:{}",params);
// List<CompeteVo.CompeteSecondProject> projectByGroup = competeService.queryProjectByGroup(params);
// return JsonResponse.newInstance().ok(projectByGroup);
// }
@MustLogin
@ApiOperation(value = "提交选择的比赛项目", notes = "")
@RequestMapping(value = "/save/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompetePlayerInfo> saveCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProject> params) throws IOException {
log.info("提交选择的比赛项目:{}",params);
CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompeteProject(params);
return JsonResponse.newInstance().ok(competePlayerInfo);
}
@MustLogin
@ApiOperation(value = "查看本人所有参赛的项目", notes = "")
@RequestMapping(value = "/projectAll", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompeteProjectAllByUser> queryCompeteProjectAllByUser(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) {
log.info("查看本人所有参赛的项目:{}",params);
CompeteVo.CompeteProjectAllByUser competeProjectAll = competeService.queryCompeteProjectAllByUser(params);
return JsonResponse.newInstance().ok(competeProjectAll);
}
@MustLogin
@ApiOperation(value = "查看团队比赛的邀请二维码", notes = "")
@RequestMapping(value = "/qrCode", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<String> getQrCodeByTeamId(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectPlayer> params) {
log.info("查看团队比赛的邀请二维码:{}",params);
String qrCodeUrl = competeService.getQrCodeByTeamId(params);
return JsonResponse.newInstance().ok(qrCodeUrl);
}
@MustLogin
@ApiOperation(value = "查看个人基本报名信息", notes = "")
@RequestMapping(value = "/playerInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.GetPlayerInfo> getCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) {
log.info("查看个人基本报名信息:{}",params);
CompeteVo.GetPlayerInfo getPlayerInfo = competeService.getCompetePlayerInfo(params);
return JsonResponse.newInstance().ok(getPlayerInfo);
}
@MustLogin
@ApiOperation(value = "扫码加入团队", notes = "")
@RequestMapping(value = "/joinGroup", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompeteTeamProject> joinCompeteGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteGroup> params) {
log.info("扫码加入团队:{}",params);
CompeteVo.CompeteTeamProject competeTeamProject = competeService.joinCompeteGroup(params);
return JsonResponse.newInstance().ok(competeTeamProject);
}
@MustLogin
@ApiOperation(value = "提交报名信息和参加比赛", notes = "")
@RequestMapping(value = "/submit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse submitProjectAndGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompetePlayerAndProject> params) {
log.info("扫码加入团队:{}",params);
competeService.submitProjectAndGroup(params);
return JsonResponse.newInstance().ok();
}
// @MustLogin
// @ApiOperation(value = "查询比赛项目上的参赛选手列表", notes = "")
// @RequestMapping(value = "/get/players", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
// public JsonResponse<CompeteVo.QueryPlayerList> queryPlayerList(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
// log.info("查询比赛项目上的参赛选手列表:{}",params);
// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
// return JsonResponse.newInstance().ok(playerList);
// }
}

51
mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java

@ -0,0 +1,51 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.vo.CompeteVo;
import com.ccsens.mt.service.ICompeteService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author
*/
@Slf4j
@Api(tags = "线上体育竞技比赛", description = "")
@RestController
@RequestMapping("/compete")
public class CompeteScoreController {
@Resource
private ICompeteService competeService;
@MustLogin
@ApiOperation(value = "查询比赛项目上的参赛选手列表", notes = "")
@RequestMapping(value = "/get/playerList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.QueryPlayerList> queryPlayerList(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
log.info("查询比赛项目上的参赛选手列表:{}",params);
CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
return JsonResponse.newInstance().ok(playerList);
}
// @MustLogin
// @ApiOperation(value = "查看单个选手的信息和分数", notes = "")
// @RequestMapping(value = "/get/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
// public JsonResponse<CompeteVo.QueryPlayerList> getPlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
// log.info("查询比赛项目上的参赛选手列表:{}",params);
// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
// return JsonResponse.newInstance().ok(playerList);
// }
}

38
mt/src/main/java/com/ccsens/mt/api/DebugController.java

@ -1,28 +1,62 @@
package com.ccsens.mt.api;
import com.ccsens.mt.bean.dto.LevelDto;
import com.ccsens.mt.bean.po.LevelUser;
import com.ccsens.mt.service.ILevelUpService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.RedisUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Objects;
import java.util.Set;
@Api(tags = "DEBUG" , description = "DebugController | ")
@RestController
@RequestMapping("/debug")
public class DebugController {
@Resource
private RedisUtil redisUtil;
@Resource
private ILevelUpService levelUpService;
@ApiOperation(value = "/测试",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse getSmsCode(HttpServletRequest request) throws Exception {
public JsonResponse debug(HttpServletRequest request) throws Exception {
return JsonResponse.newInstance().ok("测试");
}
@ApiOperation(value = "/测试自动晋级",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/levelUp",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse levelUpDebug(HttpServletRequest request) throws Exception {
//比赛结束
//查询每个选手的分数存入redis(模拟分数存入)
String key = "compete_1_6";
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(key, 0, -1);
typedTuples.forEach(type ->{
LevelUser levelUser = (LevelUser) type.getValue();
if(levelUser.getPlayerId() == 1305713484796923904L){
redisUtil.zsSet(key, levelUser, 20);
}
if(levelUser.getPlayerId() == 1305772321621020672L){
redisUtil.zsSet(key, levelUser, 22);
}
});
//调用自动晋级接口
LevelDto.AutoLevelUpDto autoLevelUpDto = new LevelDto.AutoLevelUpDto(1L,"6");
levelUpService.autoLevelUp(autoLevelUpDto);
return JsonResponse.newInstance().ok("OK");
}
}

77
mt/src/main/java/com/ccsens/mt/api/DepartmentController.java

@ -0,0 +1,77 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.vo.CompeteVo;
import com.ccsens.mt.service.IDepartmentService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "线上体育竞技比赛(校内报名)", description = "")
@RestController
@RequestMapping("/department")
public class DepartmentController {
@Resource
private IDepartmentService departmentService;
@MustLogin
@ApiOperation(value = "查看院系信息", notes = "")
@RequestMapping(value = "/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompeteTime> getCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("查看院系信息:{}",params);
List<CompeteVo.CompeteCompany> competeCompanyList = departmentService.getCompany(params);
return JsonResponse.newInstance().ok(competeCompanyList);
}
@MustLogin
@ApiOperation(value = "查看参赛项目信息", notes = "")
@RequestMapping(value = "/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<CompeteVo.CompeteProject>> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
log.info("查看参赛项目信息:{}",params);
List<CompeteVo.CompeteProject> competeProjects = departmentService.queryCompeteProject(params);
return JsonResponse.newInstance().ok(competeProjects);
}
@MustLogin
@ApiOperation(value = "院系提交报名信息", notes = "")
@RequestMapping(value = "/save/department", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.DepartmentInfo> saveDepartment(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.DepartmentInfo> params) {
log.info("查看参赛项目信息:{}",params);
CompeteVo.DepartmentInfo department = departmentService.saveDepartment(params);
return JsonResponse.newInstance().ok(department);
}
@MustLogin
@ApiOperation(value = "查看院系报名信息", notes = "")
@RequestMapping(value = "/get/department", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.DepartmentInfo> getDepartment(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.GetDepartmentInfo> params) {
log.info("查看参赛项目信息:{}",params);
CompeteVo.DepartmentInfo department = departmentService.getDepartment(params);
return JsonResponse.newInstance().ok(department);
}
@ApiOperation(value = "导出excel表格", notes = "")
@RequestMapping(value = "/export/excel", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.DepartmentInfo> exportExcel(@ApiParam @Validated @RequestBody CompeteDto.CompeteType params) {
log.info("导出excel表格:{}",params);
String excelPath = departmentService.exportExcel(params);
return JsonResponse.newInstance().ok(excelPath);
}
}

84
mt/src/main/java/com/ccsens/mt/api/FileController.java

@ -0,0 +1,84 @@
package com.ccsens.mt.api;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.mt.bean.po.CommonFile;
import com.ccsens.mt.bean.vo.FileVo;
import com.ccsens.mt.service.IFileService;
import com.ccsens.mt.util.Constant;
import com.ccsens.util.*;
import com.ccsens.util.exception.BaseException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2020/7/17 11:36
*/
@Slf4j
@Api(tags = "文件")
@RestController
@RequestMapping("/file")
public class FileController {
@Resource
private IFileService fileService;
@Resource
private TallFeignClient tallFeignClient;
@ApiOperation(value = "上传文件")
@ApiImplicitParams({
})
@RequestMapping(value = "upload", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<FileVo.Upload> upload(HttpServletRequest request, @RequestParam() List<Part> files) throws Exception {
log.info("文件上传:{}", files);
String authHeader = request.getHeader(WebConstant.HEADER_KEY_TOKEN);
JsonResponse tokenRes = tallFeignClient.getUserIdByToken(authHeader);
log.info("{}查询userId返回:{}", authHeader, tokenRes);
if (tokenRes.getCode().intValue() != CodeEnum.SUCCESS.getCode().intValue()) {
return tokenRes;
}
JSONObject json = JSON.parseObject(JSON.toJSONString(tokenRes.getData()));
Long userId = json.getLong("id");
String dir = PropUtil.path + Constant.File.UPLOAD_URL;
List<CommonFile> fileVos = fileService.saveFile(dir, files, userId);
List<FileVo.Upload> vos = FileVo.Upload.transFilePo(fileVos);
log.info("文件上传返回:{}", vos);
return JsonResponse.newInstance().ok(vos);
}
@ApiOperation(value = "文件下载")
@GetMapping(value = "download/{id}")
public void download(HttpServletResponse response, @PathVariable("id")Long id) throws Exception {
log.info("文件下载:{}", id);
CommonFile file = fileService.getById(id);
log.info("文件信息;{}", file);
if (file == null) {
throw new BaseException(CodeEnum.FILE_NOT_FOUND);
}
UploadFileUtil_Servlet3.download(response, file.getLocation(), file.getFileName());
log.info("文件下载结束");
}
@ApiOperation(value = "文件下载, 指定路径")
@GetMapping(value = "download/know")
public void downloadFile(HttpServletResponse response, String path ) throws Exception {
log.info("文件下载, 指定路径:{}", path);
UploadFileUtil_Servlet3.download(response, path, path.substring(path.lastIndexOf(java.io.File.separator) + 1));
log.info("文件下载结束");
}
}

51
mt/src/main/java/com/ccsens/mt/api/LevelController.java

@ -0,0 +1,51 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.LevelDto;
import com.ccsens.mt.bean.vo.LevelVo;
import com.ccsens.mt.service.ILevelUpService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author
*/
@Slf4j
@Api(tags = "晋级系统", description = "")
@RestController
@RequestMapping("/level")
public class LevelController {
@Resource
private ILevelUpService levelUpService;
@MustLogin
@ApiOperation(value = "手动晋级", notes = "")
@RequestMapping(value = "/manual", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse manualLevelUpPlayer(@ApiParam @Validated @RequestBody QueryDto<LevelDto.ManualLevelUpDto> params) {
log.info("手动晋级:{}",params);
levelUpService.manualLevelUpPlayer(params.getParam());
return JsonResponse.newInstance().ok();
}
@MustLogin
@ApiOperation(value = "查找晋级选手信息", notes = "")
@RequestMapping(value = "/userInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<LevelVo.QueryLevelUserInfo>> queryLevelUserInfo(@ApiParam @Validated @RequestBody QueryDto<LevelDto.QueryLevelUserInfo> params) {
log.info("手动晋级:{}",params);
PageInfo<LevelVo.QueryLevelUserInfo> levelUserInfoList = levelUpService.queryLevelUserInfo(params.getParam());
return JsonResponse.newInstance().ok(levelUserInfoList);
}
}

1
mt/src/main/java/com/ccsens/mt/api/ScoreController.java

@ -31,7 +31,6 @@ public class ScoreController {
})
@RequestMapping(value = "/score", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<ScoreVo.ScoreInfo>> getScoreLog(HttpServletRequest request,
@RequestParam Long roleId,
@RequestParam(required = true) Long taskId) throws Exception {
//获取userId
Long userId = userService.getUserIdByToken(request);

126
mt/src/main/java/com/ccsens/mt/api/TopicController.java

@ -0,0 +1,126 @@
package com.ccsens.mt.api;
import com.ccsens.mt.bean.dto.TopicDto;
import com.ccsens.mt.bean.vo.TopicVo;
import com.ccsens.mt.service.ITopicService;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.JsonResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "答题API", description = "")
@RestController
@RequestMapping("/topic")
public class TopicController {
@Resource
private ITopicService topicService;
@ApiOperation(value = "查询题目", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<TopicVo.TopicInfo> getTopicByLink(@RequestBody @ApiParam @Validated TopicDto.GetTopic getTopic) throws Exception {
log.info("查询题目:{}",getTopic.toString());
TopicVo.TopicInfo topicInfo = topicService.getTopicByLink(getTopic);
return JsonResponse.newInstance().ok(topicInfo);
}
@ApiOperation(value = "根据项目id查询分组信息", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TopicVo.GroupInfo>> queryGroupByProject(@RequestBody @ApiParam @Validated TopicDto.GetGroup getGroup) throws Exception {
log.info("根据项目id查询分组信息:{}",getGroup.toString());
List<TopicVo.GroupInfo> groupInfoList = topicService.queryGroupByProject(getGroup);
return JsonResponse.newInstance().ok(groupInfoList);
}
@ApiOperation(value = "主持人提交答案", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/saveAnswers", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse saveAnswers(@RequestBody @ApiParam @Validated TopicDto.SaveAnswers saveAnswers) throws Exception {
log.info("主持人提交答案:{}",saveAnswers.toString());
topicService.saveAnswers(saveAnswers);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "查排名", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/ranking", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TopicVo.QueryRanking>> queryRanking(@RequestBody @ApiParam @Validated TopicDto.GetRankingByProjectId ranking) throws Exception {
log.info("查排名:{}",ranking);
List<TopicVo.QueryRanking> queryRankings = topicService.queryRanking(ranking);
return JsonResponse.newInstance().ok(queryRankings);
}
@ApiOperation(value = "晋级", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/promoted", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse promoted(@RequestBody @ApiParam @Validated List<TopicDto.Promoted> promoted) throws Exception {
log.info("查排名:{}",promoted);
CodeEnum codeEnum = topicService.promoted(promoted);
return JsonResponse.newInstance().ok(codeEnum);
}
@ApiOperation(value = "选手抢答", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/responder/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse responderGroup(@RequestBody @ApiParam @Validated TopicDto.Group group) throws Exception {
log.info("选手抢答:{}",group.toString());
topicService.responderGroup(group);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "主持人在大屏点击开始抢答(倒计时结束后)", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/responder/start", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse responderStart(@RequestBody @ApiParam @Validated TopicDto.Topic topic) throws Exception {
log.info("主持人在大屏点击开始抢答:{}",topic.toString());
topicService.responderStart(topic);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "查询抢答成功的组", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/responder/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<TopicVo.GroupInfo> getResponder(@RequestBody @ApiParam @Validated TopicDto.Topic topic) throws Exception {
log.info("查询抢答成功的组:{}",topic.toString());
TopicVo.GroupInfo group = topicService.getResponder(topic);
return JsonResponse.newInstance().ok(group);
}
@ApiOperation(value = "查询所有绝地反击类型的题", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/all/type", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TopicVo.TopicByLink>> queryTopicAllByLink(@RequestBody @ApiParam @Validated TopicDto.GetTopicAll getTopicAll) throws Exception {
log.info("查询抢答成功的组:{}",getTopicAll.toString());
List<TopicVo.TopicByLink> topicByLinks = topicService.queryTopicAllByLink(getTopicAll);
return JsonResponse.newInstance().ok(topicByLinks);
}
}

56
mt/src/main/java/com/ccsens/mt/api/VideoController.java

@ -0,0 +1,56 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.TopicDto;
import com.ccsens.mt.bean.dto.VideoDto;
import com.ccsens.mt.bean.vo.VideoVo;
import com.ccsens.mt.service.IVideoService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "报表相关api")
@RestController
@RequestMapping("/video")
public class VideoController {
@Resource
private IVideoService videoService;
@MustLogin
@ApiOperation(value = "查看选手上传的视频信息", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<VideoVo.GetVideoInfo>> getVideoByPlayerId(@RequestBody @ApiParam @Validated QueryDto<VideoDto.GetVideo> params) {
log.info("查看选手上传的视频信息:{}",params.toString());
List<VideoVo.GetVideoInfo> getVideoInfoList = videoService.getVideoByPlayerId(params);
return JsonResponse.newInstance().ok(getVideoInfoList);
}
@MustLogin
@ApiOperation(value = "上传视频信息", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/upload", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<VideoVo.GetVideoInfo>> uploadVideo(@RequestBody @ApiParam @Validated QueryDto<VideoDto.UploadVideo> params) {
log.info("查看选手上传的视频信息:{}",params.toString());
List<VideoVo.GetVideoInfo> getVideoInfoList = videoService.uploadVideo(params);
return JsonResponse.newInstance().ok(getVideoInfoList);
}
}

66
mt/src/main/java/com/ccsens/mt/api/VoteController.java

@ -0,0 +1,66 @@
package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.TopicDto;
import com.ccsens.mt.bean.vo.VoteVo;
import com.ccsens.mt.service.IVoteService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "投票API", description = "")
@RestController
@RequestMapping("/vote")
public class VoteController {
@Resource
private IVoteService voteService;
@MustLogin
@ApiOperation(value = "用户投票", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/start", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse startVote(@RequestBody @ApiParam @Validated QueryDto<TopicDto.Project> params) throws Exception {
log.info("开始投票:{}",params.toString());
voteService.startVote(params);
return JsonResponse.newInstance().ok();
}
@MustLogin
@ApiOperation(value = "用户投票", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse saveVote(@RequestBody @ApiParam @Validated QueryDto<List<TopicDto.Group>> params) throws Exception {
log.info("用户投票:{}",params.toString());
voteService.saveVote(params);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "查询投票结果", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<VoteVo.GroupInfo>> queryVote(@RequestBody @ApiParam @Validated QueryDto<TopicDto.Project> params) throws Exception {
log.info("查询投票结果:{}",params.toString());
List<VoteVo.GroupInfo> groupInfoList = voteService.queryVote(params.getParam());
return JsonResponse.newInstance().ok(groupInfoList);
}
}

231
mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java

@ -0,0 +1,231 @@
package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @author
*/
@Data
public class CompeteDto {
@Data
@ApiModel
public static class CompeteType{
@NotNull
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛")
private int type;
}
@Data
@ApiModel
public static class CompeteTime{
@NotNull
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
}
@Data
@ApiModel("查询项目下的选手列表")
public static class CompeteProjectId{
@NotNull
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
@NotNull
@ApiModelProperty("比赛项目id(二级的)")
private Long competeProjectId;
}
@Data
@ApiModel
public static class CompeteProjectPlayer{
@NotNull
@ApiModelProperty("选手创建的团队id")
private Long projectPlayerId;
}
@Data
@ApiModel("关键字模糊查询")
public static class CompeteTypeAndKey{
@NotEmpty
@ApiModelProperty("关键字")
private String key;
@NotNull
@ApiModelProperty("比赛的类型,0跳绳比赛")
private int type;
}
@Data
@ApiModel("提交报名基本信息")
public static class CompetePlayerInfo{
@NotNull
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
@NotNull
@ApiModelProperty("比赛的类型,0跳绳比赛")
private int type;
@NotEmpty
@ApiModelProperty("姓名")
private String name;
@NotNull
@ApiModelProperty("性别 0女 1男")
private int gender;
@NotEmpty
@ApiModelProperty("手机号")
private String phone;
@NotEmpty
@ApiModelProperty("手机验证码")
private String smsCode;
@NotEmpty
@ApiModelProperty("身份证")
private String idCard;
@NotNull
@ApiModelProperty("参加的组别的id")
private Long groupId;
@ApiModelProperty("参赛单位的名字")
private String companyName;
@ApiModelProperty("身份证正面照文件的路径/户口本照片")
private String idCardFront;
@ApiModelProperty("身份证反面照文件的路径")
private String idCardBack;
@ApiModelProperty("声明文件的路径")
private String proveImg;
@ApiModelProperty("其他参赛人员(亲子组需要)")
private String family;
}
@Data
@ApiModel("选择参赛项目")
public static class CompeteProject{
@NotNull
@ApiModelProperty("比赛项目id(二级的)")
private Long competeProjectId;
@ApiModelProperty("是否通级 0否 1是")
private byte certificate;
@NotNull
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
}
@Data
@ApiModel("项目团队ID")
public static class CompeteGroup{
@NotNull(message="请选择团队信息")
@ApiModelProperty("团队ID")
private Long id;
}
@Data
@ApiModel("院系提交报名信息")
public static class DepartmentInfo{
@NotNull(message="请选择院系信息")
@ApiModelProperty("院系id")
private Long id;
@NotNull
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛")
private int type;
@ApiModelProperty("填表人裁判等信息")
private List<DepartmentRole> roleList;
@ApiModelProperty("每个比赛项目的参赛名单")
private List<DepartmentProject> projectList;
}
@Data
@ApiModel("填表人裁判等信息")
public static class DepartmentRole{
@NotEmpty
@ApiModelProperty("名字")
private String name;
@NotEmpty
@ApiModelProperty("手机号")
private String phone;
@NotNull
@ApiModelProperty("担任的角色 0领队 1裁判 2填表人")
private int role;
}
@Data
@ApiModel("每个比赛项目的参赛名单")
public static class DepartmentProject{
@NotNull
@ApiModelProperty("比赛项目id(二级的)")
private Long competeProjectId;
@NotEmpty
@ApiModelProperty("参赛人员名单,名字中间用逗号隔开")
private String names;
@ApiModelProperty("性别组 0女 1男 2混合")
private int genderGroup;
}
@Data
@ApiModel("获取院系提交的报名信息")
public static class GetDepartmentInfo{
@NotNull
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛")
private int type;
}
@Data
@ApiModel
public static class QueryProjectByGroup{
@NotNull
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛")
private int type;
@NotNull
@ApiModelProperty("组别id")
private Long groupId;
}
@Data
@ApiModel
public static class QueryGroupByProject{
@NotNull
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛")
private int type;
@NotNull
@ApiModelProperty("项目id")
private Long projectId;
}
@Data
@ApiModel("提交报名基本信息")
public static class CompetePlayerAndProject{
@NotNull
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
@NotNull
@ApiModelProperty("比赛的类型,0跳绳比赛")
private int type;
@NotEmpty
@ApiModelProperty("姓名")
private String name;
@NotEmpty
@ApiModelProperty("手机号")
private String phone;
@NotEmpty
@ApiModelProperty("手机验证码")
private String smsCode;
@NotEmpty
@ApiModelProperty("身份证")
private String idCard;
// @NotNull
// @ApiModelProperty("参加的组别的id")
// private Long groupId;
@ApiModelProperty("参加的比赛信息")
List<ProjectAndGroup> projectAndGroups;
}
@Data
@ApiModel("项目id和组别id")
public static class ProjectAndGroup{
@ApiModelProperty("比赛项目id(二级的)")
private Long projectId;
@ApiModelProperty("组别id")
private Long groupId;
@ApiModelProperty("其他参赛人员(亲子组需要)")
private String family;
}
}

111
mt/src/main/java/com/ccsens/mt/bean/dto/LevelDto.java

@ -0,0 +1,111 @@
package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author
*/
@Data
public class LevelDto {
@Data
@ApiModel("添加选手信息")
public static class LevelUserDto{
@ApiModelProperty("报名比赛的选手的id")
private Long playerId;
@ApiModelProperty("头像")
private String avatarUrl;
@ApiModelProperty("名称")
private String name;
@ApiModelProperty("团队id")
private Long teamId;
public LevelUserDto() {
}
public LevelUserDto(Long playerId, String avatarUrl, String name, Long teamId) {
this.playerId = playerId;
this.avatarUrl = avatarUrl;
this.name = name;
this.teamId = teamId;
}
}
@Data
@ApiModel("添加晋级表信息")
public static class LevelUpDto{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
@ApiModelProperty("选手id")
private Long playerId;
@ApiModelProperty("分数")
private int score;
@ApiModelProperty("附加分数")
private int additionScore;
@ApiModelProperty("名次")
private int ranking;
public LevelUpDto() {
}
public LevelUpDto(Long competeTimeId, String competeCode, Long playerId) {
this.competeTimeId = competeTimeId;
this.competeCode = competeCode;
this.playerId = playerId;
}
}
@Data
@ApiModel("自动晋级")
public static class AutoLevelUpDto{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
public AutoLevelUpDto() {
}
public AutoLevelUpDto(Long competeTimeId, String competeCode) {
this.competeTimeId = competeTimeId;
this.competeCode = competeCode;
}
}
@Data
@ApiModel("手动晋级")
public static class ManualLevelUpDto{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
@ApiModelProperty("手动晋级的选手信息")
private List<ManualLevelUpPlayer> manualLevelUpPlayers;
}
@Data
@ApiModel("手动晋级的选手信息")
public static class ManualLevelUpPlayer{
@ApiModelProperty("选手id")
private Long playerId;
}
@Data
@ApiModel("查询晋级信息")
public static class QueryLevelUserInfo{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
@ApiModelProperty("页码 -1表示不分页 默认-1")
private int page = -1;
@ApiModelProperty("每页数量 默认10")
private int pageSize = 10;
}
}

23
mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java

@ -3,16 +3,13 @@ package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.List;
@Data
public class ScoreDto {
@Getter
@Setter
@Data
@ApiModel
public static class Judge{
@ApiModelProperty("评委id")
@ -20,8 +17,7 @@ public class ScoreDto {
@ApiModelProperty("公司项目Id")
private Long playerId;
}
@Getter
@Setter
@Data
@ApiModel
public static class SubmitScore{
@ApiModelProperty("评委id")
@ -31,8 +27,7 @@ public class ScoreDto {
@ApiModelProperty("评分信息")
private List<ScoreInfo1> data;
}
@Getter
@Setter
@Data
@ApiModel
public static class SubmitScoreTable{
@ApiModelProperty("评委id")
@ -51,8 +46,7 @@ public class ScoreDto {
private List<BigDecimal> scores;
}
@Getter
@Setter
@Data
@ApiModel
public static class ScoreInfo1{
@ApiModelProperty("评分项Id")
@ -62,15 +56,13 @@ public class ScoreDto {
}
@Getter
@Setter
@Data
@ApiModel
public class ScoreLogs{
@ApiModelProperty("评分项")
private List<ScoreLogVo> scoreLogList;
}
@Getter
@Setter
@Data
@ApiModel
public class ScoreLogVo {
@ApiModelProperty("名字")
@ -81,8 +73,7 @@ public class ScoreDto {
private BigDecimal minScore;
}
@Getter
@Setter
@Data
@ApiModel
public static class SubmitOnlyOneScore{
@ApiModelProperty("角色id")

126
mt/src/main/java/com/ccsens/mt/bean/dto/TopicDto.java

@ -0,0 +1,126 @@
package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @author
*/
@Data
public class TopicDto {
@Data
@ApiModel("查询题目")
public static class GetTopic{
@NotNull
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜")
private int linkType = 1;
@NotNull
@ApiModelProperty("当前环节的题号")
private int topicNum;
@NotNull
@ApiModelProperty("项目ID")
private long projectId;
}
@Data
@ApiModel("根据项目id查分组信息")
public static class GetGroup{
@NotNull
@ApiModelProperty("项目id")
private Long projectId;
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜")
private int linkType = 1;
@NotNull
@ApiModelProperty("参赛组的类型 0答题 1投票 默认为0")
private int type = 0;
}
@Data
@ApiModel("主持人提交答案")
public static class SaveAnswers{
@NotNull
@ApiModelProperty("题目id")
private Long topicId;
@ApiModelProperty("每组的答案")
private List<SaveAnswersGroup> answersGroupList;
}
@Data
@ApiModel("提交时每组的答案")
public static class SaveAnswersGroup{
@NotNull
@ApiModelProperty("该组的id")
private Long groupId;
@ApiModelProperty("答案(当前项目为T/F 默认F)")
private String answers = "F";
}
@Data
@ApiModel("查找组排名信息")
public static class GetRankingByProjectId{
@NotNull
@ApiModelProperty("项目id")
private Long projectId;
@NotNull
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜")
private int linkType;
}
@Data
@ApiModel("晋级")
public static class Promoted{
@ApiModelProperty("晋级 1志在必得 2以快制胜 3绝地反击 4你说我猜")
@Min(1)
@Max(4)
private Byte linkTypes;
@ApiModelProperty("分组ID")
private Long groupId;
}
@Data
@ApiModel("题目id")
public static class Topic{
@NotNull
@ApiModelProperty("题目id")
private Long topicId;
@NotNull
@ApiModelProperty("项目ID")
private Long projectId;
}
@Data
@ApiModel("分组id")
public static class Group{
@NotNull
@ApiModelProperty("分组id")
private Long groupId;
}
@Data
@ApiModel("项目id")
public static class Project{
@NotNull
@ApiModelProperty("项目id")
private Long projectId;
}
@Data
@ApiModel("查询所有绝地反击的题")
public static class GetTopicAll{
@NotNull
@ApiModelProperty("项目id")
private Long projectId;
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜 默认查询绝地反击")
private int linkType = 3;
@Max(50)
@Min(0)
@ApiModelProperty("查询几道题 可以不传 默认查询绝地反击的9道题")
private int nums = 9;
}
}

42
mt/src/main/java/com/ccsens/mt/bean/dto/VideoDto.java

@ -0,0 +1,42 @@
package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author
*/
@Data
public class VideoDto {
@Data
@ApiModel("查看上传视频的信息")
public static class GetVideo{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
@ApiModelProperty("查询的是单人还是团队 0个人 1团队")
private byte team = 0;
@ApiModelProperty("如果查询的是单人则是选手id。查询团队则传入团队id")
private Long playerId;
}
@Data
@ApiModel("上传视频信息")
public static class UploadVideo{
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("比赛code")
private String competeCode;
@ApiModelProperty("上传的是单人还是团队 0个人 1团队")
private byte team = 0;
@ApiModelProperty("如果上传的是单人则是选手id。上传团队则传入团队id")
private Long playerId;
@ApiModelProperty("视频文件id")
private Long videoFileId;
@ApiModelProperty("视频文件浏览路径")
private String videoFileUrl;
}
}

8
mt/src/main/java/com/ccsens/mt/bean/dto/VoteDto.java

@ -0,0 +1,8 @@
package com.ccsens.mt.bean.dto;
import lombok.Data;
@Data
public class VoteDto {
}

21
mt/src/main/java/com/ccsens/mt/bean/dto/message/BaseMessageDto.java

@ -1,8 +1,14 @@
package com.ccsens.mt.bean.dto.message;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.util.bean.message.common.InMessage;
import lombok.Data;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Data
public class BaseMessageDto {
@ -23,6 +29,8 @@ public class BaseMessageDto {
this.nickname = nickname;
this.avatarUrl = avatarUrl;
}
}
private Long time;
@ -32,4 +40,17 @@ public class BaseMessageDto {
private MessageUser sender;
private List<MessageUser> receivers;
// private Object data;
public Set<String> receiversTransTos() {
Set<String> tos = new HashSet<>();
if (CollectionUtil.isEmpty(receivers)) {
return tos;
}
receivers.forEach(receiver -> {
InMessage.To to = new InMessage.To(receiver.getUserId());
tos.add(JSONObject.toJSONString(to));
});
return tos;
}
}

106
mt/src/main/java/com/ccsens/mt/bean/po/CommonFile.java

@ -0,0 +1,106 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CommonFile implements Serializable {
private Long id;
private Long userId;
private String fileName;
private String location;
private String visitLocation;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName == null ? null : fileName.trim();
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location == null ? null : location.trim();
}
public String getVisitLocation() {
return visitLocation;
}
public void setVisitLocation(String visitLocation) {
this.visitLocation = visitLocation == null ? null : visitLocation.trim();
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", fileName=").append(fileName);
sb.append(", location=").append(location);
sb.append(", visitLocation=").append(visitLocation);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

711
mt/src/main/java/com/ccsens/mt/bean/po/CommonFileExample.java

@ -0,0 +1,711 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CommonFileExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CommonFileExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andFileNameIsNull() {
addCriterion("file_name is null");
return (Criteria) this;
}
public Criteria andFileNameIsNotNull() {
addCriterion("file_name is not null");
return (Criteria) this;
}
public Criteria andFileNameEqualTo(String value) {
addCriterion("file_name =", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameNotEqualTo(String value) {
addCriterion("file_name <>", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameGreaterThan(String value) {
addCriterion("file_name >", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameGreaterThanOrEqualTo(String value) {
addCriterion("file_name >=", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameLessThan(String value) {
addCriterion("file_name <", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameLessThanOrEqualTo(String value) {
addCriterion("file_name <=", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameLike(String value) {
addCriterion("file_name like", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameNotLike(String value) {
addCriterion("file_name not like", value, "fileName");
return (Criteria) this;
}
public Criteria andFileNameIn(List<String> values) {
addCriterion("file_name in", values, "fileName");
return (Criteria) this;
}
public Criteria andFileNameNotIn(List<String> values) {
addCriterion("file_name not in", values, "fileName");
return (Criteria) this;
}
public Criteria andFileNameBetween(String value1, String value2) {
addCriterion("file_name between", value1, value2, "fileName");
return (Criteria) this;
}
public Criteria andFileNameNotBetween(String value1, String value2) {
addCriterion("file_name not between", value1, value2, "fileName");
return (Criteria) this;
}
public Criteria andLocationIsNull() {
addCriterion("location is null");
return (Criteria) this;
}
public Criteria andLocationIsNotNull() {
addCriterion("location is not null");
return (Criteria) this;
}
public Criteria andLocationEqualTo(String value) {
addCriterion("location =", value, "location");
return (Criteria) this;
}
public Criteria andLocationNotEqualTo(String value) {
addCriterion("location <>", value, "location");
return (Criteria) this;
}
public Criteria andLocationGreaterThan(String value) {
addCriterion("location >", value, "location");
return (Criteria) this;
}
public Criteria andLocationGreaterThanOrEqualTo(String value) {
addCriterion("location >=", value, "location");
return (Criteria) this;
}
public Criteria andLocationLessThan(String value) {
addCriterion("location <", value, "location");
return (Criteria) this;
}
public Criteria andLocationLessThanOrEqualTo(String value) {
addCriterion("location <=", value, "location");
return (Criteria) this;
}
public Criteria andLocationLike(String value) {
addCriterion("location like", value, "location");
return (Criteria) this;
}
public Criteria andLocationNotLike(String value) {
addCriterion("location not like", value, "location");
return (Criteria) this;
}
public Criteria andLocationIn(List<String> values) {
addCriterion("location in", values, "location");
return (Criteria) this;
}
public Criteria andLocationNotIn(List<String> values) {
addCriterion("location not in", values, "location");
return (Criteria) this;
}
public Criteria andLocationBetween(String value1, String value2) {
addCriterion("location between", value1, value2, "location");
return (Criteria) this;
}
public Criteria andLocationNotBetween(String value1, String value2) {
addCriterion("location not between", value1, value2, "location");
return (Criteria) this;
}
public Criteria andVisitLocationIsNull() {
addCriterion("visit_location is null");
return (Criteria) this;
}
public Criteria andVisitLocationIsNotNull() {
addCriterion("visit_location is not null");
return (Criteria) this;
}
public Criteria andVisitLocationEqualTo(String value) {
addCriterion("visit_location =", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationNotEqualTo(String value) {
addCriterion("visit_location <>", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationGreaterThan(String value) {
addCriterion("visit_location >", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationGreaterThanOrEqualTo(String value) {
addCriterion("visit_location >=", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationLessThan(String value) {
addCriterion("visit_location <", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationLessThanOrEqualTo(String value) {
addCriterion("visit_location <=", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationLike(String value) {
addCriterion("visit_location like", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationNotLike(String value) {
addCriterion("visit_location not like", value, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationIn(List<String> values) {
addCriterion("visit_location in", values, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationNotIn(List<String> values) {
addCriterion("visit_location not in", values, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationBetween(String value1, String value2) {
addCriterion("visit_location between", value1, value2, "visitLocation");
return (Criteria) this;
}
public Criteria andVisitLocationNotBetween(String value1, String value2) {
addCriterion("visit_location not between", value1, value2, "visitLocation");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

84
mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java

@ -0,0 +1,84 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteCompany implements Serializable {
private Long id;
private String name;
private Byte type;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", type=").append(type);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

571
mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java

@ -0,0 +1,571 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteCompanyExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteCompanyExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

95
mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyRole.java

@ -0,0 +1,95 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteCompanyRole implements Serializable {
private Long id;
private Long playerId;
private Long competeCompanyId;
private Byte type;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPlayerId() {
return playerId;
}
public void setPlayerId(Long playerId) {
this.playerId = playerId;
}
public Long getCompeteCompanyId() {
return competeCompanyId;
}
public void setCompeteCompanyId(Long competeCompanyId) {
this.competeCompanyId = competeCompanyId;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", playerId=").append(playerId);
sb.append(", competeCompanyId=").append(competeCompanyId);
sb.append(", type=").append(type);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

621
mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyRoleExample.java

@ -0,0 +1,621 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteCompanyRoleExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteCompanyRoleExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andPlayerIdIsNull() {
addCriterion("player_id is null");
return (Criteria) this;
}
public Criteria andPlayerIdIsNotNull() {
addCriterion("player_id is not null");
return (Criteria) this;
}
public Criteria andPlayerIdEqualTo(Long value) {
addCriterion("player_id =", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotEqualTo(Long value) {
addCriterion("player_id <>", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThan(Long value) {
addCriterion("player_id >", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) {
addCriterion("player_id >=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThan(Long value) {
addCriterion("player_id <", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThanOrEqualTo(Long value) {
addCriterion("player_id <=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdIn(List<Long> values) {
addCriterion("player_id in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotIn(List<Long> values) {
addCriterion("player_id not in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdBetween(Long value1, Long value2) {
addCriterion("player_id between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotBetween(Long value1, Long value2) {
addCriterion("player_id not between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdIsNull() {
addCriterion("compete_company_id is null");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdIsNotNull() {
addCriterion("compete_company_id is not null");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdEqualTo(Long value) {
addCriterion("compete_company_id =", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdNotEqualTo(Long value) {
addCriterion("compete_company_id <>", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdGreaterThan(Long value) {
addCriterion("compete_company_id >", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdGreaterThanOrEqualTo(Long value) {
addCriterion("compete_company_id >=", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdLessThan(Long value) {
addCriterion("compete_company_id <", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdLessThanOrEqualTo(Long value) {
addCriterion("compete_company_id <=", value, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdIn(List<Long> values) {
addCriterion("compete_company_id in", values, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdNotIn(List<Long> values) {
addCriterion("compete_company_id not in", values, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdBetween(Long value1, Long value2) {
addCriterion("compete_company_id between", value1, value2, "competeCompanyId");
return (Criteria) this;
}
public Criteria andCompeteCompanyIdNotBetween(Long value1, Long value2) {
addCriterion("compete_company_id not between", value1, value2, "competeCompanyId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

128
mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java

@ -0,0 +1,128 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteGroup implements Serializable {
private Long id;
private String groupName;
private String description;
private Integer startAge;
private Integer endAge;
private Integer sequence;
private Byte type;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName == null ? null : groupName.trim();
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
public Integer getStartAge() {
return startAge;
}
public void setStartAge(Integer startAge) {
this.startAge = startAge;
}
public Integer getEndAge() {
return endAge;
}
public void setEndAge(Integer endAge) {
this.endAge = endAge;
}
public Integer getSequence() {
return sequence;
}
public void setSequence(Integer sequence) {
this.sequence = sequence;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", groupName=").append(groupName);
sb.append(", description=").append(description);
sb.append(", startAge=").append(startAge);
sb.append(", endAge=").append(endAge);
sb.append(", sequence=").append(sequence);
sb.append(", type=").append(type);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

821
mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java

@ -0,0 +1,821 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteGroupExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteGroupExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andGroupNameIsNull() {
addCriterion("group_name is null");
return (Criteria) this;
}
public Criteria andGroupNameIsNotNull() {
addCriterion("group_name is not null");
return (Criteria) this;
}
public Criteria andGroupNameEqualTo(String value) {
addCriterion("group_name =", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotEqualTo(String value) {
addCriterion("group_name <>", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThan(String value) {
addCriterion("group_name >", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
addCriterion("group_name >=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThan(String value) {
addCriterion("group_name <", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThanOrEqualTo(String value) {
addCriterion("group_name <=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLike(String value) {
addCriterion("group_name like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotLike(String value) {
addCriterion("group_name not like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameIn(List<String> values) {
addCriterion("group_name in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotIn(List<String> values) {
addCriterion("group_name not in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameBetween(String value1, String value2) {
addCriterion("group_name between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotBetween(String value1, String value2) {
addCriterion("group_name not between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andStartAgeIsNull() {
addCriterion("start_age is null");
return (Criteria) this;
}
public Criteria andStartAgeIsNotNull() {
addCriterion("start_age is not null");
return (Criteria) this;
}
public Criteria andStartAgeEqualTo(Integer value) {
addCriterion("start_age =", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeNotEqualTo(Integer value) {
addCriterion("start_age <>", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeGreaterThan(Integer value) {
addCriterion("start_age >", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeGreaterThanOrEqualTo(Integer value) {
addCriterion("start_age >=", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeLessThan(Integer value) {
addCriterion("start_age <", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeLessThanOrEqualTo(Integer value) {
addCriterion("start_age <=", value, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeIn(List<Integer> values) {
addCriterion("start_age in", values, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeNotIn(List<Integer> values) {
addCriterion("start_age not in", values, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeBetween(Integer value1, Integer value2) {
addCriterion("start_age between", value1, value2, "startAge");
return (Criteria) this;
}
public Criteria andStartAgeNotBetween(Integer value1, Integer value2) {
addCriterion("start_age not between", value1, value2, "startAge");
return (Criteria) this;
}
public Criteria andEndAgeIsNull() {
addCriterion("end_age is null");
return (Criteria) this;
}
public Criteria andEndAgeIsNotNull() {
addCriterion("end_age is not null");
return (Criteria) this;
}
public Criteria andEndAgeEqualTo(Integer value) {
addCriterion("end_age =", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeNotEqualTo(Integer value) {
addCriterion("end_age <>", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeGreaterThan(Integer value) {
addCriterion("end_age >", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeGreaterThanOrEqualTo(Integer value) {
addCriterion("end_age >=", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeLessThan(Integer value) {
addCriterion("end_age <", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeLessThanOrEqualTo(Integer value) {
addCriterion("end_age <=", value, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeIn(List<Integer> values) {
addCriterion("end_age in", values, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeNotIn(List<Integer> values) {
addCriterion("end_age not in", values, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeBetween(Integer value1, Integer value2) {
addCriterion("end_age between", value1, value2, "endAge");
return (Criteria) this;
}
public Criteria andEndAgeNotBetween(Integer value1, Integer value2) {
addCriterion("end_age not between", value1, value2, "endAge");
return (Criteria) this;
}
public Criteria andSequenceIsNull() {
addCriterion("sequence is null");
return (Criteria) this;
}
public Criteria andSequenceIsNotNull() {
addCriterion("sequence is not null");
return (Criteria) this;
}
public Criteria andSequenceEqualTo(Integer value) {
addCriterion("sequence =", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceNotEqualTo(Integer value) {
addCriterion("sequence <>", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceGreaterThan(Integer value) {
addCriterion("sequence >", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceGreaterThanOrEqualTo(Integer value) {
addCriterion("sequence >=", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceLessThan(Integer value) {
addCriterion("sequence <", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceLessThanOrEqualTo(Integer value) {
addCriterion("sequence <=", value, "sequence");
return (Criteria) this;
}
public Criteria andSequenceIn(List<Integer> values) {
addCriterion("sequence in", values, "sequence");
return (Criteria) this;
}
public Criteria andSequenceNotIn(List<Integer> values) {
addCriterion("sequence not in", values, "sequence");
return (Criteria) this;
}
public Criteria andSequenceBetween(Integer value1, Integer value2) {
addCriterion("sequence between", value1, value2, "sequence");
return (Criteria) this;
}
public Criteria andSequenceNotBetween(Integer value1, Integer value2) {
addCriterion("sequence not between", value1, value2, "sequence");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

194
mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java

@ -0,0 +1,194 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompetePlayer implements Serializable {
private Long id;
private Long userId;
private String name;
private String idCard;
private String phone;
private Byte gender;
private String idCardFront;
private String idCardBack;
private String proveImg;
private Long competeGroupId;
private Long companyId;
private Byte authorization;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private Long competeTimeId;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public String getIdCard() {
return idCard;
}
public void setIdCard(String idCard) {
this.idCard = idCard == null ? null : idCard.trim();
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}
public Byte getGender() {
return gender;
}
public void setGender(Byte gender) {
this.gender = gender;
}
public String getIdCardFront() {
return idCardFront;
}
public void setIdCardFront(String idCardFront) {
this.idCardFront = idCardFront == null ? null : idCardFront.trim();
}
public String getIdCardBack() {
return idCardBack;
}
public void setIdCardBack(String idCardBack) {
this.idCardBack = idCardBack == null ? null : idCardBack.trim();
}
public String getProveImg() {
return proveImg;
}
public void setProveImg(String proveImg) {
this.proveImg = proveImg == null ? null : proveImg.trim();
}
public Long getCompeteGroupId() {
return competeGroupId;
}
public void setCompeteGroupId(Long competeGroupId) {
this.competeGroupId = competeGroupId;
}
public Long getCompanyId() {
return companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public Byte getAuthorization() {
return authorization;
}
public void setAuthorization(Byte authorization) {
this.authorization = authorization;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
public Long getCompeteTimeId() {
return competeTimeId;
}
public void setCompeteTimeId(Long competeTimeId) {
this.competeTimeId = competeTimeId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", name=").append(name);
sb.append(", idCard=").append(idCard);
sb.append(", phone=").append(phone);
sb.append(", gender=").append(gender);
sb.append(", idCardFront=").append(idCardFront);
sb.append(", idCardBack=").append(idCardBack);
sb.append(", proveImg=").append(proveImg);
sb.append(", competeGroupId=").append(competeGroupId);
sb.append(", companyId=").append(companyId);
sb.append(", authorization=").append(authorization);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", competeTimeId=").append(competeTimeId);
sb.append("]");
return sb.toString();
}
}

1221
mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java

File diff suppressed because it is too large

95
mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerFamily.java

@ -0,0 +1,95 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompetePlayerFamily implements Serializable {
private Long id;
private Long playerId;
private Long childrenId;
private String description;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPlayerId() {
return playerId;
}
public void setPlayerId(Long playerId) {
this.playerId = playerId;
}
public Long getChildrenId() {
return childrenId;
}
public void setChildrenId(Long childrenId) {
this.childrenId = childrenId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", playerId=").append(playerId);
sb.append(", childrenId=").append(childrenId);
sb.append(", description=").append(description);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

631
mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerFamilyExample.java

@ -0,0 +1,631 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompetePlayerFamilyExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompetePlayerFamilyExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andPlayerIdIsNull() {
addCriterion("player_id is null");
return (Criteria) this;
}
public Criteria andPlayerIdIsNotNull() {
addCriterion("player_id is not null");
return (Criteria) this;
}
public Criteria andPlayerIdEqualTo(Long value) {
addCriterion("player_id =", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotEqualTo(Long value) {
addCriterion("player_id <>", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThan(Long value) {
addCriterion("player_id >", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) {
addCriterion("player_id >=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThan(Long value) {
addCriterion("player_id <", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThanOrEqualTo(Long value) {
addCriterion("player_id <=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdIn(List<Long> values) {
addCriterion("player_id in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotIn(List<Long> values) {
addCriterion("player_id not in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdBetween(Long value1, Long value2) {
addCriterion("player_id between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotBetween(Long value1, Long value2) {
addCriterion("player_id not between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andChildrenIdIsNull() {
addCriterion("children_id is null");
return (Criteria) this;
}
public Criteria andChildrenIdIsNotNull() {
addCriterion("children_id is not null");
return (Criteria) this;
}
public Criteria andChildrenIdEqualTo(Long value) {
addCriterion("children_id =", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdNotEqualTo(Long value) {
addCriterion("children_id <>", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdGreaterThan(Long value) {
addCriterion("children_id >", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdGreaterThanOrEqualTo(Long value) {
addCriterion("children_id >=", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdLessThan(Long value) {
addCriterion("children_id <", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdLessThanOrEqualTo(Long value) {
addCriterion("children_id <=", value, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdIn(List<Long> values) {
addCriterion("children_id in", values, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdNotIn(List<Long> values) {
addCriterion("children_id not in", values, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdBetween(Long value1, Long value2) {
addCriterion("children_id between", value1, value2, "childrenId");
return (Criteria) this;
}
public Criteria andChildrenIdNotBetween(Long value1, Long value2) {
addCriterion("children_id not between", value1, value2, "childrenId");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

161
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java

@ -0,0 +1,161 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteProject implements Serializable {
private Long id;
private String name;
private Long parentId;
private Byte level;
private Byte team;
private Byte joinRule;
private Byte certificate;
private Integer memberMin;
private Integer memberMax;
private Byte type;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Byte getLevel() {
return level;
}
public void setLevel(Byte level) {
this.level = level;
}
public Byte getTeam() {
return team;
}
public void setTeam(Byte team) {
this.team = team;
}
public Byte getJoinRule() {
return joinRule;
}
public void setJoinRule(Byte joinRule) {
this.joinRule = joinRule;
}
public Byte getCertificate() {
return certificate;
}
public void setCertificate(Byte certificate) {
this.certificate = certificate;
}
public Integer getMemberMin() {
return memberMin;
}
public void setMemberMin(Integer memberMin) {
this.memberMin = memberMin;
}
public Integer getMemberMax() {
return memberMax;
}
public void setMemberMax(Integer memberMax) {
this.memberMax = memberMax;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", parentId=").append(parentId);
sb.append(", level=").append(level);
sb.append(", team=").append(team);
sb.append(", joinRule=").append(joinRule);
sb.append(", certificate=").append(certificate);
sb.append(", memberMin=").append(memberMin);
sb.append(", memberMax=").append(memberMax);
sb.append(", type=").append(type);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

991
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java

@ -0,0 +1,991 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteProjectExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteProjectExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andParentIdIsNull() {
addCriterion("parent_id is null");
return (Criteria) this;
}
public Criteria andParentIdIsNotNull() {
addCriterion("parent_id is not null");
return (Criteria) this;
}
public Criteria andParentIdEqualTo(Long value) {
addCriterion("parent_id =", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(Long value) {
addCriterion("parent_id <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(Long value) {
addCriterion("parent_id >", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
addCriterion("parent_id >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThan(Long value) {
addCriterion("parent_id <", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(Long value) {
addCriterion("parent_id <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<Long> values) {
addCriterion("parent_id in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<Long> values) {
addCriterion("parent_id not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdBetween(Long value1, Long value2) {
addCriterion("parent_id between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(Long value1, Long value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andLevelIsNull() {
addCriterion("level is null");
return (Criteria) this;
}
public Criteria andLevelIsNotNull() {
addCriterion("level is not null");
return (Criteria) this;
}
public Criteria andLevelEqualTo(Byte value) {
addCriterion("level =", value, "level");
return (Criteria) this;
}
public Criteria andLevelNotEqualTo(Byte value) {
addCriterion("level <>", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThan(Byte value) {
addCriterion("level >", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThanOrEqualTo(Byte value) {
addCriterion("level >=", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThan(Byte value) {
addCriterion("level <", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThanOrEqualTo(Byte value) {
addCriterion("level <=", value, "level");
return (Criteria) this;
}
public Criteria andLevelIn(List<Byte> values) {
addCriterion("level in", values, "level");
return (Criteria) this;
}
public Criteria andLevelNotIn(List<Byte> values) {
addCriterion("level not in", values, "level");
return (Criteria) this;
}
public Criteria andLevelBetween(Byte value1, Byte value2) {
addCriterion("level between", value1, value2, "level");
return (Criteria) this;
}
public Criteria andLevelNotBetween(Byte value1, Byte value2) {
addCriterion("level not between", value1, value2, "level");
return (Criteria) this;
}
public Criteria andTeamIsNull() {
addCriterion("team is null");
return (Criteria) this;
}
public Criteria andTeamIsNotNull() {
addCriterion("team is not null");
return (Criteria) this;
}
public Criteria andTeamEqualTo(Byte value) {
addCriterion("team =", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotEqualTo(Byte value) {
addCriterion("team <>", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThan(Byte value) {
addCriterion("team >", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThanOrEqualTo(Byte value) {
addCriterion("team >=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThan(Byte value) {
addCriterion("team <", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThanOrEqualTo(Byte value) {
addCriterion("team <=", value, "team");
return (Criteria) this;
}
public Criteria andTeamIn(List<Byte> values) {
addCriterion("team in", values, "team");
return (Criteria) this;
}
public Criteria andTeamNotIn(List<Byte> values) {
addCriterion("team not in", values, "team");
return (Criteria) this;
}
public Criteria andTeamBetween(Byte value1, Byte value2) {
addCriterion("team between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andTeamNotBetween(Byte value1, Byte value2) {
addCriterion("team not between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andJoinRuleIsNull() {
addCriterion("join_rule is null");
return (Criteria) this;
}
public Criteria andJoinRuleIsNotNull() {
addCriterion("join_rule is not null");
return (Criteria) this;
}
public Criteria andJoinRuleEqualTo(Byte value) {
addCriterion("join_rule =", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleNotEqualTo(Byte value) {
addCriterion("join_rule <>", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleGreaterThan(Byte value) {
addCriterion("join_rule >", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleGreaterThanOrEqualTo(Byte value) {
addCriterion("join_rule >=", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleLessThan(Byte value) {
addCriterion("join_rule <", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleLessThanOrEqualTo(Byte value) {
addCriterion("join_rule <=", value, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleIn(List<Byte> values) {
addCriterion("join_rule in", values, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleNotIn(List<Byte> values) {
addCriterion("join_rule not in", values, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleBetween(Byte value1, Byte value2) {
addCriterion("join_rule between", value1, value2, "joinRule");
return (Criteria) this;
}
public Criteria andJoinRuleNotBetween(Byte value1, Byte value2) {
addCriterion("join_rule not between", value1, value2, "joinRule");
return (Criteria) this;
}
public Criteria andCertificateIsNull() {
addCriterion("certificate is null");
return (Criteria) this;
}
public Criteria andCertificateIsNotNull() {
addCriterion("certificate is not null");
return (Criteria) this;
}
public Criteria andCertificateEqualTo(Byte value) {
addCriterion("certificate =", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotEqualTo(Byte value) {
addCriterion("certificate <>", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateGreaterThan(Byte value) {
addCriterion("certificate >", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateGreaterThanOrEqualTo(Byte value) {
addCriterion("certificate >=", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateLessThan(Byte value) {
addCriterion("certificate <", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateLessThanOrEqualTo(Byte value) {
addCriterion("certificate <=", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateIn(List<Byte> values) {
addCriterion("certificate in", values, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotIn(List<Byte> values) {
addCriterion("certificate not in", values, "certificate");
return (Criteria) this;
}
public Criteria andCertificateBetween(Byte value1, Byte value2) {
addCriterion("certificate between", value1, value2, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotBetween(Byte value1, Byte value2) {
addCriterion("certificate not between", value1, value2, "certificate");
return (Criteria) this;
}
public Criteria andMemberMinIsNull() {
addCriterion("member_min is null");
return (Criteria) this;
}
public Criteria andMemberMinIsNotNull() {
addCriterion("member_min is not null");
return (Criteria) this;
}
public Criteria andMemberMinEqualTo(Integer value) {
addCriterion("member_min =", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinNotEqualTo(Integer value) {
addCriterion("member_min <>", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinGreaterThan(Integer value) {
addCriterion("member_min >", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinGreaterThanOrEqualTo(Integer value) {
addCriterion("member_min >=", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinLessThan(Integer value) {
addCriterion("member_min <", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinLessThanOrEqualTo(Integer value) {
addCriterion("member_min <=", value, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinIn(List<Integer> values) {
addCriterion("member_min in", values, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinNotIn(List<Integer> values) {
addCriterion("member_min not in", values, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinBetween(Integer value1, Integer value2) {
addCriterion("member_min between", value1, value2, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMinNotBetween(Integer value1, Integer value2) {
addCriterion("member_min not between", value1, value2, "memberMin");
return (Criteria) this;
}
public Criteria andMemberMaxIsNull() {
addCriterion("member_max is null");
return (Criteria) this;
}
public Criteria andMemberMaxIsNotNull() {
addCriterion("member_max is not null");
return (Criteria) this;
}
public Criteria andMemberMaxEqualTo(Integer value) {
addCriterion("member_max =", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxNotEqualTo(Integer value) {
addCriterion("member_max <>", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxGreaterThan(Integer value) {
addCriterion("member_max >", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxGreaterThanOrEqualTo(Integer value) {
addCriterion("member_max >=", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxLessThan(Integer value) {
addCriterion("member_max <", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxLessThanOrEqualTo(Integer value) {
addCriterion("member_max <=", value, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxIn(List<Integer> values) {
addCriterion("member_max in", values, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxNotIn(List<Integer> values) {
addCriterion("member_max not in", values, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxBetween(Integer value1, Integer value2) {
addCriterion("member_max between", value1, value2, "memberMax");
return (Criteria) this;
}
public Criteria andMemberMaxNotBetween(Integer value1, Integer value2) {
addCriterion("member_max not between", value1, value2, "memberMax");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

95
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectGroup.java

@ -0,0 +1,95 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteProjectGroup implements Serializable {
private Long id;
private Long projectId;
private Long groupId;
private String description;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", projectId=").append(projectId);
sb.append(", groupId=").append(groupId);
sb.append(", description=").append(description);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

631
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectGroupExample.java

@ -0,0 +1,631 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteProjectGroupExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteProjectGroupExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andGroupIdIsNull() {
addCriterion("group_id is null");
return (Criteria) this;
}
public Criteria andGroupIdIsNotNull() {
addCriterion("group_id is not null");
return (Criteria) this;
}
public Criteria andGroupIdEqualTo(Long value) {
addCriterion("group_id =", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotEqualTo(Long value) {
addCriterion("group_id <>", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThan(Long value) {
addCriterion("group_id >", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThanOrEqualTo(Long value) {
addCriterion("group_id >=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThan(Long value) {
addCriterion("group_id <", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThanOrEqualTo(Long value) {
addCriterion("group_id <=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdIn(List<Long> values) {
addCriterion("group_id in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotIn(List<Long> values) {
addCriterion("group_id not in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdBetween(Long value1, Long value2) {
addCriterion("group_id between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotBetween(Long value1, Long value2) {
addCriterion("group_id not between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

128
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java

@ -0,0 +1,128 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteProjectPlayer implements Serializable {
private Long id;
private Long playerId;
private Long projectId;
private Long competeTimeId;
private Byte genderGroup;
private Byte certificate;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private Long competeGroupId;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPlayerId() {
return playerId;
}
public void setPlayerId(Long playerId) {
this.playerId = playerId;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getCompeteTimeId() {
return competeTimeId;
}
public void setCompeteTimeId(Long competeTimeId) {
this.competeTimeId = competeTimeId;
}
public Byte getGenderGroup() {
return genderGroup;
}
public void setGenderGroup(Byte genderGroup) {
this.genderGroup = genderGroup;
}
public Byte getCertificate() {
return certificate;
}
public void setCertificate(Byte certificate) {
this.certificate = certificate;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
public Long getCompeteGroupId() {
return competeGroupId;
}
public void setCompeteGroupId(Long competeGroupId) {
this.competeGroupId = competeGroupId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", playerId=").append(playerId);
sb.append(", projectId=").append(projectId);
sb.append(", competeTimeId=").append(competeTimeId);
sb.append(", genderGroup=").append(genderGroup);
sb.append(", certificate=").append(certificate);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", competeGroupId=").append(competeGroupId);
sb.append("]");
return sb.toString();
}
}

801
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java

@ -0,0 +1,801 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteProjectPlayerExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteProjectPlayerExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andPlayerIdIsNull() {
addCriterion("player_id is null");
return (Criteria) this;
}
public Criteria andPlayerIdIsNotNull() {
addCriterion("player_id is not null");
return (Criteria) this;
}
public Criteria andPlayerIdEqualTo(Long value) {
addCriterion("player_id =", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotEqualTo(Long value) {
addCriterion("player_id <>", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThan(Long value) {
addCriterion("player_id >", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) {
addCriterion("player_id >=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThan(Long value) {
addCriterion("player_id <", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdLessThanOrEqualTo(Long value) {
addCriterion("player_id <=", value, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdIn(List<Long> values) {
addCriterion("player_id in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotIn(List<Long> values) {
addCriterion("player_id not in", values, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdBetween(Long value1, Long value2) {
addCriterion("player_id between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andPlayerIdNotBetween(Long value1, Long value2) {
addCriterion("player_id not between", value1, value2, "playerId");
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNull() {
addCriterion("compete_time_id is null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNotNull() {
addCriterion("compete_time_id is not null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdEqualTo(Long value) {
addCriterion("compete_time_id =", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotEqualTo(Long value) {
addCriterion("compete_time_id <>", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThan(Long value) {
addCriterion("compete_time_id >", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) {
addCriterion("compete_time_id >=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThan(Long value) {
addCriterion("compete_time_id <", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) {
addCriterion("compete_time_id <=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIn(List<Long> values) {
addCriterion("compete_time_id in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotIn(List<Long> values) {
addCriterion("compete_time_id not in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdBetween(Long value1, Long value2) {
addCriterion("compete_time_id between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) {
addCriterion("compete_time_id not between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria andGenderGroupIsNull() {
addCriterion("gender_group is null");
return (Criteria) this;
}
public Criteria andGenderGroupIsNotNull() {
addCriterion("gender_group is not null");
return (Criteria) this;
}
public Criteria andGenderGroupEqualTo(Byte value) {
addCriterion("gender_group =", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupNotEqualTo(Byte value) {
addCriterion("gender_group <>", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupGreaterThan(Byte value) {
addCriterion("gender_group >", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupGreaterThanOrEqualTo(Byte value) {
addCriterion("gender_group >=", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupLessThan(Byte value) {
addCriterion("gender_group <", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupLessThanOrEqualTo(Byte value) {
addCriterion("gender_group <=", value, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupIn(List<Byte> values) {
addCriterion("gender_group in", values, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupNotIn(List<Byte> values) {
addCriterion("gender_group not in", values, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupBetween(Byte value1, Byte value2) {
addCriterion("gender_group between", value1, value2, "genderGroup");
return (Criteria) this;
}
public Criteria andGenderGroupNotBetween(Byte value1, Byte value2) {
addCriterion("gender_group not between", value1, value2, "genderGroup");
return (Criteria) this;
}
public Criteria andCertificateIsNull() {
addCriterion("certificate is null");
return (Criteria) this;
}
public Criteria andCertificateIsNotNull() {
addCriterion("certificate is not null");
return (Criteria) this;
}
public Criteria andCertificateEqualTo(Byte value) {
addCriterion("certificate =", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotEqualTo(Byte value) {
addCriterion("certificate <>", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateGreaterThan(Byte value) {
addCriterion("certificate >", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateGreaterThanOrEqualTo(Byte value) {
addCriterion("certificate >=", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateLessThan(Byte value) {
addCriterion("certificate <", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateLessThanOrEqualTo(Byte value) {
addCriterion("certificate <=", value, "certificate");
return (Criteria) this;
}
public Criteria andCertificateIn(List<Byte> values) {
addCriterion("certificate in", values, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotIn(List<Byte> values) {
addCriterion("certificate not in", values, "certificate");
return (Criteria) this;
}
public Criteria andCertificateBetween(Byte value1, Byte value2) {
addCriterion("certificate between", value1, value2, "certificate");
return (Criteria) this;
}
public Criteria andCertificateNotBetween(Byte value1, Byte value2) {
addCriterion("certificate not between", value1, value2, "certificate");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andCompeteGroupIdIsNull() {
addCriterion("compete_group_id is null");
return (Criteria) this;
}
public Criteria andCompeteGroupIdIsNotNull() {
addCriterion("compete_group_id is not null");
return (Criteria) this;
}
public Criteria andCompeteGroupIdEqualTo(Long value) {
addCriterion("compete_group_id =", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdNotEqualTo(Long value) {
addCriterion("compete_group_id <>", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdGreaterThan(Long value) {
addCriterion("compete_group_id >", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdGreaterThanOrEqualTo(Long value) {
addCriterion("compete_group_id >=", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdLessThan(Long value) {
addCriterion("compete_group_id <", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdLessThanOrEqualTo(Long value) {
addCriterion("compete_group_id <=", value, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdIn(List<Long> values) {
addCriterion("compete_group_id in", values, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdNotIn(List<Long> values) {
addCriterion("compete_group_id not in", values, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdBetween(Long value1, Long value2) {
addCriterion("compete_group_id between", value1, value2, "competeGroupId");
return (Criteria) this;
}
public Criteria andCompeteGroupIdNotBetween(Long value1, Long value2) {
addCriterion("compete_group_id not between", value1, value2, "competeGroupId");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

139
mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java

@ -0,0 +1,139 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteTeam implements Serializable {
private Long id;
private Long creator;
private Long projectId;
private Long competeTimeId;
private Byte genderGroup;
private Byte certificate;
private String qrCode;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private Long competeGroupId;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getCreator() {
return creator;
}
public void setCreator(Long creator) {
this.creator = creator;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getCompeteTimeId() {
return competeTimeId;
}
public void setCompeteTimeId(Long competeTimeId) {
this.competeTimeId = competeTimeId;
}
public Byte getGenderGroup() {
return genderGroup;
}
public void setGenderGroup(Byte genderGroup) {
this.genderGroup = genderGroup;
}
public Byte getCertificate() {
return certificate;
}
public void setCertificate(Byte certificate) {
this.certificate = certificate;
}
public String getQrCode() {
return qrCode;
}
public void setQrCode(String qrCode) {
this.qrCode = qrCode == null ? null : qrCode.trim();
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
public Long getCompeteGroupId() {
return competeGroupId;
}
public void setCompeteGroupId(Long competeGroupId) {
this.competeGroupId = competeGroupId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", creator=").append(creator);
sb.append(", projectId=").append(projectId);
sb.append(", competeTimeId=").append(competeTimeId);
sb.append(", genderGroup=").append(genderGroup);
sb.append(", certificate=").append(certificate);
sb.append(", qrCode=").append(qrCode);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", competeGroupId=").append(competeGroupId);
sb.append("]");
return sb.toString();
}
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save