Browse Source

Merge branch 'pt' of https://gitee.com/ccsens_s/ccsenscloud into pt

master
zhizhi wu 5 years ago
parent
commit
6b22a3e9ba
  1. 3
      cloudutil/src/main/resources/application-util-prod.yml
  2. 2
      game/src/main/resources/application-prod.yml
  3. 4
      game/src/main/resources/application.yml
  4. 133
      mt/src/main/java/com/ccsens/mt/api/CompeteController.java
  5. 77
      mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java
  6. 23
      mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java
  7. 84
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java
  8. 571
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java
  9. 128
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java
  10. 821
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java
  11. 183
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java
  12. 1171
      mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java
  13. 161
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java
  14. 991
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java
  15. 117
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java
  16. 741
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java
  17. 128
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java
  18. 811
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java
  19. 84
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMember.java
  20. 561
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMemberExample.java
  21. 139
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTime.java
  22. 871
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTimeExample.java
  23. 208
      mt/src/main/java/com/ccsens/mt/bean/vo/CompeteVo.java
  24. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCompanyMapper.java
  25. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteGroupMapper.java
  26. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerMapper.java
  27. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectMapper.java
  28. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectPlayerMapper.java
  29. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMapper.java
  30. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMemberMapper.java
  31. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTimeMapper.java
  32. 103
      mt/src/main/java/com/ccsens/mt/service/CompeteService.java
  33. 88
      mt/src/main/java/com/ccsens/mt/service/ICompeteService.java
  34. 2
      mt/src/main/resources/application-prod.yml
  35. 4
      mt/src/main/resources/application.yml
  36. 228
      mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml
  37. 291
      mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml
  38. 370
      mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml
  39. 338
      mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml
  40. 276
      mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml
  41. 291
      mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml
  42. 228
      mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml
  43. 306
      mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml
  44. 2
      tall/src/main/resources/application-prod.yml
  45. 4
      tall/src/main/resources/application.yml

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

@ -20,7 +20,8 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/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

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

@ -28,7 +28,7 @@ swagger:
enable: true
eureka:
instance:
ip-address: 81.70.54.64
ip-address: 192.144.182.42
gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/

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

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

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

@ -0,0 +1,133 @@
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.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 = "/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 = "/save/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CompeteVo.CompetePlayerInfo> saveCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProject> params) {
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 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 params) {
log.info("扫码加入团队:{}",params);
CompeteVo.CompeteTeamProject competeTeamProject = competeService.joinCompeteGroup(params);
return JsonResponse.newInstance().ok(competeTeamProject);
}
}

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

@ -0,0 +1,77 @@
package com.ccsens.mt.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author
*/
@Data
public class CompeteDto {
@Data
@ApiModel
public static class CompeteType{
@ApiModelProperty("比赛的类型,0跳绳比赛")
private int type;
}
@Data
@ApiModel
public static class CompeteTime{
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
}
@Data
@ApiModel
public static class CompeteProjectPlayer{
@ApiModelProperty("选手创建的团队id")
private Long projectPlayerId;
}
@Data
@ApiModel("关键字模糊查询")
public static class CompeteTypeAndKey{
@ApiModelProperty("关键字")
private String key;
@ApiModelProperty("比赛的类型,0跳绳比赛")
private int type;
}
@Data
@ApiModel("提交报名基本信息")
public static class CompetePlayerInfo{
@ApiModelProperty("姓名")
private String name;
@ApiModelProperty("性别 0女 1男")
private int gender;
@ApiModelProperty("手机号")
private String phone;
@ApiModelProperty("手机验证码")
private String smsCode;
@ApiModelProperty("身份证")
private String idCard;
@ApiModelProperty("参加的组别的id")
private Long groupId;
@ApiModelProperty("参赛单位的名字")
private String companyName;
@ApiModelProperty("身份证正面照文件的路径/户口本照片")
private String idCardFront;
@ApiModelProperty("身份证反面照文件的路径")
private String idCardBack;
@ApiModelProperty("声明文件的路径")
private String proveImg;
}
@Data
@ApiModel("选择参赛项目")
public static class CompeteProject{
@ApiModelProperty("比赛项目id(二级的)")
private Long competeProjectId;
@ApiModelProperty("是否通级 0否 1是")
private byte certificate;
@ApiModelProperty("第几届信息的id")
private Long competeTimeId;
}
}

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")

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);
}
}
}

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);
}
}
}

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

@ -0,0 +1,183 @@
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 String companyName;
private Byte authorization;
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 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 String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName == null ? null : companyName.trim();
}
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;
}
@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(", companyName=").append(companyName);
sb.append(", authorization=").append(authorization);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

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

File diff suppressed because it is too large

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 leve;
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 getLeve() {
return leve;
}
public void setLeve(Byte leve) {
this.leve = leve;
}
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(", leve=").append(leve);
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 andLeveIsNull() {
addCriterion("leve is null");
return (Criteria) this;
}
public Criteria andLeveIsNotNull() {
addCriterion("leve is not null");
return (Criteria) this;
}
public Criteria andLeveEqualTo(Byte value) {
addCriterion("leve =", value, "leve");
return (Criteria) this;
}
public Criteria andLeveNotEqualTo(Byte value) {
addCriterion("leve <>", value, "leve");
return (Criteria) this;
}
public Criteria andLeveGreaterThan(Byte value) {
addCriterion("leve >", value, "leve");
return (Criteria) this;
}
public Criteria andLeveGreaterThanOrEqualTo(Byte value) {
addCriterion("leve >=", value, "leve");
return (Criteria) this;
}
public Criteria andLeveLessThan(Byte value) {
addCriterion("leve <", value, "leve");
return (Criteria) this;
}
public Criteria andLeveLessThanOrEqualTo(Byte value) {
addCriterion("leve <=", value, "leve");
return (Criteria) this;
}
public Criteria andLeveIn(List<Byte> values) {
addCriterion("leve in", values, "leve");
return (Criteria) this;
}
public Criteria andLeveNotIn(List<Byte> values) {
addCriterion("leve not in", values, "leve");
return (Criteria) this;
}
public Criteria andLeveBetween(Byte value1, Byte value2) {
addCriterion("leve between", value1, value2, "leve");
return (Criteria) this;
}
public Criteria andLeveNotBetween(Byte value1, Byte value2) {
addCriterion("leve not between", value1, value2, "leve");
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);
}
}
}

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

@ -0,0 +1,117 @@
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 porjectId;
private Long competeTimeId;
private Byte genderGroup;
private Byte certificate;
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 getPorjectId() {
return porjectId;
}
public void setPorjectId(Long porjectId) {
this.porjectId = porjectId;
}
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;
}
@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(", porjectId=").append(porjectId);
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("]");
return sb.toString();
}
}

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

@ -0,0 +1,741 @@
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 andPorjectIdIsNull() {
addCriterion("porject_id is null");
return (Criteria) this;
}
public Criteria andPorjectIdIsNotNull() {
addCriterion("porject_id is not null");
return (Criteria) this;
}
public Criteria andPorjectIdEqualTo(Long value) {
addCriterion("porject_id =", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotEqualTo(Long value) {
addCriterion("porject_id <>", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThan(Long value) {
addCriterion("porject_id >", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("porject_id >=", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThan(Long value) {
addCriterion("porject_id <", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThanOrEqualTo(Long value) {
addCriterion("porject_id <=", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdIn(List<Long> values) {
addCriterion("porject_id in", values, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotIn(List<Long> values) {
addCriterion("porject_id not in", values, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdBetween(Long value1, Long value2) {
addCriterion("porject_id between", value1, value2, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotBetween(Long value1, Long value2) {
addCriterion("porject_id not between", value1, value2, "porjectId");
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 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/CompeteTeam.java

@ -0,0 +1,128 @@
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 porjectId;
private Long competeTimeId;
private Byte genderGroup;
private Byte certificate;
private String qrCode;
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 getCreator() {
return creator;
}
public void setCreator(Long creator) {
this.creator = creator;
}
public Long getPorjectId() {
return porjectId;
}
public void setPorjectId(Long porjectId) {
this.porjectId = porjectId;
}
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;
}
@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(", porjectId=").append(porjectId);
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("]");
return sb.toString();
}
}

811
mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java

@ -0,0 +1,811 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteTeamExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteTeamExample() {
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 andCreatorIsNull() {
addCriterion("creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(Long value) {
addCriterion("creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(Long value) {
addCriterion("creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(Long value) {
addCriterion("creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(Long value) {
addCriterion("creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(Long value) {
addCriterion("creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(Long value) {
addCriterion("creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<Long> values) {
addCriterion("creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<Long> values) {
addCriterion("creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(Long value1, Long value2) {
addCriterion("creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(Long value1, Long value2) {
addCriterion("creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andPorjectIdIsNull() {
addCriterion("porject_id is null");
return (Criteria) this;
}
public Criteria andPorjectIdIsNotNull() {
addCriterion("porject_id is not null");
return (Criteria) this;
}
public Criteria andPorjectIdEqualTo(Long value) {
addCriterion("porject_id =", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotEqualTo(Long value) {
addCriterion("porject_id <>", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThan(Long value) {
addCriterion("porject_id >", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("porject_id >=", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThan(Long value) {
addCriterion("porject_id <", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThanOrEqualTo(Long value) {
addCriterion("porject_id <=", value, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdIn(List<Long> values) {
addCriterion("porject_id in", values, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotIn(List<Long> values) {
addCriterion("porject_id not in", values, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdBetween(Long value1, Long value2) {
addCriterion("porject_id between", value1, value2, "porjectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotBetween(Long value1, Long value2) {
addCriterion("porject_id not between", value1, value2, "porjectId");
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 andQrCodeIsNull() {
addCriterion("qr_code is null");
return (Criteria) this;
}
public Criteria andQrCodeIsNotNull() {
addCriterion("qr_code is not null");
return (Criteria) this;
}
public Criteria andQrCodeEqualTo(String value) {
addCriterion("qr_code =", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeNotEqualTo(String value) {
addCriterion("qr_code <>", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeGreaterThan(String value) {
addCriterion("qr_code >", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeGreaterThanOrEqualTo(String value) {
addCriterion("qr_code >=", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeLessThan(String value) {
addCriterion("qr_code <", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeLessThanOrEqualTo(String value) {
addCriterion("qr_code <=", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeLike(String value) {
addCriterion("qr_code like", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeNotLike(String value) {
addCriterion("qr_code not like", value, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeIn(List<String> values) {
addCriterion("qr_code in", values, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeNotIn(List<String> values) {
addCriterion("qr_code not in", values, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeBetween(String value1, String value2) {
addCriterion("qr_code between", value1, value2, "qrCode");
return (Criteria) this;
}
public Criteria andQrCodeNotBetween(String value1, String value2) {
addCriterion("qr_code not between", value1, value2, "qrCode");
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/CompeteTeamMember.java

@ -0,0 +1,84 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteTeamMember implements Serializable {
private Long id;
private Long playerId;
private Byte captain;
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 Byte getCaptain() {
return captain;
}
public void setCaptain(Byte captain) {
this.captain = captain;
}
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(", captain=").append(captain);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

561
mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMemberExample.java

@ -0,0 +1,561 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteTeamMemberExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteTeamMemberExample() {
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 andCaptainIsNull() {
addCriterion("captain is null");
return (Criteria) this;
}
public Criteria andCaptainIsNotNull() {
addCriterion("captain is not null");
return (Criteria) this;
}
public Criteria andCaptainEqualTo(Byte value) {
addCriterion("captain =", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainNotEqualTo(Byte value) {
addCriterion("captain <>", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainGreaterThan(Byte value) {
addCriterion("captain >", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainGreaterThanOrEqualTo(Byte value) {
addCriterion("captain >=", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainLessThan(Byte value) {
addCriterion("captain <", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainLessThanOrEqualTo(Byte value) {
addCriterion("captain <=", value, "captain");
return (Criteria) this;
}
public Criteria andCaptainIn(List<Byte> values) {
addCriterion("captain in", values, "captain");
return (Criteria) this;
}
public Criteria andCaptainNotIn(List<Byte> values) {
addCriterion("captain not in", values, "captain");
return (Criteria) this;
}
public Criteria andCaptainBetween(Byte value1, Byte value2) {
addCriterion("captain between", value1, value2, "captain");
return (Criteria) this;
}
public Criteria andCaptainNotBetween(Byte value1, Byte value2) {
addCriterion("captain not between", value1, value2, "captain");
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);
}
}
}

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

@ -0,0 +1,139 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteTime implements Serializable {
private Long id;
private String name;
private Byte type;
private Long startTime;
private Long endTime;
private Long signUpStartTime;
private Long signUpEndTime;
private Byte competeStatus;
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 Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Long getSignUpStartTime() {
return signUpStartTime;
}
public void setSignUpStartTime(Long signUpStartTime) {
this.signUpStartTime = signUpStartTime;
}
public Long getSignUpEndTime() {
return signUpEndTime;
}
public void setSignUpEndTime(Long signUpEndTime) {
this.signUpEndTime = signUpEndTime;
}
public Byte getCompeteStatus() {
return competeStatus;
}
public void setCompeteStatus(Byte competeStatus) {
this.competeStatus = competeStatus;
}
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(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
sb.append(", signUpStartTime=").append(signUpStartTime);
sb.append(", signUpEndTime=").append(signUpEndTime);
sb.append(", competeStatus=").append(competeStatus);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

871
mt/src/main/java/com/ccsens/mt/bean/po/CompeteTimeExample.java

@ -0,0 +1,871 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteTimeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteTimeExample() {
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 andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Long value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Long value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Long value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Long value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Long value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Long> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Long> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Long value1, Long value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Long value1, Long value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(Long value) {
addCriterion("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(Long value) {
addCriterion("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(Long value) {
addCriterion("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(Long value) {
addCriterion("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(Long value) {
addCriterion("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<Long> values) {
addCriterion("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<Long> values) {
addCriterion("end_time not in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeBetween(Long value1, Long value2) {
addCriterion("end_time between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(Long value1, Long value2) {
addCriterion("end_time not between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeIsNull() {
addCriterion("sign_up_start_time is null");
return (Criteria) this;
}
public Criteria andSignUpStartTimeIsNotNull() {
addCriterion("sign_up_start_time is not null");
return (Criteria) this;
}
public Criteria andSignUpStartTimeEqualTo(Long value) {
addCriterion("sign_up_start_time =", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeNotEqualTo(Long value) {
addCriterion("sign_up_start_time <>", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeGreaterThan(Long value) {
addCriterion("sign_up_start_time >", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("sign_up_start_time >=", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeLessThan(Long value) {
addCriterion("sign_up_start_time <", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeLessThanOrEqualTo(Long value) {
addCriterion("sign_up_start_time <=", value, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeIn(List<Long> values) {
addCriterion("sign_up_start_time in", values, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeNotIn(List<Long> values) {
addCriterion("sign_up_start_time not in", values, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeBetween(Long value1, Long value2) {
addCriterion("sign_up_start_time between", value1, value2, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpStartTimeNotBetween(Long value1, Long value2) {
addCriterion("sign_up_start_time not between", value1, value2, "signUpStartTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeIsNull() {
addCriterion("sign_up_end_time is null");
return (Criteria) this;
}
public Criteria andSignUpEndTimeIsNotNull() {
addCriterion("sign_up_end_time is not null");
return (Criteria) this;
}
public Criteria andSignUpEndTimeEqualTo(Long value) {
addCriterion("sign_up_end_time =", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeNotEqualTo(Long value) {
addCriterion("sign_up_end_time <>", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeGreaterThan(Long value) {
addCriterion("sign_up_end_time >", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("sign_up_end_time >=", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeLessThan(Long value) {
addCriterion("sign_up_end_time <", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeLessThanOrEqualTo(Long value) {
addCriterion("sign_up_end_time <=", value, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeIn(List<Long> values) {
addCriterion("sign_up_end_time in", values, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeNotIn(List<Long> values) {
addCriterion("sign_up_end_time not in", values, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeBetween(Long value1, Long value2) {
addCriterion("sign_up_end_time between", value1, value2, "signUpEndTime");
return (Criteria) this;
}
public Criteria andSignUpEndTimeNotBetween(Long value1, Long value2) {
addCriterion("sign_up_end_time not between", value1, value2, "signUpEndTime");
return (Criteria) this;
}
public Criteria andCompeteStatusIsNull() {
addCriterion("compete_status is null");
return (Criteria) this;
}
public Criteria andCompeteStatusIsNotNull() {
addCriterion("compete_status is not null");
return (Criteria) this;
}
public Criteria andCompeteStatusEqualTo(Byte value) {
addCriterion("compete_status =", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusNotEqualTo(Byte value) {
addCriterion("compete_status <>", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusGreaterThan(Byte value) {
addCriterion("compete_status >", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("compete_status >=", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusLessThan(Byte value) {
addCriterion("compete_status <", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusLessThanOrEqualTo(Byte value) {
addCriterion("compete_status <=", value, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusIn(List<Byte> values) {
addCriterion("compete_status in", values, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusNotIn(List<Byte> values) {
addCriterion("compete_status not in", values, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusBetween(Byte value1, Byte value2) {
addCriterion("compete_status between", value1, value2, "competeStatus");
return (Criteria) this;
}
public Criteria andCompeteStatusNotBetween(Byte value1, Byte value2) {
addCriterion("compete_status not between", value1, value2, "competeStatus");
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);
}
}
}

208
mt/src/main/java/com/ccsens/mt/bean/vo/CompeteVo.java

@ -0,0 +1,208 @@
package com.ccsens.mt.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author
*/
@Data
public class CompeteVo {
@Data
@ApiModel("查找第几届")
public static class CompeteTime{
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("名字")
private String name;
@ApiModelProperty("类型")
private byte type;
@ApiModelProperty("开始时间")
private Long startTime;
@ApiModelProperty("结束时间")
private Long endTime;
@ApiModelProperty("报名开始时间")
private Long signUpStartTime;
@ApiModelProperty("报名结束时间")
private Long signUpEndTime;
@ApiModelProperty("进行的阶段,0报名阶段 1比赛进行阶段,2评审阶段,3结束")
private byte competeStatus;
}
@Data
@ApiModel("查找组别")
public static class CompeteGroup {
@ApiModelProperty("组别的id")
private Long groupId;
@ApiModelProperty("组别的名字")
private String groupName;
@ApiModelProperty("描述")
private String groupDescription;
}
@Data
@ApiModel("模糊查询参赛单位")
public static class CompeteCompany {
@ApiModelProperty("单位id")
private Long groupId;
@ApiModelProperty("单位的名字")
private String groupName;
}
@Data
@ApiModel("返回当前选手所有报名信息")
public static class CompetePlayerInfo {
@ApiModelProperty("id")
private Long playerId;
@ApiModelProperty("姓名")
private String name;
@ApiModelProperty("性别 0女 1男")
private int gender;
@ApiModelProperty("手机号")
private String phone;
@ApiModelProperty("手机验证码")
private String smsCode;
@ApiModelProperty("身份证")
private String idCard;
@ApiModelProperty("参加的组别的id")
private Long groupId;
@ApiModelProperty("参加的组别的名字")
private String groupName;
@ApiModelProperty("参赛单位的名字")
private String companyName;
@ApiModelProperty("身份证正面照文件的路径/户口本照片")
private String idCardFront;
@ApiModelProperty("身份证反面照文件的路径")
private String idCardBack;
@ApiModelProperty("声明文件的路径")
private String proveImg;
@ApiModelProperty("参加的单人比赛信息")
private List<CompeteTiwnProject> competeTiwnProjects;
@ApiModelProperty("参加的团队比赛信息")
private List<CompeteTeamProject> competeTeamProjects;
}
@Data
@ApiModel("单人比赛信息")
public static class CompeteTiwnProject {
@ApiModelProperty("选手与单人项目关联信息的id")
private Long competeProjectId;
@ApiModelProperty("比赛的类型,0跳绳比赛")
private byte type;
@ApiModelProperty("一级项目名字")
private String parentProjectName;
@ApiModelProperty("二级项目的名字")
private String secondProjectName;
@ApiModelProperty("是否通级 0否 1是")
private byte certificate;
}
@Data
@ApiModel("团队比赛信息")
public static class CompeteTeamProject {
@ApiModelProperty("选手与单人项目关联信息的id")
private Long competeProjectId;
@ApiModelProperty("比赛的类型,0跳绳比赛")
private byte type;
@ApiModelProperty("一级项目名字")
private String parentProjectName;
@ApiModelProperty("二级项目的名字")
private String secondProjectName;
@ApiModelProperty("是否通级 0否 1是")
private byte certificate;
@ApiModelProperty("当前用户是否是创建者 0否 1是")
private byte creator;
@ApiModelProperty("最少人数")
private int memberMin;
@ApiModelProperty("最多人数")
private int memberMax;
@ApiModelProperty("当前人数")
private int memberNums;
@ApiModelProperty("二维码信息")
private String qrCode;
@ApiModelProperty("团队内的成员")
private List<CompeteTeamProjectMember> members;
}
@Data
@ApiModel("团队内的成员")
public static class CompeteTeamProjectMember {
@ApiModelProperty("参加的成员的id")
private Long memberId;
@ApiModelProperty("参加的成员的名字")
private String memberName;
@ApiModelProperty("是否是队长 0否 1是")
private byte captain;
}
@Data
@ApiModel("查找比赛项目信息")
public static class CompeteProject {
@ApiModelProperty("一级项目id")
private Long parentProjectId;
@ApiModelProperty("一级项目名字")
private String parentProjectName;
@ApiModelProperty("比赛的类型,0跳绳比赛")
private byte type;
@ApiModelProperty("比赛的类型,0跳绳比赛")
private List<CompeteSecondProject> secondProjects;
}
@Data
@ApiModel("查找二级比赛项目信息")
public static class CompeteSecondProject {
@ApiModelProperty("项目id")
private Long id;
@ApiModelProperty("名字")
private String name;
@ApiModelProperty("是否是团队项目 0否 1是")
private byte team;
@ApiModelProperty("是否支持通级 0否 1是")
private byte certificate;
@ApiModelProperty("最少人数")
private byte memberMin;
@ApiModelProperty("最多人数")
private byte memberMax;
}
@Data
@ApiModel("查看本人所有参赛的项目")
public static class CompeteProjectAllByUser {
@ApiModelProperty("参加的单人比赛信息")
private List<CompeteTiwnProject> competeTiwnProjects;
@ApiModelProperty("参加的团队比赛信息")
private List<CompeteTeamProject> competeTeamProjects;
}
@Data
@ApiModel("返回当前选手所有报名信息")
public static class GetPlayerInfo {
@ApiModelProperty("id")
private Long playerId;
@ApiModelProperty("姓名")
private String name;
@ApiModelProperty("性别 0女 1男")
private int gender;
@ApiModelProperty("手机号")
private String phone;
@ApiModelProperty("手机验证码")
private String smsCode;
@ApiModelProperty("身份证")
private String idCard;
@ApiModelProperty("参加的组别的id")
private Long groupId;
@ApiModelProperty("参加的组别的名字")
private String groupName;
@ApiModelProperty("参赛单位的名字")
private String companyName;
@ApiModelProperty("身份证正面照文件的路径/户口本照片")
private String idCardFront;
@ApiModelProperty("身份证反面照文件的路径")
private String idCardBack;
@ApiModelProperty("声明文件的路径")
private String proveImg;
}
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCompanyMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteCompany;
import com.ccsens.mt.bean.po.CompeteCompanyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteCompanyMapper {
long countByExample(CompeteCompanyExample example);
int deleteByExample(CompeteCompanyExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteCompany record);
int insertSelective(CompeteCompany record);
List<CompeteCompany> selectByExample(CompeteCompanyExample example);
CompeteCompany selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteCompany record, @Param("example") CompeteCompanyExample example);
int updateByExample(@Param("record") CompeteCompany record, @Param("example") CompeteCompanyExample example);
int updateByPrimaryKeySelective(CompeteCompany record);
int updateByPrimaryKey(CompeteCompany record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteGroupMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteGroup;
import com.ccsens.mt.bean.po.CompeteGroupExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteGroupMapper {
long countByExample(CompeteGroupExample example);
int deleteByExample(CompeteGroupExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteGroup record);
int insertSelective(CompeteGroup record);
List<CompeteGroup> selectByExample(CompeteGroupExample example);
CompeteGroup selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteGroup record, @Param("example") CompeteGroupExample example);
int updateByExample(@Param("record") CompeteGroup record, @Param("example") CompeteGroupExample example);
int updateByPrimaryKeySelective(CompeteGroup record);
int updateByPrimaryKey(CompeteGroup record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompetePlayer;
import com.ccsens.mt.bean.po.CompetePlayerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompetePlayerMapper {
long countByExample(CompetePlayerExample example);
int deleteByExample(CompetePlayerExample example);
int deleteByPrimaryKey(Long id);
int insert(CompetePlayer record);
int insertSelective(CompetePlayer record);
List<CompetePlayer> selectByExample(CompetePlayerExample example);
CompetePlayer selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompetePlayer record, @Param("example") CompetePlayerExample example);
int updateByExample(@Param("record") CompetePlayer record, @Param("example") CompetePlayerExample example);
int updateByPrimaryKeySelective(CompetePlayer record);
int updateByPrimaryKey(CompetePlayer record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteProject;
import com.ccsens.mt.bean.po.CompeteProjectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteProjectMapper {
long countByExample(CompeteProjectExample example);
int deleteByExample(CompeteProjectExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteProject record);
int insertSelective(CompeteProject record);
List<CompeteProject> selectByExample(CompeteProjectExample example);
CompeteProject selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteProject record, @Param("example") CompeteProjectExample example);
int updateByExample(@Param("record") CompeteProject record, @Param("example") CompeteProjectExample example);
int updateByPrimaryKeySelective(CompeteProject record);
int updateByPrimaryKey(CompeteProject record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectPlayerMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteProjectPlayer;
import com.ccsens.mt.bean.po.CompeteProjectPlayerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteProjectPlayerMapper {
long countByExample(CompeteProjectPlayerExample example);
int deleteByExample(CompeteProjectPlayerExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteProjectPlayer record);
int insertSelective(CompeteProjectPlayer record);
List<CompeteProjectPlayer> selectByExample(CompeteProjectPlayerExample example);
CompeteProjectPlayer selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteProjectPlayer record, @Param("example") CompeteProjectPlayerExample example);
int updateByExample(@Param("record") CompeteProjectPlayer record, @Param("example") CompeteProjectPlayerExample example);
int updateByPrimaryKeySelective(CompeteProjectPlayer record);
int updateByPrimaryKey(CompeteProjectPlayer record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteTeam;
import com.ccsens.mt.bean.po.CompeteTeamExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteTeamMapper {
long countByExample(CompeteTeamExample example);
int deleteByExample(CompeteTeamExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteTeam record);
int insertSelective(CompeteTeam record);
List<CompeteTeam> selectByExample(CompeteTeamExample example);
CompeteTeam selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteTeam record, @Param("example") CompeteTeamExample example);
int updateByExample(@Param("record") CompeteTeam record, @Param("example") CompeteTeamExample example);
int updateByPrimaryKeySelective(CompeteTeam record);
int updateByPrimaryKey(CompeteTeam record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMemberMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteTeamMember;
import com.ccsens.mt.bean.po.CompeteTeamMemberExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteTeamMemberMapper {
long countByExample(CompeteTeamMemberExample example);
int deleteByExample(CompeteTeamMemberExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteTeamMember record);
int insertSelective(CompeteTeamMember record);
List<CompeteTeamMember> selectByExample(CompeteTeamMemberExample example);
CompeteTeamMember selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteTeamMember record, @Param("example") CompeteTeamMemberExample example);
int updateByExample(@Param("record") CompeteTeamMember record, @Param("example") CompeteTeamMemberExample example);
int updateByPrimaryKeySelective(CompeteTeamMember record);
int updateByPrimaryKey(CompeteTeamMember record);
}

30
mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTimeMapper.java

@ -0,0 +1,30 @@
package com.ccsens.mt.persist.mapper;
import com.ccsens.mt.bean.po.CompeteTime;
import com.ccsens.mt.bean.po.CompeteTimeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CompeteTimeMapper {
long countByExample(CompeteTimeExample example);
int deleteByExample(CompeteTimeExample example);
int deleteByPrimaryKey(Long id);
int insert(CompeteTime record);
int insertSelective(CompeteTime record);
List<CompeteTime> selectByExample(CompeteTimeExample example);
CompeteTime selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CompeteTime record, @Param("example") CompeteTimeExample example);
int updateByExample(@Param("record") CompeteTime record, @Param("example") CompeteTimeExample example);
int updateByPrimaryKeySelective(CompeteTime record);
int updateByPrimaryKey(CompeteTime record);
}

103
mt/src/main/java/com/ccsens/mt/service/CompeteService.java

@ -0,0 +1,103 @@
package com.ccsens.mt.service;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.vo.CompeteVo;
import com.ccsens.util.bean.dto.QueryDto;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author
*/
@Service
public class CompeteService implements ICompeteService{
/**
* 查看第几届
*/
@Override
public CompeteVo.CompeteTime getCompeteTime(QueryDto<CompeteDto.CompeteType> params) {
return null;
}
/**
* 查看组别
*/
@Override
public List<CompeteVo.CompeteGroup> queryCompeteGroup(QueryDto<CompeteDto.CompeteType> params) {
return null;
}
/**
* 模糊查询参赛单位
*/
@Override
public List<CompeteVo.CompeteCompany> queryCompeteCompany(QueryDto<CompeteDto.CompeteTypeAndKey> params) {
return null;
}
/**
* 刷新redis内的参赛单位信息
*/
@Override
public void syncCompeteCompany(QueryDto<CompeteDto.CompeteType> params) {
}
/**
* 提交报名基本信息
*/
@Override
public CompeteVo.CompetePlayerInfo saveCompetePlayerInfo(QueryDto<CompeteDto.CompetePlayerInfo> params) {
return null;
}
/**
* 查看参赛项目信息
*/
@Override
public List<CompeteVo.CompeteProject> queryCompeteProject(QueryDto<CompeteDto.CompeteType> params) {
return null;
}
/**
* 提交选择的比赛项目
*/
@Override
public CompeteVo.CompetePlayerInfo saveCompeteProject(QueryDto<CompeteDto.CompeteProject> params) {
return null;
}
/**
* 查看本人所有参赛的项目
*/
@Override
public CompeteVo.CompeteProjectAllByUser queryCompeteProjectAllByUser(QueryDto<CompeteDto.CompeteTime> params) {
return null;
}
/**
* 查看团队比赛的邀请二维码
*/
@Override
public String getQrCodeByTeamId(QueryDto<CompeteDto.CompeteProjectPlayer> params) {
return null;
}
/**
* 查看个人基本报名信息
*/
@Override
public CompeteVo.GetPlayerInfo getCompetePlayerInfo(QueryDto params) {
return null;
}
/**
* 扫码加入团队
*/
@Override
public CompeteVo.CompeteTeamProject joinCompeteGroup(QueryDto params) {
return null;
}
}

88
mt/src/main/java/com/ccsens/mt/service/ICompeteService.java

@ -0,0 +1,88 @@
package com.ccsens.mt.service;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.vo.CompeteVo;
import com.ccsens.util.bean.dto.QueryDto;
import java.util.List;
/**
* @author
*/
public interface ICompeteService {
/**
* 通过类型和当前时间查找第几届信息
* @param params
* @return
*/
CompeteVo.CompeteTime getCompeteTime(QueryDto<CompeteDto.CompeteType> params);
/**
* 查看组别
* @param params
* @return
*/
List<CompeteVo.CompeteGroup> queryCompeteGroup(QueryDto<CompeteDto.CompeteType> params);
/**
* 模糊查询参赛单位
* @param params
* @return
*/
List<CompeteVo.CompeteCompany> queryCompeteCompany(QueryDto<CompeteDto.CompeteTypeAndKey> params);
/**
* 刷新redis内的参赛单位信息
* @param params
*/
void syncCompeteCompany(QueryDto<CompeteDto.CompeteType> params);
/**
* 提交报名基本信息
* @param params
* @return
*/
CompeteVo.CompetePlayerInfo saveCompetePlayerInfo(QueryDto<CompeteDto.CompetePlayerInfo> params);
/**
* 根据类型查看所有的比赛项目
* @param params
* @return
*/
List<CompeteVo.CompeteProject> queryCompeteProject(QueryDto<CompeteDto.CompeteType> params);
/**
* 提交选择的比赛项目
* @param params
* @return
*/
CompeteVo.CompetePlayerInfo saveCompeteProject(QueryDto<CompeteDto.CompeteProject> params);
/**
* 查看本人所有参赛的项目
* @param params
* @return
*/
CompeteVo.CompeteProjectAllByUser queryCompeteProjectAllByUser(QueryDto<CompeteDto.CompeteTime> params);
/**
* 查找团队的邀请二维码
* @param params
* @return
*/
String getQrCodeByTeamId(QueryDto<CompeteDto.CompeteProjectPlayer> params);
/**
* 获取个人报名基本信息
* @param params
* @return
*/
CompeteVo.GetPlayerInfo getCompetePlayerInfo(QueryDto params);
/**
* 扫码加入团队
* @param params
* @return
*/
CompeteVo.CompeteTeamProject joinCompeteGroup(QueryDto params);
}

2
mt/src/main/resources/application-prod.yml

@ -28,7 +28,7 @@ swagger:
enable: true
eureka:
instance:
ip-address: 81.70.54.64
ip-address: 192.144.182.42
gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/

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

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

228
mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml

@ -0,0 +1,228 @@
<?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.mt.persist.mapper.CompeteCompanyMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteCompany">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, type, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteCompanyExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_company
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_company
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteCompanyExample">
delete from t_compete_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteCompany">
insert into t_compete_company (id, name, type,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteCompany">
insert into t_compete_company
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="type != null">
type,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteCompanyExample" resultType="java.lang.Long">
select count(*) from t_compete_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_company
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_company
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteCompany">
update t_compete_company
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteCompany">
update t_compete_company
set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

291
mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml

@ -0,0 +1,291 @@
<?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.mt.persist.mapper.CompeteGroupMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteGroup">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="group_name" jdbcType="VARCHAR" property="groupName" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="start_age" jdbcType="INTEGER" property="startAge" />
<result column="end_age" jdbcType="INTEGER" property="endAge" />
<result column="sequence" jdbcType="INTEGER" property="sequence" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, group_name, description, start_age, end_age, sequence, type, created_at, updated_at,
rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteGroupExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_group
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_group
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_group
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteGroupExample">
delete from t_compete_group
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteGroup">
insert into t_compete_group (id, group_name, description,
start_age, end_age, sequence,
type, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{startAge,jdbcType=INTEGER}, #{endAge,jdbcType=INTEGER}, #{sequence,jdbcType=INTEGER},
#{type,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteGroup">
insert into t_compete_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="groupName != null">
group_name,
</if>
<if test="description != null">
description,
</if>
<if test="startAge != null">
start_age,
</if>
<if test="endAge != null">
end_age,
</if>
<if test="sequence != null">
sequence,
</if>
<if test="type != null">
type,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="groupName != null">
#{groupName,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="startAge != null">
#{startAge,jdbcType=INTEGER},
</if>
<if test="endAge != null">
#{endAge,jdbcType=INTEGER},
</if>
<if test="sequence != null">
#{sequence,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteGroupExample" resultType="java.lang.Long">
select count(*) from t_compete_group
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_group
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.groupName != null">
group_name = #{record.groupName,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.startAge != null">
start_age = #{record.startAge,jdbcType=INTEGER},
</if>
<if test="record.endAge != null">
end_age = #{record.endAge,jdbcType=INTEGER},
</if>
<if test="record.sequence != null">
sequence = #{record.sequence,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_group
set id = #{record.id,jdbcType=BIGINT},
group_name = #{record.groupName,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
start_age = #{record.startAge,jdbcType=INTEGER},
end_age = #{record.endAge,jdbcType=INTEGER},
sequence = #{record.sequence,jdbcType=INTEGER},
type = #{record.type,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteGroup">
update t_compete_group
<set>
<if test="groupName != null">
group_name = #{groupName,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="startAge != null">
start_age = #{startAge,jdbcType=INTEGER},
</if>
<if test="endAge != null">
end_age = #{endAge,jdbcType=INTEGER},
</if>
<if test="sequence != null">
sequence = #{sequence,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteGroup">
update t_compete_group
set group_name = #{groupName,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
start_age = #{startAge,jdbcType=INTEGER},
end_age = #{endAge,jdbcType=INTEGER},
sequence = #{sequence,jdbcType=INTEGER},
type = #{type,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

370
mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml

@ -0,0 +1,370 @@
<?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.mt.persist.mapper.CompetePlayerMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompetePlayer">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="id_card" jdbcType="VARCHAR" property="idCard" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="gender" jdbcType="TINYINT" property="gender" />
<result column="id_card_front" jdbcType="VARCHAR" property="idCardFront" />
<result column="id_card_back" jdbcType="VARCHAR" property="idCardBack" />
<result column="prove_img" jdbcType="VARCHAR" property="proveImg" />
<result column="compete_group_id" jdbcType="BIGINT" property="competeGroupId" />
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
<result column="authorization" jdbcType="TINYINT" property="authorization" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, user_id, name, id_card, phone, gender, id_card_front, id_card_back, prove_img,
compete_group_id, company_name, authorization, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_player
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_player
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerExample">
delete from t_compete_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompetePlayer">
insert into t_compete_player (id, user_id, name,
id_card, phone, gender,
id_card_front, id_card_back, prove_img,
compete_group_id, company_name, authorization,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
#{idCard,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT},
#{idCardFront,jdbcType=VARCHAR}, #{idCardBack,jdbcType=VARCHAR}, #{proveImg,jdbcType=VARCHAR},
#{competeGroupId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{authorization,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompetePlayer">
insert into t_compete_player
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="name != null">
name,
</if>
<if test="idCard != null">
id_card,
</if>
<if test="phone != null">
phone,
</if>
<if test="gender != null">
gender,
</if>
<if test="idCardFront != null">
id_card_front,
</if>
<if test="idCardBack != null">
id_card_back,
</if>
<if test="proveImg != null">
prove_img,
</if>
<if test="competeGroupId != null">
compete_group_id,
</if>
<if test="companyName != null">
company_name,
</if>
<if test="authorization != null">
authorization,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="idCard != null">
#{idCard,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=TINYINT},
</if>
<if test="idCardFront != null">
#{idCardFront,jdbcType=VARCHAR},
</if>
<if test="idCardBack != null">
#{idCardBack,jdbcType=VARCHAR},
</if>
<if test="proveImg != null">
#{proveImg,jdbcType=VARCHAR},
</if>
<if test="competeGroupId != null">
#{competeGroupId,jdbcType=BIGINT},
</if>
<if test="companyName != null">
#{companyName,jdbcType=VARCHAR},
</if>
<if test="authorization != null">
#{authorization,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompetePlayerExample" resultType="java.lang.Long">
select count(*) from t_compete_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_player
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.idCard != null">
id_card = #{record.idCard,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if test="record.idCardFront != null">
id_card_front = #{record.idCardFront,jdbcType=VARCHAR},
</if>
<if test="record.idCardBack != null">
id_card_back = #{record.idCardBack,jdbcType=VARCHAR},
</if>
<if test="record.proveImg != null">
prove_img = #{record.proveImg,jdbcType=VARCHAR},
</if>
<if test="record.competeGroupId != null">
compete_group_id = #{record.competeGroupId,jdbcType=BIGINT},
</if>
<if test="record.companyName != null">
company_name = #{record.companyName,jdbcType=VARCHAR},
</if>
<if test="record.authorization != null">
authorization = #{record.authorization,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_player
set id = #{record.id,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
id_card = #{record.idCard,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
id_card_front = #{record.idCardFront,jdbcType=VARCHAR},
id_card_back = #{record.idCardBack,jdbcType=VARCHAR},
prove_img = #{record.proveImg,jdbcType=VARCHAR},
compete_group_id = #{record.competeGroupId,jdbcType=BIGINT},
company_name = #{record.companyName,jdbcType=VARCHAR},
authorization = #{record.authorization,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompetePlayer">
update t_compete_player
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="idCard != null">
id_card = #{idCard,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=TINYINT},
</if>
<if test="idCardFront != null">
id_card_front = #{idCardFront,jdbcType=VARCHAR},
</if>
<if test="idCardBack != null">
id_card_back = #{idCardBack,jdbcType=VARCHAR},
</if>
<if test="proveImg != null">
prove_img = #{proveImg,jdbcType=VARCHAR},
</if>
<if test="competeGroupId != null">
compete_group_id = #{competeGroupId,jdbcType=BIGINT},
</if>
<if test="companyName != null">
company_name = #{companyName,jdbcType=VARCHAR},
</if>
<if test="authorization != null">
authorization = #{authorization,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompetePlayer">
update t_compete_player
set user_id = #{userId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
id_card = #{idCard,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
gender = #{gender,jdbcType=TINYINT},
id_card_front = #{idCardFront,jdbcType=VARCHAR},
id_card_back = #{idCardBack,jdbcType=VARCHAR},
prove_img = #{proveImg,jdbcType=VARCHAR},
compete_group_id = #{competeGroupId,jdbcType=BIGINT},
company_name = #{companyName,jdbcType=VARCHAR},
authorization = #{authorization,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

338
mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml

@ -0,0 +1,338 @@
<?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.mt.persist.mapper.CompeteProjectMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="leve" jdbcType="TINYINT" property="leve" />
<result column="team" jdbcType="TINYINT" property="team" />
<result column="join_rule" jdbcType="TINYINT" property="joinRule" />
<result column="certificate" jdbcType="TINYINT" property="certificate" />
<result column="member_min" jdbcType="INTEGER" property="memberMin" />
<result column="member_max" jdbcType="INTEGER" property="memberMax" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, parent_id, leve, team, join_rule, certificate, member_min, member_max,
type, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_project
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_project
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectExample">
delete from t_compete_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProject">
insert into t_compete_project (id, name, parent_id,
leve, team, join_rule,
certificate, member_min, member_max,
type, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT},
#{leve,jdbcType=TINYINT}, #{team,jdbcType=TINYINT}, #{joinRule,jdbcType=TINYINT},
#{certificate,jdbcType=TINYINT}, #{memberMin,jdbcType=INTEGER}, #{memberMax,jdbcType=INTEGER},
#{type,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProject">
insert into t_compete_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="leve != null">
leve,
</if>
<if test="team != null">
team,
</if>
<if test="joinRule != null">
join_rule,
</if>
<if test="certificate != null">
certificate,
</if>
<if test="memberMin != null">
member_min,
</if>
<if test="memberMax != null">
member_max,
</if>
<if test="type != null">
type,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=BIGINT},
</if>
<if test="leve != null">
#{leve,jdbcType=TINYINT},
</if>
<if test="team != null">
#{team,jdbcType=TINYINT},
</if>
<if test="joinRule != null">
#{joinRule,jdbcType=TINYINT},
</if>
<if test="certificate != null">
#{certificate,jdbcType=TINYINT},
</if>
<if test="memberMin != null">
#{memberMin,jdbcType=INTEGER},
</if>
<if test="memberMax != null">
#{memberMax,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectExample" resultType="java.lang.Long">
select count(*) from t_compete_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_project
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=BIGINT},
</if>
<if test="record.leve != null">
leve = #{record.leve,jdbcType=TINYINT},
</if>
<if test="record.team != null">
team = #{record.team,jdbcType=TINYINT},
</if>
<if test="record.joinRule != null">
join_rule = #{record.joinRule,jdbcType=TINYINT},
</if>
<if test="record.certificate != null">
certificate = #{record.certificate,jdbcType=TINYINT},
</if>
<if test="record.memberMin != null">
member_min = #{record.memberMin,jdbcType=INTEGER},
</if>
<if test="record.memberMax != null">
member_max = #{record.memberMax,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_project
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=BIGINT},
leve = #{record.leve,jdbcType=TINYINT},
team = #{record.team,jdbcType=TINYINT},
join_rule = #{record.joinRule,jdbcType=TINYINT},
certificate = #{record.certificate,jdbcType=TINYINT},
member_min = #{record.memberMin,jdbcType=INTEGER},
member_max = #{record.memberMax,jdbcType=INTEGER},
type = #{record.type,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteProject">
update t_compete_project
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=BIGINT},
</if>
<if test="leve != null">
leve = #{leve,jdbcType=TINYINT},
</if>
<if test="team != null">
team = #{team,jdbcType=TINYINT},
</if>
<if test="joinRule != null">
join_rule = #{joinRule,jdbcType=TINYINT},
</if>
<if test="certificate != null">
certificate = #{certificate,jdbcType=TINYINT},
</if>
<if test="memberMin != null">
member_min = #{memberMin,jdbcType=INTEGER},
</if>
<if test="memberMax != null">
member_max = #{memberMax,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProject">
update t_compete_project
set name = #{name,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=BIGINT},
leve = #{leve,jdbcType=TINYINT},
team = #{team,jdbcType=TINYINT},
join_rule = #{joinRule,jdbcType=TINYINT},
certificate = #{certificate,jdbcType=TINYINT},
member_min = #{memberMin,jdbcType=INTEGER},
member_max = #{memberMax,jdbcType=INTEGER},
type = #{type,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

276
mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml

@ -0,0 +1,276 @@
<?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.mt.persist.mapper.CompeteProjectPlayerMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProjectPlayer">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="player_id" jdbcType="BIGINT" property="playerId" />
<result column="porject_id" jdbcType="BIGINT" property="porjectId" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="gender_group" jdbcType="TINYINT" property="genderGroup" />
<result column="certificate" jdbcType="TINYINT" property="certificate" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, player_id, porject_id, compete_time_id, gender_group, certificate, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayerExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_project_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_project_player
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_project_player
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayerExample">
delete from t_compete_project_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
insert into t_compete_project_player (id, player_id, porject_id,
compete_time_id, gender_group, certificate,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{porjectId,jdbcType=BIGINT},
#{competeTimeId,jdbcType=BIGINT}, #{genderGroup,jdbcType=TINYINT}, #{certificate,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
insert into t_compete_project_player
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="playerId != null">
player_id,
</if>
<if test="porjectId != null">
porject_id,
</if>
<if test="competeTimeId != null">
compete_time_id,
</if>
<if test="genderGroup != null">
gender_group,
</if>
<if test="certificate != null">
certificate,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="playerId != null">
#{playerId,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
#{porjectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
</if>
<if test="genderGroup != null">
#{genderGroup,jdbcType=TINYINT},
</if>
<if test="certificate != null">
#{certificate,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayerExample" resultType="java.lang.Long">
select count(*) from t_compete_project_player
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_project_player
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.playerId != null">
player_id = #{record.playerId,jdbcType=BIGINT},
</if>
<if test="record.porjectId != null">
porject_id = #{record.porjectId,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
</if>
<if test="record.genderGroup != null">
gender_group = #{record.genderGroup,jdbcType=TINYINT},
</if>
<if test="record.certificate != null">
certificate = #{record.certificate,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_project_player
set id = #{record.id,jdbcType=BIGINT},
player_id = #{record.playerId,jdbcType=BIGINT},
porject_id = #{record.porjectId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
gender_group = #{record.genderGroup,jdbcType=TINYINT},
certificate = #{record.certificate,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
update t_compete_project_player
<set>
<if test="playerId != null">
player_id = #{playerId,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
porject_id = #{porjectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
</if>
<if test="genderGroup != null">
gender_group = #{genderGroup,jdbcType=TINYINT},
</if>
<if test="certificate != null">
certificate = #{certificate,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
update t_compete_project_player
set player_id = #{playerId,jdbcType=BIGINT},
porject_id = #{porjectId,jdbcType=BIGINT},
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
gender_group = #{genderGroup,jdbcType=TINYINT},
certificate = #{certificate,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

291
mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml

@ -0,0 +1,291 @@
<?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.mt.persist.mapper.CompeteTeamMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTeam">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="creator" jdbcType="BIGINT" property="creator" />
<result column="porject_id" jdbcType="BIGINT" property="porjectId" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="gender_group" jdbcType="TINYINT" property="genderGroup" />
<result column="certificate" jdbcType="TINYINT" property="certificate" />
<result column="qr_code" jdbcType="VARCHAR" property="qrCode" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, creator, porject_id, compete_time_id, gender_group, certificate, qr_code, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_team
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_team
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_team
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample">
delete from t_compete_team
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
insert into t_compete_team (id, creator, porject_id,
compete_time_id, gender_group, certificate,
qr_code, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{porjectId,jdbcType=BIGINT},
#{competeTimeId,jdbcType=BIGINT}, #{genderGroup,jdbcType=TINYINT}, #{certificate,jdbcType=TINYINT},
#{qrCode,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
insert into t_compete_team
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="creator != null">
creator,
</if>
<if test="porjectId != null">
porject_id,
</if>
<if test="competeTimeId != null">
compete_time_id,
</if>
<if test="genderGroup != null">
gender_group,
</if>
<if test="certificate != null">
certificate,
</if>
<if test="qrCode != null">
qr_code,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="creator != null">
#{creator,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
#{porjectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
</if>
<if test="genderGroup != null">
#{genderGroup,jdbcType=TINYINT},
</if>
<if test="certificate != null">
#{certificate,jdbcType=TINYINT},
</if>
<if test="qrCode != null">
#{qrCode,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultType="java.lang.Long">
select count(*) from t_compete_team
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_team
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.creator != null">
creator = #{record.creator,jdbcType=BIGINT},
</if>
<if test="record.porjectId != null">
porject_id = #{record.porjectId,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
</if>
<if test="record.genderGroup != null">
gender_group = #{record.genderGroup,jdbcType=TINYINT},
</if>
<if test="record.certificate != null">
certificate = #{record.certificate,jdbcType=TINYINT},
</if>
<if test="record.qrCode != null">
qr_code = #{record.qrCode,jdbcType=VARCHAR},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_team
set id = #{record.id,jdbcType=BIGINT},
creator = #{record.creator,jdbcType=BIGINT},
porject_id = #{record.porjectId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
gender_group = #{record.genderGroup,jdbcType=TINYINT},
certificate = #{record.certificate,jdbcType=TINYINT},
qr_code = #{record.qrCode,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
update t_compete_team
<set>
<if test="creator != null">
creator = #{creator,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
porject_id = #{porjectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
</if>
<if test="genderGroup != null">
gender_group = #{genderGroup,jdbcType=TINYINT},
</if>
<if test="certificate != null">
certificate = #{certificate,jdbcType=TINYINT},
</if>
<if test="qrCode != null">
qr_code = #{qrCode,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
update t_compete_team
set creator = #{creator,jdbcType=BIGINT},
porject_id = #{porjectId,jdbcType=BIGINT},
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
gender_group = #{genderGroup,jdbcType=TINYINT},
certificate = #{certificate,jdbcType=TINYINT},
qr_code = #{qrCode,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

228
mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml

@ -0,0 +1,228 @@
<?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.mt.persist.mapper.CompeteTeamMemberMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTeamMember">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="player_id" jdbcType="BIGINT" property="playerId" />
<result column="captain" jdbcType="TINYINT" property="captain" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, player_id, captain, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamMemberExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_team_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_team_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_team_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamMemberExample">
delete from t_compete_team_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember">
insert into t_compete_team_member (id, player_id, captain,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{captain,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember">
insert into t_compete_team_member
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="playerId != null">
player_id,
</if>
<if test="captain != null">
captain,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="playerId != null">
#{playerId,jdbcType=BIGINT},
</if>
<if test="captain != null">
#{captain,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamMemberExample" resultType="java.lang.Long">
select count(*) from t_compete_team_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_team_member
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.playerId != null">
player_id = #{record.playerId,jdbcType=BIGINT},
</if>
<if test="record.captain != null">
captain = #{record.captain,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_team_member
set id = #{record.id,jdbcType=BIGINT},
player_id = #{record.playerId,jdbcType=BIGINT},
captain = #{record.captain,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember">
update t_compete_team_member
<set>
<if test="playerId != null">
player_id = #{playerId,jdbcType=BIGINT},
</if>
<if test="captain != null">
captain = #{captain,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTeamMember">
update t_compete_team_member
set player_id = #{playerId,jdbcType=BIGINT},
captain = #{captain,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

306
mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml

@ -0,0 +1,306 @@
<?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.mt.persist.mapper.CompeteTimeMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTime">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="end_time" jdbcType="BIGINT" property="endTime" />
<result column="sign_up_start_time" jdbcType="BIGINT" property="signUpStartTime" />
<result column="sign_up_end_time" jdbcType="BIGINT" property="signUpEndTime" />
<result column="compete_status" jdbcType="TINYINT" property="competeStatus" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, type, start_time, end_time, sign_up_start_time, sign_up_end_time, compete_status,
created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTimeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_time
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_time
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteTimeExample">
delete from t_compete_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTime">
insert into t_compete_time (id, name, type,
start_time, end_time, sign_up_start_time,
sign_up_end_time, compete_status, created_at,
updated_at, rec_status)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{signUpStartTime,jdbcType=BIGINT},
#{signUpEndTime,jdbcType=BIGINT}, #{competeStatus,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteTime">
insert into t_compete_time
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="type != null">
type,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="signUpStartTime != null">
sign_up_start_time,
</if>
<if test="signUpEndTime != null">
sign_up_end_time,
</if>
<if test="competeStatus != null">
compete_status,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
#{endTime,jdbcType=BIGINT},
</if>
<if test="signUpStartTime != null">
#{signUpStartTime,jdbcType=BIGINT},
</if>
<if test="signUpEndTime != null">
#{signUpEndTime,jdbcType=BIGINT},
</if>
<if test="competeStatus != null">
#{competeStatus,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteTimeExample" resultType="java.lang.Long">
select count(*) from t_compete_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_time
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=BIGINT},
</if>
<if test="record.signUpStartTime != null">
sign_up_start_time = #{record.signUpStartTime,jdbcType=BIGINT},
</if>
<if test="record.signUpEndTime != null">
sign_up_end_time = #{record.signUpEndTime,jdbcType=BIGINT},
</if>
<if test="record.competeStatus != null">
compete_status = #{record.competeStatus,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_time
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
start_time = #{record.startTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
sign_up_start_time = #{record.signUpStartTime,jdbcType=BIGINT},
sign_up_end_time = #{record.signUpEndTime,jdbcType=BIGINT},
compete_status = #{record.competeStatus,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteTime">
update t_compete_time
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=BIGINT},
</if>
<if test="signUpStartTime != null">
sign_up_start_time = #{signUpStartTime,jdbcType=BIGINT},
</if>
<if test="signUpEndTime != null">
sign_up_end_time = #{signUpEndTime,jdbcType=BIGINT},
</if>
<if test="competeStatus != null">
compete_status = #{competeStatus,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTime">
update t_compete_time
set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
start_time = #{startTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},
sign_up_start_time = #{signUpStartTime,jdbcType=BIGINT},
sign_up_end_time = #{signUpEndTime,jdbcType=BIGINT},
compete_status = #{competeStatus,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

2
tall/src/main/resources/application-prod.yml

@ -33,7 +33,7 @@ eureka:
instance:
# www.tall.wiki
# ip-address: 140.143.228.3
ip-address: 81.70.54.64
ip-address: 192.144.182.42
gatewayUrl: https://www.tall.wiki/gateway/
notGatewayUrl: https://www.tall.wiki/

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

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

Loading…
Cancel
Save