From e232c02eb29bd2508e6f554ac32681a044245d6f Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Wed, 2 Sep 2020 23:38:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E6=AF=94=E8=B5=9B=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/application-util-prod.yml | 3 +- game/src/main/resources/application-prod.yml | 2 +- game/src/main/resources/application.yml | 4 +- .../com/ccsens/mt/api/CompeteController.java | 133 ++ .../com/ccsens/mt/bean/dto/CompeteDto.java | 77 ++ .../java/com/ccsens/mt/bean/dto/ScoreDto.java | 23 +- .../com/ccsens/mt/bean/po/CompeteCompany.java | 84 ++ .../mt/bean/po/CompeteCompanyExample.java | 571 ++++++++ .../com/ccsens/mt/bean/po/CompeteGroup.java | 128 ++ .../mt/bean/po/CompeteGroupExample.java | 821 ++++++++++++ .../com/ccsens/mt/bean/po/CompetePlayer.java | 183 +++ .../mt/bean/po/CompetePlayerExample.java | 1171 +++++++++++++++++ .../com/ccsens/mt/bean/po/CompeteProject.java | 161 +++ .../mt/bean/po/CompeteProjectExample.java | 991 ++++++++++++++ .../mt/bean/po/CompeteProjectPlayer.java | 117 ++ .../bean/po/CompeteProjectPlayerExample.java | 741 +++++++++++ .../com/ccsens/mt/bean/po/CompeteTeam.java | 128 ++ .../ccsens/mt/bean/po/CompeteTeamExample.java | 811 ++++++++++++ .../ccsens/mt/bean/po/CompeteTeamMember.java | 84 ++ .../mt/bean/po/CompeteTeamMemberExample.java | 561 ++++++++ .../com/ccsens/mt/bean/po/CompeteTime.java | 139 ++ .../ccsens/mt/bean/po/CompeteTimeExample.java | 871 ++++++++++++ .../java/com/ccsens/mt/bean/vo/CompeteVo.java | 208 +++ .../persist/mapper/CompeteCompanyMapper.java | 30 + .../mt/persist/mapper/CompeteGroupMapper.java | 30 + .../persist/mapper/CompetePlayerMapper.java | 30 + .../persist/mapper/CompeteProjectMapper.java | 30 + .../mapper/CompeteProjectPlayerMapper.java | 30 + .../mt/persist/mapper/CompeteTeamMapper.java | 30 + .../mapper/CompeteTeamMemberMapper.java | 30 + .../mt/persist/mapper/CompeteTimeMapper.java | 30 + .../com/ccsens/mt/service/CompeteService.java | 101 ++ .../ccsens/mt/service/ICompeteService.java | 88 ++ mt/src/main/resources/application-prod.yml | 2 +- .../mapper_raw/CompeteCompanyMapper.xml | 228 ++++ .../mapper_raw/CompeteGroupMapper.xml | 291 ++++ .../mapper_raw/CompetePlayerMapper.xml | 370 ++++++ .../mapper_raw/CompeteProjectMapper.xml | 338 +++++ .../mapper_raw/CompeteProjectPlayerMapper.xml | 276 ++++ .../mapper_raw/CompeteTeamMapper.xml | 291 ++++ .../mapper_raw/CompeteTeamMemberMapper.xml | 228 ++++ .../mapper_raw/CompeteTimeMapper.xml | 306 +++++ tall/src/main/resources/application-prod.yml | 2 +- 43 files changed, 10751 insertions(+), 22 deletions(-) create mode 100644 mt/src/main/java/com/ccsens/mt/api/CompeteController.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMember.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMemberExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTime.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteTimeExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/vo/CompeteVo.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCompanyMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteGroupMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectPlayerMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMemberMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTimeMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/service/CompeteService.java create mode 100644 mt/src/main/java/com/ccsens/mt/service/ICompeteService.java create mode 100644 mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml diff --git a/cloudutil/src/main/resources/application-util-prod.yml b/cloudutil/src/main/resources/application-util-prod.yml index 3a24cc2b..cbde0a48 100644 --- a/cloudutil/src/main/resources/application-util-prod.yml +++ b/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 diff --git a/game/src/main/resources/application-prod.yml b/game/src/main/resources/application-prod.yml index c4a36346..207fad5e 100644 --- a/game/src/main/resources/application-prod.yml +++ b/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/ diff --git a/game/src/main/resources/application.yml b/game/src/main/resources/application.yml index 5c2cd5c4..d082c0ea 100644 --- a/game/src/main/resources/application.yml +++ b/game/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: dev - include: common, util-dev \ No newline at end of file + active: prod + include: common, util-prod \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/api/CompeteController.java b/mt/src/main/java/com/ccsens/mt/api/CompeteController.java new file mode 100644 index 00000000..250f0727 --- /dev/null +++ b/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 = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse getCompeteTime(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看当前是第几届比赛:{}",params); + CompeteVo.CompeteTime competeTime = competeService.getCompeteTime(params); + return JsonResponse.newInstance().ok(competeTime); + } + + @MustLogin + @ApiOperation(value = "查看组别信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryCompeteGroup(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看组别信息:{}",params); + List competeGroups = competeService.queryCompeteGroup(params); + return JsonResponse.newInstance().ok(competeGroups); + } + + @MustLogin + @ApiOperation(value = "模糊查询参赛单位", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryCompeteCompany(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("模糊查询参赛单位:{}",params); + List competeCompanyList = competeService.queryCompeteCompany(params); + return JsonResponse.newInstance().ok(competeCompanyList); + } + + @MustLogin + @ApiOperation(value = "刷新redis内的参赛单位信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse syncCompeteCompany(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("刷新redis内的参赛单位信息:{}",params); + competeService.syncCompeteCompany(params); + return JsonResponse.newInstance().ok(); + } + + + @MustLogin + @ApiOperation(value = "提交报名基本信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse saveCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("提交报名基本信息:{}",params); + CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompetePlayerInfo(params); + return JsonResponse.newInstance().ok(competePlayerInfo); + } + + @MustLogin + @ApiOperation(value = "查看参赛项目信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看参赛项目信息:{}",params); + List competeProjects = competeService.queryCompeteProject(params); + return JsonResponse.newInstance().ok(competeProjects); + } + + @MustLogin + @ApiOperation(value = "提交选择的比赛项目", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse saveCompeteProject(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("提交选择的比赛项目:{}",params); + CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompeteProject(params); + return JsonResponse.newInstance().ok(competePlayerInfo); + } + + @MustLogin + @ApiOperation(value = "查看本人所有参赛的项目", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse queryCompeteProjectAllByUser(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看本人所有参赛的项目:{}",params); + CompeteVo.CompeteProjectAllByUser competeProjectAll = competeService.queryCompeteProjectAllByUser(params); + return JsonResponse.newInstance().ok(competeProjectAll); + } + + @MustLogin + @ApiOperation(value = "查看团队比赛的邀请二维码", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse getQrCodeByTeamId(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看团队比赛的邀请二维码:{}",params); + String qrCodeUrl = competeService.getQrCodeByTeamId(params); + return JsonResponse.newInstance().ok(qrCodeUrl); + } + + @MustLogin + @ApiOperation(value = "查看个人基本报名信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse 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 = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse joinCompeteGroup(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看个人基本报名信息:{}",params); + CompeteVo.CompeteTeamProject competeTeamProject = competeService.joinCompeteGroup(params); + return JsonResponse.newInstance().ok(competeTeamProject); + } +} diff --git a/mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java b/mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java new file mode 100644 index 00000000..9639994a --- /dev/null +++ b/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; + } + +} diff --git a/mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java b/mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java index 038226d2..4bdcd814 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/dto/ScoreDto.java +++ b/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 data; } - @Getter - @Setter + @Data @ApiModel public static class SubmitScoreTable{ @ApiModelProperty("评委id") @@ -51,8 +46,7 @@ public class ScoreDto { private List 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 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") diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompany.java new file mode 100644 index 00000000..3f4dea52 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCompanyExample.java new file mode 100644 index 00000000..24d4b91b --- /dev/null +++ b/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 oredCriteria; + + public CompeteCompanyExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroup.java new file mode 100644 index 00000000..ebf5a181 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteGroupExample.java new file mode 100644 index 00000000..57fe09bb --- /dev/null +++ b/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 oredCriteria; + + public CompeteGroupExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("group_name in", values, "groupName"); + return (Criteria) this; + } + + public Criteria andGroupNameNotIn(List 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 values) { + addCriterion("start_age in", values, "startAge"); + return (Criteria) this; + } + + public Criteria andStartAgeNotIn(List 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 values) { + addCriterion("end_age in", values, "endAge"); + return (Criteria) this; + } + + public Criteria andEndAgeNotIn(List 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 values) { + addCriterion("sequence in", values, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayer.java new file mode 100644 index 00000000..24b27dc6 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java new file mode 100644 index 00000000..4ea07bd4 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerExample.java @@ -0,0 +1,1171 @@ +package com.ccsens.mt.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompetePlayerExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompetePlayerExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andIdCardIsNull() { + addCriterion("id_card is null"); + return (Criteria) this; + } + + public Criteria andIdCardIsNotNull() { + addCriterion("id_card is not null"); + return (Criteria) this; + } + + public Criteria andIdCardEqualTo(String value) { + addCriterion("id_card =", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotEqualTo(String value) { + addCriterion("id_card <>", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThan(String value) { + addCriterion("id_card >", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThanOrEqualTo(String value) { + addCriterion("id_card >=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThan(String value) { + addCriterion("id_card <", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThanOrEqualTo(String value) { + addCriterion("id_card <=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLike(String value) { + addCriterion("id_card like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotLike(String value) { + addCriterion("id_card not like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardIn(List values) { + addCriterion("id_card in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotIn(List values) { + addCriterion("id_card not in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardBetween(String value1, String value2) { + addCriterion("id_card between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotBetween(String value1, String value2) { + addCriterion("id_card not between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andGenderIsNull() { + addCriterion("gender is null"); + return (Criteria) this; + } + + public Criteria andGenderIsNotNull() { + addCriterion("gender is not null"); + return (Criteria) this; + } + + public Criteria andGenderEqualTo(Byte value) { + addCriterion("gender =", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotEqualTo(Byte value) { + addCriterion("gender <>", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThan(Byte value) { + addCriterion("gender >", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThanOrEqualTo(Byte value) { + addCriterion("gender >=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThan(Byte value) { + addCriterion("gender <", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThanOrEqualTo(Byte value) { + addCriterion("gender <=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderIn(List values) { + addCriterion("gender in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotIn(List values) { + addCriterion("gender not in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderBetween(Byte value1, Byte value2) { + addCriterion("gender between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotBetween(Byte value1, Byte value2) { + addCriterion("gender not between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria andIdCardFrontIsNull() { + addCriterion("id_card_front is null"); + return (Criteria) this; + } + + public Criteria andIdCardFrontIsNotNull() { + addCriterion("id_card_front is not null"); + return (Criteria) this; + } + + public Criteria andIdCardFrontEqualTo(String value) { + addCriterion("id_card_front =", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontNotEqualTo(String value) { + addCriterion("id_card_front <>", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontGreaterThan(String value) { + addCriterion("id_card_front >", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontGreaterThanOrEqualTo(String value) { + addCriterion("id_card_front >=", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontLessThan(String value) { + addCriterion("id_card_front <", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontLessThanOrEqualTo(String value) { + addCriterion("id_card_front <=", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontLike(String value) { + addCriterion("id_card_front like", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontNotLike(String value) { + addCriterion("id_card_front not like", value, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontIn(List values) { + addCriterion("id_card_front in", values, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontNotIn(List values) { + addCriterion("id_card_front not in", values, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontBetween(String value1, String value2) { + addCriterion("id_card_front between", value1, value2, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardFrontNotBetween(String value1, String value2) { + addCriterion("id_card_front not between", value1, value2, "idCardFront"); + return (Criteria) this; + } + + public Criteria andIdCardBackIsNull() { + addCriterion("id_card_back is null"); + return (Criteria) this; + } + + public Criteria andIdCardBackIsNotNull() { + addCriterion("id_card_back is not null"); + return (Criteria) this; + } + + public Criteria andIdCardBackEqualTo(String value) { + addCriterion("id_card_back =", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackNotEqualTo(String value) { + addCriterion("id_card_back <>", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackGreaterThan(String value) { + addCriterion("id_card_back >", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackGreaterThanOrEqualTo(String value) { + addCriterion("id_card_back >=", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackLessThan(String value) { + addCriterion("id_card_back <", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackLessThanOrEqualTo(String value) { + addCriterion("id_card_back <=", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackLike(String value) { + addCriterion("id_card_back like", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackNotLike(String value) { + addCriterion("id_card_back not like", value, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackIn(List values) { + addCriterion("id_card_back in", values, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackNotIn(List values) { + addCriterion("id_card_back not in", values, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackBetween(String value1, String value2) { + addCriterion("id_card_back between", value1, value2, "idCardBack"); + return (Criteria) this; + } + + public Criteria andIdCardBackNotBetween(String value1, String value2) { + addCriterion("id_card_back not between", value1, value2, "idCardBack"); + return (Criteria) this; + } + + public Criteria andProveImgIsNull() { + addCriterion("prove_img is null"); + return (Criteria) this; + } + + public Criteria andProveImgIsNotNull() { + addCriterion("prove_img is not null"); + return (Criteria) this; + } + + public Criteria andProveImgEqualTo(String value) { + addCriterion("prove_img =", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgNotEqualTo(String value) { + addCriterion("prove_img <>", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgGreaterThan(String value) { + addCriterion("prove_img >", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgGreaterThanOrEqualTo(String value) { + addCriterion("prove_img >=", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgLessThan(String value) { + addCriterion("prove_img <", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgLessThanOrEqualTo(String value) { + addCriterion("prove_img <=", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgLike(String value) { + addCriterion("prove_img like", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgNotLike(String value) { + addCriterion("prove_img not like", value, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgIn(List values) { + addCriterion("prove_img in", values, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgNotIn(List values) { + addCriterion("prove_img not in", values, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgBetween(String value1, String value2) { + addCriterion("prove_img between", value1, value2, "proveImg"); + return (Criteria) this; + } + + public Criteria andProveImgNotBetween(String value1, String value2) { + addCriterion("prove_img not between", value1, value2, "proveImg"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdIsNull() { + addCriterion("compete_group_id is null"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdIsNotNull() { + addCriterion("compete_group_id is not null"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdEqualTo(Long value) { + addCriterion("compete_group_id =", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdNotEqualTo(Long value) { + addCriterion("compete_group_id <>", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdGreaterThan(Long value) { + addCriterion("compete_group_id >", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdGreaterThanOrEqualTo(Long value) { + addCriterion("compete_group_id >=", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdLessThan(Long value) { + addCriterion("compete_group_id <", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdLessThanOrEqualTo(Long value) { + addCriterion("compete_group_id <=", value, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdIn(List values) { + addCriterion("compete_group_id in", values, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdNotIn(List values) { + addCriterion("compete_group_id not in", values, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdBetween(Long value1, Long value2) { + addCriterion("compete_group_id between", value1, value2, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompeteGroupIdNotBetween(Long value1, Long value2) { + addCriterion("compete_group_id not between", value1, value2, "competeGroupId"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNull() { + addCriterion("company_name is null"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNotNull() { + addCriterion("company_name is not null"); + return (Criteria) this; + } + + public Criteria andCompanyNameEqualTo(String value) { + addCriterion("company_name =", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotEqualTo(String value) { + addCriterion("company_name <>", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThan(String value) { + addCriterion("company_name >", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThanOrEqualTo(String value) { + addCriterion("company_name >=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThan(String value) { + addCriterion("company_name <", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThanOrEqualTo(String value) { + addCriterion("company_name <=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLike(String value) { + addCriterion("company_name like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotLike(String value) { + addCriterion("company_name not like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameIn(List values) { + addCriterion("company_name in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotIn(List values) { + addCriterion("company_name not in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameBetween(String value1, String value2) { + addCriterion("company_name between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotBetween(String value1, String value2) { + addCriterion("company_name not between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andAuthorizationIsNull() { + addCriterion("authorization is null"); + return (Criteria) this; + } + + public Criteria andAuthorizationIsNotNull() { + addCriterion("authorization is not null"); + return (Criteria) this; + } + + public Criteria andAuthorizationEqualTo(Byte value) { + addCriterion("authorization =", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationNotEqualTo(Byte value) { + addCriterion("authorization <>", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationGreaterThan(Byte value) { + addCriterion("authorization >", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationGreaterThanOrEqualTo(Byte value) { + addCriterion("authorization >=", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationLessThan(Byte value) { + addCriterion("authorization <", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationLessThanOrEqualTo(Byte value) { + addCriterion("authorization <=", value, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationIn(List values) { + addCriterion("authorization in", values, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationNotIn(List values) { + addCriterion("authorization not in", values, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationBetween(Byte value1, Byte value2) { + addCriterion("authorization between", value1, value2, "authorization"); + return (Criteria) this; + } + + public Criteria andAuthorizationNotBetween(Byte value1, Byte value2) { + addCriterion("authorization not between", value1, value2, "authorization"); + 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java new file mode 100644 index 00000000..8764db28 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java new file mode 100644 index 00000000..74e15499 --- /dev/null +++ b/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 oredCriteria; + + public CompeteProjectExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List 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 values) { + addCriterion("leve in", values, "leve"); + return (Criteria) this; + } + + public Criteria andLeveNotIn(List 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 values) { + addCriterion("team in", values, "team"); + return (Criteria) this; + } + + public Criteria andTeamNotIn(List 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 values) { + addCriterion("join_rule in", values, "joinRule"); + return (Criteria) this; + } + + public Criteria andJoinRuleNotIn(List 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 values) { + addCriterion("certificate in", values, "certificate"); + return (Criteria) this; + } + + public Criteria andCertificateNotIn(List 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 values) { + addCriterion("member_min in", values, "memberMin"); + return (Criteria) this; + } + + public Criteria andMemberMinNotIn(List 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 values) { + addCriterion("member_max in", values, "memberMax"); + return (Criteria) this; + } + + public Criteria andMemberMaxNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java new file mode 100644 index 00000000..e055aa72 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java new file mode 100644 index 00000000..25542cec --- /dev/null +++ b/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 oredCriteria; + + public CompeteProjectPlayerExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("player_id in", values, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdNotIn(List 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 values) { + addCriterion("porject_id in", values, "porjectId"); + return (Criteria) this; + } + + public Criteria andPorjectIdNotIn(List 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 values) { + addCriterion("compete_time_id in", values, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdNotIn(List 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 values) { + addCriterion("gender_group in", values, "genderGroup"); + return (Criteria) this; + } + + public Criteria andGenderGroupNotIn(List 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 values) { + addCriterion("certificate in", values, "certificate"); + return (Criteria) this; + } + + public Criteria andCertificateNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java new file mode 100644 index 00000000..60d0c226 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java new file mode 100644 index 00000000..f3e8b615 --- /dev/null +++ b/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 oredCriteria; + + public CompeteTeamExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("creator in", values, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorNotIn(List 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 values) { + addCriterion("porject_id in", values, "porjectId"); + return (Criteria) this; + } + + public Criteria andPorjectIdNotIn(List 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 values) { + addCriterion("compete_time_id in", values, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdNotIn(List 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 values) { + addCriterion("gender_group in", values, "genderGroup"); + return (Criteria) this; + } + + public Criteria andGenderGroupNotIn(List 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 values) { + addCriterion("certificate in", values, "certificate"); + return (Criteria) this; + } + + public Criteria andCertificateNotIn(List 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 values) { + addCriterion("qr_code in", values, "qrCode"); + return (Criteria) this; + } + + public Criteria andQrCodeNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMember.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMember.java new file mode 100644 index 00000000..ba6a6bb0 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMemberExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamMemberExample.java new file mode 100644 index 00000000..7e09cca0 --- /dev/null +++ b/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 oredCriteria; + + public CompeteTeamMemberExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("player_id in", values, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdNotIn(List 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 values) { + addCriterion("captain in", values, "captain"); + return (Criteria) this; + } + + public Criteria andCaptainNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTime.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTime.java new file mode 100644 index 00000000..31cbbc2d --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTimeExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteTimeExample.java new file mode 100644 index 00000000..29a70f78 --- /dev/null +++ b/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 oredCriteria; + + public CompeteTimeExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List 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 values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List 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 values) { + addCriterion("sign_up_start_time in", values, "signUpStartTime"); + return (Criteria) this; + } + + public Criteria andSignUpStartTimeNotIn(List 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 values) { + addCriterion("sign_up_end_time in", values, "signUpEndTime"); + return (Criteria) this; + } + + public Criteria andSignUpEndTimeNotIn(List 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 values) { + addCriterion("compete_status in", values, "competeStatus"); + return (Criteria) this; + } + + public Criteria andCompeteStatusNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/vo/CompeteVo.java b/mt/src/main/java/com/ccsens/mt/bean/vo/CompeteVo.java new file mode 100644 index 00000000..ac792b85 --- /dev/null +++ b/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 competeTiwnProjects; + @ApiModelProperty("参加的团队比赛信息") + private List 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 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 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 competeTiwnProjects; + @ApiModelProperty("参加的团队比赛信息") + private List 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; + } + +} diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCompanyMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCompanyMapper.java new file mode 100644 index 00000000..08e677eb --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteGroupMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteGroupMapper.java new file mode 100644 index 00000000..8c83b243 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerMapper.java new file mode 100644 index 00000000..2288f9cb --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectMapper.java new file mode 100644 index 00000000..47e4d6e6 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectPlayerMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectPlayerMapper.java new file mode 100644 index 00000000..800dc073 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMapper.java new file mode 100644 index 00000000..148277a6 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMemberMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTeamMemberMapper.java new file mode 100644 index 00000000..fa912a1a --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTimeMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteTimeMapper.java new file mode 100644 index 00000000..6b8e1c51 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/service/CompeteService.java b/mt/src/main/java/com/ccsens/mt/service/CompeteService.java new file mode 100644 index 00000000..2a8c6934 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/service/CompeteService.java @@ -0,0 +1,101 @@ +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 class CompeteService implements ICompeteService{ + + /** + * 查看第几届 + */ + @Override + public CompeteVo.CompeteTime getCompeteTime(QueryDto params) { + return null; + } + + /** + * 查看组别 + */ + @Override + public List queryCompeteGroup(QueryDto params) { + return null; + } + + /** + * 模糊查询参赛单位 + */ + @Override + public List queryCompeteCompany(QueryDto params) { + return null; + } + + /** + * 刷新redis内的参赛单位信息 + */ + @Override + public void syncCompeteCompany(QueryDto params) { + + } + + /** + * 提交报名基本信息 + */ + @Override + public CompeteVo.CompetePlayerInfo saveCompetePlayerInfo(QueryDto params) { + return null; + } + + /** + * 查看参赛项目信息 + */ + @Override + public List queryCompeteProject(QueryDto params) { + return null; + } + + /** + * 提交选择的比赛项目 + */ + @Override + public CompeteVo.CompetePlayerInfo saveCompeteProject(QueryDto params) { + return null; + } + + /** + * 查看本人所有参赛的项目 + */ + @Override + public CompeteVo.CompeteProjectAllByUser queryCompeteProjectAllByUser(QueryDto params) { + return null; + } + + /** + * 查看团队比赛的邀请二维码 + */ + @Override + public String getQrCodeByTeamId(QueryDto params) { + return null; + } + + /** + * 查看个人基本报名信息 + */ + @Override + public CompeteVo.GetPlayerInfo getCompetePlayerInfo(QueryDto params) { + return null; + } + + /** + * 扫码加入团队 + */ + @Override + public CompeteVo.CompeteTeamProject joinCompeteGroup(QueryDto params) { + return null; + } +} diff --git a/mt/src/main/java/com/ccsens/mt/service/ICompeteService.java b/mt/src/main/java/com/ccsens/mt/service/ICompeteService.java new file mode 100644 index 00000000..23621996 --- /dev/null +++ b/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 params); + + /** + * 查看组别 + * @param params + * @return + */ + List queryCompeteGroup(QueryDto params); + + /** + * 模糊查询参赛单位 + * @param params + * @return + */ + List queryCompeteCompany(QueryDto params); + + /** + * 刷新redis内的参赛单位信息 + * @param params + */ + void syncCompeteCompany(QueryDto params); + + /** + * 提交报名基本信息 + * @param params + * @return + */ + CompeteVo.CompetePlayerInfo saveCompetePlayerInfo(QueryDto params); + + /** + * 根据类型查看所有的比赛项目 + * @param params + * @return + */ + List queryCompeteProject(QueryDto params); + + /** + * 提交选择的比赛项目 + * @param params + * @return + */ + CompeteVo.CompetePlayerInfo saveCompeteProject(QueryDto params); + + /** + * 查看本人所有参赛的项目 + * @param params + * @return + */ + CompeteVo.CompeteProjectAllByUser queryCompeteProjectAllByUser(QueryDto params); + + /** + * 查找团队的邀请二维码 + * @param params + * @return + */ + String getQrCodeByTeamId(QueryDto params); + + /** + * 获取个人报名基本信息 + * @param params + * @return + */ + CompeteVo.GetPlayerInfo getCompetePlayerInfo(QueryDto params); + + /** + * 扫码加入团队 + * @param params + * @return + */ + CompeteVo.CompeteTeamProject joinCompeteGroup(QueryDto params); +} diff --git a/mt/src/main/resources/application-prod.yml b/mt/src/main/resources/application-prod.yml index 8160803a..66fae7bc 100644 --- a/mt/src/main/resources/application-prod.yml +++ b/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/ \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml b/mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml new file mode 100644 index 00000000..3dfa84ff --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteCompanyMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, type, created_at, updated_at, rec_status + + + + + delete from t_compete_company + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_company + + + + + + 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 into t_compete_company + + + id, + + + name, + + + type, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_compete_company + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_company + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml b/mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml new file mode 100644 index 00000000..b2e907c5 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteGroupMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, group_name, description, start_age, end_age, sequence, type, created_at, updated_at, + rec_status + + + + + delete from t_compete_group + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_group + + + + + + 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 into t_compete_group + + + id, + + + group_name, + + + description, + + + start_age, + + + end_age, + + + sequence, + + + type, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_compete_group + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_group + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml b/mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml new file mode 100644 index 00000000..23ea036b --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompetePlayerMapper.xml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + 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 + + + + + delete from t_compete_player + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_player + + + + + + 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 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, + + + + + #{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}, + + + + + + update t_compete_player + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_player + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml b/mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml new file mode 100644 index 00000000..bb8e67e8 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, parent_id, leve, team, join_rule, certificate, member_min, member_max, + type, created_at, updated_at, rec_status + + + + + delete from t_compete_project + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_project + + + + + + 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 into t_compete_project + + + id, + + + name, + + + parent_id, + + + leve, + + + team, + + + join_rule, + + + certificate, + + + member_min, + + + member_max, + + + type, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_compete_project + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_project + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml b/mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml new file mode 100644 index 00000000..a0ccacc7 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, player_id, porject_id, compete_time_id, gender_group, certificate, created_at, + updated_at, rec_status + + + + + delete from t_compete_project_player + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_project_player + + + + + + 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 into t_compete_project_player + + + id, + + + player_id, + + + porject_id, + + + compete_time_id, + + + gender_group, + + + certificate, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_compete_project_player + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_project_player + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml b/mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml new file mode 100644 index 00000000..d0b66882 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, creator, porject_id, compete_time_id, gender_group, certificate, qr_code, created_at, + updated_at, rec_status + + + + + delete from t_compete_team + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_team + + + + + + 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 into t_compete_team + + + id, + + + creator, + + + porject_id, + + + compete_time_id, + + + gender_group, + + + certificate, + + + qr_code, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_compete_team + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_team + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml b/mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml new file mode 100644 index 00000000..e3bfef05 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteTeamMemberMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, player_id, captain, created_at, updated_at, rec_status + + + + + delete from t_compete_team_member + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_team_member + + + + + + 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 into t_compete_team_member + + + id, + + + player_id, + + + captain, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{playerId,jdbcType=BIGINT}, + + + #{captain,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_compete_team_member + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_team_member + + + 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 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} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml b/mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml new file mode 100644 index 00000000..0fac5ae5 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteTimeMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, type, start_time, end_time, sign_up_start_time, sign_up_end_time, compete_status, + created_at, updated_at, rec_status + + + + + delete from t_compete_time + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_time + + + + + + 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 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, + + + + + #{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}, + + + + + + update t_compete_time + + + 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}, + + + + + + + + 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} + + + + + + update t_compete_time + + + 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 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} + + \ No newline at end of file diff --git a/tall/src/main/resources/application-prod.yml b/tall/src/main/resources/application-prod.yml index 17e0fef8..c966508c 100644 --- a/tall/src/main/resources/application-prod.yml +++ b/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/ From 07c14c428b7ced8b4e4abfa7479f21d7c05f3035 Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Thu, 3 Sep 2020 09:23:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?20200903=E4=BF=AE=E6=94=B9=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E6=AF=94=E8=B5=9B=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccsens/mt/api/CompeteController.java | 26 +++++++++---------- .../com/ccsens/mt/service/CompeteService.java | 2 ++ mt/src/main/resources/application.yml | 4 +-- tall/src/main/resources/application.yml | 4 +-- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/mt/src/main/java/com/ccsens/mt/api/CompeteController.java b/mt/src/main/java/com/ccsens/mt/api/CompeteController.java index 250f0727..429c7f21 100644 --- a/mt/src/main/java/com/ccsens/mt/api/CompeteController.java +++ b/mt/src/main/java/com/ccsens/mt/api/CompeteController.java @@ -32,7 +32,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看当前是第几届比赛", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/competeTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse getCompeteTime(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看当前是第几届比赛:{}",params); CompeteVo.CompeteTime competeTime = competeService.getCompeteTime(params); @@ -41,7 +41,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看组别信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse> queryCompeteGroup(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看组别信息:{}",params); List competeGroups = competeService.queryCompeteGroup(params); @@ -50,7 +50,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "模糊查询参赛单位", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse> queryCompeteCompany(@ApiParam @Validated @RequestBody QueryDto params) { log.info("模糊查询参赛单位:{}",params); List competeCompanyList = competeService.queryCompeteCompany(params); @@ -59,7 +59,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "刷新redis内的参赛单位信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/sync/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse syncCompeteCompany(@ApiParam @Validated @RequestBody QueryDto params) { log.info("刷新redis内的参赛单位信息:{}",params); competeService.syncCompeteCompany(params); @@ -69,7 +69,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "提交报名基本信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/save/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse saveCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto params) { log.info("提交报名基本信息:{}",params); CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompetePlayerInfo(params); @@ -78,7 +78,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看参赛项目信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看参赛项目信息:{}",params); List competeProjects = competeService.queryCompeteProject(params); @@ -87,7 +87,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "提交选择的比赛项目", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/save/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse saveCompeteProject(@ApiParam @Validated @RequestBody QueryDto params) { log.info("提交选择的比赛项目:{}",params); CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompeteProject(params); @@ -96,7 +96,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看本人所有参赛的项目", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/projectAll", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse queryCompeteProjectAllByUser(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看本人所有参赛的项目:{}",params); CompeteVo.CompeteProjectAllByUser competeProjectAll = competeService.queryCompeteProjectAllByUser(params); @@ -105,7 +105,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看团队比赛的邀请二维码", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/qrCode", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse getQrCodeByTeamId(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看团队比赛的邀请二维码:{}",params); String qrCodeUrl = competeService.getQrCodeByTeamId(params); @@ -114,7 +114,7 @@ public class CompeteController { @MustLogin @ApiOperation(value = "查看个人基本报名信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/playerInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse getCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看个人基本报名信息:{}",params); CompeteVo.GetPlayerInfo getPlayerInfo = competeService.getCompetePlayerInfo(params); @@ -123,10 +123,10 @@ public class CompeteController { @MustLogin - @ApiOperation(value = "查看个人基本报名信息", notes = "") - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @ApiOperation(value = "扫码加入团队", notes = "") + @RequestMapping(value = "/joinGroup", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse joinCompeteGroup(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查看个人基本报名信息:{}",params); + log.info("扫码加入团队:{}",params); CompeteVo.CompeteTeamProject competeTeamProject = competeService.joinCompeteGroup(params); return JsonResponse.newInstance().ok(competeTeamProject); } diff --git a/mt/src/main/java/com/ccsens/mt/service/CompeteService.java b/mt/src/main/java/com/ccsens/mt/service/CompeteService.java index 2a8c6934..b0553df0 100644 --- a/mt/src/main/java/com/ccsens/mt/service/CompeteService.java +++ b/mt/src/main/java/com/ccsens/mt/service/CompeteService.java @@ -3,12 +3,14 @@ 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{ /** diff --git a/mt/src/main/resources/application.yml b/mt/src/main/resources/application.yml index d082c0ea..5c2cd5c4 100644 --- a/mt/src/main/resources/application.yml +++ b/mt/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: prod - include: common, util-prod \ No newline at end of file + active: dev + include: common, util-dev \ No newline at end of file diff --git a/tall/src/main/resources/application.yml b/tall/src/main/resources/application.yml index 4fc2efe4..b2acd365 100644 --- a/tall/src/main/resources/application.yml +++ b/tall/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: prod - include: util-prod,common + active: dev + include: util-dev,common