Browse Source

11-12-2

tiaosheng
Lihong@123456 5 years ago
parent
commit
da229f9a1a
  1. 65
      mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java
  2. 4
      mt/src/main/java/com/ccsens/mt/bean/dto/CompeteDto.java
  3. 27
      mt/src/main/java/com/ccsens/mt/bean/dto/VideoDto.java
  4. 117
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteJudgment.java
  5. 741
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteJudgmentExample.java
  6. 22
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java
  7. 120
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java
  8. 128
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteVarietyScore.java
  9. 811
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteVarietyScoreExample.java
  10. 6
      mt/src/main/java/com/ccsens/mt/bean/vo/TableVo.java
  11. 30
      mt/src/main/java/com/ccsens/mt/bean/vo/VideoProjectVo.java
  12. 4
      mt/src/main/java/com/ccsens/mt/persist/dao/CompeteProjectConfigDao.java
  13. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteJudgmentMapper.java
  14. 30
      mt/src/main/java/com/ccsens/mt/persist/mapper/CompeteVarietyScoreMapper.java
  15. 56
      mt/src/main/java/com/ccsens/mt/service/CompeteVedioService.java
  16. 4
      mt/src/main/java/com/ccsens/mt/service/ExcelService.java
  17. 16
      mt/src/main/java/com/ccsens/mt/service/ICompeteVedioService.java
  18. 93
      mt/src/main/java/com/ccsens/mt/service/VideoService.java
  19. 1
      mt/src/main/resources/application.yml
  20. 54
      mt/src/main/resources/mapper_dao/CompeteProjectConfigDao.xml
  21. 276
      mt/src/main/resources/mapper_raw/CompeteJudgmentMapper.xml
  22. 48
      mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml
  23. 291
      mt/src/main/resources/mapper_raw/CompeteVarietyScoreMapper.xml

65
mt/src/main/java/com/ccsens/mt/api/CompeteVedioController.java

@ -2,9 +2,13 @@ package com.ccsens.mt.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.mt.bean.dto.CompeteDto;
import com.ccsens.mt.bean.dto.VideoDto;
import com.ccsens.mt.bean.vo.VideoProjectVo;
import com.ccsens.mt.service.ICompeteVedioService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
@ -14,17 +18,74 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@Api(tags = "视频", description = "")
@RestController
@RequestMapping("/vedio")
@Slf4j
public class CompeteVedioController {
@Resource
private ICompeteVedioService iCompeteVedioService;
@MustLogin
@ApiOperation(value = "添加用户观看开幕式视频记录(签到用)", notes = "Mr.王---------根据公司的id在t_compete_player_look表中插入一条数据,单表操作,")
@RequestMapping(value = "/userSign", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse syncCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteType> params) {
@RequestMapping(value = "/addUserSign", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse addCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.Vdeo> params) {
log.info("添加用户观看开幕式视频记录(签到用)",params);
iCompeteVedioService.insertSignVideo(params.getParam().getCompanyId());
return JsonResponse.newInstance().ok();
}
@MustLogin
@ApiOperation(value = "查看用户观看视频记录(签到用)", notes = "Mr.王---------根据公司的id在t_compete_player_look表中查询数据,单表操作,如果是看了,返回true,没看返回false")
@RequestMapping(value = "/selectUserSign", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse selCompeteCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.Vdeo> params) {
log.info("添加用户观看开幕式视频记录(签到用)",params);
boolean code= iCompeteVedioService.selectSignVideo(params.getParam().getCompanyId());
return JsonResponse.newInstance().ok(code);
}
@MustLogin
@ApiOperation(value = "上传视频保存上传记录 (比赛视频)", notes = "Mr.王---------增加一条数据到competevideo")
@RequestMapping(value = "/insertVideoRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse uploadVideo(@ApiParam @Validated @RequestBody QueryDto<VideoDto.UploadVdeo> params) {
log.info("添加用户观看开幕式视频记录(签到用)",params);
String path= iCompeteVedioService.uploadVideoPath(params.getParam());
return JsonResponse.newInstance().ok(path);
}
@MustLogin
@ApiOperation(value = "查看用户签到状态(签到用)(有筛选", notes = "Mr.王---------")
@RequestMapping(value = "/selectUserStatus", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse selectUserStatus(@ApiParam @Validated @RequestBody QueryDto<VideoDto.UploadVdeo> params) {
//这个没写完了
log.info("添加用户观看开幕式视频记录(签到用)",params);
return JsonResponse.newInstance().ok();
}
@MustLogin
@ApiOperation(value = "查看所有二级比赛项目", notes = "Mr.王---------去那个competeProject表下面查")
@RequestMapping(value = "/selectTwoProject", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<VideoProjectVo.GetTwoProject>> selectTwoProject(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetTwoProject > params) {
log.info("添加用户观看开幕式视频记录(签到用)",params);
List<VideoProjectVo.GetTwoProject> list=iCompeteVedioService.selectTwoProject(params);
return JsonResponse.newInstance().ok(list);
}
@MustLogin
@ApiOperation(value = "查找所有参赛单位", notes = "Mr.王---------去那个competeProject表下面查")
@RequestMapping(value = "/selectAllCompany", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<VideoProjectVo.GetAllCompany>> selectAllCompany(@ApiParam @Validated @RequestBody QueryDto<VideoDto.GetAllCompany > params) {
log.info("添加用户观看开幕式视频记录(签到用)",params);
List<VideoProjectVo.GetAllCompany> list=iCompeteVedioService.selectAllCompany(params);
return JsonResponse.newInstance().ok(list);
}
}

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

@ -320,9 +320,9 @@ public class CompeteDto {
@ApiModelProperty("团队id")
private Long companyId;
@ApiModelProperty("姓名")
private Long name;
private String name;
@ApiModelProperty("身份证号")
private Long idCard;
private String idCard;
}

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

@ -45,4 +45,31 @@ public class VideoDto {
@ApiModelProperty("视频文件id")
private Long companyId;
}
@Data
@ApiModel("上传视频保存上传记录 (比赛视频)")
public static class UploadVdeo{
@ApiModelProperty("视频文件id")
private Long companyId;
@ApiModelProperty("大赛id")
private Long competeTimeId;
@ApiModelProperty("项目id")
private Long competeProjectId;
@ApiModelProperty("选手参赛表Id/团队id")
private Long playerOrTeamId;
@ApiModelProperty("视频路径(云点播)")
private String videoPath;
}
@Data
@ApiModel("查看所有二级比赛项目")
public static class GetTwoProject{
@ApiModelProperty("大赛id")
private Long teamId;
}
@Data
@ApiModel("查找所有参赛单位")
public static class GetAllCompany{
@ApiModelProperty("大赛id")
private Long teamId;
}
}

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

@ -0,0 +1,117 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteJudgment implements Serializable {
private Long id;
private Long competeTimeId;
private Long siteOrderId;
private Long projectId;
private Long userId;
private Byte chiefJudgment;
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 getSiteOrderId() {
return siteOrderId;
}
public void setSiteOrderId(Long siteOrderId) {
this.siteOrderId = siteOrderId;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Byte getChiefJudgment() {
return chiefJudgment;
}
public void setChiefJudgment(Byte chiefJudgment) {
this.chiefJudgment = chiefJudgment;
}
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(", siteOrderId=").append(siteOrderId);
sb.append(", projectId=").append(projectId);
sb.append(", userId=").append(userId);
sb.append(", chiefJudgment=").append(chiefJudgment);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

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

@ -0,0 +1,741 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteJudgmentExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteJudgmentExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNull() {
addCriterion("compete_time_id is null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNotNull() {
addCriterion("compete_time_id is not null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdEqualTo(Long value) {
addCriterion("compete_time_id =", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotEqualTo(Long value) {
addCriterion("compete_time_id <>", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThan(Long value) {
addCriterion("compete_time_id >", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) {
addCriterion("compete_time_id >=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThan(Long value) {
addCriterion("compete_time_id <", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) {
addCriterion("compete_time_id <=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIn(List<Long> values) {
addCriterion("compete_time_id in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotIn(List<Long> values) {
addCriterion("compete_time_id not in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdBetween(Long value1, Long value2) {
addCriterion("compete_time_id between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) {
addCriterion("compete_time_id not between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria 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<Long> values) {
addCriterion("site_order_id in", values, "siteOrderId");
return (Criteria) this;
}
public Criteria andSiteOrderIdNotIn(List<Long> 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 andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andChiefJudgmentIsNull() {
addCriterion("chief_judgment is null");
return (Criteria) this;
}
public Criteria andChiefJudgmentIsNotNull() {
addCriterion("chief_judgment is not null");
return (Criteria) this;
}
public Criteria andChiefJudgmentEqualTo(Byte value) {
addCriterion("chief_judgment =", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentNotEqualTo(Byte value) {
addCriterion("chief_judgment <>", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentGreaterThan(Byte value) {
addCriterion("chief_judgment >", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentGreaterThanOrEqualTo(Byte value) {
addCriterion("chief_judgment >=", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentLessThan(Byte value) {
addCriterion("chief_judgment <", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentLessThanOrEqualTo(Byte value) {
addCriterion("chief_judgment <=", value, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentIn(List<Byte> values) {
addCriterion("chief_judgment in", values, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentNotIn(List<Byte> values) {
addCriterion("chief_judgment not in", values, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentBetween(Byte value1, Byte value2) {
addCriterion("chief_judgment between", value1, value2, "chiefJudgment");
return (Criteria) this;
}
public Criteria andChiefJudgmentNotBetween(Byte value1, Byte value2) {
addCriterion("chief_judgment not between", value1, value2, "chiefJudgment");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

22
mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrder.java

@ -6,8 +6,12 @@ import java.util.Date;
public class CompeteStartOrder implements Serializable {
private Long id;
private Long projectId;
private Long playerId;
private Byte team;
private Byte competeOrder;
private Byte site;
@ -28,6 +32,14 @@ public class CompeteStartOrder implements Serializable {
this.id = id;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getPlayerId() {
return playerId;
}
@ -36,6 +48,14 @@ public class CompeteStartOrder implements Serializable {
this.playerId = playerId;
}
public Byte getTeam() {
return team;
}
public void setTeam(Byte team) {
this.team = team;
}
public Byte getCompeteOrder() {
return competeOrder;
}
@ -83,7 +103,9 @@ public class CompeteStartOrder implements Serializable {
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", projectId=").append(projectId);
sb.append(", playerId=").append(playerId);
sb.append(", team=").append(team);
sb.append(", competeOrder=").append(competeOrder);
sb.append(", site=").append(site);
sb.append(", createdAt=").append(createdAt);

120
mt/src/main/java/com/ccsens/mt/bean/po/CompeteStartOrderExample.java

@ -165,6 +165,66 @@ public class CompeteStartOrderExample {
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andPlayerIdIsNull() {
addCriterion("player_id is null");
return (Criteria) this;
@ -225,6 +285,66 @@ public class CompeteStartOrderExample {
return (Criteria) this;
}
public Criteria andTeamIsNull() {
addCriterion("team is null");
return (Criteria) this;
}
public Criteria andTeamIsNotNull() {
addCriterion("team is not null");
return (Criteria) this;
}
public Criteria andTeamEqualTo(Byte value) {
addCriterion("team =", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotEqualTo(Byte value) {
addCriterion("team <>", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThan(Byte value) {
addCriterion("team >", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThanOrEqualTo(Byte value) {
addCriterion("team >=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThan(Byte value) {
addCriterion("team <", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThanOrEqualTo(Byte value) {
addCriterion("team <=", value, "team");
return (Criteria) this;
}
public Criteria andTeamIn(List<Byte> values) {
addCriterion("team in", values, "team");
return (Criteria) this;
}
public Criteria andTeamNotIn(List<Byte> values) {
addCriterion("team not in", values, "team");
return (Criteria) this;
}
public Criteria andTeamBetween(Byte value1, Byte value2) {
addCriterion("team between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andTeamNotBetween(Byte value1, Byte value2) {
addCriterion("team not between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andCompeteOrderIsNull() {
addCriterion("compete_order is null");
return (Criteria) this;

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

@ -0,0 +1,128 @@
package com.ccsens.mt.bean.po;
import java.io.Serializable;
import java.util.Date;
public class CompeteVarietyScore implements Serializable {
private Long id;
private Long competeTimeId;
private Long projectId;
private Long siteOrderId;
private String code;
private Integer score;
private Long judgmentId;
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 String getCode() {
return code;
}
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public Long getJudgmentId() {
return judgmentId;
}
public void setJudgmentId(Long judgmentId) {
this.judgmentId = judgmentId;
}
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(", code=").append(code);
sb.append(", score=").append(score);
sb.append(", judgmentId=").append(judgmentId);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

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

@ -0,0 +1,811 @@
package com.ccsens.mt.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CompeteVarietyScoreExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompeteVarietyScoreExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNull() {
addCriterion("compete_time_id is null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIsNotNull() {
addCriterion("compete_time_id is not null");
return (Criteria) this;
}
public Criteria andCompeteTimeIdEqualTo(Long value) {
addCriterion("compete_time_id =", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotEqualTo(Long value) {
addCriterion("compete_time_id <>", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThan(Long value) {
addCriterion("compete_time_id >", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdGreaterThanOrEqualTo(Long value) {
addCriterion("compete_time_id >=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThan(Long value) {
addCriterion("compete_time_id <", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdLessThanOrEqualTo(Long value) {
addCriterion("compete_time_id <=", value, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdIn(List<Long> values) {
addCriterion("compete_time_id in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotIn(List<Long> values) {
addCriterion("compete_time_id not in", values, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdBetween(Long value1, Long value2) {
addCriterion("compete_time_id between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria andCompeteTimeIdNotBetween(Long value1, Long value2) {
addCriterion("compete_time_id not between", value1, value2, "competeTimeId");
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria 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<Long> values) {
addCriterion("site_order_id in", values, "siteOrderId");
return (Criteria) this;
}
public Criteria andSiteOrderIdNotIn(List<Long> 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 andCodeIsNull() {
addCriterion("code is null");
return (Criteria) this;
}
public Criteria andCodeIsNotNull() {
addCriterion("code is not null");
return (Criteria) this;
}
public Criteria andCodeEqualTo(String value) {
addCriterion("code =", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotEqualTo(String value) {
addCriterion("code <>", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThan(String value) {
addCriterion("code >", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThanOrEqualTo(String value) {
addCriterion("code >=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThan(String value) {
addCriterion("code <", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThanOrEqualTo(String value) {
addCriterion("code <=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLike(String value) {
addCriterion("code like", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotLike(String value) {
addCriterion("code not like", value, "code");
return (Criteria) this;
}
public Criteria andCodeIn(List<String> values) {
addCriterion("code in", values, "code");
return (Criteria) this;
}
public Criteria andCodeNotIn(List<String> values) {
addCriterion("code not in", values, "code");
return (Criteria) this;
}
public Criteria andCodeBetween(String value1, String value2) {
addCriterion("code between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCodeNotBetween(String value1, String value2) {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andScoreIsNull() {
addCriterion("score is null");
return (Criteria) this;
}
public Criteria andScoreIsNotNull() {
addCriterion("score is not null");
return (Criteria) this;
}
public Criteria andScoreEqualTo(Integer value) {
addCriterion("score =", value, "score");
return (Criteria) this;
}
public Criteria andScoreNotEqualTo(Integer value) {
addCriterion("score <>", value, "score");
return (Criteria) this;
}
public Criteria andScoreGreaterThan(Integer value) {
addCriterion("score >", value, "score");
return (Criteria) this;
}
public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
addCriterion("score >=", value, "score");
return (Criteria) this;
}
public Criteria andScoreLessThan(Integer value) {
addCriterion("score <", value, "score");
return (Criteria) this;
}
public Criteria andScoreLessThanOrEqualTo(Integer value) {
addCriterion("score <=", value, "score");
return (Criteria) this;
}
public Criteria andScoreIn(List<Integer> values) {
addCriterion("score in", values, "score");
return (Criteria) this;
}
public Criteria andScoreNotIn(List<Integer> values) {
addCriterion("score not in", values, "score");
return (Criteria) this;
}
public Criteria andScoreBetween(Integer value1, Integer value2) {
addCriterion("score between", value1, value2, "score");
return (Criteria) this;
}
public Criteria andScoreNotBetween(Integer value1, Integer value2) {
addCriterion("score not between", value1, value2, "score");
return (Criteria) this;
}
public Criteria andJudgmentIdIsNull() {
addCriterion("judgment_id is null");
return (Criteria) this;
}
public Criteria andJudgmentIdIsNotNull() {
addCriterion("judgment_id is not null");
return (Criteria) this;
}
public Criteria andJudgmentIdEqualTo(Long value) {
addCriterion("judgment_id =", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdNotEqualTo(Long value) {
addCriterion("judgment_id <>", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdGreaterThan(Long value) {
addCriterion("judgment_id >", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdGreaterThanOrEqualTo(Long value) {
addCriterion("judgment_id >=", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdLessThan(Long value) {
addCriterion("judgment_id <", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdLessThanOrEqualTo(Long value) {
addCriterion("judgment_id <=", value, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdIn(List<Long> values) {
addCriterion("judgment_id in", values, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdNotIn(List<Long> values) {
addCriterion("judgment_id not in", values, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdBetween(Long value1, Long value2) {
addCriterion("judgment_id between", value1, value2, "judgmentId");
return (Criteria) this;
}
public Criteria andJudgmentIdNotBetween(Long value1, Long value2) {
addCriterion("judgment_id not between", value1, value2, "judgmentId");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

6
mt/src/main/java/com/ccsens/mt/bean/vo/TableVo.java

@ -32,8 +32,10 @@ public class TableVo {
private int age;
@ApiModelProperty("身份证号")
private String idCard;
@ApiModelProperty("身份证明")
private String idCardPromise;
@ApiModelProperty("身份证明正面")
private String idCardPromiseFront;
@ApiModelProperty("身份证明背面")
private String idCardPromiseBack;
@ApiModelProperty("一寸证件照")
private String picture;
@ApiModelProperty("学籍证明/俱乐部证明")

30
mt/src/main/java/com/ccsens/mt/bean/vo/VideoProjectVo.java

@ -0,0 +1,30 @@
package com.ccsens.mt.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
public class VideoProjectVo {
@Data
@ApiModel("查看所有二级比赛项目")
public static class GetTwoProject{
@ApiModelProperty("项目id")
private Long projectId;
@ApiModelProperty("项目名")
private String projectName;
}
@Data
@ApiModel("查找所有参赛单位")
public static class GetAllCompany{
@ApiModelProperty("参赛单位id")
private Long companyId;
@ApiModelProperty("返回参赛单位名称")
private String companyName;
}
}

4
mt/src/main/java/com/ccsens/mt/persist/dao/CompeteProjectConfigDao.java

@ -16,6 +16,6 @@ import java.util.List;
public interface CompeteProjectConfigDao extends CompeteProjectConfigMapper {
CompeteProjectConfig selectByProjectId(@Param("projectId") Long projectId);
List<TableVo.SchedulePlanDetail> selectDetail ();
List<TableVo.CompeteJoin> selectSingle ();
List<TableVo.CompeteJoin> selectGroup ();
List<TableVo.CompeteJoin> selectSingle (@Param("competeTimeId") Long competeTimeId,@Param("projectId") Long projectId,@Param("groupId") Long groupId,@Param("companyId") Long companyId,@Param("name") String name,@Param("idCard") String idCard);
List<TableVo.CompeteJoin> selectGroup (@Param("competeTimeId") Long competeTimeId,@Param("projectId") Long projectId,@Param("groupId") Long groupId,@Param("companyId") Long companyId,@Param("name") String name,@Param("idCard") String idCard);
}

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

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

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

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

56
mt/src/main/java/com/ccsens/mt/service/CompeteVedioService.java

@ -1,12 +1,21 @@
package com.ccsens.mt.service;
import cn.hutool.core.lang.Snowflake;
import com.ccsens.mt.bean.dto.VideoDto;
import com.ccsens.mt.bean.po.*;
import com.ccsens.mt.bean.vo.VideoProjectVo;
import com.ccsens.mt.persist.mapper.CompeteCompanyMapper;
import com.ccsens.mt.persist.mapper.CompetePlayerLookMapper;
import com.ccsens.mt.persist.mapper.CompeteProjectMapper;
import com.ccsens.mt.persist.mapper.CompeteVideoMapper;
import com.ccsens.util.bean.dto.QueryDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
/**
* @author 10071
@ -18,15 +27,60 @@ public class CompeteVedioService implements ICompeteVedioService{
@Resource
private Snowflake snowflake;
@Resource
private CompetePlayerLookMapper competePlayerLookMapper;
@Resource
private CompeteVideoMapper competeVideoMapper;
@Resource
private CompeteProjectMapper competeProjectMapper;
@Resource
private CompeteCompanyMapper competeCompanyMapper;
@Override
public void insertSignVideo(Long companyId) {
CompetePlayerLook competePlayerLook=new CompetePlayerLook();
competePlayerLook.setCompanyId(companyId);
competePlayerLook.setId(snowflake.nextId());
competePlayerLook.setLookStatus((byte) 1);
competePlayerLook.setLookTime(System.currentTimeMillis());
competePlayerLookMapper.insertSelective(competePlayerLook);
}
@Override
public boolean selectSignVideo(Long companyId) {
CompetePlayerLookExample competePlayerLookExample=new CompetePlayerLookExample();
competePlayerLookExample.createCriteria().andCompanyIdEqualTo(companyId);
List<CompetePlayerLook> competePlayerLooks = competePlayerLookMapper.selectByExample(competePlayerLookExample);
return competePlayerLooks.size()==0? false:true;
}
@Override
public String uploadVideoPath(VideoDto.UploadVdeo param) {
CompeteVideo competeVideo=new CompeteVideo();
competeVideo.setId(snowflake.nextId());
competeVideo.setCompeteTimeId(param.getCompeteTimeId());
competeVideo.setProjectId(param.getCompeteProjectId());
competeVideo.setPlayerId(param.getPlayerOrTeamId());
competeVideo.setVideoUrl(param.getVideoPath());
competeVideoMapper.insert(competeVideo);
return param.getVideoPath();
}
@Override
public List<VideoProjectVo.GetTwoProject> selectTwoProject(QueryDto<VideoDto.GetTwoProject> params) {
CompeteProjectExample competeCompanyExample=new CompeteProjectExample();
//competeCompanyExample.createCriteria().andCompeteTimeIdEqualTo(params.getParam().getTeamId()).andLevelEqualTo();
return null;
}
@Override
public void selectSignVideo(Long companyId) {
public List<VideoProjectVo.GetAllCompany> selectAllCompany(QueryDto<VideoDto.GetAllCompany> params) {
return null;
}
}

4
mt/src/main/java/com/ccsens/mt/service/ExcelService.java

@ -1119,7 +1119,7 @@ public class ExcelService implements IExcelService {
public List<TableVo.CompeteJoin> getCompeteJoinDetail(CompeteDto.EnterInfo params) {
List<TableVo.CompeteJoin> competeJoinList = new ArrayList<>();
//个人项目查询
List<TableVo.CompeteJoin> competeJoinList1 = competeProjectConfigDao.selectSingle();
List<TableVo.CompeteJoin> competeJoinList1 = competeProjectConfigDao.selectSingle(params.getCompeteTimeId(),params.getProjectId(),params.getGroupId(),params.getCompanyId(),params.getName(),params.getIdCard());
for (TableVo.CompeteJoin competeJoin : competeJoinList1){
//获取身份证
String idCard = competeJoin.getIdCard();
@ -1129,7 +1129,7 @@ public class ExcelService implements IExcelService {
competeJoinList.add(competeJoin);
}
//团队项目查询
List<TableVo.CompeteJoin> competeJoinList2 = competeProjectConfigDao.selectGroup();
List<TableVo.CompeteJoin> competeJoinList2 = competeProjectConfigDao.selectGroup(params.getCompeteTimeId(),params.getProjectId(),params.getGroupId(),params.getCompanyId(),params.getName(),params.getIdCard());
for (TableVo.CompeteJoin competeJoin : competeJoinList2){
//获取身份证
String idCard = competeJoin.getIdCard();

16
mt/src/main/java/com/ccsens/mt/service/ICompeteVedioService.java

@ -1,5 +1,12 @@
package com.ccsens.mt.service;
import com.ccsens.mt.bean.dto.VideoDto;
import com.ccsens.mt.bean.po.CompetePlayerLook;
import com.ccsens.mt.bean.vo.VideoProjectVo;
import com.ccsens.util.bean.dto.QueryDto;
import java.util.List;
public interface ICompeteVedioService {
/**
*
@ -11,6 +18,13 @@ public interface ICompeteVedioService {
/**
* 查看用户观看视频记录签到用
* @param companyId
*
*/
void selectSignVideo(Long companyId);
boolean selectSignVideo(Long companyId);
String uploadVideoPath(VideoDto.UploadVdeo param);
List<VideoProjectVo.GetTwoProject> selectTwoProject(QueryDto<VideoDto.GetTwoProject> params);
List<VideoProjectVo.GetAllCompany> selectAllCompany(QueryDto<VideoDto.GetAllCompany> params);
}

93
mt/src/main/java/com/ccsens/mt/service/VideoService.java

@ -30,6 +30,7 @@ public class VideoService implements IVideoService{
@Resource
private CompeteVideoMapper competeVideoMapper;
/**
* 查看某个用户上传的比赛视频信息
* @param params 比赛id和选手id
@ -37,22 +38,23 @@ public class VideoService implements IVideoService{
*/
@Override
public List<VideoVo.GetVideoInfo> getVideoByPlayerId(QueryDto<VideoDto.GetVideo> params) {
VideoDto.GetVideo getVideo = params.getParam();
List<VideoVo.GetVideoInfo> getVideoInfoList = new ArrayList<>();
CompeteVideoExample videoExample = new CompeteVideoExample();
videoExample.createCriteria().andCompeteCodeEqualTo(getVideo.getCompeteCode()).andCompeteTimeIdEqualTo(getVideo.getCompeteTimeId())
.andPlayerIdEqualTo(getVideo.getPlayerId());
List<CompeteVideo> competeVideoList = competeVideoMapper.selectByExample(videoExample);
if(CollectionUtil.isNotEmpty(competeVideoList)){
competeVideoList.forEach(competeVideo -> {
VideoVo.GetVideoInfo getVideoInfo = new VideoVo.GetVideoInfo();
getVideoInfo.setFileId(competeVideo.getFileId());
getVideoInfo.setVideoId(competeVideo.getId());
getVideoInfo.setUploadTime(competeVideo.getTime());
getVideoInfoList.add(getVideoInfo);
});
}
return getVideoInfoList;
// VideoDto.GetVideo getVideo = params.getParam();
// List<VideoVo.GetVideoInfo> getVideoInfoList = new ArrayList<>();
// CompeteVideoExample videoExample = new CompeteVideoExample();
// videoExample.createCriteria().andCompeteCodeEqualTo(getVideo.getCompeteCode()).andCompeteTimeIdEqualTo(getVideo.getCompeteTimeId())
// .andPlayerIdEqualTo(getVideo.getPlayerId());
// List<CompeteVideo> competeVideoList = competeVideoMapper.selectByExample(videoExample);
// if(CollectionUtil.isNotEmpty(competeVideoList)){
// competeVideoList.forEach(competeVideo -> {
// VideoVo.GetVideoInfo getVideoInfo = new VideoVo.GetVideoInfo();
// getVideoInfo.setFileId(competeVideo.getFileId());
// getVideoInfo.setVideoId(competeVideo.getId());
// getVideoInfo.setUploadTime(competeVideo.getTime());
// getVideoInfoList.add(getVideoInfo);
// });
// }
// return getVideoInfoList;
return null;
}
/**
@ -62,34 +64,35 @@ public class VideoService implements IVideoService{
*/
@Override
public List<VideoVo.GetVideoInfo> uploadVideo(QueryDto<VideoDto.UploadVideo> params) {
VideoDto.UploadVideo uploadVideo = params.getParam();
//将视频信息储存数据库
CompeteVideo competeVideo = new CompeteVideo();
competeVideo.setId(snowflake.nextId());
competeVideo.setCompeteCode(uploadVideo.getCompeteCode());
competeVideo.setCompeteTimeId(uploadVideo.getCompeteTimeId());
competeVideo.setTeam(uploadVideo.getTeam());
competeVideo.setPlayerId(uploadVideo.getPlayerId());
competeVideo.setFileId(uploadVideo.getVideoFileId());
competeVideo.setVideoUrl(uploadVideo.getVideoFileUrl());
competeVideo.setUploadUserId(params.getUserId());
competeVideo.setTime(System.currentTimeMillis());
competeVideoMapper.insertSelective(competeVideo);
//返回
List<VideoVo.GetVideoInfo> getVideoInfoList = new ArrayList<>();
CompeteVideoExample videoExample = new CompeteVideoExample();
videoExample.createCriteria().andCompeteCodeEqualTo(uploadVideo.getCompeteCode()).andCompeteTimeIdEqualTo(uploadVideo.getCompeteTimeId())
.andPlayerIdEqualTo(uploadVideo.getPlayerId());
List<CompeteVideo> competeVideoList = competeVideoMapper.selectByExample(videoExample);
if(CollectionUtil.isNotEmpty(competeVideoList)){
competeVideoList.forEach(video -> {
VideoVo.GetVideoInfo getVideoInfo = new VideoVo.GetVideoInfo();
getVideoInfo.setFileId(video.getFileId());
getVideoInfo.setVideoId(video.getId());
getVideoInfo.setUploadTime(video.getTime());
getVideoInfoList.add(getVideoInfo);
});
}
return getVideoInfoList;
// VideoDto.UploadVideo uploadVideo = params.getParam();
// //将视频信息储存数据库
// CompeteVideo competeVideo = new CompeteVideo();
// competeVideo.setId(snowflake.nextId());
// competeVideo.setCompeteCode(uploadVideo.getCompeteCode());
// competeVideo.setCompeteTimeId(uploadVideo.getCompeteTimeId());
// competeVideo.setTeam(uploadVideo.getTeam());
// competeVideo.setPlayerId(uploadVideo.getPlayerId());
// competeVideo.setFileId(uploadVideo.getVideoFileId());
// competeVideo.setVideoUrl(uploadVideo.getVideoFileUrl());
// competeVideo.setUploadUserId(params.getUserId());
// competeVideo.setTime(System.currentTimeMillis());
// competeVideoMapper.insertSelective(competeVideo);
// //返回
// List<VideoVo.GetVideoInfo> getVideoInfoList = new ArrayList<>();
// CompeteVideoExample videoExample = new CompeteVideoExample();
// videoExample.createCriteria().andCompeteCodeEqualTo(uploadVideo.getCompeteCode()).andCompeteTimeIdEqualTo(uploadVideo.getCompeteTimeId())
// .andPlayerIdEqualTo(uploadVideo.getPlayerId());
// List<CompeteVideo> competeVideoList = competeVideoMapper.selectByExample(videoExample);
// if(CollectionUtil.isNotEmpty(competeVideoList)){
// competeVideoList.forEach(video -> {
// VideoVo.GetVideoInfo getVideoInfo = new VideoVo.GetVideoInfo();
// getVideoInfo.setFileId(video.getFileId());
// getVideoInfo.setVideoId(video.getId());
// getVideoInfo.setUploadTime(video.getTime());
// getVideoInfoList.add(getVideoInfo);
// });
// }
// return getVideoInfoList;
return null;
}
}

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

@ -3,3 +3,4 @@ spring:
active: dev
include: common, util-dev

54
mt/src/main/resources/mapper_dao/CompeteProjectConfigDao.xml

@ -33,12 +33,12 @@
tcp.`name` as name,
tcp.gender as gender,
tcp.id_card as idCard,
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as id_card_front_file,
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as id_card_back_file,
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as id_photo_file,
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as student_record_file,
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as health_record_file,
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as insurance_record_file
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront,
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack,
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture,
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise,
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest,
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect
from
t_compete_project tcpro LEFT JOIN t_compete_project_player tcpp on tcpro.id = tcpp.project_id
LEFT JOIN t_compete_player tcp on tcpp.player_id = tcp.id
@ -46,22 +46,22 @@
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id
LEFT JOIN t_compete_time tct on tct.type = tcpro.type
where
<if test="competeTimeId !=null and competeTimeId! = ''">
<if test="competeTimeId != null">
tct.id = #{competeTimeId}
</if>
<if test="projectId !=null and projectId! = ''">
<if test="projectId != null">
and tcpro.id = #{projectId}
</if>
<if test="groupId !=null and groupId! = ''">
<if test="groupId != null">
and tcg.id = #{groupId}
</if>
<if test="companyId !=null and companyId! = ''">
<if test="companyId != null">
and tcc.id = #{companyId}
</if>
<if test="competeTimeId !=null and competeTimeId! = ''">
and tct.id = #{competeTimeId}
<if test="name != null and name != ''">
and tcp.name = #{name}
</if>
<if test="idCard !=null and idCard! = ''">
<if test="idCard != null and idCard != ''">
and tcp.id_card = #{idCard}
</if>
and tcp.rec_status = 0
@ -79,12 +79,12 @@
tcp.`name` as name,
tcp.gender as gender,
tcp.id_card as idCard,
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as id_card_front_file,
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as id_card_back_file,
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as id_photo_file,
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as student_record_file,
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as health_record_file,
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as insurance_record_file
(SELECT visit_location from t_common_file where tcp.id_card_front_file = id ) as idCardPromiseFront,
(SELECT visit_location from t_common_file where tcp.id_card_back_file = id ) as idCardPromiseBack,
(SELECT visit_location from t_common_file where tcp.id_photo_file = id ) as picture,
(SELECT visit_location from t_common_file where tcp.student_record_file = id ) as studentPromise,
(SELECT visit_location from t_common_file where tcp.health_record_file = id ) as bodyTest,
(SELECT visit_location from t_common_file where tcp.insurance_record_file = id ) as bodyProtect
from
t_compete_project tcpro LEFT JOIN t_compete_team tct on tcpro.id = tct.project_id
LEFT JOIN t_compete_team_member tctm on tct.id = tctm.compete_team_id
@ -93,22 +93,22 @@
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id
LEFT JOIN t_compete_time tctt on tctt.type = tcpro.type
WHERE
<if test="competeTimeId !=null and competeTimeId! = ''">
tct.id = #{competeTimeId}
<if test="competeTimeId != null">
tctt.id = #{competeTimeId}
</if>
<if test="projectId !=null and projectId! = ''">
<if test="projectId != null">
and tcpro.id = #{projectId}
</if>
<if test="groupId !=null and groupId! = ''">
<if test="groupId != null">
and tcg.id = #{groupId}
</if>
<if test="companyId !=null and companyId! = ''">
<if test="companyId != null">
and tcc.id = #{companyId}
</if>
<if test="competeTimeId !=null and competeTimeId! = ''">
and tct.id = #{competeTimeId}
<if test="name != null and name != ''">
and tcp.name = #{name}
</if>
<if test="idCard !=null and idCard! = ''">
<if test="idCard != null and idCard != ''">
and tcp.id_card = #{idCard}
</if>
and tcpro.rec_status = 0

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

@ -0,0 +1,276 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteJudgmentMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteJudgment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="site_order_id" jdbcType="BIGINT" property="siteOrderId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="chief_judgment" jdbcType="TINYINT" property="chiefJudgment" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, compete_time_id, site_order_id, project_id, user_id, chief_judgment, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_judgment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_judgment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_judgment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample">
delete from t_compete_judgment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteJudgment">
insert into t_compete_judgment (id, compete_time_id, site_order_id,
project_id, user_id, chief_judgment,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{siteOrderId,jdbcType=BIGINT},
#{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{chiefJudgment,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment">
insert into t_compete_judgment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="competeTimeId != null">
compete_time_id,
</if>
<if test="siteOrderId != null">
site_order_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="chiefJudgment != null">
chief_judgment,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
</if>
<if test="siteOrderId != null">
#{siteOrderId,jdbcType=BIGINT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="chiefJudgment != null">
#{chiefJudgment,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultType="java.lang.Long">
select count(*) from t_compete_judgment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_judgment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
</if>
<if test="record.siteOrderId != null">
site_order_id = #{record.siteOrderId,jdbcType=BIGINT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.chiefJudgment != null">
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_judgment
set id = #{record.id,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
site_order_id = #{record.siteOrderId,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment">
update t_compete_judgment
<set>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
</if>
<if test="siteOrderId != null">
site_order_id = #{siteOrderId,jdbcType=BIGINT},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="chiefJudgment != null">
chief_judgment = #{chiefJudgment,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteJudgment">
update t_compete_judgment
set compete_time_id = #{competeTimeId,jdbcType=BIGINT},
site_order_id = #{siteOrderId,jdbcType=BIGINT},
project_id = #{projectId,jdbcType=BIGINT},
user_id = #{userId,jdbcType=BIGINT},
chief_judgment = #{chiefJudgment,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

48
mt/src/main/resources/mapper_raw/CompeteStartOrderMapper.xml

@ -3,7 +3,9 @@
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteStartOrderMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteStartOrder">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="player_id" jdbcType="BIGINT" property="playerId" />
<result column="team" jdbcType="TINYINT" property="team" />
<result column="compete_order" jdbcType="TINYINT" property="competeOrder" />
<result column="site" jdbcType="TINYINT" property="site" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
@ -69,7 +71,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, player_id, compete_order, site, created_at, updated_at, rec_status
id, project_id, player_id, team, compete_order, site, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteStartOrderExample" resultMap="BaseResultMap">
select
@ -102,12 +104,14 @@
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder">
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, project_id, player_id,
team, compete_order, site,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT},
#{team,jdbcType=TINYINT}, #{competeOrder,jdbcType=TINYINT}, #{site,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder">
insert into t_compete_start_order
@ -115,9 +119,15 @@
<if test="id != null">
id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="playerId != null">
player_id,
</if>
<if test="team != null">
team,
</if>
<if test="competeOrder != null">
compete_order,
</if>
@ -138,9 +148,15 @@
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="playerId != null">
#{playerId,jdbcType=BIGINT},
</if>
<if test="team != null">
#{team,jdbcType=TINYINT},
</if>
<if test="competeOrder != null">
#{competeOrder,jdbcType=TINYINT},
</if>
@ -170,9 +186,15 @@
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.playerId != null">
player_id = #{record.playerId,jdbcType=BIGINT},
</if>
<if test="record.team != null">
team = #{record.team,jdbcType=TINYINT},
</if>
<if test="record.competeOrder != null">
compete_order = #{record.competeOrder,jdbcType=TINYINT},
</if>
@ -196,7 +218,9 @@
<update id="updateByExample" parameterType="map">
update t_compete_start_order
set id = #{record.id,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
player_id = #{record.playerId,jdbcType=BIGINT},
team = #{record.team,jdbcType=TINYINT},
compete_order = #{record.competeOrder,jdbcType=TINYINT},
site = #{record.site,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@ -209,9 +233,15 @@
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder">
update t_compete_start_order
<set>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="playerId != null">
player_id = #{playerId,jdbcType=BIGINT},
</if>
<if test="team != null">
team = #{team,jdbcType=TINYINT},
</if>
<if test="competeOrder != null">
compete_order = #{competeOrder,jdbcType=TINYINT},
</if>
@ -232,7 +262,9 @@
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteStartOrder">
update t_compete_start_order
set player_id = #{playerId,jdbcType=BIGINT},
set project_id = #{projectId,jdbcType=BIGINT},
player_id = #{playerId,jdbcType=BIGINT},
team = #{team,jdbcType=TINYINT},
compete_order = #{competeOrder,jdbcType=TINYINT},
site = #{site,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},

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

@ -0,0 +1,291 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.mt.persist.mapper.CompeteVarietyScoreMapper">
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteVarietyScore">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="site_order_id" jdbcType="BIGINT" property="siteOrderId" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="score" jdbcType="INTEGER" property="score" />
<result column="judgment_id" jdbcType="BIGINT" property="judgmentId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, compete_time_id, project_id, site_order_id, code, score, judgment_id, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_compete_variety_score
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_compete_variety_score
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_compete_variety_score
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample">
delete from t_compete_variety_score
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore">
insert into t_compete_variety_score (id, compete_time_id, project_id,
site_order_id, code, score,
judgment_id, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT},
#{siteOrderId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER},
#{judgmentId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore">
insert into t_compete_variety_score
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="competeTimeId != null">
compete_time_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="siteOrderId != null">
site_order_id,
</if>
<if test="code != null">
code,
</if>
<if test="score != null">
score,
</if>
<if test="judgmentId != null">
judgment_id,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="siteOrderId != null">
#{siteOrderId,jdbcType=BIGINT},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="score != null">
#{score,jdbcType=INTEGER},
</if>
<if test="judgmentId != null">
#{judgmentId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScoreExample" resultType="java.lang.Long">
select count(*) from t_compete_variety_score
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_compete_variety_score
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.siteOrderId != null">
site_order_id = #{record.siteOrderId,jdbcType=BIGINT},
</if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.score != null">
score = #{record.score,jdbcType=INTEGER},
</if>
<if test="record.judgmentId != null">
judgment_id = #{record.judgmentId,jdbcType=BIGINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_compete_variety_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},
code = #{record.code,jdbcType=VARCHAR},
score = #{record.score,jdbcType=INTEGER},
judgment_id = #{record.judgmentId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore">
update t_compete_variety_score
<set>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="siteOrderId != null">
site_order_id = #{siteOrderId,jdbcType=BIGINT},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="score != null">
score = #{score,jdbcType=INTEGER},
</if>
<if test="judgmentId != null">
judgment_id = #{judgmentId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteVarietyScore">
update t_compete_variety_score
set compete_time_id = #{competeTimeId,jdbcType=BIGINT},
project_id = #{projectId,jdbcType=BIGINT},
site_order_id = #{siteOrderId,jdbcType=BIGINT},
code = #{code,jdbcType=VARCHAR},
score = #{score,jdbcType=INTEGER},
judgment_id = #{judgmentId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save