From bf10ce34d572feebded4e920ee1b002c2e186302 Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Wed, 11 Nov 2020 16:11:59 +0800 Subject: [PATCH 1/6] 20201111v1.6 --- mt/src/main/resources/application.yml | 4 ++-- mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mt/src/main/resources/application.yml b/mt/src/main/resources/application.yml index 5c2cd5c4..5889ff7f 100644 --- a/mt/src/main/resources/application.yml +++ b/mt/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: dev - include: common, util-dev \ No newline at end of file + active: test + include: common, util-test \ No newline at end of file diff --git a/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml b/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml index 57baa676..2f06dfc0 100644 --- a/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml +++ b/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml @@ -53,7 +53,7 @@ if(pp.id is null and a.mId is null,0,1) as joinProject FROM t_compete_group cg - LEFT JOIN t_compete_player p on (cg.id = p.compete_group_id or (cg.sex = p.gender and cg.group_remark = p.group_remark)) + LEFT JOIN t_compete_player p on cg.id = p.compete_group_id LEFT JOIN t_compete_project_player pp on p.id = pp.player_id and pp.project_id = #{projectId} and pp.rec_status = 0 LEFT JOIN ( SELECT From 61aac0c3f7a7f1cf9fd3e8fde4c13934490b3224 Mon Sep 17 00:00:00 2001 From: wang0018 <1007152140@qq.com> Date: Wed, 11 Nov 2020 20:12:31 +0800 Subject: [PATCH 2/6] =?UTF-8?q?11-11=2020=EF=BC=9A12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccsens/mt/api/ExcelController.java | 9 +- .../com/ccsens/mt/bean/vo/CompeteExcelVo.java | 62 ++++++ .../mt/persist/dao/CompeteCompanyDao.java | 3 + .../mt/persist/dao/CompetePlayerDao.java | 5 + .../ccsens/mt/persist/dao/CompeteTeamDao.java | 3 + .../com/ccsens/mt/service/ExcelService.java | 188 +++++++++++++++++- .../com/ccsens/mt/service/IExcelService.java | 2 + mt/src/main/resources/application.yml | 4 +- .../mapper_dao/CompeteCompanyDao.xml | 28 ++- .../resources/mapper_dao/CompetePlayerDao.xml | 38 +++- .../resources/mapper_dao/CompeteTeamDao.xml | 31 ++- .../test/java/com/ccsens/util/OtherTest.java | 8 + 12 files changed, 372 insertions(+), 9 deletions(-) create mode 100644 mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java diff --git a/mt/src/main/java/com/ccsens/mt/api/ExcelController.java b/mt/src/main/java/com/ccsens/mt/api/ExcelController.java index ec2ee354..ae9f61d4 100644 --- a/mt/src/main/java/com/ccsens/mt/api/ExcelController.java +++ b/mt/src/main/java/com/ccsens/mt/api/ExcelController.java @@ -78,7 +78,14 @@ public class ExcelController { return JsonResponse.newInstance().ok(path); } - + @MustLogin + @ApiOperation(value = "比赛出场顺序", notes = "") + @RequestMapping(value = "/competitionOrder", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse competitionOrder(@ApiParam @Validated @RequestBody QueryDto params) throws IOException { + log.info("导出比赛出场顺序:{}",params); + String path = excelService.iCompetitionOrderService(params); + return JsonResponse.newInstance().ok(path); + } } diff --git a/mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java b/mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java new file mode 100644 index 00000000..84e8bb67 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/vo/CompeteExcelVo.java @@ -0,0 +1,62 @@ +package com.ccsens.mt.bean.vo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiParam; +import lombok.Data; + +import java.util.List; + +@Data +public class CompeteExcelVo { + @Data + @ApiModel("顺序表") + public static class TeamOrderPlayer { + @ApiModelProperty("组别id") + private String groupId; + @ApiModelProperty("组别名") + private String groupName; + @ApiModelProperty("单位信息") + private List companyNameList; + } + + + @Data + @ApiModel("顺序表") + public static class TeamOrderPlayerList { + @ApiModelProperty("团队id") + private Long teamId; + @ApiModelProperty("单位名称") + private String companyName; + @ApiModelProperty("团队选手名字") + private String playerNames; + } + + @Data + @ApiModel("所有项目") + public static class AllProject{ + @ApiModelProperty("项目id") + private Long id; + @ApiModelProperty("项目名字") + private String projectName; + @ApiModelProperty("开始时间Long") + private Long startTime; + @ApiModelProperty("开始时间Str") + private String startTimeStr; + @ApiModelProperty("结束时间Long") + private Long endTime; + @ApiModelProperty("结束时间Str") + private String endTimeStr; + @ApiModelProperty("组别大小") + private int size; + @ApiModelProperty("是否为团队项目,0不是 1是") + private Byte team; + @ApiModelProperty("项目场地数量") + private int siteNum; + @ApiModelProperty("项目信息") + private List projectList; + @ApiModelProperty("月/日 上/下午") + private String year; + } +} diff --git a/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteCompanyDao.java b/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteCompanyDao.java index 6266f255..0c86cb20 100644 --- a/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteCompanyDao.java +++ b/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteCompanyDao.java @@ -3,6 +3,7 @@ package com.ccsens.mt.persist.dao; import com.ccsens.mt.bean.dto.ProvinceCompeteDto; import com.ccsens.mt.bean.po.CompeteCoach; import com.ccsens.mt.bean.po.CompeteCompany; +import com.ccsens.mt.bean.vo.CompeteExcelVo; import com.ccsens.mt.bean.vo.CompeteVo; import com.ccsens.mt.bean.vo.ProvinceCompeteVo; import com.ccsens.mt.persist.mapper.CompeteCompanyMapper; @@ -140,4 +141,6 @@ public interface CompeteCompanyDao extends CompeteCompanyMapper { */ int getTeamNumByPlayerIdAndGroup(@Param("competeTimeId")Long competeTimeId, @Param("playerId")Long playerId, @Param("projectId")Long projectId, @Param("companyId")Long companyId, @Param("gender")int gender, @Param("groupRemark")int groupRemark); + + List selectProjectByType(Long id); } diff --git a/mt/src/main/java/com/ccsens/mt/persist/dao/CompetePlayerDao.java b/mt/src/main/java/com/ccsens/mt/persist/dao/CompetePlayerDao.java index 024d2545..a9284b3a 100644 --- a/mt/src/main/java/com/ccsens/mt/persist/dao/CompetePlayerDao.java +++ b/mt/src/main/java/com/ccsens/mt/persist/dao/CompetePlayerDao.java @@ -1,6 +1,8 @@ package com.ccsens.mt.persist.dao; +import com.ccsens.mt.bean.po.CompeteGroup; import com.ccsens.mt.bean.po.CompetePlayer; +import com.ccsens.mt.bean.vo.CompeteExcelVo; import com.ccsens.mt.bean.vo.CompeteVo; import com.ccsens.mt.bean.vo.ProvinceCompeteVo; import com.ccsens.mt.bean.vo.TableVo; @@ -73,4 +75,7 @@ public interface CompetePlayerDao extends CompetePlayerMapper { List getTeamJoinNumByType(@Param("timeId")Long timeId); List getTeamJoinNumByProjectId(@Param("projectId")Long projectId); + + CompeteGroup selectBySexAndRemark(int gender, int groupRemark); + List selectSinglePlayerByProjectId(Long id); } diff --git a/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteTeamDao.java b/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteTeamDao.java index 4351f731..dbc96eae 100644 --- a/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteTeamDao.java +++ b/mt/src/main/java/com/ccsens/mt/persist/dao/CompeteTeamDao.java @@ -1,5 +1,6 @@ package com.ccsens.mt.persist.dao; +import com.ccsens.mt.bean.vo.CompeteExcelVo; import com.ccsens.mt.bean.vo.CompeteVo; import com.ccsens.mt.persist.mapper.CompeteTeamMapper; import org.apache.ibatis.annotations.Param; @@ -80,4 +81,6 @@ public interface CompeteTeamDao extends CompeteTeamMapper { * @return */ List getPlayerByProjectId(@Param("competeProjectId")Long competeProjectId, @Param("competeTimeId")Long competeTimeId); + + List selectTeamMemberByProjectId(Long id); } diff --git a/mt/src/main/java/com/ccsens/mt/service/ExcelService.java b/mt/src/main/java/com/ccsens/mt/service/ExcelService.java index 0e8aef44..d06dd136 100644 --- a/mt/src/main/java/com/ccsens/mt/service/ExcelService.java +++ b/mt/src/main/java/com/ccsens/mt/service/ExcelService.java @@ -4,6 +4,7 @@ import cn.hutool.core.util.IdcardUtil; import cn.hutool.core.util.ObjectUtil; import com.ccsens.mt.bean.dto.CompeteDto; import com.ccsens.mt.bean.po.*; +import com.ccsens.mt.bean.vo.CompeteExcelVo; import com.ccsens.mt.bean.vo.TableVo; import com.ccsens.mt.persist.dao.*; import com.ccsens.mt.persist.mapper.*; @@ -16,18 +17,21 @@ import com.ccsens.util.WebConstant; import com.ccsens.util.bean.dto.QueryDto; import com.ccsens.util.exception.BaseException; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections.map.HashedMap; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.unit.DataUnit; + import javax.annotation.Resource; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; -import java.util.ArrayList; -import java.util.List; +import java.text.SimpleDateFormat; +import java.util.*; @Slf4j @Service @@ -52,6 +56,8 @@ public class ExcelService implements IExcelService { @Resource private CompeteGroupMapper competeGroupMapper; @Resource + private CompeteProjectConfigMapper competeProjectConfigMapper; + @Resource private CommonFileMapper commonFileMapper; @Resource private IProvinceService provinceService; @@ -632,6 +638,184 @@ public class ExcelService implements IExcelService { return path; } + /** + * 导出出场顺序表 + * @param params + * @return + */ + @Override + public String iCompetitionOrderService(QueryDto params) { + List competeProjectList= competeCompanyDao.selectProjectByType(params.getParam().getCompeteTimeId()); + for (int i=0;i singleOrderPlayerList=competePlayerDao.selectSinglePlayerByProjectId(competeProject.getId()); + size = singleOrderPlayerList.stream().mapToInt(singleOrderPlayer -> singleOrderPlayer.getCompanyNameList().size()).sum(); + competeProject.setProjectList(singleOrderPlayerList); + }else { + List teamOrderPlayerList= competeTeamDao.selectTeamMemberByProjectId(competeProject.getId()); + size = teamOrderPlayerList.stream().mapToInt(teamOrderPlayer -> teamOrderPlayer.getCompanyNameList().size()).sum(); + competeProject.setProjectList(teamOrderPlayerList); + } + competeProject.setSize(size); + } + String dasia=competeTimeDao.selectByPrimaryKey(params.getParam().getCompeteTimeId()).getName(); + //创建excle表格对象 + List> biao = new ArrayList<>(); + List one = new ArrayList<>(); + PoiUtil.PoiUtilCell yuandongyuan=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 6, 1); + yuandongyuan.setValue(dasia+"出场顺序表"); + one.add(yuandongyuan); + biao.add(one); + + + for (int j=0 ;j three = new ArrayList<>(); + PoiUtil.PoiUtilCell threeDate=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 6, 1); + if(j==0){ + threeDate.setValue(competeProjectList.get(j).getYear()); + three.add(threeDate); + biao.add(three); + List two = new ArrayList<>(); + PoiUtil.PoiUtilCell two1=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two1.setValue("时间"); + PoiUtil.PoiUtilCell two2=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two2.setValue("项目"); + PoiUtil.PoiUtilCell two3=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two3.setValue("组别"); + PoiUtil.PoiUtilCell two4=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two4.setValue("场次/场地"); + PoiUtil.PoiUtilCell two5=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two5.setValue("参赛单位"); + PoiUtil.PoiUtilCell two6=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two6.setValue("参赛人员"); + two.add(two1); + two.add(two2); + two.add(two3); + two.add(two4); + two.add(two5); + two.add(two6); + biao.add(two); + }else{ + if (!competeProjectList.get(j).getYear().equals(competeProjectList.get(j-1).getYear())){ + threeDate.setValue(competeProjectList.get(j).getYear()); + three.add(threeDate); + biao.add(three); + List two = new ArrayList<>(); + PoiUtil.PoiUtilCell two1=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two1.setValue("时间"); + PoiUtil.PoiUtilCell two2=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two2.setValue("项目"); + PoiUtil.PoiUtilCell two3=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two3.setValue("组别"); + PoiUtil.PoiUtilCell two4=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two4.setValue("场次/场地"); + PoiUtil.PoiUtilCell two5=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two5.setValue("参赛单位"); + PoiUtil.PoiUtilCell two6=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + two6.setValue("参赛人员"); + two.add(two1); + two.add(two2); + two.add(two3); + two.add(two4); + two.add(two5); + two.add(two6); + biao.add(two); + } + } + //m行循环 是16次 k 是组次数得循环 4 次 n是组里面得循环 + for(int k=0,m=0,n=0;m four = new ArrayList<>(); + if(m==0){ + PoiUtil.PoiUtilCell fourOne=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, competeProjectList.get(j).getSize()); + fourOne.setValue(competeProjectList.get(j).getStartTimeStr()+"-"+competeProjectList.get(j).getEndTimeStr()); + four.add(fourOne); + PoiUtil.PoiUtilCell fourTwo=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, competeProjectList.get(j).getSize()); + fourTwo.setValue(competeProjectList.get(j).getProjectName()); + four.add(fourTwo); + }else { + four.add(new PoiUtil.PoiUtilCell()); + four.add(new PoiUtil.PoiUtilCell()); + } + + PoiUtil.PoiUtilCell fourThree=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, competeProjectList.get(j).getProjectList().get(k).getCompanyNameList().size()); + if(n>0){ + fourThree=new PoiUtil.PoiUtilCell(); + }else { + fourThree.setValue(competeProjectList.get(j).getProjectList().get(k++).getGroupName()); + n++; + } + if(n==competeProjectList.get(j).getProjectList().get(k-1).getCompanyNameList().size()){ + n=0; + //k++ + } + four.add(fourThree); + + PoiUtil.PoiUtilCell fourFour=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + int x=competeProjectList.get(j).getTeam(); + if(x<=0){ + x=2; + } + if((m+1)%x==0){ + fourFour.setValue(""+((m+1)/x)+"--"+x); + }else { + fourFour.setValue(""+((m+1)/x+1)+"--"+((m+1)%x)); + } + four.add(fourFour); + PoiUtil.PoiUtilCell fourFive=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + if(n==0){ + log.info("j:{}, k:{}, n:{}", j,k,n); + fourFive.setValue(competeProjectList.get(j).getProjectList().get(k-1).getCompanyNameList().get(n).getCompanyName()); + }else { + fourFive.setValue(competeProjectList.get(j).getProjectList().get(k-1).getCompanyNameList().get(n-1).getCompanyName()); + } + four.add(fourFive); + PoiUtil.PoiUtilCell fourSix=new PoiUtil.PoiUtilCell(WebConstant.CELL_NULL, 1, 1); + if(n==0){ + fourSix.setValue(competeProjectList.get(j).getProjectList().get(k-1).getCompanyNameList().get(n).getPlayerNames()); + }else { + fourSix.setValue(competeProjectList.get(j).getProjectList().get(k-1).getCompanyNameList().get(n-1).getPlayerNames()); + } + four.add(fourSix); + biao.add(four); + } + } + + Workbook workbook = new XSSFWorkbook(); + PoiUtil.exportWB("出场顺序",biao,workbook); + String filepath = "mt/" + DateUtil.today() + "/" + System.currentTimeMillis() + ".xlsx"; + String path = PropUtil.path + filepath; + String path1="C:/d/"+filepath;//本地的路径 + File tmpFile = new File(path); + if (!tmpFile.getParentFile().exists()) { + tmpFile.getParentFile().mkdirs(); + } + File file = new File(path); + try { + OutputStream outputStream = new FileOutputStream(file); + workbook.write(outputStream); + outputStream.close(); + } catch (IOException e) { + e.printStackTrace(); + } + return PropUtil.domain + "file/download/know?path="+path; + } + + // private List competeAllCountList(CompeteDto.CompeteTime params){ // //根据大赛查类型 // Long competeTimeId = params.getCompeteTimeId(); diff --git a/mt/src/main/java/com/ccsens/mt/service/IExcelService.java b/mt/src/main/java/com/ccsens/mt/service/IExcelService.java index 23dc6648..63ccc6b3 100644 --- a/mt/src/main/java/com/ccsens/mt/service/IExcelService.java +++ b/mt/src/main/java/com/ccsens/mt/service/IExcelService.java @@ -46,4 +46,6 @@ public interface IExcelService { * @return 返回失败的信息 */ String competeAllCount(CompeteDto.CompeteTime params) throws IOException; + + String iCompetitionOrderService(QueryDto params); } diff --git a/mt/src/main/resources/application.yml b/mt/src/main/resources/application.yml index 5889ff7f..5c2cd5c4 100644 --- a/mt/src/main/resources/application.yml +++ b/mt/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: test - include: common, util-test \ No newline at end of file + active: dev + include: common, util-dev \ No newline at end of file diff --git a/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml b/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml index 467c77f3..369fc77d 100644 --- a/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml +++ b/mt/src/main/resources/mapper_dao/CompeteCompanyDao.xml @@ -15,7 +15,14 @@ - + + + + + + + + @@ -339,5 +346,22 @@ and t.rec_status = 0 and m.rec_status = 0 - + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_dao/CompetePlayerDao.xml b/mt/src/main/resources/mapper_dao/CompetePlayerDao.xml index 24d3a093..1dcb019d 100644 --- a/mt/src/main/resources/mapper_dao/CompetePlayerDao.xml +++ b/mt/src/main/resources/mapper_dao/CompetePlayerDao.xml @@ -30,7 +30,15 @@ - + + + + + + + + + + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_dao/CompeteTeamDao.xml b/mt/src/main/resources/mapper_dao/CompeteTeamDao.xml index 43f85a30..9bbbc68b 100644 --- a/mt/src/main/resources/mapper_dao/CompeteTeamDao.xml +++ b/mt/src/main/resources/mapper_dao/CompeteTeamDao.xml @@ -14,7 +14,15 @@ - + + + + + + + + + @@ -251,4 +259,25 @@ and pp.rec_status = 0 and p.rec_status = 0 + \ No newline at end of file diff --git a/util/src/test/java/com/ccsens/util/OtherTest.java b/util/src/test/java/com/ccsens/util/OtherTest.java index 723727e2..b3472d1a 100644 --- a/util/src/test/java/com/ccsens/util/OtherTest.java +++ b/util/src/test/java/com/ccsens/util/OtherTest.java @@ -9,6 +9,8 @@ import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; import java.io.File; +import java.text.SimpleDateFormat; +import java.util.Date; @Slf4j public class OtherTest { @@ -36,5 +38,11 @@ public class OtherTest { System.out.println(file1); ImageUtil.scale(file1,file2,2); } + @Test + public void func3(){ + SimpleDateFormat sdf2 = new SimpleDateFormat("MM-dd a"); + String sd2 = sdf2.format(new Date(1605074997152L)); + System.out.println(sd2); + } } From 9bb13ac9ccffa950da61b30bf130f0db61bf6ecf Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Wed, 11 Nov 2020 21:23:59 +0800 Subject: [PATCH 3/6] =?UTF-8?q?20201111=E4=B8=8B=E7=8F=AD=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccsens/mt/api/ExcelController.java | 2 +- .../ccsens/mt/service/ProvinceService.java | 85 ++++++++++++------- mt/src/main/resources/application.yml | 4 +- .../main/java/com/ccsens/util/CodeEnum.java | 2 + 4 files changed, 61 insertions(+), 32 deletions(-) diff --git a/mt/src/main/java/com/ccsens/mt/api/ExcelController.java b/mt/src/main/java/com/ccsens/mt/api/ExcelController.java index 92ffa3bb..7ba8e0a3 100644 --- a/mt/src/main/java/com/ccsens/mt/api/ExcelController.java +++ b/mt/src/main/java/com/ccsens/mt/api/ExcelController.java @@ -101,7 +101,7 @@ public class ExcelController { @MustLogin @ApiOperation(value = "xxx大赛报名表(查询)", notes = "") @RequestMapping(value = "/enterInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse getEnterInfo(@ApiParam @Validated @RequestBody QueryDto params) { + public JsonResponse getEnterInfo(@ApiParam @Validated @RequestBody QueryDto params) { log.info("日程安排更新:{}",params); List competeJoinList = excelService.getCompeteJoinDetail(params.getParam()); return JsonResponse.newInstance().ok(competeJoinList); diff --git a/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java b/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java index d4dfd051..255bcdb5 100644 --- a/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java +++ b/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java @@ -120,7 +120,6 @@ public class ProvinceService implements IProvinceService { player.setId(snowflake.nextId()); player.setName(param.getPlayerName()); - if(ObjectUtil.isNull(param.getCompeteId())){ throw new BaseException(CodeEnum.NOT_COMPANY); } //身份证不能为空,且正确 if(StrUtil.isEmpty(param.getIdCard()) || !IdcardUtil.isValidCard(param.getIdCard())){throw new BaseException(CodeEnum.ID_CARD_ERROR);} @@ -159,7 +158,7 @@ public class ProvinceService implements IProvinceService { //判断各种证件是否为空 if(ObjectUtil.isNull(param.getIdCardFront()) && ObjectUtil.isNotNull(param.getIdCardBack())){ param.setIdCardFront(param.getIdCardBack()); - param.setIdCardBack(null); + param.setIdCardBack(0L); } if(ObjectUtil.isNull(param.getIdCardFront())){ throw new BaseException(CodeEnum.PHOTO_IS_EMPTY.mtMsgPhoto("身份证/户口本信息")); } if(ObjectUtil.isNull(param.getIdPhone())){ throw new BaseException(CodeEnum.PHOTO_IS_EMPTY.mtMsgPhoto("证件照")); } @@ -184,7 +183,7 @@ public class ProvinceService implements IProvinceService { CompetePlayer player = competePlayerDao.selectByPrimaryKey(param.getPlayerId()); log.info("查找需要修改的选手信息:{}",player); if(ObjectUtil.isNull(player)){ throw new BaseException(CodeEnum.PARAM_ERROR); } - //身份证不能为空,且正确 + //身份证正确 if(!IdcardUtil.isValidCard(param.getIdCard())){throw new BaseException(CodeEnum.ID_CARD_ERROR);} //是否已注册 CompetePlayerExample competePlayerExample = new CompetePlayerExample(); @@ -211,14 +210,24 @@ public class ProvinceService implements IProvinceService { } //字段不为空则修改 if(StrUtil.isNotEmpty(param.getPlayerName())){player.setName(param.getPlayerName());} - if(StrUtil.isNotEmpty(param.getIdCard())){player.setIdCard(param.getIdCard());} - if(ObjectUtil.isNotNull(param.getGender())){player.setGender((byte) param.getGender());} - if(ObjectUtil.isNotNull(competeGroup)){player.setCompeteGroupId(competeGroup.getId());} - if(ObjectUtil.isNotNull(param.getGroupRemark())){player.setGroupRemark((byte) param.getGroupRemark());} + + if(getJoinProject(player.getId()) && (!param.getIdCard().equalsIgnoreCase(player.getIdCard()) + || param.getGroupRemark() != player.getGroupRemark())){ + throw new BaseException(CodeEnum.ALREADY_JOIN_PROJECT); + } +// if(StrUtil.isNotEmpty(param.getIdCard())){player.setIdCard(param.getIdCard());} +// if(ObjectUtil.isNotNull(param.getGender())){player.setGender((byte) param.getGender());} +// if(ObjectUtil.isNotNull(competeGroup)){player.setCompeteGroupId(competeGroup.getId());} +// if(ObjectUtil.isNotNull(param.getGroupRemark())){player.setGroupRemark((byte) param.getGroupRemark());} + if(ObjectUtil.isNotNull(param.getCompeteId())){player.setCompanyId(param.getCompeteId());} - if(ObjectUtil.isNotNull(param.getIdCardFront())){player.setIdCardFrontFile(param.getIdCardFront());} - if(ObjectUtil.isNotNull(param.getIdCardBack())){player.setIdCardBackFile(param.getIdCardBack());} +// if(ObjectUtil.isNotNull(param.getIdCardFront())){ + player.setIdCardFrontFile(param.getIdCardFront() == null ? 0 : param.getIdCardFront()); +// } +// if(ObjectUtil.isNotNull(param.getIdCardBack())){ + player.setIdCardBackFile(param.getIdCardBack() == null ? 0 : param.getIdCardBack()); +// } if(ObjectUtil.isNotNull(param.getIdPhone())){player.setIdPhotoFile(param.getIdPhone());} if(ObjectUtil.isNotNull(param.getStudentRecord())){player.setStudentRecordFile(param.getStudentRecord());} if(ObjectUtil.isNotNull(param.getHealthRecord())){player.setHealthRecordFile(param.getHealthRecord());} @@ -399,28 +408,31 @@ public class ProvinceService implements IProvinceService { Long playerId = param.getPlayerId(); CompetePlayer competePlayer = competePlayerMapper.selectByPrimaryKey(playerId); if (ObjectUtil.isNotNull(competePlayer)){ + if(getJoinProject(playerId)){ + throw new BaseException(CodeEnum.ALREADY_JOIN_PROJECT_DEL); + } competePlayer.setRecStatus((byte) 2); competePlayerMapper.updateByPrimaryKeySelective(competePlayer); - //删除成员报名的信息 - CompeteProjectPlayerExample projectPlayerExample = new CompeteProjectPlayerExample(); - projectPlayerExample.createCriteria().andPlayerIdEqualTo(playerId); - List projectPlayerList = projectPlayerMapper.selectByExample(projectPlayerExample); - if(CollectionUtil.isNotEmpty(projectPlayerList)){ - projectPlayerList.forEach(projectPlayer -> { - projectPlayer.setRecStatus((byte) 2); - projectPlayerMapper.updateByPrimaryKeySelective(projectPlayer); - }); - } - //团队 - CompeteTeamMemberExample memberExample = new CompeteTeamMemberExample(); - memberExample.createCriteria().andPlayerIdEqualTo(playerId); - List memberList = teamMemberMapper.selectByExample(memberExample); - if(CollectionUtil.isNotEmpty(memberList)){ - memberList.forEach(member -> { - member.setRecStatus((byte) 2); - teamMemberMapper.updateByPrimaryKeySelective(member); - }); - } +// //删除成员报名的信息 +// CompeteProjectPlayerExample projectPlayerExample = new CompeteProjectPlayerExample(); +// projectPlayerExample.createCriteria().andPlayerIdEqualTo(playerId); +// List projectPlayerList = projectPlayerMapper.selectByExample(projectPlayerExample); +// if(CollectionUtil.isNotEmpty(projectPlayerList)){ +// projectPlayerList.forEach(projectPlayer -> { +// projectPlayer.setRecStatus((byte) 2); +// projectPlayerMapper.updateByPrimaryKeySelective(projectPlayer); +// }); +// } +// //团队 +// CompeteTeamMemberExample memberExample = new CompeteTeamMemberExample(); +// memberExample.createCriteria().andPlayerIdEqualTo(playerId); +// List memberList = teamMemberMapper.selectByExample(memberExample); +// if(CollectionUtil.isNotEmpty(memberList)){ +// memberList.forEach(member -> { +// member.setRecStatus((byte) 2); +// teamMemberMapper.updateByPrimaryKeySelective(member); +// }); +// } // CompetePlayerExample competePlayerExample = new CompetePlayerExample(); // competePlayerExample.createCriteria().andIdEqualTo(playerId); // competePlayerMapper.updateByExampleSelective(competePlayer,competePlayerExample); @@ -824,5 +836,20 @@ public class ProvinceService implements IProvinceService { } } } + + + /** + * 查询运动员是否参加了比赛 + */ + private boolean getJoinProject(Long playerId){ + CompeteProjectPlayerExample projectPlayerExample = new CompeteProjectPlayerExample(); + projectPlayerExample.createCriteria().andPlayerIdEqualTo(playerId); + if(projectPlayerMapper.countByExample(projectPlayerExample) == 0){ + return false; + } + CompeteTeamMemberExample teamMemberExample = new CompeteTeamMemberExample(); + teamMemberExample.createCriteria().andPlayerIdEqualTo(playerId); + return teamMemberMapper.countByExample(teamMemberExample) != 0; + } } diff --git a/mt/src/main/resources/application.yml b/mt/src/main/resources/application.yml index 5889ff7f..d082c0ea 100644 --- a/mt/src/main/resources/application.yml +++ b/mt/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: test - include: common, util-test \ No newline at end of file + active: prod + include: common, util-prod \ No newline at end of file diff --git a/util/src/main/java/com/ccsens/util/CodeEnum.java b/util/src/main/java/com/ccsens/util/CodeEnum.java index 0806e037..6fcb0eb5 100644 --- a/util/src/main/java/com/ccsens/util/CodeEnum.java +++ b/util/src/main/java/com/ccsens/util/CodeEnum.java @@ -176,6 +176,8 @@ public enum CodeEnum { MEMBER_NUM_ERROR(145,"参赛人数不满足比赛人数要求",true), GENDER_ERROR(146,"请选择正确的性别",true), JOIN_AUTH_GROUP(147,"已参加了其他组别,无法再次报名",true), + ALREADY_JOIN_PROJECT(148,"该选手已经参加了比赛,不可修改身份证组别等信息",true), + ALREADY_JOIN_PROJECT_DEL(149,"取消报名后可删除",true), ; From d481a3e238534d0b88f72646a467954b73ce9b36 Mon Sep 17 00:00:00 2001 From: wang0018 <1007152140@qq.com> Date: Thu, 12 Nov 2020 16:26:15 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=96=B0=E5=BB=BAcontroller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccsens/mt/api/CompeteTaskController.java | 13 +++++++++++++ .../com/ccsens/mt/api/CompeteVedioController.java | 14 ++++++++++++++ .../java/com/ccsens/mt/api/SigninController.java | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 mt/src/main/java/com/ccsens/mt/api/CompeteTaskController.java create mode 100644 mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java diff --git a/mt/src/main/java/com/ccsens/mt/api/CompeteTaskController.java b/mt/src/main/java/com/ccsens/mt/api/CompeteTaskController.java new file mode 100644 index 00000000..c89c3775 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/api/CompeteTaskController.java @@ -0,0 +1,13 @@ +package com.ccsens.mt.api; + +import io.swagger.annotations.Api; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@Api(tags = "日程", description = "") +@RestController +@RequestMapping("/task") +@Slf4j +public class CompeteTaskController { +} diff --git a/mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java b/mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java new file mode 100644 index 00000000..f823e4a3 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java @@ -0,0 +1,14 @@ +package com.ccsens.mt.api; + +import io.swagger.annotations.Api; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@Api(tags = "视频", description = "") +@RestController +@RequestMapping("/vedio") +@Slf4j +public class CompeteVedioController { + +} diff --git a/mt/src/main/java/com/ccsens/mt/api/SigninController.java b/mt/src/main/java/com/ccsens/mt/api/SigninController.java index bb885b2a..e5aab45b 100644 --- a/mt/src/main/java/com/ccsens/mt/api/SigninController.java +++ b/mt/src/main/java/com/ccsens/mt/api/SigninController.java @@ -112,4 +112,8 @@ public class SigninController { return JsonResponse.newInstance().ok(getSignInfoVoList); } + + + + } From 8c9de4ff365e21c0ace05012dcbe03e10c81d2fd Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Thu, 12 Nov 2020 16:57:45 +0800 Subject: [PATCH 5/6] 20201112v1.0 --- .../ccsens/mt/api/CompeteScoreController.java | 11 +- .../mt/bean/dto/ProvinceCompeteDto.java | 2 +- .../ccsens/mt/bean/po/CompeteCountScore.java | 172 ++ .../mt/bean/po/CompeteCountScoreExample.java | 1051 ++++++++++++ .../ccsens/mt/bean/po/CompetePlayerLook.java | 95 ++ .../mt/bean/po/CompetePlayerLookExample.java | 621 +++++++ .../mt/bean/po/CompeteProjectConfig.java | 232 +-- .../bean/po/CompeteProjectConfigExample.java | 1480 ++++++++--------- .../ccsens/mt/bean/po/CompeteStartOrder.java | 95 ++ .../mt/bean/po/CompeteStartOrderExample.java | 621 +++++++ .../com/ccsens/mt/bean/po/CompeteVideo.java | 59 +- .../mt/bean/po/CompeteVideoExample.java | 262 ++- .../mapper/CompeteCountScoreMapper.java | 30 + .../mapper/CompetePlayerLookMapper.java | 30 + .../mapper/CompeteProjectConfigMapper.java | 58 +- .../mapper/CompeteStartOrderMapper.java | 30 + .../ccsens/mt/service/ProvinceService.java | 10 +- .../mapper_raw/CompeteCountScoreMapper.xml | 354 ++++ .../mapper_raw/CompetePlayerLookMapper.xml | 243 +++ .../mapper_raw/CompeteProjectConfigMapper.xml | 550 +++--- .../mapper_raw/CompeteStartOrderMapper.xml | 243 +++ .../mapper_raw/CompeteVideoMapper.xml | 123 +- 22 files changed, 4929 insertions(+), 1443 deletions(-) create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScore.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScoreExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLook.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLookExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java create mode 100644 mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCountScoreMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerLookMapper.java create mode 100644 mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteStartOrderMapper.java create mode 100644 mt/src/main/resources/mapper_raw/CompeteCountScoreMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompetePlayerLookMapper.xml create mode 100644 mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml diff --git a/mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java b/mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java index a855fda7..a1262f24 100644 --- a/mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java +++ b/mt/src/main/java/com/ccsens/mt/api/CompeteScoreController.java @@ -24,7 +24,7 @@ import javax.annotation.Resource; @Slf4j @Api(tags = "线上体育竞技比赛", description = "") @RestController -@RequestMapping("/compete") +@RequestMapping("/compete/score") public class CompeteScoreController { @Resource private ICompeteService competeService; @@ -38,14 +38,7 @@ public class CompeteScoreController { return JsonResponse.newInstance().ok(playerList); } -// @MustLogin -// @ApiOperation(value = "查看单个选手的信息和分数", notes = "") -// @RequestMapping(value = "/get/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse getPlayerInfo(@ApiParam @Validated @RequestBody QueryDto params) { -// log.info("查询比赛项目上的参赛选手列表:{}",params); -// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params); -// return JsonResponse.newInstance().ok(playerList); -// } + } diff --git a/mt/src/main/java/com/ccsens/mt/bean/dto/ProvinceCompeteDto.java b/mt/src/main/java/com/ccsens/mt/bean/dto/ProvinceCompeteDto.java index c5c636b9..b40721cd 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/dto/ProvinceCompeteDto.java +++ b/mt/src/main/java/com/ccsens/mt/bean/dto/ProvinceCompeteDto.java @@ -124,7 +124,7 @@ public class ProvinceCompeteDto { @ApiModelProperty("姓名") private String name; //姓名 @ApiModelProperty("性别") - private String gender; //性别 + private int gender; //性别 @ApiModelProperty("联系方式") private String phone; //联系方式 @ApiModelProperty("身份证号") diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScore.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScore.java new file mode 100644 index 00000000..d06a7d6b --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScore.java @@ -0,0 +1,172 @@ +package com.ccsens.mt.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CompeteCountScore implements Serializable { + private Long id; + + private Long competeTimeId; + + private Long projectId; + + private Long siteOrderId; + + private Long chiefJudgmentScore; + + private Integer judgmentAScore; + + private Integer judgmentBScore2; + + private Integer shouldTimes; + + private Integer deductTimes; + + private String deductCause; + + private Integer finalScore; + + 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 getCompeteTimeId() { + return competeTimeId; + } + + public void setCompeteTimeId(Long competeTimeId) { + this.competeTimeId = competeTimeId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public Long getSiteOrderId() { + return siteOrderId; + } + + public void setSiteOrderId(Long siteOrderId) { + this.siteOrderId = siteOrderId; + } + + public Long getChiefJudgmentScore() { + return chiefJudgmentScore; + } + + public void setChiefJudgmentScore(Long chiefJudgmentScore) { + this.chiefJudgmentScore = chiefJudgmentScore; + } + + public Integer getJudgmentAScore() { + return judgmentAScore; + } + + public void setJudgmentAScore(Integer judgmentAScore) { + this.judgmentAScore = judgmentAScore; + } + + public Integer getJudgmentBScore2() { + return judgmentBScore2; + } + + public void setJudgmentBScore2(Integer judgmentBScore2) { + this.judgmentBScore2 = judgmentBScore2; + } + + public Integer getShouldTimes() { + return shouldTimes; + } + + public void setShouldTimes(Integer shouldTimes) { + this.shouldTimes = shouldTimes; + } + + public Integer getDeductTimes() { + return deductTimes; + } + + public void setDeductTimes(Integer deductTimes) { + this.deductTimes = deductTimes; + } + + public String getDeductCause() { + return deductCause; + } + + public void setDeductCause(String deductCause) { + this.deductCause = deductCause == null ? null : deductCause.trim(); + } + + public Integer getFinalScore() { + return finalScore; + } + + public void setFinalScore(Integer finalScore) { + this.finalScore = finalScore; + } + + 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(", competeTimeId=").append(competeTimeId); + sb.append(", projectId=").append(projectId); + sb.append(", siteOrderId=").append(siteOrderId); + sb.append(", chiefJudgmentScore=").append(chiefJudgmentScore); + sb.append(", judgmentAScore=").append(judgmentAScore); + sb.append(", judgmentBScore2=").append(judgmentBScore2); + sb.append(", shouldTimes=").append(shouldTimes); + sb.append(", deductTimes=").append(deductTimes); + sb.append(", deductCause=").append(deductCause); + sb.append(", finalScore=").append(finalScore); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScoreExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScoreExample.java new file mode 100644 index 00000000..d5ff54db --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteCountScoreExample.java @@ -0,0 +1,1051 @@ +package com.ccsens.mt.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompeteCountScoreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompeteCountScoreExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdIsNull() { + addCriterion("compete_time_id is null"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdIsNotNull() { + addCriterion("compete_time_id is not null"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdEqualTo(Long value) { + addCriterion("compete_time_id =", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdNotEqualTo(Long value) { + addCriterion("compete_time_id <>", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdGreaterThan(Long value) { + addCriterion("compete_time_id >", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) { + addCriterion("compete_time_id >=", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdLessThan(Long value) { + addCriterion("compete_time_id <", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) { + addCriterion("compete_time_id <=", value, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdIn(List values) { + addCriterion("compete_time_id in", values, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdNotIn(List values) { + addCriterion("compete_time_id not in", values, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdBetween(Long value1, Long value2) { + addCriterion("compete_time_id between", value1, value2, "competeTimeId"); + return (Criteria) this; + } + + public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) { + addCriterion("compete_time_id not between", value1, value2, "competeTimeId"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List 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 andSiteOrderIdIsNull() { + addCriterion("site_order_id is null"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdIsNotNull() { + addCriterion("site_order_id is not null"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdEqualTo(Long value) { + addCriterion("site_order_id =", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdNotEqualTo(Long value) { + addCriterion("site_order_id <>", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdGreaterThan(Long value) { + addCriterion("site_order_id >", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("site_order_id >=", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdLessThan(Long value) { + addCriterion("site_order_id <", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdLessThanOrEqualTo(Long value) { + addCriterion("site_order_id <=", value, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdIn(List values) { + addCriterion("site_order_id in", values, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdNotIn(List values) { + addCriterion("site_order_id not in", values, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdBetween(Long value1, Long value2) { + addCriterion("site_order_id between", value1, value2, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andSiteOrderIdNotBetween(Long value1, Long value2) { + addCriterion("site_order_id not between", value1, value2, "siteOrderId"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreIsNull() { + addCriterion("chief_judgment_score is null"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreIsNotNull() { + addCriterion("chief_judgment_score is not null"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreEqualTo(Long value) { + addCriterion("chief_judgment_score =", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreNotEqualTo(Long value) { + addCriterion("chief_judgment_score <>", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreGreaterThan(Long value) { + addCriterion("chief_judgment_score >", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreGreaterThanOrEqualTo(Long value) { + addCriterion("chief_judgment_score >=", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreLessThan(Long value) { + addCriterion("chief_judgment_score <", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreLessThanOrEqualTo(Long value) { + addCriterion("chief_judgment_score <=", value, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreIn(List values) { + addCriterion("chief_judgment_score in", values, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreNotIn(List values) { + addCriterion("chief_judgment_score not in", values, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreBetween(Long value1, Long value2) { + addCriterion("chief_judgment_score between", value1, value2, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andChiefJudgmentScoreNotBetween(Long value1, Long value2) { + addCriterion("chief_judgment_score not between", value1, value2, "chiefJudgmentScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreIsNull() { + addCriterion("judgment_a_score is null"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreIsNotNull() { + addCriterion("judgment_a_score is not null"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreEqualTo(Integer value) { + addCriterion("judgment_a_score =", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreNotEqualTo(Integer value) { + addCriterion("judgment_a_score <>", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreGreaterThan(Integer value) { + addCriterion("judgment_a_score >", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreGreaterThanOrEqualTo(Integer value) { + addCriterion("judgment_a_score >=", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreLessThan(Integer value) { + addCriterion("judgment_a_score <", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreLessThanOrEqualTo(Integer value) { + addCriterion("judgment_a_score <=", value, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreIn(List values) { + addCriterion("judgment_a_score in", values, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreNotIn(List values) { + addCriterion("judgment_a_score not in", values, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreBetween(Integer value1, Integer value2) { + addCriterion("judgment_a_score between", value1, value2, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentAScoreNotBetween(Integer value1, Integer value2) { + addCriterion("judgment_a_score not between", value1, value2, "judgmentAScore"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2IsNull() { + addCriterion("judgment_b_score2 is null"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2IsNotNull() { + addCriterion("judgment_b_score2 is not null"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2EqualTo(Integer value) { + addCriterion("judgment_b_score2 =", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2NotEqualTo(Integer value) { + addCriterion("judgment_b_score2 <>", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2GreaterThan(Integer value) { + addCriterion("judgment_b_score2 >", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2GreaterThanOrEqualTo(Integer value) { + addCriterion("judgment_b_score2 >=", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2LessThan(Integer value) { + addCriterion("judgment_b_score2 <", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2LessThanOrEqualTo(Integer value) { + addCriterion("judgment_b_score2 <=", value, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2In(List values) { + addCriterion("judgment_b_score2 in", values, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2NotIn(List values) { + addCriterion("judgment_b_score2 not in", values, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2Between(Integer value1, Integer value2) { + addCriterion("judgment_b_score2 between", value1, value2, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andJudgmentBScore2NotBetween(Integer value1, Integer value2) { + addCriterion("judgment_b_score2 not between", value1, value2, "judgmentBScore2"); + return (Criteria) this; + } + + public Criteria andShouldTimesIsNull() { + addCriterion("should_times is null"); + return (Criteria) this; + } + + public Criteria andShouldTimesIsNotNull() { + addCriterion("should_times is not null"); + return (Criteria) this; + } + + public Criteria andShouldTimesEqualTo(Integer value) { + addCriterion("should_times =", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesNotEqualTo(Integer value) { + addCriterion("should_times <>", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesGreaterThan(Integer value) { + addCriterion("should_times >", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesGreaterThanOrEqualTo(Integer value) { + addCriterion("should_times >=", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesLessThan(Integer value) { + addCriterion("should_times <", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesLessThanOrEqualTo(Integer value) { + addCriterion("should_times <=", value, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesIn(List values) { + addCriterion("should_times in", values, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesNotIn(List values) { + addCriterion("should_times not in", values, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesBetween(Integer value1, Integer value2) { + addCriterion("should_times between", value1, value2, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andShouldTimesNotBetween(Integer value1, Integer value2) { + addCriterion("should_times not between", value1, value2, "shouldTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesIsNull() { + addCriterion("deduct_times is null"); + return (Criteria) this; + } + + public Criteria andDeductTimesIsNotNull() { + addCriterion("deduct_times is not null"); + return (Criteria) this; + } + + public Criteria andDeductTimesEqualTo(Integer value) { + addCriterion("deduct_times =", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesNotEqualTo(Integer value) { + addCriterion("deduct_times <>", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesGreaterThan(Integer value) { + addCriterion("deduct_times >", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesGreaterThanOrEqualTo(Integer value) { + addCriterion("deduct_times >=", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesLessThan(Integer value) { + addCriterion("deduct_times <", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesLessThanOrEqualTo(Integer value) { + addCriterion("deduct_times <=", value, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesIn(List values) { + addCriterion("deduct_times in", values, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesNotIn(List values) { + addCriterion("deduct_times not in", values, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesBetween(Integer value1, Integer value2) { + addCriterion("deduct_times between", value1, value2, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductTimesNotBetween(Integer value1, Integer value2) { + addCriterion("deduct_times not between", value1, value2, "deductTimes"); + return (Criteria) this; + } + + public Criteria andDeductCauseIsNull() { + addCriterion("deduct_cause is null"); + return (Criteria) this; + } + + public Criteria andDeductCauseIsNotNull() { + addCriterion("deduct_cause is not null"); + return (Criteria) this; + } + + public Criteria andDeductCauseEqualTo(String value) { + addCriterion("deduct_cause =", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseNotEqualTo(String value) { + addCriterion("deduct_cause <>", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseGreaterThan(String value) { + addCriterion("deduct_cause >", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseGreaterThanOrEqualTo(String value) { + addCriterion("deduct_cause >=", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseLessThan(String value) { + addCriterion("deduct_cause <", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseLessThanOrEqualTo(String value) { + addCriterion("deduct_cause <=", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseLike(String value) { + addCriterion("deduct_cause like", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseNotLike(String value) { + addCriterion("deduct_cause not like", value, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseIn(List values) { + addCriterion("deduct_cause in", values, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseNotIn(List values) { + addCriterion("deduct_cause not in", values, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseBetween(String value1, String value2) { + addCriterion("deduct_cause between", value1, value2, "deductCause"); + return (Criteria) this; + } + + public Criteria andDeductCauseNotBetween(String value1, String value2) { + addCriterion("deduct_cause not between", value1, value2, "deductCause"); + return (Criteria) this; + } + + public Criteria andFinalScoreIsNull() { + addCriterion("final_score is null"); + return (Criteria) this; + } + + public Criteria andFinalScoreIsNotNull() { + addCriterion("final_score is not null"); + return (Criteria) this; + } + + public Criteria andFinalScoreEqualTo(Integer value) { + addCriterion("final_score =", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreNotEqualTo(Integer value) { + addCriterion("final_score <>", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreGreaterThan(Integer value) { + addCriterion("final_score >", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreGreaterThanOrEqualTo(Integer value) { + addCriterion("final_score >=", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreLessThan(Integer value) { + addCriterion("final_score <", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreLessThanOrEqualTo(Integer value) { + addCriterion("final_score <=", value, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreIn(List values) { + addCriterion("final_score in", values, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreNotIn(List values) { + addCriterion("final_score not in", values, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreBetween(Integer value1, Integer value2) { + addCriterion("final_score between", value1, value2, "finalScore"); + return (Criteria) this; + } + + public Criteria andFinalScoreNotBetween(Integer value1, Integer value2) { + addCriterion("final_score not between", value1, value2, "finalScore"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLook.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLook.java new file mode 100644 index 00000000..1ae39e6c --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLook.java @@ -0,0 +1,95 @@ +package com.ccsens.mt.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CompetePlayerLook implements Serializable { + private Long id; + + private Long companyId; + + private Byte lookStatus; + + private Long lookTime; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Byte getLookStatus() { + return lookStatus; + } + + public void setLookStatus(Byte lookStatus) { + this.lookStatus = lookStatus; + } + + public Long getLookTime() { + return lookTime; + } + + public void setLookTime(Long lookTime) { + this.lookTime = lookTime; + } + + 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(", companyId=").append(companyId); + sb.append(", lookStatus=").append(lookStatus); + sb.append(", lookTime=").append(lookTime); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLookExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLookExample.java new file mode 100644 index 00000000..275797fe --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompetePlayerLookExample.java @@ -0,0 +1,621 @@ +package com.ccsens.mt.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompetePlayerLookExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompetePlayerLookExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andLookStatusIsNull() { + addCriterion("look_status is null"); + return (Criteria) this; + } + + public Criteria andLookStatusIsNotNull() { + addCriterion("look_status is not null"); + return (Criteria) this; + } + + public Criteria andLookStatusEqualTo(Byte value) { + addCriterion("look_status =", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusNotEqualTo(Byte value) { + addCriterion("look_status <>", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusGreaterThan(Byte value) { + addCriterion("look_status >", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("look_status >=", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusLessThan(Byte value) { + addCriterion("look_status <", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusLessThanOrEqualTo(Byte value) { + addCriterion("look_status <=", value, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusIn(List values) { + addCriterion("look_status in", values, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusNotIn(List values) { + addCriterion("look_status not in", values, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusBetween(Byte value1, Byte value2) { + addCriterion("look_status between", value1, value2, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookStatusNotBetween(Byte value1, Byte value2) { + addCriterion("look_status not between", value1, value2, "lookStatus"); + return (Criteria) this; + } + + public Criteria andLookTimeIsNull() { + addCriterion("look_time is null"); + return (Criteria) this; + } + + public Criteria andLookTimeIsNotNull() { + addCriterion("look_time is not null"); + return (Criteria) this; + } + + public Criteria andLookTimeEqualTo(Long value) { + addCriterion("look_time =", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeNotEqualTo(Long value) { + addCriterion("look_time <>", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeGreaterThan(Long value) { + addCriterion("look_time >", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeGreaterThanOrEqualTo(Long value) { + addCriterion("look_time >=", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeLessThan(Long value) { + addCriterion("look_time <", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeLessThanOrEqualTo(Long value) { + addCriterion("look_time <=", value, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeIn(List values) { + addCriterion("look_time in", values, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeNotIn(List values) { + addCriterion("look_time not in", values, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeBetween(Long value1, Long value2) { + addCriterion("look_time between", value1, value2, "lookTime"); + return (Criteria) this; + } + + public Criteria andLookTimeNotBetween(Long value1, Long value2) { + addCriterion("look_time not between", value1, value2, "lookTime"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java index 91e3bfe0..71dbd537 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfig.java @@ -1,117 +1,117 @@ -package com.ccsens.mt.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class CompeteProjectConfig implements Serializable { - private Long id; - - private Long projectId; - - private Integer siteNum; - - private Long startTime; - - private Long endTime; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private Long projectDuration; - - 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 Integer getSiteNum() { - return siteNum; - } - - public void setSiteNum(Integer siteNum) { - this.siteNum = siteNum; - } - - public Long getStartTime() { - return startTime; - } - - public void setStartTime(Long startTime) { - this.startTime = startTime; - } - - public Long getEndTime() { - return endTime; - } - - public void setEndTime(Long endTime) { - this.endTime = endTime; - } - - public 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 getProjectDuration() { - return projectDuration; - } - - public void setProjectDuration(Long projectDuration) { - this.projectDuration = projectDuration; - } - - @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(", siteNum=").append(siteNum); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append(", projectDuration=").append(projectDuration); - sb.append("]"); - return sb.toString(); - } +package com.ccsens.mt.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CompeteProjectConfig implements Serializable { + private Long id; + + private Long projectId; + + private Integer siteNum; + + private Long startTime; + + private Long endTime; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private Long projectDuration; + + 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 Integer getSiteNum() { + return siteNum; + } + + public void setSiteNum(Integer siteNum) { + this.siteNum = siteNum; + } + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public 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 getProjectDuration() { + return projectDuration; + } + + public void setProjectDuration(Long projectDuration) { + this.projectDuration = projectDuration; + } + + @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(", siteNum=").append(siteNum); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append(", projectDuration=").append(projectDuration); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java index 590e4e41..60c3f955 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectConfigExample.java @@ -1,741 +1,741 @@ -package com.ccsens.mt.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class CompeteProjectConfigExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public CompeteProjectConfigExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria 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 values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List 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 andSiteNumIsNull() { - addCriterion("site_num is null"); - return (Criteria) this; - } - - public Criteria andSiteNumIsNotNull() { - addCriterion("site_num is not null"); - return (Criteria) this; - } - - public Criteria andSiteNumEqualTo(Integer value) { - addCriterion("site_num =", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumNotEqualTo(Integer value) { - addCriterion("site_num <>", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumGreaterThan(Integer value) { - addCriterion("site_num >", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumGreaterThanOrEqualTo(Integer value) { - addCriterion("site_num >=", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumLessThan(Integer value) { - addCriterion("site_num <", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumLessThanOrEqualTo(Integer value) { - addCriterion("site_num <=", value, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumIn(List values) { - addCriterion("site_num in", values, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumNotIn(List values) { - addCriterion("site_num not in", values, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumBetween(Integer value1, Integer value2) { - addCriterion("site_num between", value1, value2, "siteNum"); - return (Criteria) this; - } - - public Criteria andSiteNumNotBetween(Integer value1, Integer value2) { - addCriterion("site_num not between", value1, value2, "siteNum"); - return (Criteria) this; - } - - public Criteria andStartTimeIsNull() { - addCriterion("start_time is null"); - return (Criteria) this; - } - - public Criteria andStartTimeIsNotNull() { - addCriterion("start_time is not null"); - return (Criteria) this; - } - - public Criteria andStartTimeEqualTo(Long value) { - addCriterion("start_time =", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeNotEqualTo(Long value) { - addCriterion("start_time <>", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeGreaterThan(Long value) { - addCriterion("start_time >", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { - addCriterion("start_time >=", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeLessThan(Long value) { - addCriterion("start_time <", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeLessThanOrEqualTo(Long value) { - addCriterion("start_time <=", value, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeIn(List values) { - addCriterion("start_time in", values, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeNotIn(List values) { - addCriterion("start_time not in", values, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeBetween(Long value1, Long value2) { - addCriterion("start_time between", value1, value2, "startTime"); - return (Criteria) this; - } - - public Criteria andStartTimeNotBetween(Long value1, Long value2) { - addCriterion("start_time not between", value1, value2, "startTime"); - return (Criteria) this; - } - - public Criteria andEndTimeIsNull() { - addCriterion("end_time is null"); - return (Criteria) this; - } - - public Criteria andEndTimeIsNotNull() { - addCriterion("end_time is not null"); - return (Criteria) this; - } - - public Criteria andEndTimeEqualTo(Long value) { - addCriterion("end_time =", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotEqualTo(Long value) { - addCriterion("end_time <>", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeGreaterThan(Long value) { - addCriterion("end_time >", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { - addCriterion("end_time >=", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeLessThan(Long value) { - addCriterion("end_time <", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeLessThanOrEqualTo(Long value) { - addCriterion("end_time <=", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeIn(List values) { - addCriterion("end_time in", values, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotIn(List values) { - addCriterion("end_time not in", values, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeBetween(Long value1, Long value2) { - addCriterion("end_time between", value1, value2, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotBetween(Long value1, Long value2) { - addCriterion("end_time not between", value1, value2, "endTime"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andProjectDurationIsNull() { - addCriterion("project_duration is null"); - return (Criteria) this; - } - - public Criteria andProjectDurationIsNotNull() { - addCriterion("project_duration is not null"); - return (Criteria) this; - } - - public Criteria andProjectDurationEqualTo(Long value) { - addCriterion("project_duration =", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationNotEqualTo(Long value) { - addCriterion("project_duration <>", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationGreaterThan(Long value) { - addCriterion("project_duration >", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationGreaterThanOrEqualTo(Long value) { - addCriterion("project_duration >=", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationLessThan(Long value) { - addCriterion("project_duration <", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationLessThanOrEqualTo(Long value) { - addCriterion("project_duration <=", value, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationIn(List values) { - addCriterion("project_duration in", values, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationNotIn(List values) { - addCriterion("project_duration not in", values, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationBetween(Long value1, Long value2) { - addCriterion("project_duration between", value1, value2, "projectDuration"); - return (Criteria) this; - } - - public Criteria andProjectDurationNotBetween(Long value1, Long value2) { - addCriterion("project_duration not between", value1, value2, "projectDuration"); - 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); - } - } +package com.ccsens.mt.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompeteProjectConfigExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompeteProjectConfigExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List 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 andSiteNumIsNull() { + addCriterion("site_num is null"); + return (Criteria) this; + } + + public Criteria andSiteNumIsNotNull() { + addCriterion("site_num is not null"); + return (Criteria) this; + } + + public Criteria andSiteNumEqualTo(Integer value) { + addCriterion("site_num =", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumNotEqualTo(Integer value) { + addCriterion("site_num <>", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumGreaterThan(Integer value) { + addCriterion("site_num >", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumGreaterThanOrEqualTo(Integer value) { + addCriterion("site_num >=", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumLessThan(Integer value) { + addCriterion("site_num <", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumLessThanOrEqualTo(Integer value) { + addCriterion("site_num <=", value, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumIn(List values) { + addCriterion("site_num in", values, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumNotIn(List values) { + addCriterion("site_num not in", values, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumBetween(Integer value1, Integer value2) { + addCriterion("site_num between", value1, value2, "siteNum"); + return (Criteria) this; + } + + public Criteria andSiteNumNotBetween(Integer value1, Integer value2) { + addCriterion("site_num not between", value1, value2, "siteNum"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNull() { + addCriterion("start_time is null"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNotNull() { + addCriterion("start_time is not null"); + return (Criteria) this; + } + + public Criteria andStartTimeEqualTo(Long value) { + addCriterion("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Long value) { + addCriterion("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Long value) { + addCriterion("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Long value) { + addCriterion("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Long value) { + addCriterion("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterion("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Long value1, Long value2) { + addCriterion("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Long value1, Long value2) { + addCriterion("start_time not between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Long value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Long value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Long value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Long value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Long value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Long value1, Long value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Long value1, Long value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andProjectDurationIsNull() { + addCriterion("project_duration is null"); + return (Criteria) this; + } + + public Criteria andProjectDurationIsNotNull() { + addCriterion("project_duration is not null"); + return (Criteria) this; + } + + public Criteria andProjectDurationEqualTo(Long value) { + addCriterion("project_duration =", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationNotEqualTo(Long value) { + addCriterion("project_duration <>", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationGreaterThan(Long value) { + addCriterion("project_duration >", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationGreaterThanOrEqualTo(Long value) { + addCriterion("project_duration >=", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationLessThan(Long value) { + addCriterion("project_duration <", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationLessThanOrEqualTo(Long value) { + addCriterion("project_duration <=", value, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationIn(List values) { + addCriterion("project_duration in", values, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationNotIn(List values) { + addCriterion("project_duration not in", values, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationBetween(Long value1, Long value2) { + addCriterion("project_duration between", value1, value2, "projectDuration"); + return (Criteria) this; + } + + public Criteria andProjectDurationNotBetween(Long value1, Long value2) { + addCriterion("project_duration not between", value1, value2, "projectDuration"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java new file mode 100644 index 00000000..9e552008 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java @@ -0,0 +1,95 @@ +package com.ccsens.mt.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CompeteStartOrder implements Serializable { + private Long id; + + private Long playerId; + + private Byte competeOrder; + + private Byte site; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getPlayerId() { + return playerId; + } + + public void setPlayerId(Long playerId) { + this.playerId = playerId; + } + + public Byte getCompeteOrder() { + return competeOrder; + } + + public void setCompeteOrder(Byte competeOrder) { + this.competeOrder = competeOrder; + } + + public Byte getSite() { + return site; + } + + public void setSite(Byte site) { + this.site = site; + } + + 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(", competeOrder=").append(competeOrder); + sb.append(", site=").append(site); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java new file mode 100644 index 00000000..2f59cbc9 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java @@ -0,0 +1,621 @@ +package com.ccsens.mt.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompeteStartOrderExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompeteStartOrderExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andPlayerIdIsNull() { + addCriterion("player_id is null"); + return (Criteria) this; + } + + public Criteria andPlayerIdIsNotNull() { + addCriterion("player_id is not null"); + return (Criteria) this; + } + + public Criteria andPlayerIdEqualTo(Long value) { + addCriterion("player_id =", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdNotEqualTo(Long value) { + addCriterion("player_id <>", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdGreaterThan(Long value) { + addCriterion("player_id >", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) { + addCriterion("player_id >=", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdLessThan(Long value) { + addCriterion("player_id <", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdLessThanOrEqualTo(Long value) { + addCriterion("player_id <=", value, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdIn(List values) { + addCriterion("player_id in", values, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdNotIn(List values) { + addCriterion("player_id not in", values, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdBetween(Long value1, Long value2) { + addCriterion("player_id between", value1, value2, "playerId"); + return (Criteria) this; + } + + public Criteria andPlayerIdNotBetween(Long value1, Long value2) { + addCriterion("player_id not between", value1, value2, "playerId"); + return (Criteria) this; + } + + public Criteria andCompeteOrderIsNull() { + addCriterion("compete_order is null"); + return (Criteria) this; + } + + public Criteria andCompeteOrderIsNotNull() { + addCriterion("compete_order is not null"); + return (Criteria) this; + } + + public Criteria andCompeteOrderEqualTo(Byte value) { + addCriterion("compete_order =", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderNotEqualTo(Byte value) { + addCriterion("compete_order <>", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderGreaterThan(Byte value) { + addCriterion("compete_order >", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderGreaterThanOrEqualTo(Byte value) { + addCriterion("compete_order >=", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderLessThan(Byte value) { + addCriterion("compete_order <", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderLessThanOrEqualTo(Byte value) { + addCriterion("compete_order <=", value, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderIn(List values) { + addCriterion("compete_order in", values, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderNotIn(List values) { + addCriterion("compete_order not in", values, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderBetween(Byte value1, Byte value2) { + addCriterion("compete_order between", value1, value2, "competeOrder"); + return (Criteria) this; + } + + public Criteria andCompeteOrderNotBetween(Byte value1, Byte value2) { + addCriterion("compete_order not between", value1, value2, "competeOrder"); + return (Criteria) this; + } + + public Criteria andSiteIsNull() { + addCriterion("site is null"); + return (Criteria) this; + } + + public Criteria andSiteIsNotNull() { + addCriterion("site is not null"); + return (Criteria) this; + } + + public Criteria andSiteEqualTo(Byte value) { + addCriterion("site =", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteNotEqualTo(Byte value) { + addCriterion("site <>", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteGreaterThan(Byte value) { + addCriterion("site >", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteGreaterThanOrEqualTo(Byte value) { + addCriterion("site >=", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteLessThan(Byte value) { + addCriterion("site <", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteLessThanOrEqualTo(Byte value) { + addCriterion("site <=", value, "site"); + return (Criteria) this; + } + + public Criteria andSiteIn(List values) { + addCriterion("site in", values, "site"); + return (Criteria) this; + } + + public Criteria andSiteNotIn(List values) { + addCriterion("site not in", values, "site"); + return (Criteria) this; + } + + public Criteria andSiteBetween(Byte value1, Byte value2) { + addCriterion("site between", value1, value2, "site"); + return (Criteria) this; + } + + public Criteria andSiteNotBetween(Byte value1, Byte value2) { + addCriterion("site not between", value1, value2, "site"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideo.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideo.java index 3996360b..141f20a0 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideo.java +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideo.java @@ -8,19 +8,17 @@ public class CompeteVideo implements Serializable { private Long competeTimeId; - private String competeCode; - - private Byte team; + private Long projectId; private Long playerId; - private Long fileId; + private Long userId; private String videoUrl; - private Long time; + private Long uploadTime; - private Long uploadUserId; + private Byte uploadStatus; private Date createdAt; @@ -46,20 +44,12 @@ public class CompeteVideo implements Serializable { this.competeTimeId = competeTimeId; } - public String getCompeteCode() { - return competeCode; - } - - public void setCompeteCode(String competeCode) { - this.competeCode = competeCode == null ? null : competeCode.trim(); - } - - public Byte getTeam() { - return team; + public Long getProjectId() { + return projectId; } - public void setTeam(Byte team) { - this.team = team; + public void setProjectId(Long projectId) { + this.projectId = projectId; } public Long getPlayerId() { @@ -70,12 +60,12 @@ public class CompeteVideo implements Serializable { this.playerId = playerId; } - public Long getFileId() { - return fileId; + public Long getUserId() { + return userId; } - public void setFileId(Long fileId) { - this.fileId = fileId; + public void setUserId(Long userId) { + this.userId = userId; } public String getVideoUrl() { @@ -86,20 +76,20 @@ public class CompeteVideo implements Serializable { this.videoUrl = videoUrl == null ? null : videoUrl.trim(); } - public Long getTime() { - return time; + public Long getUploadTime() { + return uploadTime; } - public void setTime(Long time) { - this.time = time; + public void setUploadTime(Long uploadTime) { + this.uploadTime = uploadTime; } - public Long getUploadUserId() { - return uploadUserId; + public Byte getUploadStatus() { + return uploadStatus; } - public void setUploadUserId(Long uploadUserId) { - this.uploadUserId = uploadUserId; + public void setUploadStatus(Byte uploadStatus) { + this.uploadStatus = uploadStatus; } public Date getCreatedAt() { @@ -134,13 +124,12 @@ public class CompeteVideo implements Serializable { sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", competeTimeId=").append(competeTimeId); - sb.append(", competeCode=").append(competeCode); - sb.append(", team=").append(team); + sb.append(", projectId=").append(projectId); sb.append(", playerId=").append(playerId); - sb.append(", fileId=").append(fileId); + sb.append(", userId=").append(userId); sb.append(", videoUrl=").append(videoUrl); - sb.append(", time=").append(time); - sb.append(", uploadUserId=").append(uploadUserId); + sb.append(", uploadTime=").append(uploadTime); + sb.append(", uploadStatus=").append(uploadStatus); sb.append(", createdAt=").append(createdAt); sb.append(", updatedAt=").append(updatedAt); sb.append(", recStatus=").append(recStatus); diff --git a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideoExample.java b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideoExample.java index 71b1ac9a..8764b36d 100644 --- a/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideoExample.java +++ b/mt/src/main/java/com/ccsens/mt/bean/po/CompeteVideoExample.java @@ -225,133 +225,63 @@ public class CompeteVideoExample { return (Criteria) this; } - public Criteria andCompeteCodeIsNull() { - addCriterion("compete_code is null"); + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); return (Criteria) this; } - public Criteria andCompeteCodeIsNotNull() { - addCriterion("compete_code is not null"); + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); return (Criteria) this; } - public Criteria andCompeteCodeEqualTo(String value) { - addCriterion("compete_code =", value, "competeCode"); + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeNotEqualTo(String value) { - addCriterion("compete_code <>", value, "competeCode"); + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeGreaterThan(String value) { - addCriterion("compete_code >", value, "competeCode"); + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeGreaterThanOrEqualTo(String value) { - addCriterion("compete_code >=", value, "competeCode"); + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeLessThan(String value) { - addCriterion("compete_code <", value, "competeCode"); + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeLessThanOrEqualTo(String value) { - addCriterion("compete_code <=", value, "competeCode"); + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeLike(String value) { - addCriterion("compete_code like", value, "competeCode"); + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeNotLike(String value) { - addCriterion("compete_code not like", value, "competeCode"); + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeIn(List values) { - addCriterion("compete_code in", values, "competeCode"); + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); return (Criteria) this; } - public Criteria andCompeteCodeNotIn(List values) { - addCriterion("compete_code not in", values, "competeCode"); - return (Criteria) this; - } - - public Criteria andCompeteCodeBetween(String value1, String value2) { - addCriterion("compete_code between", value1, value2, "competeCode"); - return (Criteria) this; - } - - public Criteria andCompeteCodeNotBetween(String value1, String value2) { - addCriterion("compete_code not between", value1, value2, "competeCode"); - return (Criteria) this; - } - - public Criteria andTeamIsNull() { - addCriterion("team is null"); - return (Criteria) this; - } - - public Criteria andTeamIsNotNull() { - addCriterion("team is not null"); - return (Criteria) this; - } - - public Criteria andTeamEqualTo(Byte value) { - addCriterion("team =", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamNotEqualTo(Byte value) { - addCriterion("team <>", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamGreaterThan(Byte value) { - addCriterion("team >", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamGreaterThanOrEqualTo(Byte value) { - addCriterion("team >=", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamLessThan(Byte value) { - addCriterion("team <", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamLessThanOrEqualTo(Byte value) { - addCriterion("team <=", value, "team"); - return (Criteria) this; - } - - public Criteria andTeamIn(List values) { - addCriterion("team in", values, "team"); - return (Criteria) this; - } - - public Criteria andTeamNotIn(List values) { - addCriterion("team not in", values, "team"); - return (Criteria) this; - } - - public Criteria andTeamBetween(Byte value1, Byte value2) { - addCriterion("team between", value1, value2, "team"); - return (Criteria) this; - } - - public Criteria andTeamNotBetween(Byte value1, Byte value2) { - addCriterion("team not between", value1, value2, "team"); + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); return (Criteria) this; } @@ -415,63 +345,63 @@ public class CompeteVideoExample { return (Criteria) this; } - public Criteria andFileIdIsNull() { - addCriterion("file_id is null"); + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); return (Criteria) this; } - public Criteria andFileIdIsNotNull() { - addCriterion("file_id is not null"); + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); return (Criteria) this; } - public Criteria andFileIdEqualTo(Long value) { - addCriterion("file_id =", value, "fileId"); + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); return (Criteria) this; } - public Criteria andFileIdNotEqualTo(Long value) { - addCriterion("file_id <>", value, "fileId"); + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); return (Criteria) this; } - public Criteria andFileIdGreaterThan(Long value) { - addCriterion("file_id >", value, "fileId"); + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); return (Criteria) this; } - public Criteria andFileIdGreaterThanOrEqualTo(Long value) { - addCriterion("file_id >=", value, "fileId"); + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); return (Criteria) this; } - public Criteria andFileIdLessThan(Long value) { - addCriterion("file_id <", value, "fileId"); + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); return (Criteria) this; } - public Criteria andFileIdLessThanOrEqualTo(Long value) { - addCriterion("file_id <=", value, "fileId"); + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); return (Criteria) this; } - public Criteria andFileIdIn(List values) { - addCriterion("file_id in", values, "fileId"); + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); return (Criteria) this; } - public Criteria andFileIdNotIn(List values) { - addCriterion("file_id not in", values, "fileId"); + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); return (Criteria) this; } - public Criteria andFileIdBetween(Long value1, Long value2) { - addCriterion("file_id between", value1, value2, "fileId"); + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); return (Criteria) this; } - public Criteria andFileIdNotBetween(Long value1, Long value2) { - addCriterion("file_id not between", value1, value2, "fileId"); + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } @@ -545,123 +475,123 @@ public class CompeteVideoExample { return (Criteria) this; } - public Criteria andTimeIsNull() { - addCriterion("time is null"); + public Criteria andUploadTimeIsNull() { + addCriterion("upload_time is null"); return (Criteria) this; } - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); + public Criteria andUploadTimeIsNotNull() { + addCriterion("upload_time is not null"); return (Criteria) this; } - public Criteria andTimeEqualTo(Long value) { - addCriterion("time =", value, "time"); + public Criteria andUploadTimeEqualTo(Long value) { + addCriterion("upload_time =", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeNotEqualTo(Long value) { - addCriterion("time <>", value, "time"); + public Criteria andUploadTimeNotEqualTo(Long value) { + addCriterion("upload_time <>", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeGreaterThan(Long value) { - addCriterion("time >", value, "time"); + public Criteria andUploadTimeGreaterThan(Long value) { + addCriterion("upload_time >", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeGreaterThanOrEqualTo(Long value) { - addCriterion("time >=", value, "time"); + public Criteria andUploadTimeGreaterThanOrEqualTo(Long value) { + addCriterion("upload_time >=", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeLessThan(Long value) { - addCriterion("time <", value, "time"); + public Criteria andUploadTimeLessThan(Long value) { + addCriterion("upload_time <", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeLessThanOrEqualTo(Long value) { - addCriterion("time <=", value, "time"); + public Criteria andUploadTimeLessThanOrEqualTo(Long value) { + addCriterion("upload_time <=", value, "uploadTime"); return (Criteria) this; } - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); + public Criteria andUploadTimeIn(List values) { + addCriterion("upload_time in", values, "uploadTime"); return (Criteria) this; } - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); + public Criteria andUploadTimeNotIn(List values) { + addCriterion("upload_time not in", values, "uploadTime"); return (Criteria) this; } - public Criteria andTimeBetween(Long value1, Long value2) { - addCriterion("time between", value1, value2, "time"); + public Criteria andUploadTimeBetween(Long value1, Long value2) { + addCriterion("upload_time between", value1, value2, "uploadTime"); return (Criteria) this; } - public Criteria andTimeNotBetween(Long value1, Long value2) { - addCriterion("time not between", value1, value2, "time"); + public Criteria andUploadTimeNotBetween(Long value1, Long value2) { + addCriterion("upload_time not between", value1, value2, "uploadTime"); return (Criteria) this; } - public Criteria andUploadUserIdIsNull() { - addCriterion("upload_user_id is null"); + public Criteria andUploadStatusIsNull() { + addCriterion("upload_status is null"); return (Criteria) this; } - public Criteria andUploadUserIdIsNotNull() { - addCriterion("upload_user_id is not null"); + public Criteria andUploadStatusIsNotNull() { + addCriterion("upload_status is not null"); return (Criteria) this; } - public Criteria andUploadUserIdEqualTo(Long value) { - addCriterion("upload_user_id =", value, "uploadUserId"); + public Criteria andUploadStatusEqualTo(Byte value) { + addCriterion("upload_status =", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdNotEqualTo(Long value) { - addCriterion("upload_user_id <>", value, "uploadUserId"); + public Criteria andUploadStatusNotEqualTo(Byte value) { + addCriterion("upload_status <>", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdGreaterThan(Long value) { - addCriterion("upload_user_id >", value, "uploadUserId"); + public Criteria andUploadStatusGreaterThan(Byte value) { + addCriterion("upload_status >", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdGreaterThanOrEqualTo(Long value) { - addCriterion("upload_user_id >=", value, "uploadUserId"); + public Criteria andUploadStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("upload_status >=", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdLessThan(Long value) { - addCriterion("upload_user_id <", value, "uploadUserId"); + public Criteria andUploadStatusLessThan(Byte value) { + addCriterion("upload_status <", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdLessThanOrEqualTo(Long value) { - addCriterion("upload_user_id <=", value, "uploadUserId"); + public Criteria andUploadStatusLessThanOrEqualTo(Byte value) { + addCriterion("upload_status <=", value, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdIn(List values) { - addCriterion("upload_user_id in", values, "uploadUserId"); + public Criteria andUploadStatusIn(List values) { + addCriterion("upload_status in", values, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdNotIn(List values) { - addCriterion("upload_user_id not in", values, "uploadUserId"); + public Criteria andUploadStatusNotIn(List values) { + addCriterion("upload_status not in", values, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdBetween(Long value1, Long value2) { - addCriterion("upload_user_id between", value1, value2, "uploadUserId"); + public Criteria andUploadStatusBetween(Byte value1, Byte value2) { + addCriterion("upload_status between", value1, value2, "uploadStatus"); return (Criteria) this; } - public Criteria andUploadUserIdNotBetween(Long value1, Long value2) { - addCriterion("upload_user_id not between", value1, value2, "uploadUserId"); + public Criteria andUploadStatusNotBetween(Byte value1, Byte value2) { + addCriterion("upload_status not between", value1, value2, "uploadStatus"); return (Criteria) this; } diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCountScoreMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCountScoreMapper.java new file mode 100644 index 00000000..faf0e354 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteCountScoreMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.mt.persist.mapper; + +import com.ccsens.mt.bean.po.CompeteCountScore; +import com.ccsens.mt.bean.po.CompeteCountScoreExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompeteCountScoreMapper { + long countByExample(CompeteCountScoreExample example); + + int deleteByExample(CompeteCountScoreExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CompeteCountScore record); + + int insertSelective(CompeteCountScore record); + + List selectByExample(CompeteCountScoreExample example); + + CompeteCountScore selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CompeteCountScore record, @Param("example") CompeteCountScoreExample example); + + int updateByExample(@Param("record") CompeteCountScore record, @Param("example") CompeteCountScoreExample example); + + int updateByPrimaryKeySelective(CompeteCountScore record); + + int updateByPrimaryKey(CompeteCountScore record); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerLookMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerLookMapper.java new file mode 100644 index 00000000..b1be5d8f --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompetePlayerLookMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.mt.persist.mapper; + +import com.ccsens.mt.bean.po.CompetePlayerLook; +import com.ccsens.mt.bean.po.CompetePlayerLookExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompetePlayerLookMapper { + long countByExample(CompetePlayerLookExample example); + + int deleteByExample(CompetePlayerLookExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CompetePlayerLook record); + + int insertSelective(CompetePlayerLook record); + + List selectByExample(CompetePlayerLookExample example); + + CompetePlayerLook selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CompetePlayerLook record, @Param("example") CompetePlayerLookExample example); + + int updateByExample(@Param("record") CompetePlayerLook record, @Param("example") CompetePlayerLookExample example); + + int updateByPrimaryKeySelective(CompetePlayerLook record); + + int updateByPrimaryKey(CompetePlayerLook record); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectConfigMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectConfigMapper.java index bbbbcb9d..b3c17aab 100644 --- a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectConfigMapper.java +++ b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteProjectConfigMapper.java @@ -1,30 +1,30 @@ -package com.ccsens.mt.persist.mapper; - -import com.ccsens.mt.bean.po.CompeteProjectConfig; -import com.ccsens.mt.bean.po.CompeteProjectConfigExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface CompeteProjectConfigMapper { - long countByExample(CompeteProjectConfigExample example); - - int deleteByExample(CompeteProjectConfigExample example); - - int deleteByPrimaryKey(Long id); - - int insert(CompeteProjectConfig record); - - int insertSelective(CompeteProjectConfig record); - - List selectByExample(CompeteProjectConfigExample example); - - CompeteProjectConfig selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); - - int updateByExample(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); - - int updateByPrimaryKeySelective(CompeteProjectConfig record); - - int updateByPrimaryKey(CompeteProjectConfig record); +package com.ccsens.mt.persist.mapper; + +import com.ccsens.mt.bean.po.CompeteProjectConfig; +import com.ccsens.mt.bean.po.CompeteProjectConfigExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompeteProjectConfigMapper { + long countByExample(CompeteProjectConfigExample example); + + int deleteByExample(CompeteProjectConfigExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CompeteProjectConfig record); + + int insertSelective(CompeteProjectConfig record); + + List selectByExample(CompeteProjectConfigExample example); + + CompeteProjectConfig selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); + + int updateByExample(@Param("record") CompeteProjectConfig record, @Param("example") CompeteProjectConfigExample example); + + int updateByPrimaryKeySelective(CompeteProjectConfig record); + + int updateByPrimaryKey(CompeteProjectConfig record); } \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteStartOrderMapper.java b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteStartOrderMapper.java new file mode 100644 index 00000000..7a1962d9 --- /dev/null +++ b/mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteStartOrderMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.mt.persist.mapper; + +import com.ccsens.mt.bean.po.CompeteStartOrder; +import com.ccsens.mt.bean.po.CompeteStartOrderExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompeteStartOrderMapper { + long countByExample(CompeteStartOrderExample example); + + int deleteByExample(CompeteStartOrderExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CompeteStartOrder record); + + int insertSelective(CompeteStartOrder record); + + List selectByExample(CompeteStartOrderExample example); + + CompeteStartOrder selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CompeteStartOrder record, @Param("example") CompeteStartOrderExample example); + + int updateByExample(@Param("record") CompeteStartOrder record, @Param("example") CompeteStartOrderExample example); + + int updateByPrimaryKeySelective(CompeteStartOrder record); + + int updateByPrimaryKey(CompeteStartOrder record); +} \ No newline at end of file diff --git a/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java b/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java index 255bcdb5..eeaeb964 100644 --- a/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java +++ b/mt/src/main/java/com/ccsens/mt/service/ProvinceService.java @@ -468,6 +468,12 @@ public class ProvinceService implements IProvinceService { if(StrUtil.isEmpty(param.getIdCard()) || !IdcardUtil.isValidCard(param.getIdCard())){ throw new BaseException(CodeEnum.ID_CARD_ERROR); } + //检查性别与身份证是否匹配 + int gender = IdcardUtil.getGenderByIdCard(param.getIdCard()); + if(gender != param.getGender()){ + throw new BaseException(CodeEnum.GENDER_ERROR); + } + //证件照判断 if (param.getIdentity() == 1 && ObjectUtil.isNull(param.getIdPhoto())){ throw new BaseException(CodeEnum.PHOTO_IS_EMPTY); @@ -844,8 +850,8 @@ public class ProvinceService implements IProvinceService { private boolean getJoinProject(Long playerId){ CompeteProjectPlayerExample projectPlayerExample = new CompeteProjectPlayerExample(); projectPlayerExample.createCriteria().andPlayerIdEqualTo(playerId); - if(projectPlayerMapper.countByExample(projectPlayerExample) == 0){ - return false; + if(projectPlayerMapper.countByExample(projectPlayerExample) != 0){ + return true; } CompeteTeamMemberExample teamMemberExample = new CompeteTeamMemberExample(); teamMemberExample.createCriteria().andPlayerIdEqualTo(playerId); diff --git a/mt/src/main/resources/mapper_raw/CompeteCountScoreMapper.xml b/mt/src/main/resources/mapper_raw/CompeteCountScoreMapper.xml new file mode 100644 index 00000000..3fba3694 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteCountScoreMapper.xml @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, compete_time_id, project_id, site_order_id, chief_judgment_score, judgment_a_score, + judgment_b_score2, should_times, deduct_times, deduct_cause, final_score, created_at, + updated_at, rec_status + + + + + delete from t_compete_count_score + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_count_score + + + + + + insert into t_compete_count_score (id, compete_time_id, project_id, + site_order_id, chief_judgment_score, judgment_a_score, + judgment_b_score2, should_times, deduct_times, + deduct_cause, final_score, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{siteOrderId,jdbcType=BIGINT}, #{chiefJudgmentScore,jdbcType=BIGINT}, #{judgmentAScore,jdbcType=INTEGER}, + #{judgmentBScore2,jdbcType=INTEGER}, #{shouldTimes,jdbcType=INTEGER}, #{deductTimes,jdbcType=INTEGER}, + #{deductCause,jdbcType=VARCHAR}, #{finalScore,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_compete_count_score + + + id, + + + compete_time_id, + + + project_id, + + + site_order_id, + + + chief_judgment_score, + + + judgment_a_score, + + + judgment_b_score2, + + + should_times, + + + deduct_times, + + + deduct_cause, + + + final_score, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{competeTimeId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{siteOrderId,jdbcType=BIGINT}, + + + #{chiefJudgmentScore,jdbcType=BIGINT}, + + + #{judgmentAScore,jdbcType=INTEGER}, + + + #{judgmentBScore2,jdbcType=INTEGER}, + + + #{shouldTimes,jdbcType=INTEGER}, + + + #{deductTimes,jdbcType=INTEGER}, + + + #{deductCause,jdbcType=VARCHAR}, + + + #{finalScore,jdbcType=INTEGER}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_compete_count_score + + + id = #{record.id,jdbcType=BIGINT}, + + + compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, + + + chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=BIGINT}, + + + judgment_a_score = #{record.judgmentAScore,jdbcType=INTEGER}, + + + judgment_b_score2 = #{record.judgmentBScore2,jdbcType=INTEGER}, + + + should_times = #{record.shouldTimes,jdbcType=INTEGER}, + + + deduct_times = #{record.deductTimes,jdbcType=INTEGER}, + + + deduct_cause = #{record.deductCause,jdbcType=VARCHAR}, + + + final_score = #{record.finalScore,jdbcType=INTEGER}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_compete_count_score + set id = #{record.id,jdbcType=BIGINT}, + compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, + chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=BIGINT}, + judgment_a_score = #{record.judgmentAScore,jdbcType=INTEGER}, + judgment_b_score2 = #{record.judgmentBScore2,jdbcType=INTEGER}, + should_times = #{record.shouldTimes,jdbcType=INTEGER}, + deduct_times = #{record.deductTimes,jdbcType=INTEGER}, + deduct_cause = #{record.deductCause,jdbcType=VARCHAR}, + final_score = #{record.finalScore,jdbcType=INTEGER}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_compete_count_score + + + compete_time_id = #{competeTimeId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + site_order_id = #{siteOrderId,jdbcType=BIGINT}, + + + chief_judgment_score = #{chiefJudgmentScore,jdbcType=BIGINT}, + + + judgment_a_score = #{judgmentAScore,jdbcType=INTEGER}, + + + judgment_b_score2 = #{judgmentBScore2,jdbcType=INTEGER}, + + + should_times = #{shouldTimes,jdbcType=INTEGER}, + + + deduct_times = #{deductTimes,jdbcType=INTEGER}, + + + deduct_cause = #{deductCause,jdbcType=VARCHAR}, + + + final_score = #{finalScore,jdbcType=INTEGER}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_compete_count_score + set compete_time_id = #{competeTimeId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + site_order_id = #{siteOrderId,jdbcType=BIGINT}, + chief_judgment_score = #{chiefJudgmentScore,jdbcType=BIGINT}, + judgment_a_score = #{judgmentAScore,jdbcType=INTEGER}, + judgment_b_score2 = #{judgmentBScore2,jdbcType=INTEGER}, + should_times = #{shouldTimes,jdbcType=INTEGER}, + deduct_times = #{deductTimes,jdbcType=INTEGER}, + deduct_cause = #{deductCause,jdbcType=VARCHAR}, + final_score = #{finalScore,jdbcType=INTEGER}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompetePlayerLookMapper.xml b/mt/src/main/resources/mapper_raw/CompetePlayerLookMapper.xml new file mode 100644 index 00000000..ea467614 --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompetePlayerLookMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, look_status, look_time, created_at, updated_at, rec_status + + + + + delete from t_compete_player_look + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_player_look + + + + + + insert into t_compete_player_look (id, company_id, look_status, + look_time, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{lookStatus,jdbcType=TINYINT}, + #{lookTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_compete_player_look + + + id, + + + company_id, + + + look_status, + + + look_time, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{lookStatus,jdbcType=TINYINT}, + + + #{lookTime,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_compete_player_look + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + look_status = #{record.lookStatus,jdbcType=TINYINT}, + + + look_time = #{record.lookTime,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_compete_player_look + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + look_status = #{record.lookStatus,jdbcType=TINYINT}, + look_time = #{record.lookTime,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_compete_player_look + + + company_id = #{companyId,jdbcType=BIGINT}, + + + look_status = #{lookStatus,jdbcType=TINYINT}, + + + look_time = #{lookTime,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_compete_player_look + set company_id = #{companyId,jdbcType=BIGINT}, + look_status = #{lookStatus,jdbcType=TINYINT}, + look_time = #{lookTime,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml b/mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml index 83c3bf11..a9a2a80b 100644 --- a/mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml +++ b/mt/src/main/resources/mapper_raw/CompeteProjectConfigMapper.xml @@ -1,276 +1,276 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status, - project_duration - - - - - delete from t_compete_project_config - where id = #{id,jdbcType=BIGINT} - - - delete from t_compete_project_config - - - - - - insert into t_compete_project_config (id, project_id, site_num, - start_time, end_time, created_at, - updated_at, rec_status, project_duration - ) - values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{siteNum,jdbcType=INTEGER}, - #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{projectDuration,jdbcType=BIGINT} - ) - - - insert into t_compete_project_config - - - id, - - - project_id, - - - site_num, - - - start_time, - - - end_time, - - - created_at, - - - updated_at, - - - rec_status, - - - project_duration, - - - - - #{id,jdbcType=BIGINT}, - - - #{projectId,jdbcType=BIGINT}, - - - #{siteNum,jdbcType=INTEGER}, - - - #{startTime,jdbcType=BIGINT}, - - - #{endTime,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - #{projectDuration,jdbcType=BIGINT}, - - - - - - update t_compete_project_config - - - id = #{record.id,jdbcType=BIGINT}, - - - project_id = #{record.projectId,jdbcType=BIGINT}, - - - site_num = #{record.siteNum,jdbcType=INTEGER}, - - - start_time = #{record.startTime,jdbcType=BIGINT}, - - - end_time = #{record.endTime,jdbcType=BIGINT}, - - - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{record.recStatus,jdbcType=TINYINT}, - - - project_duration = #{record.projectDuration,jdbcType=BIGINT}, - - - - - - - - update t_compete_project_config - set id = #{record.id,jdbcType=BIGINT}, - project_id = #{record.projectId,jdbcType=BIGINT}, - site_num = #{record.siteNum,jdbcType=INTEGER}, - start_time = #{record.startTime,jdbcType=BIGINT}, - end_time = #{record.endTime,jdbcType=BIGINT}, - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT}, - project_duration = #{record.projectDuration,jdbcType=BIGINT} - - - - - - update t_compete_project_config - - - project_id = #{projectId,jdbcType=BIGINT}, - - - site_num = #{siteNum,jdbcType=INTEGER}, - - - start_time = #{startTime,jdbcType=BIGINT}, - - - end_time = #{endTime,jdbcType=BIGINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - project_duration = #{projectDuration,jdbcType=BIGINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_compete_project_config - set project_id = #{projectId,jdbcType=BIGINT}, - site_num = #{siteNum,jdbcType=INTEGER}, - start_time = #{startTime,jdbcType=BIGINT}, - end_time = #{endTime,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT}, - project_duration = #{projectDuration,jdbcType=BIGINT} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_id, site_num, start_time, end_time, created_at, updated_at, rec_status, + project_duration + + + + + delete from t_compete_project_config + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_project_config + + + + + + insert into t_compete_project_config (id, project_id, site_num, + start_time, end_time, created_at, + updated_at, rec_status, project_duration + ) + values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{siteNum,jdbcType=INTEGER}, + #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{projectDuration,jdbcType=BIGINT} + ) + + + insert into t_compete_project_config + + + id, + + + project_id, + + + site_num, + + + start_time, + + + end_time, + + + created_at, + + + updated_at, + + + rec_status, + + + project_duration, + + + + + #{id,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{siteNum,jdbcType=INTEGER}, + + + #{startTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + #{projectDuration,jdbcType=BIGINT}, + + + + + + update t_compete_project_config + + + id = #{record.id,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + site_num = #{record.siteNum,jdbcType=INTEGER}, + + + start_time = #{record.startTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + project_duration = #{record.projectDuration,jdbcType=BIGINT}, + + + + + + + + update t_compete_project_config + set id = #{record.id,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + site_num = #{record.siteNum,jdbcType=INTEGER}, + start_time = #{record.startTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT}, + project_duration = #{record.projectDuration,jdbcType=BIGINT} + + + + + + update t_compete_project_config + + + project_id = #{projectId,jdbcType=BIGINT}, + + + site_num = #{siteNum,jdbcType=INTEGER}, + + + start_time = #{startTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + project_duration = #{projectDuration,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_compete_project_config + set project_id = #{projectId,jdbcType=BIGINT}, + site_num = #{siteNum,jdbcType=INTEGER}, + start_time = #{startTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT}, + project_duration = #{projectDuration,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml b/mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml new file mode 100644 index 00000000..4e5cd89c --- /dev/null +++ b/mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, player_id, compete_order, site, created_at, updated_at, rec_status + + + + + delete from t_compete_start_order + where id = #{id,jdbcType=BIGINT} + + + delete from t_compete_start_order + + + + + + insert into t_compete_start_order (id, player_id, compete_order, + site, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{competeOrder,jdbcType=TINYINT}, + #{site,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_compete_start_order + + + id, + + + player_id, + + + compete_order, + + + site, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{playerId,jdbcType=BIGINT}, + + + #{competeOrder,jdbcType=TINYINT}, + + + #{site,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_compete_start_order + + + id = #{record.id,jdbcType=BIGINT}, + + + player_id = #{record.playerId,jdbcType=BIGINT}, + + + compete_order = #{record.competeOrder,jdbcType=TINYINT}, + + + site = #{record.site,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_compete_start_order + set id = #{record.id,jdbcType=BIGINT}, + player_id = #{record.playerId,jdbcType=BIGINT}, + compete_order = #{record.competeOrder,jdbcType=TINYINT}, + site = #{record.site,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_compete_start_order + + + player_id = #{playerId,jdbcType=BIGINT}, + + + compete_order = #{competeOrder,jdbcType=TINYINT}, + + + site = #{site,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_compete_start_order + set player_id = #{playerId,jdbcType=BIGINT}, + compete_order = #{competeOrder,jdbcType=TINYINT}, + site = #{site,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/mt/src/main/resources/mapper_raw/CompeteVideoMapper.xml b/mt/src/main/resources/mapper_raw/CompeteVideoMapper.xml index 541d081e..34642f49 100644 --- a/mt/src/main/resources/mapper_raw/CompeteVideoMapper.xml +++ b/mt/src/main/resources/mapper_raw/CompeteVideoMapper.xml @@ -4,13 +4,12 @@ - - + - + - - + + @@ -74,7 +73,7 @@ - id, compete_time_id, compete_code, team, player_id, file_id, video_url, time, upload_user_id, + id, compete_time_id, project_id, player_id, user_id, video_url, upload_time, upload_status, created_at, updated_at, rec_status