581 changed files with 801523 additions and 6113 deletions
@ -0,0 +1,60 @@ |
|||
package com.ccsens.cloudutil.bean.tall.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Map; |
|||
|
|||
@Data |
|||
public class WpsDto { |
|||
@Data |
|||
@ApiModel("业务和WPS") |
|||
public static class Business{ |
|||
@ApiModelProperty("业务ID") |
|||
private Long businessId; |
|||
@ApiModelProperty("wps文件ID") |
|||
private Long wpsFileId; |
|||
@ApiModelProperty("业务类型 0项目WBS 1交付物 2会议记录。后面是pims内的表:3产品依据表,4产品收入表,5成本表,6损益表,7现金流表") |
|||
private Byte businessType; |
|||
@ApiModelProperty("用户ID") |
|||
private Long userId; |
|||
@ApiModelProperty("文件名") |
|||
private String fileName; |
|||
@ApiModelProperty("文件路径,默认在WebConstant.UPLOAD_PATH_BASE下") |
|||
private String filePath; |
|||
@ApiModelProperty("文件大小") |
|||
private Long fileSize; |
|||
@ApiModelProperty("操作类型 值:WebConstant Wps USER_OPERATION... ") |
|||
private byte operation; |
|||
@ApiModelProperty("操作权限 WebConstant Wps PROJECT_PRIVILEGE...") |
|||
private byte privilege; |
|||
@ApiModelProperty("操作权限查询路径") |
|||
private String privilegeQueryUrl; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查找wps文件路径") |
|||
public static class VisitWpsUrl{ |
|||
@NotNull |
|||
@ApiModelProperty("业务ID") |
|||
private Long businessId; |
|||
@NotNull |
|||
@ApiModelProperty("业务类型") |
|||
private byte businessType; |
|||
@NotNull |
|||
@ApiModelProperty("userId") |
|||
private Long userId; |
|||
@ApiModelProperty("访问路径") |
|||
private Map<String, String> params; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("异步通知") |
|||
public static class Async{ |
|||
@ApiModelProperty("文件ID") |
|||
private Long fileId; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.ccsens.cloudutil.bean.tall.vo; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class WpsVo { |
|||
@Data |
|||
public static class BusinessFileIdAndPath{ |
|||
@ApiModelProperty("业务id") |
|||
private Long businessId; |
|||
@ApiModelProperty("文件路径") |
|||
private String filePath; |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.ccsens.game.mq; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2020/6/5 16:19 |
|||
*/ |
|||
@ApiModel("游戏相关的参数") |
|||
public class GameDto { |
|||
@Data |
|||
public static class GameMsg{ |
|||
private Long recordId; |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.ccsens.game.mq; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.ccsens.game.bean.dto.ClientDto; |
|||
import com.ccsens.game.bean.dto.message.GameMessageCountOut; |
|||
import com.ccsens.game.util.GameConstant; |
|||
import com.ccsens.util.RedisUtil; |
|||
import com.ccsens.util.bean.message.common.InMessage; |
|||
import com.ccsens.util.bean.message.common.MessageConstant; |
|||
import com.ccsens.util.bean.message.common.OutMessage; |
|||
import com.ccsens.util.bean.message.common.OutMessageSet; |
|||
import com.ccsens.util.config.RabbitMQConfig; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.amqp.core.AmqpTemplate; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitHandler; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitListener; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.data.redis.core.ZSetOperations; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.io.IOException; |
|||
import java.util.HashSet; |
|||
import java.util.Set; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2020/6/5 14:30 |
|||
*/ |
|||
@Slf4j |
|||
@Component |
|||
@RabbitListener(queues = RabbitMQConfig.GAME_SCORE) |
|||
public class GameScoreListener { |
|||
|
|||
@Autowired |
|||
private RedisUtil redisUtil; |
|||
@Autowired |
|||
private AmqpTemplate rabbitTemplate; |
|||
|
|||
@RabbitHandler |
|||
public void process(String messageJson) throws IOException { |
|||
log.info("计算分数 {}",messageJson); |
|||
OutMessageSet outMessageSet = JSONObject.parseObject(messageJson, OutMessageSet.class); |
|||
Set<OutMessage> messageSet = outMessageSet.getMessageSet(); |
|||
if (CollectionUtil.isEmpty(messageSet)) { |
|||
return; |
|||
} |
|||
messageSet.forEach(outMessage -> { |
|||
|
|||
InMessage.To to = JSONObject.parseObject(outMessage.getFrom(), InMessage.To.class); |
|||
Long userId = to.getId(); |
|||
GameDto.GameMsg gameMsg = JSONObject.parseObject(outMessage.getData(), GameDto.GameMsg.class); |
|||
Long recordId = gameMsg.getRecordId(); |
|||
log.info("统计分数:{},{}",userId, recordId); |
|||
GameMessageCountOut gameMessageCountOut = clientAddTimes(userId,recordId); |
|||
|
|||
// 发送给消息系统
|
|||
InMessage inMessage = new InMessage(); |
|||
Set<String> tos = new HashSet<>(); |
|||
tos.add(JSONObject.toJSONString(new InMessage.To(userId))); |
|||
inMessage.setToDomain(MessageConstant.DomainType.User); |
|||
inMessage.setTos(tos); |
|||
inMessage.setData(JSONObject.toJSONString(gameMessageCountOut)); |
|||
// rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, inMessage);
|
|||
rabbitTemplate.convertAndSend(RabbitMQConfig.GAME_SCORE, inMessage); |
|||
}); |
|||
|
|||
} |
|||
|
|||
public GameMessageCountOut clientAddTimes(Long userId, Long recordId) { |
|||
GameMessageCountOut gameMessageCountOut = new GameMessageCountOut(); |
|||
log.info("userId:{}", userId); |
|||
if (userId == null || recordId == null) { |
|||
return gameMessageCountOut; |
|||
} |
|||
|
|||
String gameUserKey = GameConstant.generateGameKey(recordId); |
|||
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(gameUserKey, 0, -1); |
|||
|
|||
if (CollectionUtil.isEmpty(typedTuples)) { |
|||
return gameMessageCountOut; |
|||
} |
|||
for(ZSetOperations.TypedTuple<Object> type : typedTuples) { |
|||
ClientDto.RedisUser user = JSON.parseObject((String)type.getValue(), ClientDto.RedisUser.class); |
|||
if (user.getUserId().longValue() == userId.longValue()) { |
|||
int score = type.getScore().intValue(); |
|||
String userStatus = GameConstant.generateGameStatusKey(recordId); |
|||
String gameStausObj = (String)redisUtil.get(userStatus); |
|||
if (StrUtil.isBlank(gameStausObj) || gameStausObj.equals(String.valueOf(GameConstant.GAME_COMPLETED))){ |
|||
gameMessageCountOut = new GameMessageCountOut(score/100, score); |
|||
return gameMessageCountOut; |
|||
} |
|||
score += 100; |
|||
redisUtil.zsSet(gameUserKey, JSON.toJSONString(user), score); |
|||
gameMessageCountOut.getData().setTotalScore(score); |
|||
gameMessageCountOut.getData().setTotalTimes(score/100); |
|||
return gameMessageCountOut; |
|||
} |
|||
} |
|||
|
|||
return gameMessageCountOut; |
|||
} |
|||
} |
@ -1,9 +1,36 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.bean.po.GameGroup; |
|||
import com.ccsens.game.bean.vo.ClientVo; |
|||
import com.ccsens.game.bean.vo.ScreenVo; |
|||
import com.ccsens.game.persist.mapper.GameGroupMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface GameGroupDao extends GameGroupMapper { |
|||
/** |
|||
* 查询分组信息 |
|||
* @param id 游戏ID |
|||
* @return 分组信息 |
|||
*/ |
|||
List<ScreenVo.GroupVo> queryGroups(@Param("gameId") Long id); |
|||
|
|||
/** |
|||
* 查询各组分数,次数 |
|||
* @param groupId 分组ID |
|||
* @param gameId 游戏ID |
|||
* @param rankRule 排序规则 |
|||
* @return 分组分数,次数 |
|||
*/ |
|||
List<ClientVo.GroupVo> queryScores(@Param("groupId") long groupId, @Param("gameId") long gameId, @Param("rankRule") byte rankRule); |
|||
|
|||
/** |
|||
* 查询组内成员排名 |
|||
* @param groupId 组ID |
|||
* @return 成员信息 |
|||
*/ |
|||
List<ClientVo.MemberInfo> groupMemberRank(@Param("groupId") Long groupId); |
|||
} |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,37 @@ |
|||
server: |
|||
port: 7050 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
application: |
|||
name: game |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
host: 127.0.0.1 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
eureka: |
|||
instance: |
|||
ip-address: 192.144.182.42 |
|||
|
|||
gatewayUrl: https://www.tall.wiki/gateway/ |
|||
notGatewayUrl: https://www.tall.wiki/ |
|||
file: |
|||
qrCode: https://www.tall.wiki/gateway/tall/v1.0/uploads/ |
|||
openWX: 1 |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: common, util-test |
|||
active: prod |
|||
include: common, util-prod |
@ -0,0 +1,94 @@ |
|||
tall game anyring SQ |
|||
|
|||
|
|||
|
|||
1.PT获取配置(有则取已存,无则取默认) |
|||
2.PT获取大屏路径 |
|||
创建游戏购买记录,默认10次 |
|||
添加游戏记录(根据配置,无配置,游戏类型默认是分组,则给默认分组) |
|||
给项目下所有用户发送 大屏路径 游戏ID 项目ID 游戏类型 |
|||
3.开始游戏 |
|||
游戏在准备中,进行中,已结合不能再开始 |
|||
更新db游戏状态和开始、结束时间(配置游戏时长) |
|||
更新redis游戏状态为准备中 10分钟 |
|||
更新redis各分组分数(0分 10分钟) |
|||
定时更新 |
|||
进行中:修改redis和db的游戏状态,redis游戏信息 |
|||
结束时:1.修改redis和db的游戏状态,redis游戏信息 |
|||
2.将游戏下用户的分数更新到数据库 |
|||
更新db用户的开始和结束时间 |
|||
更新redis游戏下所有用户的分数(0分 10分钟) |
|||
定时推送客户端 |
|||
准备中0 根据redis查询用户信息,通知用户游戏倒计时 游戏开始时间和结束时间 |
|||
进行中10 根据redis查询用户信息,通知用户游戏倒计时 游戏开始时间和结束时间 |
|||
结束时70 根据redis查询用户信息,通知用户结束,分组分数,个人分数 |
|||
个人分数:查询游戏下的所有用户,分装起分数信息,次数(分数/100),排名,超过% |
|||
分组分数:查询redis所有分组分数,获取分数,次数,排名 |
|||
redis无数据,查数据库分组信息 |
|||
4.查询游戏基本信息 |
|||
1.查询游戏基本信息(redis,db) |
|||
2.用户总数(redis用户分数长度,db) |
|||
3.分组 |
|||
redis:查询分组分数,依次查询组内总人数(redis),根据计分规则,修改分数和次数(总分,均分) |
|||
若均分,则重新排序 |
|||
db:查询数据库分数总人数等信息 |
|||
总分,返回 |
|||
均分,重新计算,排序,返回(注:此处次数为计算均次数) |
|||
4.根据状态,查询其他信息 |
|||
未开始:规则等 |
|||
准备中:开始时间 (大屏:游戏 用户:用户参加游戏的开始时间db) |
|||
已结束:个人赛: |
|||
redis:查询所有人的分数,计算总分,总次数,平均次数,超过% |
|||
db:查询所有人的成绩,计算上述信息 |
|||
前十名(redis/db) |
|||
团体赛: |
|||
查询所有团队分数(redis/db),计算总分,总次数,均分,均次数 |
|||
查询均分超过%(db) |
|||
查询前十名 |
|||
5.查询游戏状态 |
|||
1.查询游戏基本信息(redis,db) |
|||
2.用户总数(redis用户分数长度,db) |
|||
3.分组(同查详情) |
|||
3.根据状态,查询其他信息 |
|||
准备中:开始时间 (大屏:游戏 用户:用户参加游戏的开始时间db) |
|||
进行中:未分组,前十名(redis/db) |
|||
分组,=分组 |
|||
已结束:同详情 |
|||
6.加入游戏 |
|||
1.游戏分组,分组ID为null或不正确,返回参数有误 |
|||
2.用户已加入(db) |
|||
返回分组信息 |
|||
准备中、进行中:开始、结束时间 |
|||
已结束: |
|||
分组成绩(db) |
|||
个人成绩,超过%,排名(db) |
|||
3.游戏已结束: |
|||
个人成绩为0 |
|||
团队成绩(db) |
|||
4.组内成员达到上限 返回达到上限 |
|||
5.保存用户加入游戏(db) |
|||
查询用户user信息 |
|||
昵称为空取phone,中间四位脱敏 |
|||
6.若分组,保存分组信息(db),更新redis改组人数 |
|||
7.若游戏在进行中或准备中,更新redis用户分数 |
|||
8.返回用户信息(同2) |
|||
7.根据游戏id获取分组信息 db |
|||
8.根据任务id获取游戏记录id db |
|||
9.组内排行榜 |
|||
查库 |
|||
10.全员排行榜 |
|||
redis/db 所有人分数排名+总数 |
|||
11.授权:token,recordId |
|||
12.计分 |
|||
1.获取授权时的userid,record, 为空,return |
|||
2.游戏结束,return |
|||
3.redis 用户分数(recordId+userid)为空,return |
|||
4.更新redis用户分数(+100) |
|||
5.redis 更新所属分组分数 |
|||
6.分会总分数,总次数 |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
After Width: | Height: | Size: 64 KiB |
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.game.persist.dao.GameGroupDao"> |
|||
|
|||
<select id="queryGroups" resultType="com.ccsens.game.bean.vo.ScreenVo$GroupVo"> |
|||
SELECT |
|||
g.id AS groupId, |
|||
g.NAME AS groupName, |
|||
g.head_portrait_url as headPortraitUrl, |
|||
sum( u.score ) AS score, |
|||
count( ug.id ) AS totalMembers |
|||
FROM |
|||
t_game_group g |
|||
LEFT JOIN ( SELECT * FROM t_game_user_join_group WHERE rec_status = 0 ) ug ON g.id = ug.game_group_id |
|||
LEFT JOIN ( SELECT * FROM t_game_user_join WHERE rec_status = 0 ) u ON ug.user_join_id = u.id |
|||
WHERE |
|||
g.rec_status = 0 |
|||
AND g.record_id = #{gameId} |
|||
GROUP BY |
|||
g.id |
|||
order by sum(u.score) desc |
|||
</select> |
|||
<select id="queryScores" resultType="com.ccsens.game.bean.vo.ClientVo$GroupVo"> |
|||
SELECT |
|||
g.id AS groupId, |
|||
g.head_portrait_url as headPortraitUrl, |
|||
g.NAME AS groupName, |
|||
if (${rankRule}=1,sum(u.score),(if(count( ug.id )=0, 0 ,sum(u.score)/count( ug.id )))) AS groupScore, |
|||
sum(u.times) as groupTimes |
|||
FROM |
|||
t_game_group g |
|||
LEFT JOIN ( SELECT * FROM t_game_user_join_group WHERE rec_status = 0 ) ug ON g.id = ug.game_group_id |
|||
LEFT JOIN ( SELECT * FROM t_game_user_join WHERE rec_status = 0 ) u ON ug.user_join_id = u.id |
|||
WHERE |
|||
g.rec_status = 0 |
|||
AND g.record_id = #{gameId} |
|||
GROUP BY |
|||
g.id |
|||
order by groupScore desc |
|||
</select> |
|||
<select id="groupMemberRank" resultType="com.ccsens.game.bean.vo.ClientVo$MemberInfo"> |
|||
SELECT |
|||
u.id, |
|||
u.avatar_url AS headImgUrl, |
|||
u.nickname, |
|||
u.score, |
|||
u.times |
|||
FROM |
|||
t_game_user_join u, |
|||
t_game_user_join_group g |
|||
WHERE |
|||
u.id = g.user_join_id |
|||
AND g.game_group_id = #{groupId} |
|||
AND u.rec_status = 0 |
|||
AND g.rec_status = 0 |
|||
ORDER BY |
|||
u.score DESC |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,173 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.service.ICompeteService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.io.IOException; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "线上体育竞技比赛", description = "") |
|||
@RestController |
|||
@RequestMapping("/compete") |
|||
public class CompeteController { |
|||
@Resource |
|||
private ICompeteService competeService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看当前是第几届比赛", notes = "") |
|||
@RequestMapping(value = "/competeTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompeteTime> getCompeteTime(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("查看当前是第几届比赛:{}",params); |
|||
CompeteVo.CompeteTime competeTime = competeService.getCompeteTime(params); |
|||
return JsonResponse.newInstance().ok(competeTime); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看组别信息", notes = "") |
|||
@RequestMapping(value = "/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CompeteVo.CompeteGroup>> queryCompeteGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("查看组别信息:{}",params); |
|||
List<CompeteVo.CompeteGroup> competeGroups = competeService.queryCompeteGroup(params); |
|||
return JsonResponse.newInstance().ok(competeGroups); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "根据项目查找组别信息 ", notes = "") |
|||
@RequestMapping(value = "/group/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CompeteVo.CompeteGroup>> queryGroupByProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.QueryGroupByProject> params) { |
|||
log.info("扫码加入团队:{}",params); |
|||
List<CompeteVo.CompeteGroup> groupByProject = competeService.queryGroupByProject(params); |
|||
return JsonResponse.newInstance().ok(groupByProject); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "模糊查询参赛单位", notes = "") |
|||
@RequestMapping(value = "/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CompeteVo.CompeteCompany>> queryCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTypeAndKey> params) { |
|||
log.info("模糊查询参赛单位:{}",params); |
|||
List<CompeteVo.CompeteCompany> competeCompanyList = competeService.queryCompeteCompany(params); |
|||
return JsonResponse.newInstance().ok(competeCompanyList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "刷新redis内的参赛单位信息", notes = "") |
|||
@RequestMapping(value = "/sync/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse syncCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("刷新redis内的参赛单位信息:{}",params); |
|||
competeService.syncCompeteCompany(params); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "提交报名基本信息", notes = "") |
|||
@RequestMapping(value = "/save/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompetePlayerInfo> saveCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompetePlayerInfo> params) { |
|||
log.info("提交报名基本信息:{}",params); |
|||
CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompetePlayerInfo(params); |
|||
return JsonResponse.newInstance().ok(competePlayerInfo); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看参赛项目信息", notes = "") |
|||
@RequestMapping(value = "/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CompeteVo.CompeteProject>> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("查看参赛项目信息:{}",params); |
|||
List<CompeteVo.CompeteProject> competeProjects = competeService.queryCompeteProject(params); |
|||
return JsonResponse.newInstance().ok(competeProjects); |
|||
} |
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "根据组别查看比赛项目 ", notes = "")
|
|||
// @RequestMapping(value = "/project/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<List<CompeteVo.CompeteSecondProject>> queryProjectByGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.QueryProjectByGroup> params) {
|
|||
// log.info("扫码加入团队:{}",params);
|
|||
// List<CompeteVo.CompeteSecondProject> projectByGroup = competeService.queryProjectByGroup(params);
|
|||
// return JsonResponse.newInstance().ok(projectByGroup);
|
|||
// }
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "提交选择的比赛项目", notes = "") |
|||
@RequestMapping(value = "/save/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompetePlayerInfo> saveCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProject> params) throws IOException { |
|||
log.info("提交选择的比赛项目:{}",params); |
|||
CompeteVo.CompetePlayerInfo competePlayerInfo = competeService.saveCompeteProject(params); |
|||
return JsonResponse.newInstance().ok(competePlayerInfo); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看本人所有参赛的项目", notes = "") |
|||
@RequestMapping(value = "/projectAll", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompeteProjectAllByUser> queryCompeteProjectAllByUser(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) { |
|||
log.info("查看本人所有参赛的项目:{}",params); |
|||
CompeteVo.CompeteProjectAllByUser competeProjectAll = competeService.queryCompeteProjectAllByUser(params); |
|||
return JsonResponse.newInstance().ok(competeProjectAll); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看团队比赛的邀请二维码", notes = "") |
|||
@RequestMapping(value = "/qrCode", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<String> getQrCodeByTeamId(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectPlayer> params) { |
|||
log.info("查看团队比赛的邀请二维码:{}",params); |
|||
String qrCodeUrl = competeService.getQrCodeByTeamId(params); |
|||
return JsonResponse.newInstance().ok(qrCodeUrl); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看个人基本报名信息", notes = "") |
|||
@RequestMapping(value = "/playerInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.GetPlayerInfo> getCompetePlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteTime> params) { |
|||
log.info("查看个人基本报名信息:{}",params); |
|||
CompeteVo.GetPlayerInfo getPlayerInfo = competeService.getCompetePlayerInfo(params); |
|||
return JsonResponse.newInstance().ok(getPlayerInfo); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "扫码加入团队", notes = "") |
|||
@RequestMapping(value = "/joinGroup", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompeteTeamProject> joinCompeteGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteGroup> params) { |
|||
log.info("扫码加入团队:{}",params); |
|||
CompeteVo.CompeteTeamProject competeTeamProject = competeService.joinCompeteGroup(params); |
|||
return JsonResponse.newInstance().ok(competeTeamProject); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "提交报名信息和参加比赛", notes = "") |
|||
@RequestMapping(value = "/submit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse submitProjectAndGroup(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompetePlayerAndProject> params) { |
|||
log.info("扫码加入团队:{}",params); |
|||
competeService.submitProjectAndGroup(params); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "查询比赛项目上的参赛选手列表", notes = "")
|
|||
// @RequestMapping(value = "/get/players", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<CompeteVo.QueryPlayerList> queryPlayerList(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
|
|||
// log.info("查询比赛项目上的参赛选手列表:{}",params);
|
|||
// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
|
|||
// return JsonResponse.newInstance().ok(playerList);
|
|||
// }
|
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.service.ICompeteService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "线上体育竞技比赛", description = "") |
|||
@RestController |
|||
@RequestMapping("/compete") |
|||
public class CompeteScoreController { |
|||
@Resource |
|||
private ICompeteService competeService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询比赛项目上的参赛选手列表", notes = "") |
|||
@RequestMapping(value = "/get/playerList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.QueryPlayerList> queryPlayerList(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) { |
|||
log.info("查询比赛项目上的参赛选手列表:{}",params); |
|||
CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params); |
|||
return JsonResponse.newInstance().ok(playerList); |
|||
} |
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "查看单个选手的信息和分数", notes = "")
|
|||
// @RequestMapping(value = "/get/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<CompeteVo.QueryPlayerList> getPlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
|
|||
// log.info("查询比赛项目上的参赛选手列表:{}",params);
|
|||
// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
|
|||
// return JsonResponse.newInstance().ok(playerList);
|
|||
// }
|
|||
|
|||
|
|||
} |
@ -1,28 +1,62 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.mt.bean.dto.LevelDto; |
|||
import com.ccsens.mt.bean.po.LevelUser; |
|||
import com.ccsens.mt.service.ILevelUpService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.RedisUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.data.redis.core.ZSetOperations; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletRequest; |
|||
import java.util.Objects; |
|||
import java.util.Set; |
|||
|
|||
@Api(tags = "DEBUG" , description = "DebugController | ") |
|||
@RestController |
|||
@RequestMapping("/debug") |
|||
public class DebugController { |
|||
@Resource |
|||
private RedisUtil redisUtil; |
|||
@Resource |
|||
private ILevelUpService levelUpService; |
|||
|
|||
@ApiOperation(value = "/测试",notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse getSmsCode(HttpServletRequest request) throws Exception { |
|||
|
|||
public JsonResponse debug(HttpServletRequest request) throws Exception { |
|||
return JsonResponse.newInstance().ok("测试"); |
|||
} |
|||
|
|||
@ApiOperation(value = "/测试自动晋级",notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value="/levelUp",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse levelUpDebug(HttpServletRequest request) throws Exception { |
|||
//比赛结束
|
|||
//查询每个选手的分数存入redis(模拟分数存入)
|
|||
String key = "compete_1_6"; |
|||
Set<ZSetOperations.TypedTuple<Object>> typedTuples = redisUtil.zsRevGetWithScore(key, 0, -1); |
|||
typedTuples.forEach(type ->{ |
|||
LevelUser levelUser = (LevelUser) type.getValue(); |
|||
if(levelUser.getPlayerId() == 1305713484796923904L){ |
|||
redisUtil.zsSet(key, levelUser, 20); |
|||
} |
|||
if(levelUser.getPlayerId() == 1305772321621020672L){ |
|||
redisUtil.zsSet(key, levelUser, 22); |
|||
} |
|||
}); |
|||
//调用自动晋级接口
|
|||
LevelDto.AutoLevelUpDto autoLevelUpDto = new LevelDto.AutoLevelUpDto(1L,"6"); |
|||
levelUpService.autoLevelUp(autoLevelUpDto); |
|||
|
|||
return JsonResponse.newInstance().ok("OK"); |
|||
} |
|||
} |
|||
|
@ -0,0 +1,77 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.vo.CompeteVo; |
|||
import com.ccsens.mt.service.IDepartmentService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "线上体育竞技比赛(校内报名)", description = "") |
|||
@RestController |
|||
@RequestMapping("/department") |
|||
public class DepartmentController { |
|||
@Resource |
|||
private IDepartmentService departmentService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看院系信息", notes = "") |
|||
@RequestMapping(value = "/company", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.CompeteTime> getCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("查看院系信息:{}",params); |
|||
List<CompeteVo.CompeteCompany> competeCompanyList = departmentService.getCompany(params); |
|||
return JsonResponse.newInstance().ok(competeCompanyList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看参赛项目信息", notes = "") |
|||
@RequestMapping(value = "/project", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CompeteVo.CompeteProject>> queryCompeteProject(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) { |
|||
log.info("查看参赛项目信息:{}",params); |
|||
List<CompeteVo.CompeteProject> competeProjects = departmentService.queryCompeteProject(params); |
|||
return JsonResponse.newInstance().ok(competeProjects); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "院系提交报名信息", notes = "") |
|||
@RequestMapping(value = "/save/department", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.DepartmentInfo> saveDepartment(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.DepartmentInfo> params) { |
|||
log.info("查看参赛项目信息:{}",params); |
|||
CompeteVo.DepartmentInfo department = departmentService.saveDepartment(params); |
|||
return JsonResponse.newInstance().ok(department); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看院系报名信息", notes = "") |
|||
@RequestMapping(value = "/get/department", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.DepartmentInfo> getDepartment(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.GetDepartmentInfo> params) { |
|||
log.info("查看参赛项目信息:{}",params); |
|||
CompeteVo.DepartmentInfo department = departmentService.getDepartment(params); |
|||
return JsonResponse.newInstance().ok(department); |
|||
} |
|||
|
|||
|
|||
@ApiOperation(value = "导出excel表格", notes = "") |
|||
@RequestMapping(value = "/export/excel", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CompeteVo.DepartmentInfo> exportExcel(@ApiParam @Validated @RequestBody CompeteDto.CompeteType params) { |
|||
log.info("导出excel表格:{}",params); |
|||
String excelPath = departmentService.exportExcel(params); |
|||
return JsonResponse.newInstance().ok(excelPath); |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.ccsens.cloudutil.feign.TallFeignClient; |
|||
import com.ccsens.mt.bean.po.CommonFile; |
|||
import com.ccsens.mt.bean.vo.FileVo; |
|||
import com.ccsens.mt.service.IFileService; |
|||
import com.ccsens.mt.util.Constant; |
|||
import com.ccsens.util.*; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletRequest; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.servlet.http.Part; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2020/7/17 11:36 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "文件") |
|||
@RestController |
|||
@RequestMapping("/file") |
|||
public class FileController { |
|||
|
|||
@Resource |
|||
private IFileService fileService; |
|||
@Resource |
|||
private TallFeignClient tallFeignClient; |
|||
|
|||
|
|||
@ApiOperation(value = "上传文件") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "upload", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<FileVo.Upload> upload(HttpServletRequest request, @RequestParam() List<Part> files) throws Exception { |
|||
log.info("文件上传:{}", files); |
|||
|
|||
String authHeader = request.getHeader(WebConstant.HEADER_KEY_TOKEN); |
|||
JsonResponse tokenRes = tallFeignClient.getUserIdByToken(authHeader); |
|||
log.info("{}查询userId返回:{}", authHeader, tokenRes); |
|||
if (tokenRes.getCode().intValue() != CodeEnum.SUCCESS.getCode().intValue()) { |
|||
return tokenRes; |
|||
} |
|||
JSONObject json = JSON.parseObject(JSON.toJSONString(tokenRes.getData())); |
|||
Long userId = json.getLong("id"); |
|||
String dir = PropUtil.path + Constant.File.UPLOAD_URL; |
|||
List<CommonFile> fileVos = fileService.saveFile(dir, files, userId); |
|||
List<FileVo.Upload> vos = FileVo.Upload.transFilePo(fileVos); |
|||
log.info("文件上传返回:{}", vos); |
|||
return JsonResponse.newInstance().ok(vos); |
|||
} |
|||
|
|||
@ApiOperation(value = "文件下载") |
|||
@GetMapping(value = "download/{id}") |
|||
public void download(HttpServletResponse response, @PathVariable("id")Long id) throws Exception { |
|||
log.info("文件下载:{}", id); |
|||
CommonFile file = fileService.getById(id); |
|||
log.info("文件信息;{}", file); |
|||
if (file == null) { |
|||
throw new BaseException(CodeEnum.FILE_NOT_FOUND); |
|||
} |
|||
UploadFileUtil_Servlet3.download(response, file.getLocation(), file.getFileName()); |
|||
log.info("文件下载结束"); |
|||
} |
|||
|
|||
@ApiOperation(value = "文件下载, 指定路径") |
|||
@GetMapping(value = "download/know") |
|||
public void downloadFile(HttpServletResponse response, String path ) throws Exception { |
|||
log.info("文件下载, 指定路径:{}", path); |
|||
UploadFileUtil_Servlet3.download(response, path, path.substring(path.lastIndexOf(java.io.File.separator) + 1)); |
|||
log.info("文件下载结束"); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.LevelDto; |
|||
import com.ccsens.mt.bean.vo.LevelVo; |
|||
import com.ccsens.mt.service.ILevelUpService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "晋级系统", description = "") |
|||
@RestController |
|||
@RequestMapping("/level") |
|||
public class LevelController { |
|||
@Resource |
|||
private ILevelUpService levelUpService; |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "手动晋级", notes = "") |
|||
@RequestMapping(value = "/manual", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse manualLevelUpPlayer(@ApiParam @Validated @RequestBody QueryDto<LevelDto.ManualLevelUpDto> params) { |
|||
log.info("手动晋级:{}",params); |
|||
levelUpService.manualLevelUpPlayer(params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查找晋级选手信息", notes = "") |
|||
@RequestMapping(value = "/userInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<LevelVo.QueryLevelUserInfo>> queryLevelUserInfo(@ApiParam @Validated @RequestBody QueryDto<LevelDto.QueryLevelUserInfo> params) { |
|||
log.info("手动晋级:{}",params); |
|||
PageInfo<LevelVo.QueryLevelUserInfo> levelUserInfoList = levelUpService.queryLevelUserInfo(params.getParam()); |
|||
return JsonResponse.newInstance().ok(levelUserInfoList); |
|||
} |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.mt.bean.dto.TopicDto; |
|||
import com.ccsens.mt.bean.vo.TopicVo; |
|||
import com.ccsens.mt.service.ITopicService; |
|||
import com.ccsens.util.CodeEnum; |
|||
import com.ccsens.util.JsonResponse; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "答题API", description = "") |
|||
@RestController |
|||
@RequestMapping("/topic") |
|||
public class TopicController { |
|||
@Resource |
|||
private ITopicService topicService; |
|||
|
|||
@ApiOperation(value = "查询题目", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<TopicVo.TopicInfo> getTopicByLink(@RequestBody @ApiParam @Validated TopicDto.GetTopic getTopic) throws Exception { |
|||
log.info("查询题目:{}",getTopic.toString()); |
|||
TopicVo.TopicInfo topicInfo = topicService.getTopicByLink(getTopic); |
|||
return JsonResponse.newInstance().ok(topicInfo); |
|||
} |
|||
|
|||
@ApiOperation(value = "根据项目id查询分组信息", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<TopicVo.GroupInfo>> queryGroupByProject(@RequestBody @ApiParam @Validated TopicDto.GetGroup getGroup) throws Exception { |
|||
log.info("根据项目id查询分组信息:{}",getGroup.toString()); |
|||
List<TopicVo.GroupInfo> groupInfoList = topicService.queryGroupByProject(getGroup); |
|||
return JsonResponse.newInstance().ok(groupInfoList); |
|||
} |
|||
|
|||
@ApiOperation(value = "主持人提交答案", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/saveAnswers", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveAnswers(@RequestBody @ApiParam @Validated TopicDto.SaveAnswers saveAnswers) throws Exception { |
|||
log.info("主持人提交答案:{}",saveAnswers.toString()); |
|||
topicService.saveAnswers(saveAnswers); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查排名", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/ranking", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<TopicVo.QueryRanking>> queryRanking(@RequestBody @ApiParam @Validated TopicDto.GetRankingByProjectId ranking) throws Exception { |
|||
log.info("查排名:{}",ranking); |
|||
List<TopicVo.QueryRanking> queryRankings = topicService.queryRanking(ranking); |
|||
return JsonResponse.newInstance().ok(queryRankings); |
|||
} |
|||
|
|||
@ApiOperation(value = "晋级", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/promoted", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse promoted(@RequestBody @ApiParam @Validated List<TopicDto.Promoted> promoted) throws Exception { |
|||
log.info("查排名:{}",promoted); |
|||
CodeEnum codeEnum = topicService.promoted(promoted); |
|||
return JsonResponse.newInstance().ok(codeEnum); |
|||
} |
|||
|
|||
@ApiOperation(value = "选手抢答", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/responder/group", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse responderGroup(@RequestBody @ApiParam @Validated TopicDto.Group group) throws Exception { |
|||
log.info("选手抢答:{}",group.toString()); |
|||
topicService.responderGroup(group); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation(value = "主持人在大屏点击开始抢答(倒计时结束后)", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/responder/start", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse responderStart(@RequestBody @ApiParam @Validated TopicDto.Topic topic) throws Exception { |
|||
log.info("主持人在大屏点击开始抢答:{}",topic.toString()); |
|||
topicService.responderStart(topic); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
|
|||
|
|||
@ApiOperation(value = "查询抢答成功的组", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/responder/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<TopicVo.GroupInfo> getResponder(@RequestBody @ApiParam @Validated TopicDto.Topic topic) throws Exception { |
|||
log.info("查询抢答成功的组:{}",topic.toString()); |
|||
TopicVo.GroupInfo group = topicService.getResponder(topic); |
|||
|
|||
return JsonResponse.newInstance().ok(group); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询所有绝地反击类型的题", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/all/type", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<TopicVo.TopicByLink>> queryTopicAllByLink(@RequestBody @ApiParam @Validated TopicDto.GetTopicAll getTopicAll) throws Exception { |
|||
log.info("查询抢答成功的组:{}",getTopicAll.toString()); |
|||
List<TopicVo.TopicByLink> topicByLinks = topicService.queryTopicAllByLink(getTopicAll); |
|||
return JsonResponse.newInstance().ok(topicByLinks); |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.TopicDto; |
|||
import com.ccsens.mt.bean.dto.VideoDto; |
|||
import com.ccsens.mt.bean.vo.VideoVo; |
|||
import com.ccsens.mt.service.IVideoService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "报表相关api") |
|||
@RestController |
|||
@RequestMapping("/video") |
|||
public class VideoController { |
|||
@Resource |
|||
private IVideoService videoService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看选手上传的视频信息", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoVo.GetVideoInfo>> getVideoByPlayerId(@RequestBody @ApiParam @Validated QueryDto<VideoDto.GetVideo> params) { |
|||
log.info("查看选手上传的视频信息:{}",params.toString()); |
|||
List<VideoVo.GetVideoInfo> getVideoInfoList = videoService.getVideoByPlayerId(params); |
|||
return JsonResponse.newInstance().ok(getVideoInfoList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "上传视频信息", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/upload", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VideoVo.GetVideoInfo>> uploadVideo(@RequestBody @ApiParam @Validated QueryDto<VideoDto.UploadVideo> params) { |
|||
log.info("查看选手上传的视频信息:{}",params.toString()); |
|||
List<VideoVo.GetVideoInfo> getVideoInfoList = videoService.uploadVideo(params); |
|||
return JsonResponse.newInstance().ok(getVideoInfoList); |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.ccsens.mt.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.mt.bean.dto.TopicDto; |
|||
import com.ccsens.mt.bean.vo.VoteVo; |
|||
import com.ccsens.mt.service.IVoteService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "投票API", description = "") |
|||
@RestController |
|||
@RequestMapping("/vote") |
|||
public class VoteController { |
|||
@Resource |
|||
private IVoteService voteService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "用户投票", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/start", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse startVote(@RequestBody @ApiParam @Validated QueryDto<TopicDto.Project> params) throws Exception { |
|||
log.info("开始投票:{}",params.toString()); |
|||
voteService.startVote(params); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "用户投票", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveVote(@RequestBody @ApiParam @Validated QueryDto<List<TopicDto.Group>> params) throws Exception { |
|||
log.info("用户投票:{}",params.toString()); |
|||
voteService.saveVote(params); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询投票结果", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "/get", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<VoteVo.GroupInfo>> queryVote(@RequestBody @ApiParam @Validated QueryDto<TopicDto.Project> params) throws Exception { |
|||
log.info("查询投票结果:{}",params.toString()); |
|||
List<VoteVo.GroupInfo> groupInfoList = voteService.queryVote(params.getParam()); |
|||
return JsonResponse.newInstance().ok(groupInfoList); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,231 @@ |
|||
package com.ccsens.mt.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class CompeteDto { |
|||
@Data |
|||
@ApiModel |
|||
public static class CompeteType{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛") |
|||
private int type; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel |
|||
public static class CompeteTime{ |
|||
@NotNull |
|||
@ApiModelProperty("第几届信息的id") |
|||
private Long competeTimeId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询项目下的选手列表") |
|||
public static class CompeteProjectId{ |
|||
@NotNull |
|||
@ApiModelProperty("第几届信息的id") |
|||
private Long competeTimeId; |
|||
@NotNull |
|||
@ApiModelProperty("比赛项目id(二级的)") |
|||
private Long competeProjectId; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel |
|||
public static class CompeteProjectPlayer{ |
|||
@NotNull |
|||
@ApiModelProperty("选手创建的团队id") |
|||
private Long projectPlayerId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("关键字模糊查询") |
|||
public static class CompeteTypeAndKey{ |
|||
@NotEmpty |
|||
@ApiModelProperty("关键字") |
|||
private String key; |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳比赛") |
|||
private int type; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("提交报名基本信息") |
|||
public static class CompetePlayerInfo{ |
|||
@NotNull |
|||
@ApiModelProperty("第几届信息的id") |
|||
private Long competeTimeId; |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳比赛") |
|||
private int type; |
|||
@NotEmpty |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@NotNull |
|||
@ApiModelProperty("性别 0女 1男") |
|||
private int gender; |
|||
@NotEmpty |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
@NotEmpty |
|||
@ApiModelProperty("手机验证码") |
|||
private String smsCode; |
|||
@NotEmpty |
|||
@ApiModelProperty("身份证") |
|||
private String idCard; |
|||
@NotNull |
|||
@ApiModelProperty("参加的组别的id") |
|||
private Long groupId; |
|||
@ApiModelProperty("参赛单位的名字") |
|||
private String companyName; |
|||
@ApiModelProperty("身份证正面照文件的路径/户口本照片") |
|||
private String idCardFront; |
|||
@ApiModelProperty("身份证反面照文件的路径") |
|||
private String idCardBack; |
|||
@ApiModelProperty("声明文件的路径") |
|||
private String proveImg; |
|||
@ApiModelProperty("其他参赛人员(亲子组需要)") |
|||
private String family; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("选择参赛项目") |
|||
public static class CompeteProject{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛项目id(二级的)") |
|||
private Long competeProjectId; |
|||
@ApiModelProperty("是否通级 0否 1是") |
|||
private byte certificate; |
|||
@NotNull |
|||
@ApiModelProperty("第几届信息的id") |
|||
private Long competeTimeId; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("项目团队ID") |
|||
public static class CompeteGroup{ |
|||
@NotNull(message="请选择团队信息") |
|||
@ApiModelProperty("团队ID") |
|||
private Long id; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("院系提交报名信息") |
|||
public static class DepartmentInfo{ |
|||
@NotNull(message="请选择院系信息") |
|||
@ApiModelProperty("院系id") |
|||
private Long id; |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛") |
|||
private int type; |
|||
@ApiModelProperty("填表人裁判等信息") |
|||
private List<DepartmentRole> roleList; |
|||
@ApiModelProperty("每个比赛项目的参赛名单") |
|||
private List<DepartmentProject> projectList; |
|||
} |
|||
@Data |
|||
@ApiModel("填表人裁判等信息") |
|||
public static class DepartmentRole{ |
|||
@NotEmpty |
|||
@ApiModelProperty("名字") |
|||
private String name; |
|||
@NotEmpty |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
@NotNull |
|||
@ApiModelProperty("担任的角色 0领队 1裁判 2填表人") |
|||
private int role; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("每个比赛项目的参赛名单") |
|||
public static class DepartmentProject{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛项目id(二级的)") |
|||
private Long competeProjectId; |
|||
@NotEmpty |
|||
@ApiModelProperty("参赛人员名单,名字中间用逗号隔开") |
|||
private String names; |
|||
@ApiModelProperty("性别组 0女 1男 2混合") |
|||
private int genderGroup; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("获取院系提交的报名信息") |
|||
public static class GetDepartmentInfo{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛") |
|||
private int type; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel |
|||
public static class QueryProjectByGroup{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛") |
|||
private int type; |
|||
@NotNull |
|||
@ApiModelProperty("组别id") |
|||
private Long groupId; |
|||
} |
|||
@Data |
|||
@ApiModel |
|||
public static class QueryGroupByProject{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳省赛 1跳绳校内比赛") |
|||
private int type; |
|||
@NotNull |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("提交报名基本信息") |
|||
public static class CompetePlayerAndProject{ |
|||
@NotNull |
|||
@ApiModelProperty("第几届信息的id") |
|||
private Long competeTimeId; |
|||
@NotNull |
|||
@ApiModelProperty("比赛的类型,0跳绳比赛") |
|||
private int type; |
|||
@NotEmpty |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@NotEmpty |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
@NotEmpty |
|||
@ApiModelProperty("手机验证码") |
|||
private String smsCode; |
|||
@NotEmpty |
|||
@ApiModelProperty("身份证") |
|||
private String idCard; |
|||
// @NotNull
|
|||
// @ApiModelProperty("参加的组别的id")
|
|||
// private Long groupId;
|
|||
@ApiModelProperty("参加的比赛信息") |
|||
List<ProjectAndGroup> projectAndGroups; |
|||
} |
|||
@Data |
|||
@ApiModel("项目id和组别id") |
|||
public static class ProjectAndGroup{ |
|||
@ApiModelProperty("比赛项目id(二级的)") |
|||
private Long projectId; |
|||
@ApiModelProperty("组别id") |
|||
private Long groupId; |
|||
@ApiModelProperty("其他参赛人员(亲子组需要)") |
|||
private String family; |
|||
} |
|||
} |
@ -0,0 +1,111 @@ |
|||
package com.ccsens.mt.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class LevelDto { |
|||
|
|||
@Data |
|||
@ApiModel("添加选手信息") |
|||
public static class LevelUserDto{ |
|||
@ApiModelProperty("报名比赛的选手的id") |
|||
private Long playerId; |
|||
@ApiModelProperty("头像") |
|||
private String avatarUrl; |
|||
@ApiModelProperty("名称") |
|||
private String name; |
|||
@ApiModelProperty("团队id") |
|||
private Long teamId; |
|||
|
|||
public LevelUserDto() { |
|||
} |
|||
|
|||
public LevelUserDto(Long playerId, String avatarUrl, String name, Long teamId) { |
|||
this.playerId = playerId; |
|||
this.avatarUrl = avatarUrl; |
|||
this.name = name; |
|||
this.teamId = teamId; |
|||
} |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("添加晋级表信息") |
|||
public static class LevelUpDto{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
@ApiModelProperty("选手id") |
|||
private Long playerId; |
|||
@ApiModelProperty("分数") |
|||
private int score; |
|||
@ApiModelProperty("附加分数") |
|||
private int additionScore; |
|||
@ApiModelProperty("名次") |
|||
private int ranking; |
|||
|
|||
public LevelUpDto() { |
|||
} |
|||
|
|||
public LevelUpDto(Long competeTimeId, String competeCode, Long playerId) { |
|||
this.competeTimeId = competeTimeId; |
|||
this.competeCode = competeCode; |
|||
this.playerId = playerId; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("自动晋级") |
|||
public static class AutoLevelUpDto{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
|
|||
public AutoLevelUpDto() { |
|||
} |
|||
|
|||
public AutoLevelUpDto(Long competeTimeId, String competeCode) { |
|||
this.competeTimeId = competeTimeId; |
|||
this.competeCode = competeCode; |
|||
} |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("手动晋级") |
|||
public static class ManualLevelUpDto{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
@ApiModelProperty("手动晋级的选手信息") |
|||
private List<ManualLevelUpPlayer> manualLevelUpPlayers; |
|||
} |
|||
@Data |
|||
@ApiModel("手动晋级的选手信息") |
|||
public static class ManualLevelUpPlayer{ |
|||
@ApiModelProperty("选手id") |
|||
private Long playerId; |
|||
} |
|||
@Data |
|||
@ApiModel("查询晋级信息") |
|||
public static class QueryLevelUserInfo{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
@ApiModelProperty("页码 -1表示不分页 默认-1") |
|||
private int page = -1; |
|||
@ApiModelProperty("每页数量 默认10") |
|||
private int pageSize = 10; |
|||
} |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ccsens.mt.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Max; |
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class TopicDto { |
|||
|
|||
@Data |
|||
@ApiModel("查询题目") |
|||
public static class GetTopic{ |
|||
@NotNull |
|||
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜") |
|||
private int linkType = 1; |
|||
@NotNull |
|||
@ApiModelProperty("当前环节的题号") |
|||
private int topicNum; |
|||
@NotNull |
|||
@ApiModelProperty("项目ID") |
|||
private long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("根据项目id查分组信息") |
|||
public static class GetGroup{ |
|||
@NotNull |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜") |
|||
private int linkType = 1; |
|||
@NotNull |
|||
@ApiModelProperty("参赛组的类型 0答题 1投票 默认为0") |
|||
private int type = 0; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("主持人提交答案") |
|||
public static class SaveAnswers{ |
|||
@NotNull |
|||
@ApiModelProperty("题目id") |
|||
private Long topicId; |
|||
@ApiModelProperty("每组的答案") |
|||
private List<SaveAnswersGroup> answersGroupList; |
|||
} |
|||
@Data |
|||
@ApiModel("提交时每组的答案") |
|||
public static class SaveAnswersGroup{ |
|||
@NotNull |
|||
@ApiModelProperty("该组的id") |
|||
private Long groupId; |
|||
@ApiModelProperty("答案(当前项目为T/F 默认F)") |
|||
private String answers = "F"; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查找组排名信息") |
|||
public static class GetRankingByProjectId{ |
|||
@NotNull |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@NotNull |
|||
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜") |
|||
private int linkType; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("晋级") |
|||
public static class Promoted{ |
|||
@ApiModelProperty("晋级 1志在必得 2以快制胜 3绝地反击 4你说我猜") |
|||
@Min(1) |
|||
@Max(4) |
|||
private Byte linkTypes; |
|||
@ApiModelProperty("分组ID") |
|||
private Long groupId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("题目id") |
|||
public static class Topic{ |
|||
@NotNull |
|||
@ApiModelProperty("题目id") |
|||
private Long topicId; |
|||
@NotNull |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("分组id") |
|||
public static class Group{ |
|||
@NotNull |
|||
@ApiModelProperty("分组id") |
|||
private Long groupId; |
|||
} |
|||
@Data |
|||
@ApiModel("项目id") |
|||
public static class Project{ |
|||
@NotNull |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询所有绝地反击的题") |
|||
public static class GetTopicAll{ |
|||
|
|||
@NotNull |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("比赛环节 1志在必得 2以快制胜 3绝地反击 4你说我猜 默认查询绝地反击") |
|||
private int linkType = 3; |
|||
@Max(50) |
|||
@Min(0) |
|||
@ApiModelProperty("查询几道题 可以不传 默认查询绝地反击的9道题") |
|||
private int nums = 9; |
|||
} |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.ccsens.mt.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class VideoDto { |
|||
@Data |
|||
@ApiModel("查看上传视频的信息") |
|||
public static class GetVideo{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
@ApiModelProperty("查询的是单人还是团队 0个人 1团队") |
|||
private byte team = 0; |
|||
@ApiModelProperty("如果查询的是单人则是选手id。查询团队则传入团队id") |
|||
private Long playerId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("上传视频信息") |
|||
public static class UploadVideo{ |
|||
@ApiModelProperty("大赛id") |
|||
private Long competeTimeId; |
|||
@ApiModelProperty("比赛code") |
|||
private String competeCode; |
|||
@ApiModelProperty("上传的是单人还是团队 0个人 1团队") |
|||
private byte team = 0; |
|||
@ApiModelProperty("如果上传的是单人则是选手id。上传团队则传入团队id") |
|||
private Long playerId; |
|||
@ApiModelProperty("视频文件id") |
|||
private Long videoFileId; |
|||
@ApiModelProperty("视频文件浏览路径") |
|||
private String videoFileUrl; |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.ccsens.mt.bean.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class VoteDto { |
|||
|
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CommonFile implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String fileName; |
|||
|
|||
private String location; |
|||
|
|||
private String visitLocation; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getFileName() { |
|||
return fileName; |
|||
} |
|||
|
|||
public void setFileName(String fileName) { |
|||
this.fileName = fileName == null ? null : fileName.trim(); |
|||
} |
|||
|
|||
public String getLocation() { |
|||
return location; |
|||
} |
|||
|
|||
public void setLocation(String location) { |
|||
this.location = location == null ? null : location.trim(); |
|||
} |
|||
|
|||
public String getVisitLocation() { |
|||
return visitLocation; |
|||
} |
|||
|
|||
public void setVisitLocation(String visitLocation) { |
|||
this.visitLocation = visitLocation == null ? null : visitLocation.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", fileName=").append(fileName); |
|||
sb.append(", location=").append(location); |
|||
sb.append(", visitLocation=").append(visitLocation); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,711 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CommonFileExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CommonFileExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIsNull() { |
|||
addCriterion("file_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIsNotNull() { |
|||
addCriterion("file_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameEqualTo(String value) { |
|||
addCriterion("file_name =", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotEqualTo(String value) { |
|||
addCriterion("file_name <>", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameGreaterThan(String value) { |
|||
addCriterion("file_name >", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("file_name >=", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLessThan(String value) { |
|||
addCriterion("file_name <", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLessThanOrEqualTo(String value) { |
|||
addCriterion("file_name <=", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLike(String value) { |
|||
addCriterion("file_name like", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotLike(String value) { |
|||
addCriterion("file_name not like", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIn(List<String> values) { |
|||
addCriterion("file_name in", values, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotIn(List<String> values) { |
|||
addCriterion("file_name not in", values, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameBetween(String value1, String value2) { |
|||
addCriterion("file_name between", value1, value2, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotBetween(String value1, String value2) { |
|||
addCriterion("file_name not between", value1, value2, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationIsNull() { |
|||
addCriterion("location is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationIsNotNull() { |
|||
addCriterion("location is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationEqualTo(String value) { |
|||
addCriterion("location =", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationNotEqualTo(String value) { |
|||
addCriterion("location <>", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationGreaterThan(String value) { |
|||
addCriterion("location >", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationGreaterThanOrEqualTo(String value) { |
|||
addCriterion("location >=", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationLessThan(String value) { |
|||
addCriterion("location <", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationLessThanOrEqualTo(String value) { |
|||
addCriterion("location <=", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationLike(String value) { |
|||
addCriterion("location like", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationNotLike(String value) { |
|||
addCriterion("location not like", value, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationIn(List<String> values) { |
|||
addCriterion("location in", values, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationNotIn(List<String> values) { |
|||
addCriterion("location not in", values, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationBetween(String value1, String value2) { |
|||
addCriterion("location between", value1, value2, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLocationNotBetween(String value1, String value2) { |
|||
addCriterion("location not between", value1, value2, "location"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationIsNull() { |
|||
addCriterion("visit_location is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationIsNotNull() { |
|||
addCriterion("visit_location is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationEqualTo(String value) { |
|||
addCriterion("visit_location =", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationNotEqualTo(String value) { |
|||
addCriterion("visit_location <>", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationGreaterThan(String value) { |
|||
addCriterion("visit_location >", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationGreaterThanOrEqualTo(String value) { |
|||
addCriterion("visit_location >=", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationLessThan(String value) { |
|||
addCriterion("visit_location <", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationLessThanOrEqualTo(String value) { |
|||
addCriterion("visit_location <=", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationLike(String value) { |
|||
addCriterion("visit_location like", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationNotLike(String value) { |
|||
addCriterion("visit_location not like", value, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationIn(List<String> values) { |
|||
addCriterion("visit_location in", values, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationNotIn(List<String> values) { |
|||
addCriterion("visit_location not in", values, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationBetween(String value1, String value2) { |
|||
addCriterion("visit_location between", value1, value2, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVisitLocationNotBetween(String value1, String value2) { |
|||
addCriterion("visit_location not between", value1, value2, "visitLocation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
@ -0,0 +1,571 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteCompanyExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteCompanyExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteCompanyRole implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long playerId; |
|||
|
|||
private Long competeCompanyId; |
|||
|
|||
private Byte type; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPlayerId() { |
|||
return playerId; |
|||
} |
|||
|
|||
public void setPlayerId(Long playerId) { |
|||
this.playerId = playerId; |
|||
} |
|||
|
|||
public Long getCompeteCompanyId() { |
|||
return competeCompanyId; |
|||
} |
|||
|
|||
public void setCompeteCompanyId(Long competeCompanyId) { |
|||
this.competeCompanyId = competeCompanyId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", playerId=").append(playerId); |
|||
sb.append(", competeCompanyId=").append(competeCompanyId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,621 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteCompanyRoleExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteCompanyRoleExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNull() { |
|||
addCriterion("player_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNotNull() { |
|||
addCriterion("player_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdEqualTo(Long value) { |
|||
addCriterion("player_id =", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotEqualTo(Long value) { |
|||
addCriterion("player_id <>", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThan(Long value) { |
|||
addCriterion("player_id >", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("player_id >=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThan(Long value) { |
|||
addCriterion("player_id <", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("player_id <=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIn(List<Long> values) { |
|||
addCriterion("player_id in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotIn(List<Long> values) { |
|||
addCriterion("player_id not in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdBetween(Long value1, Long value2) { |
|||
addCriterion("player_id between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("player_id not between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdIsNull() { |
|||
addCriterion("compete_company_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdIsNotNull() { |
|||
addCriterion("compete_company_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdEqualTo(Long value) { |
|||
addCriterion("compete_company_id =", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdNotEqualTo(Long value) { |
|||
addCriterion("compete_company_id <>", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdGreaterThan(Long value) { |
|||
addCriterion("compete_company_id >", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("compete_company_id >=", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdLessThan(Long value) { |
|||
addCriterion("compete_company_id <", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("compete_company_id <=", value, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdIn(List<Long> values) { |
|||
addCriterion("compete_company_id in", values, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdNotIn(List<Long> values) { |
|||
addCriterion("compete_company_id not in", values, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdBetween(Long value1, Long value2) { |
|||
addCriterion("compete_company_id between", value1, value2, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteCompanyIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("compete_company_id not between", value1, value2, "competeCompanyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
@ -0,0 +1,821 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteGroupExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteGroupExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameIsNull() { |
|||
addCriterion("group_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameIsNotNull() { |
|||
addCriterion("group_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameEqualTo(String value) { |
|||
addCriterion("group_name =", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameNotEqualTo(String value) { |
|||
addCriterion("group_name <>", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameGreaterThan(String value) { |
|||
addCriterion("group_name >", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("group_name >=", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameLessThan(String value) { |
|||
addCriterion("group_name <", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameLessThanOrEqualTo(String value) { |
|||
addCriterion("group_name <=", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameLike(String value) { |
|||
addCriterion("group_name like", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameNotLike(String value) { |
|||
addCriterion("group_name not like", value, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameIn(List<String> values) { |
|||
addCriterion("group_name in", values, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameNotIn(List<String> values) { |
|||
addCriterion("group_name not in", values, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameBetween(String value1, String value2) { |
|||
addCriterion("group_name between", value1, value2, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupNameNotBetween(String value1, String value2) { |
|||
addCriterion("group_name not between", value1, value2, "groupName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeIsNull() { |
|||
addCriterion("start_age is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeIsNotNull() { |
|||
addCriterion("start_age is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeEqualTo(Integer value) { |
|||
addCriterion("start_age =", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeNotEqualTo(Integer value) { |
|||
addCriterion("start_age <>", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeGreaterThan(Integer value) { |
|||
addCriterion("start_age >", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("start_age >=", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeLessThan(Integer value) { |
|||
addCriterion("start_age <", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeLessThanOrEqualTo(Integer value) { |
|||
addCriterion("start_age <=", value, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeIn(List<Integer> values) { |
|||
addCriterion("start_age in", values, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeNotIn(List<Integer> values) { |
|||
addCriterion("start_age not in", values, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeBetween(Integer value1, Integer value2) { |
|||
addCriterion("start_age between", value1, value2, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartAgeNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("start_age not between", value1, value2, "startAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeIsNull() { |
|||
addCriterion("end_age is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeIsNotNull() { |
|||
addCriterion("end_age is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeEqualTo(Integer value) { |
|||
addCriterion("end_age =", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeNotEqualTo(Integer value) { |
|||
addCriterion("end_age <>", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeGreaterThan(Integer value) { |
|||
addCriterion("end_age >", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("end_age >=", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeLessThan(Integer value) { |
|||
addCriterion("end_age <", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeLessThanOrEqualTo(Integer value) { |
|||
addCriterion("end_age <=", value, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeIn(List<Integer> values) { |
|||
addCriterion("end_age in", values, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeNotIn(List<Integer> values) { |
|||
addCriterion("end_age not in", values, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeBetween(Integer value1, Integer value2) { |
|||
addCriterion("end_age between", value1, value2, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndAgeNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("end_age not between", value1, value2, "endAge"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNull() { |
|||
addCriterion("sequence is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNotNull() { |
|||
addCriterion("sequence is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceEqualTo(Integer value) { |
|||
addCriterion("sequence =", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotEqualTo(Integer value) { |
|||
addCriterion("sequence <>", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThan(Integer value) { |
|||
addCriterion("sequence >", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence >=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThan(Integer value) { |
|||
addCriterion("sequence <", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence <=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIn(List<Integer> values) { |
|||
addCriterion("sequence in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotIn(List<Integer> values) { |
|||
addCriterion("sequence not in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence not between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,194 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompetePlayer implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String name; |
|||
|
|||
private String idCard; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte gender; |
|||
|
|||
private String idCardFront; |
|||
|
|||
private String idCardBack; |
|||
|
|||
private String proveImg; |
|||
|
|||
private Long competeGroupId; |
|||
|
|||
private Long companyId; |
|||
|
|||
private Byte authorization; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long competeTimeId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getIdCard() { |
|||
return idCard; |
|||
} |
|||
|
|||
public void setIdCard(String idCard) { |
|||
this.idCard = idCard == null ? null : idCard.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public String getIdCardFront() { |
|||
return idCardFront; |
|||
} |
|||
|
|||
public void setIdCardFront(String idCardFront) { |
|||
this.idCardFront = idCardFront == null ? null : idCardFront.trim(); |
|||
} |
|||
|
|||
public String getIdCardBack() { |
|||
return idCardBack; |
|||
} |
|||
|
|||
public void setIdCardBack(String idCardBack) { |
|||
this.idCardBack = idCardBack == null ? null : idCardBack.trim(); |
|||
} |
|||
|
|||
public String getProveImg() { |
|||
return proveImg; |
|||
} |
|||
|
|||
public void setProveImg(String proveImg) { |
|||
this.proveImg = proveImg == null ? null : proveImg.trim(); |
|||
} |
|||
|
|||
public Long getCompeteGroupId() { |
|||
return competeGroupId; |
|||
} |
|||
|
|||
public void setCompeteGroupId(Long competeGroupId) { |
|||
this.competeGroupId = competeGroupId; |
|||
} |
|||
|
|||
public Long getCompanyId() { |
|||
return companyId; |
|||
} |
|||
|
|||
public void setCompanyId(Long companyId) { |
|||
this.companyId = companyId; |
|||
} |
|||
|
|||
public Byte getAuthorization() { |
|||
return authorization; |
|||
} |
|||
|
|||
public void setAuthorization(Byte authorization) { |
|||
this.authorization = authorization; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", idCard=").append(idCard); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", idCardFront=").append(idCardFront); |
|||
sb.append(", idCardBack=").append(idCardBack); |
|||
sb.append(", proveImg=").append(proveImg); |
|||
sb.append(", competeGroupId=").append(competeGroupId); |
|||
sb.append(", companyId=").append(companyId); |
|||
sb.append(", authorization=").append(authorization); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,95 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompetePlayerFamily implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long playerId; |
|||
|
|||
private Long childrenId; |
|||
|
|||
private String description; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPlayerId() { |
|||
return playerId; |
|||
} |
|||
|
|||
public void setPlayerId(Long playerId) { |
|||
this.playerId = playerId; |
|||
} |
|||
|
|||
public Long getChildrenId() { |
|||
return childrenId; |
|||
} |
|||
|
|||
public void setChildrenId(Long childrenId) { |
|||
this.childrenId = childrenId; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", playerId=").append(playerId); |
|||
sb.append(", childrenId=").append(childrenId); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,631 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompetePlayerFamilyExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompetePlayerFamilyExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNull() { |
|||
addCriterion("player_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNotNull() { |
|||
addCriterion("player_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdEqualTo(Long value) { |
|||
addCriterion("player_id =", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotEqualTo(Long value) { |
|||
addCriterion("player_id <>", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThan(Long value) { |
|||
addCriterion("player_id >", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("player_id >=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThan(Long value) { |
|||
addCriterion("player_id <", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("player_id <=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIn(List<Long> values) { |
|||
addCriterion("player_id in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotIn(List<Long> values) { |
|||
addCriterion("player_id not in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdBetween(Long value1, Long value2) { |
|||
addCriterion("player_id between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("player_id not between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdIsNull() { |
|||
addCriterion("children_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdIsNotNull() { |
|||
addCriterion("children_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdEqualTo(Long value) { |
|||
addCriterion("children_id =", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdNotEqualTo(Long value) { |
|||
addCriterion("children_id <>", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdGreaterThan(Long value) { |
|||
addCriterion("children_id >", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("children_id >=", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdLessThan(Long value) { |
|||
addCriterion("children_id <", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("children_id <=", value, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdIn(List<Long> values) { |
|||
addCriterion("children_id in", values, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdNotIn(List<Long> values) { |
|||
addCriterion("children_id not in", values, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdBetween(Long value1, Long value2) { |
|||
addCriterion("children_id between", value1, value2, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andChildrenIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("children_id not between", value1, value2, "childrenId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,161 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteProject implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private Long parentId; |
|||
|
|||
private Byte level; |
|||
|
|||
private Byte team; |
|||
|
|||
private Byte joinRule; |
|||
|
|||
private Byte certificate; |
|||
|
|||
private Integer memberMin; |
|||
|
|||
private Integer memberMax; |
|||
|
|||
private Byte type; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Long getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public Byte getLevel() { |
|||
return level; |
|||
} |
|||
|
|||
public void setLevel(Byte level) { |
|||
this.level = level; |
|||
} |
|||
|
|||
public Byte getTeam() { |
|||
return team; |
|||
} |
|||
|
|||
public void setTeam(Byte team) { |
|||
this.team = team; |
|||
} |
|||
|
|||
public Byte getJoinRule() { |
|||
return joinRule; |
|||
} |
|||
|
|||
public void setJoinRule(Byte joinRule) { |
|||
this.joinRule = joinRule; |
|||
} |
|||
|
|||
public Byte getCertificate() { |
|||
return certificate; |
|||
} |
|||
|
|||
public void setCertificate(Byte certificate) { |
|||
this.certificate = certificate; |
|||
} |
|||
|
|||
public Integer getMemberMin() { |
|||
return memberMin; |
|||
} |
|||
|
|||
public void setMemberMin(Integer memberMin) { |
|||
this.memberMin = memberMin; |
|||
} |
|||
|
|||
public Integer getMemberMax() { |
|||
return memberMax; |
|||
} |
|||
|
|||
public void setMemberMax(Integer memberMax) { |
|||
this.memberMax = memberMax; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", level=").append(level); |
|||
sb.append(", team=").append(team); |
|||
sb.append(", joinRule=").append(joinRule); |
|||
sb.append(", certificate=").append(certificate); |
|||
sb.append(", memberMin=").append(memberMin); |
|||
sb.append(", memberMax=").append(memberMax); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,991 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteProjectExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteProjectExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNull() { |
|||
addCriterion("parent_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNotNull() { |
|||
addCriterion("parent_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdEqualTo(Long value) { |
|||
addCriterion("parent_id =", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotEqualTo(Long value) { |
|||
addCriterion("parent_id <>", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThan(Long value) { |
|||
addCriterion("parent_id >", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id >=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThan(Long value) { |
|||
addCriterion("parent_id <", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id <=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIn(List<Long> values) { |
|||
addCriterion("parent_id in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotIn(List<Long> values) { |
|||
addCriterion("parent_id not in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id not between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIsNull() { |
|||
addCriterion("level is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIsNotNull() { |
|||
addCriterion("level is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelEqualTo(Byte value) { |
|||
addCriterion("level =", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotEqualTo(Byte value) { |
|||
addCriterion("level <>", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelGreaterThan(Byte value) { |
|||
addCriterion("level >", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("level >=", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelLessThan(Byte value) { |
|||
addCriterion("level <", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("level <=", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIn(List<Byte> values) { |
|||
addCriterion("level in", values, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotIn(List<Byte> values) { |
|||
addCriterion("level not in", values, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelBetween(Byte value1, Byte value2) { |
|||
addCriterion("level between", value1, value2, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("level not between", value1, value2, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamIsNull() { |
|||
addCriterion("team is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamIsNotNull() { |
|||
addCriterion("team is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamEqualTo(Byte value) { |
|||
addCriterion("team =", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamNotEqualTo(Byte value) { |
|||
addCriterion("team <>", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamGreaterThan(Byte value) { |
|||
addCriterion("team >", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("team >=", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamLessThan(Byte value) { |
|||
addCriterion("team <", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamLessThanOrEqualTo(Byte value) { |
|||
addCriterion("team <=", value, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamIn(List<Byte> values) { |
|||
addCriterion("team in", values, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamNotIn(List<Byte> values) { |
|||
addCriterion("team not in", values, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamBetween(Byte value1, Byte value2) { |
|||
addCriterion("team between", value1, value2, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTeamNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("team not between", value1, value2, "team"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleIsNull() { |
|||
addCriterion("join_rule is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleIsNotNull() { |
|||
addCriterion("join_rule is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleEqualTo(Byte value) { |
|||
addCriterion("join_rule =", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleNotEqualTo(Byte value) { |
|||
addCriterion("join_rule <>", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleGreaterThan(Byte value) { |
|||
addCriterion("join_rule >", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("join_rule >=", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleLessThan(Byte value) { |
|||
addCriterion("join_rule <", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleLessThanOrEqualTo(Byte value) { |
|||
addCriterion("join_rule <=", value, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleIn(List<Byte> values) { |
|||
addCriterion("join_rule in", values, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleNotIn(List<Byte> values) { |
|||
addCriterion("join_rule not in", values, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleBetween(Byte value1, Byte value2) { |
|||
addCriterion("join_rule between", value1, value2, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andJoinRuleNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("join_rule not between", value1, value2, "joinRule"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIsNull() { |
|||
addCriterion("certificate is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIsNotNull() { |
|||
addCriterion("certificate is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateEqualTo(Byte value) { |
|||
addCriterion("certificate =", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotEqualTo(Byte value) { |
|||
addCriterion("certificate <>", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateGreaterThan(Byte value) { |
|||
addCriterion("certificate >", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("certificate >=", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateLessThan(Byte value) { |
|||
addCriterion("certificate <", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateLessThanOrEqualTo(Byte value) { |
|||
addCriterion("certificate <=", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIn(List<Byte> values) { |
|||
addCriterion("certificate in", values, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotIn(List<Byte> values) { |
|||
addCriterion("certificate not in", values, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateBetween(Byte value1, Byte value2) { |
|||
addCriterion("certificate between", value1, value2, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("certificate not between", value1, value2, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinIsNull() { |
|||
addCriterion("member_min is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinIsNotNull() { |
|||
addCriterion("member_min is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinEqualTo(Integer value) { |
|||
addCriterion("member_min =", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinNotEqualTo(Integer value) { |
|||
addCriterion("member_min <>", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinGreaterThan(Integer value) { |
|||
addCriterion("member_min >", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("member_min >=", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinLessThan(Integer value) { |
|||
addCriterion("member_min <", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinLessThanOrEqualTo(Integer value) { |
|||
addCriterion("member_min <=", value, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinIn(List<Integer> values) { |
|||
addCriterion("member_min in", values, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinNotIn(List<Integer> values) { |
|||
addCriterion("member_min not in", values, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinBetween(Integer value1, Integer value2) { |
|||
addCriterion("member_min between", value1, value2, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMinNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("member_min not between", value1, value2, "memberMin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxIsNull() { |
|||
addCriterion("member_max is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxIsNotNull() { |
|||
addCriterion("member_max is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxEqualTo(Integer value) { |
|||
addCriterion("member_max =", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxNotEqualTo(Integer value) { |
|||
addCriterion("member_max <>", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxGreaterThan(Integer value) { |
|||
addCriterion("member_max >", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("member_max >=", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxLessThan(Integer value) { |
|||
addCriterion("member_max <", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxLessThanOrEqualTo(Integer value) { |
|||
addCriterion("member_max <=", value, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxIn(List<Integer> values) { |
|||
addCriterion("member_max in", values, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxNotIn(List<Integer> values) { |
|||
addCriterion("member_max not in", values, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxBetween(Integer value1, Integer value2) { |
|||
addCriterion("member_max between", value1, value2, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberMaxNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("member_max not between", value1, value2, "memberMax"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteProjectGroup implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long groupId; |
|||
|
|||
private String description; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getGroupId() { |
|||
return groupId; |
|||
} |
|||
|
|||
public void setGroupId(Long groupId) { |
|||
this.groupId = groupId; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", groupId=").append(groupId); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,631 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteProjectGroupExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteProjectGroupExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdIsNull() { |
|||
addCriterion("group_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdIsNotNull() { |
|||
addCriterion("group_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdEqualTo(Long value) { |
|||
addCriterion("group_id =", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdNotEqualTo(Long value) { |
|||
addCriterion("group_id <>", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdGreaterThan(Long value) { |
|||
addCriterion("group_id >", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("group_id >=", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdLessThan(Long value) { |
|||
addCriterion("group_id <", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("group_id <=", value, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdIn(List<Long> values) { |
|||
addCriterion("group_id in", values, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdNotIn(List<Long> values) { |
|||
addCriterion("group_id not in", values, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdBetween(Long value1, Long value2) { |
|||
addCriterion("group_id between", value1, value2, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGroupIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("group_id not between", value1, value2, "groupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,128 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteProjectPlayer implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long playerId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long competeTimeId; |
|||
|
|||
private Byte genderGroup; |
|||
|
|||
private Byte certificate; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long competeGroupId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPlayerId() { |
|||
return playerId; |
|||
} |
|||
|
|||
public void setPlayerId(Long playerId) { |
|||
this.playerId = playerId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
public Byte getGenderGroup() { |
|||
return genderGroup; |
|||
} |
|||
|
|||
public void setGenderGroup(Byte genderGroup) { |
|||
this.genderGroup = genderGroup; |
|||
} |
|||
|
|||
public Byte getCertificate() { |
|||
return certificate; |
|||
} |
|||
|
|||
public void setCertificate(Byte certificate) { |
|||
this.certificate = certificate; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getCompeteGroupId() { |
|||
return competeGroupId; |
|||
} |
|||
|
|||
public void setCompeteGroupId(Long competeGroupId) { |
|||
this.competeGroupId = competeGroupId; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", playerId=").append(playerId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append(", genderGroup=").append(genderGroup); |
|||
sb.append(", certificate=").append(certificate); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", competeGroupId=").append(competeGroupId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,801 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CompeteProjectPlayerExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CompeteProjectPlayerExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNull() { |
|||
addCriterion("player_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIsNotNull() { |
|||
addCriterion("player_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdEqualTo(Long value) { |
|||
addCriterion("player_id =", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotEqualTo(Long value) { |
|||
addCriterion("player_id <>", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThan(Long value) { |
|||
addCriterion("player_id >", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("player_id >=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThan(Long value) { |
|||
addCriterion("player_id <", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("player_id <=", value, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdIn(List<Long> values) { |
|||
addCriterion("player_id in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotIn(List<Long> values) { |
|||
addCriterion("player_id not in", values, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdBetween(Long value1, Long value2) { |
|||
addCriterion("player_id between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlayerIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("player_id not between", value1, value2, "playerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIsNull() { |
|||
addCriterion("compete_time_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIsNotNull() { |
|||
addCriterion("compete_time_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdEqualTo(Long value) { |
|||
addCriterion("compete_time_id =", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotEqualTo(Long value) { |
|||
addCriterion("compete_time_id <>", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdGreaterThan(Long value) { |
|||
addCriterion("compete_time_id >", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("compete_time_id >=", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdLessThan(Long value) { |
|||
addCriterion("compete_time_id <", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("compete_time_id <=", value, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdIn(List<Long> values) { |
|||
addCriterion("compete_time_id in", values, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotIn(List<Long> values) { |
|||
addCriterion("compete_time_id not in", values, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdBetween(Long value1, Long value2) { |
|||
addCriterion("compete_time_id between", value1, value2, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("compete_time_id not between", value1, value2, "competeTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupIsNull() { |
|||
addCriterion("gender_group is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupIsNotNull() { |
|||
addCriterion("gender_group is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupEqualTo(Byte value) { |
|||
addCriterion("gender_group =", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupNotEqualTo(Byte value) { |
|||
addCriterion("gender_group <>", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupGreaterThan(Byte value) { |
|||
addCriterion("gender_group >", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("gender_group >=", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupLessThan(Byte value) { |
|||
addCriterion("gender_group <", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupLessThanOrEqualTo(Byte value) { |
|||
addCriterion("gender_group <=", value, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupIn(List<Byte> values) { |
|||
addCriterion("gender_group in", values, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupNotIn(List<Byte> values) { |
|||
addCriterion("gender_group not in", values, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupBetween(Byte value1, Byte value2) { |
|||
addCriterion("gender_group between", value1, value2, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGroupNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("gender_group not between", value1, value2, "genderGroup"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIsNull() { |
|||
addCriterion("certificate is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIsNotNull() { |
|||
addCriterion("certificate is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateEqualTo(Byte value) { |
|||
addCriterion("certificate =", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotEqualTo(Byte value) { |
|||
addCriterion("certificate <>", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateGreaterThan(Byte value) { |
|||
addCriterion("certificate >", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("certificate >=", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateLessThan(Byte value) { |
|||
addCriterion("certificate <", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateLessThanOrEqualTo(Byte value) { |
|||
addCriterion("certificate <=", value, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateIn(List<Byte> values) { |
|||
addCriterion("certificate in", values, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotIn(List<Byte> values) { |
|||
addCriterion("certificate not in", values, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateBetween(Byte value1, Byte value2) { |
|||
addCriterion("certificate between", value1, value2, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCertificateNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("certificate not between", value1, value2, "certificate"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdIsNull() { |
|||
addCriterion("compete_group_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdIsNotNull() { |
|||
addCriterion("compete_group_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdEqualTo(Long value) { |
|||
addCriterion("compete_group_id =", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdNotEqualTo(Long value) { |
|||
addCriterion("compete_group_id <>", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdGreaterThan(Long value) { |
|||
addCriterion("compete_group_id >", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("compete_group_id >=", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdLessThan(Long value) { |
|||
addCriterion("compete_group_id <", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("compete_group_id <=", value, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdIn(List<Long> values) { |
|||
addCriterion("compete_group_id in", values, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdNotIn(List<Long> values) { |
|||
addCriterion("compete_group_id not in", values, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdBetween(Long value1, Long value2) { |
|||
addCriterion("compete_group_id between", value1, value2, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompeteGroupIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("compete_group_id not between", value1, value2, "competeGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,139 @@ |
|||
package com.ccsens.mt.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CompeteTeam implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long creator; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long competeTimeId; |
|||
|
|||
private Byte genderGroup; |
|||
|
|||
private Byte certificate; |
|||
|
|||
private String qrCode; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long competeGroupId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getCreator() { |
|||
return creator; |
|||
} |
|||
|
|||
public void setCreator(Long creator) { |
|||
this.creator = creator; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getCompeteTimeId() { |
|||
return competeTimeId; |
|||
} |
|||
|
|||
public void setCompeteTimeId(Long competeTimeId) { |
|||
this.competeTimeId = competeTimeId; |
|||
} |
|||
|
|||
public Byte getGenderGroup() { |
|||
return genderGroup; |
|||
} |
|||
|
|||
public void setGenderGroup(Byte genderGroup) { |
|||
this.genderGroup = genderGroup; |
|||
} |
|||
|
|||
public Byte getCertificate() { |
|||
return certificate; |
|||
} |
|||
|
|||
public void setCertificate(Byte certificate) { |
|||
this.certificate = certificate; |
|||
} |
|||
|
|||
public String getQrCode() { |
|||
return qrCode; |
|||
} |
|||
|
|||
public void setQrCode(String qrCode) { |
|||
this.qrCode = qrCode == null ? null : qrCode.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getCompeteGroupId() { |
|||
return competeGroupId; |
|||
} |
|||
|
|||
public void setCompeteGroupId(Long competeGroupId) { |
|||
this.competeGroupId = competeGroupId; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", creator=").append(creator); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", competeTimeId=").append(competeTimeId); |
|||
sb.append(", genderGroup=").append(genderGroup); |
|||
sb.append(", certificate=").append(certificate); |
|||
sb.append(", qrCode=").append(qrCode); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", competeGroupId=").append(competeGroupId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue