Browse Source

20200903_4.0

master
zy_Java 5 years ago
parent
commit
ecf13d56f6
  1. 12
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java
  2. 48
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java
  3. 12
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayer.java
  4. 48
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectPlayerExample.java
  5. 12
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java
  6. 48
      mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeamExample.java
  7. 32
      mt/src/main/java/com/ccsens/mt/service/CompeteService.java
  8. 28
      mt/src/main/resources/mapper_raw/CompeteProjectMapper.xml
  9. 28
      mt/src/main/resources/mapper_raw/CompeteProjectPlayerMapper.xml
  10. 28
      mt/src/main/resources/mapper_raw/CompeteTeamMapper.xml

12
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProject.java

@ -8,7 +8,7 @@ public class CompeteProject implements Serializable {
private String name;
private Long parendId;
private Long parentId;
private Byte leve;
@ -48,12 +48,12 @@ public class CompeteProject implements Serializable {
this.name = name == null ? null : name.trim();
}
public Long getParendId() {
return parendId;
public Long getParentId() {
return parentId;
}
public void setParendId(Long parendId) {
this.parendId = parendId;
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Byte getLeve() {
@ -144,7 +144,7 @@ public class CompeteProject implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", parendId=").append(parendId);
sb.append(", parentId=").append(parentId);
sb.append(", leve=").append(leve);
sb.append(", team=").append(team);
sb.append(", joinRule=").append(joinRule);

48
mt/src/main/java/com/ccsens/mt/bean/po/CompeteProjectExample.java

@ -235,63 +235,63 @@ public class CompeteProjectExample {
return (Criteria) this;
}
public Criteria andParendIdIsNull() {
addCriterion("parend_id is null");
public Criteria andParentIdIsNull() {
addCriterion("parent_id is null");
return (Criteria) this;
}
public Criteria andParendIdIsNotNull() {
addCriterion("parend_id is not null");
public Criteria andParentIdIsNotNull() {
addCriterion("parent_id is not null");
return (Criteria) this;
}
public Criteria andParendIdEqualTo(Long value) {
addCriterion("parend_id =", value, "parendId");
public Criteria andParentIdEqualTo(Long value) {
addCriterion("parent_id =", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdNotEqualTo(Long value) {
addCriterion("parend_id <>", value, "parendId");
public Criteria andParentIdNotEqualTo(Long value) {
addCriterion("parent_id <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdGreaterThan(Long value) {
addCriterion("parend_id >", value, "parendId");
public Criteria andParentIdGreaterThan(Long value) {
addCriterion("parent_id >", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdGreaterThanOrEqualTo(Long value) {
addCriterion("parend_id >=", value, "parendId");
public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
addCriterion("parent_id >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdLessThan(Long value) {
addCriterion("parend_id <", value, "parendId");
public Criteria andParentIdLessThan(Long value) {
addCriterion("parent_id <", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdLessThanOrEqualTo(Long value) {
addCriterion("parend_id <=", value, "parendId");
public Criteria andParentIdLessThanOrEqualTo(Long value) {
addCriterion("parent_id <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParendIdIn(List<Long> values) {
addCriterion("parend_id in", values, "parendId");
public Criteria andParentIdIn(List<Long> values) {
addCriterion("parent_id in", values, "parentId");
return (Criteria) this;
}
public Criteria andParendIdNotIn(List<Long> values) {
addCriterion("parend_id not in", values, "parendId");
public Criteria andParentIdNotIn(List<Long> values) {
addCriterion("parent_id not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParendIdBetween(Long value1, Long value2) {
addCriterion("parend_id between", value1, value2, "parendId");
public Criteria andParentIdBetween(Long value1, Long value2) {
addCriterion("parent_id between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParendIdNotBetween(Long value1, Long value2) {
addCriterion("parend_id not between", value1, value2, "parendId");
public Criteria andParentIdNotBetween(Long value1, Long value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}

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

@ -8,7 +8,7 @@ public class CompeteProjectPlayer implements Serializable {
private Long playerId;
private Long porjectId;
private Long projectId;
private Long competeTimeId;
@ -40,12 +40,12 @@ public class CompeteProjectPlayer implements Serializable {
this.playerId = playerId;
}
public Long getPorjectId() {
return porjectId;
public Long getProjectId() {
return projectId;
}
public void setPorjectId(Long porjectId) {
this.porjectId = porjectId;
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getCompeteTimeId() {
@ -104,7 +104,7 @@ public class CompeteProjectPlayer implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", playerId=").append(playerId);
sb.append(", porjectId=").append(porjectId);
sb.append(", projectId=").append(projectId);
sb.append(", competeTimeId=").append(competeTimeId);
sb.append(", genderGroup=").append(genderGroup);
sb.append(", certificate=").append(certificate);

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

@ -225,63 +225,63 @@ public class CompeteProjectPlayerExample {
return (Criteria) this;
}
public Criteria andPorjectIdIsNull() {
addCriterion("porject_id is null");
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andPorjectIdIsNotNull() {
addCriterion("porject_id is not null");
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andPorjectIdEqualTo(Long value) {
addCriterion("porject_id =", value, "porjectId");
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotEqualTo(Long value) {
addCriterion("porject_id <>", value, "porjectId");
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThan(Long value) {
addCriterion("porject_id >", value, "porjectId");
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("porject_id >=", value, "porjectId");
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThan(Long value) {
addCriterion("porject_id <", value, "porjectId");
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThanOrEqualTo(Long value) {
addCriterion("porject_id <=", value, "porjectId");
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdIn(List<Long> values) {
addCriterion("porject_id in", values, "porjectId");
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotIn(List<Long> values) {
addCriterion("porject_id not in", values, "porjectId");
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdBetween(Long value1, Long value2) {
addCriterion("porject_id between", value1, value2, "porjectId");
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotBetween(Long value1, Long value2) {
addCriterion("porject_id not between", value1, value2, "porjectId");
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}

12
mt/src/main/java/com/ccsens/mt/bean/po/CompeteTeam.java

@ -8,7 +8,7 @@ public class CompeteTeam implements Serializable {
private Long creator;
private Long porjectId;
private Long projectId;
private Long competeTimeId;
@ -42,12 +42,12 @@ public class CompeteTeam implements Serializable {
this.creator = creator;
}
public Long getPorjectId() {
return porjectId;
public Long getProjectId() {
return projectId;
}
public void setPorjectId(Long porjectId) {
this.porjectId = porjectId;
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getCompeteTimeId() {
@ -114,7 +114,7 @@ public class CompeteTeam implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", creator=").append(creator);
sb.append(", porjectId=").append(porjectId);
sb.append(", projectId=").append(projectId);
sb.append(", competeTimeId=").append(competeTimeId);
sb.append(", genderGroup=").append(genderGroup);
sb.append(", certificate=").append(certificate);

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

@ -225,63 +225,63 @@ public class CompeteTeamExample {
return (Criteria) this;
}
public Criteria andPorjectIdIsNull() {
addCriterion("porject_id is null");
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andPorjectIdIsNotNull() {
addCriterion("porject_id is not null");
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andPorjectIdEqualTo(Long value) {
addCriterion("porject_id =", value, "porjectId");
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotEqualTo(Long value) {
addCriterion("porject_id <>", value, "porjectId");
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThan(Long value) {
addCriterion("porject_id >", value, "porjectId");
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("porject_id >=", value, "porjectId");
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThan(Long value) {
addCriterion("porject_id <", value, "porjectId");
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdLessThanOrEqualTo(Long value) {
addCriterion("porject_id <=", value, "porjectId");
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdIn(List<Long> values) {
addCriterion("porject_id in", values, "porjectId");
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotIn(List<Long> values) {
addCriterion("porject_id not in", values, "porjectId");
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdBetween(Long value1, Long value2) {
addCriterion("porject_id between", value1, value2, "porjectId");
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andPorjectIdNotBetween(Long value1, Long value2) {
addCriterion("porject_id not between", value1, value2, "porjectId");
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}

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

@ -13,6 +13,7 @@ import com.ccsens.util.bean.dto.QueryDto;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
/**
@ -50,22 +51,21 @@ public class CompeteService implements ICompeteService{
*/
@Override
public List<CompeteVo.CompeteCompany> queryCompeteCompany(QueryDto<CompeteDto.CompeteTypeAndKey> params) {
// CompeteDto.CompeteTypeAndKey competeTypeAndKey = params.getParam();
// String key = competeTypeAndKey.getType() + Constant.Redis.COMPETE_COMPANY;
// Object list = redisUtil.lGet(key,0,-1);
// List<CompeteCompany> competeCompanyList = (List<CompeteCompany>) list;
// List<CompeteVo.CompeteCompany> companyList = new ArrayList<>();
// System.out.println(competeCompanyList);
// competeCompanyList.forEach(competeCompany -> {
// if(competeCompany.getName().contains(competeTypeAndKey.getKey())){
// CompeteVo.CompeteCompany company = new CompeteVo.CompeteCompany();
// company.setGroupId(competeCompany.getId());
// company.setGroupName(competeCompany.getName());
// companyList.add(company);
// }
// });
// return companyList;
return null;
CompeteDto.CompeteTypeAndKey competeTypeAndKey = params.getParam();
String key = competeTypeAndKey.getType() + Constant.Redis.COMPETE_COMPANY;
Object list = redisUtil.lGet(key,0,-1);
List<CompeteCompany> competeCompanyList = (List<CompeteCompany>) list;
List<CompeteVo.CompeteCompany> companyList = new ArrayList<>();
System.out.println(competeCompanyList);
competeCompanyList.forEach(competeCompany -> {
if(competeCompany.getName().contains(competeTypeAndKey.getKey())){
CompeteVo.CompeteCompany company = new CompeteVo.CompeteCompany();
company.setGroupId(competeCompany.getId());
company.setGroupName(competeCompany.getName());
companyList.add(company);
}
});
return companyList;
}
/**

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

@ -4,7 +4,7 @@
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="parend_id" jdbcType="BIGINT" property="parendId" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="leve" jdbcType="TINYINT" property="leve" />
<result column="team" jdbcType="TINYINT" property="team" />
<result column="join_rule" jdbcType="TINYINT" property="joinRule" />
@ -75,7 +75,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, name, parend_id, leve, team, join_rule, certificate, member_min, member_max,
id, name, parent_id, leve, team, join_rule, certificate, member_min, member_max,
type, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectExample" resultMap="BaseResultMap">
@ -109,12 +109,12 @@
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProject">
insert into t_compete_project (id, name, parend_id,
insert into t_compete_project (id, name, parent_id,
leve, team, join_rule,
certificate, member_min, member_max,
type, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{parendId,jdbcType=BIGINT},
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT},
#{leve,jdbcType=TINYINT}, #{team,jdbcType=TINYINT}, #{joinRule,jdbcType=TINYINT},
#{certificate,jdbcType=TINYINT}, #{memberMin,jdbcType=INTEGER}, #{memberMax,jdbcType=INTEGER},
#{type,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
@ -129,8 +129,8 @@
<if test="name != null">
name,
</if>
<if test="parendId != null">
parend_id,
<if test="parentId != null">
parent_id,
</if>
<if test="leve != null">
leve,
@ -170,8 +170,8 @@
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="parendId != null">
#{parendId,jdbcType=BIGINT},
<if test="parentId != null">
#{parentId,jdbcType=BIGINT},
</if>
<if test="leve != null">
#{leve,jdbcType=TINYINT},
@ -220,8 +220,8 @@
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.parendId != null">
parend_id = #{record.parendId,jdbcType=BIGINT},
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=BIGINT},
</if>
<if test="record.leve != null">
leve = #{record.leve,jdbcType=TINYINT},
@ -262,7 +262,7 @@
update t_compete_project
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
parend_id = #{record.parendId,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
leve = #{record.leve,jdbcType=TINYINT},
team = #{record.team,jdbcType=TINYINT},
join_rule = #{record.joinRule,jdbcType=TINYINT},
@ -283,8 +283,8 @@
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="parendId != null">
parend_id = #{parendId,jdbcType=BIGINT},
<if test="parentId != null">
parent_id = #{parentId,jdbcType=BIGINT},
</if>
<if test="leve != null">
leve = #{leve,jdbcType=TINYINT},
@ -322,7 +322,7 @@
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProject">
update t_compete_project
set name = #{name,jdbcType=VARCHAR},
parend_id = #{parendId,jdbcType=BIGINT},
parent_id = #{parentId,jdbcType=BIGINT},
leve = #{leve,jdbcType=TINYINT},
team = #{team,jdbcType=TINYINT},
join_rule = #{joinRule,jdbcType=TINYINT},

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

@ -4,7 +4,7 @@
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteProjectPlayer">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="player_id" jdbcType="BIGINT" property="playerId" />
<result column="porject_id" jdbcType="BIGINT" property="porjectId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="gender_group" jdbcType="TINYINT" property="genderGroup" />
<result column="certificate" jdbcType="TINYINT" property="certificate" />
@ -71,7 +71,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, player_id, porject_id, compete_time_id, gender_group, certificate, created_at,
id, player_id, project_id, compete_time_id, gender_group, certificate, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayerExample" resultMap="BaseResultMap">
@ -105,11 +105,11 @@
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
insert into t_compete_project_player (id, player_id, porject_id,
insert into t_compete_project_player (id, player_id, project_id,
compete_time_id, gender_group, certificate,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{porjectId,jdbcType=BIGINT},
values (#{id,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT},
#{competeTimeId,jdbcType=BIGINT}, #{genderGroup,jdbcType=TINYINT}, #{certificate,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
@ -123,8 +123,8 @@
<if test="playerId != null">
player_id,
</if>
<if test="porjectId != null">
porject_id,
<if test="projectId != null">
project_id,
</if>
<if test="competeTimeId != null">
compete_time_id,
@ -152,8 +152,8 @@
<if test="playerId != null">
#{playerId,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
#{porjectId,jdbcType=BIGINT},
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
@ -190,8 +190,8 @@
<if test="record.playerId != null">
player_id = #{record.playerId,jdbcType=BIGINT},
</if>
<if test="record.porjectId != null">
porject_id = #{record.porjectId,jdbcType=BIGINT},
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
@ -220,7 +220,7 @@
update t_compete_project_player
set id = #{record.id,jdbcType=BIGINT},
player_id = #{record.playerId,jdbcType=BIGINT},
porject_id = #{record.porjectId,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
gender_group = #{record.genderGroup,jdbcType=TINYINT},
certificate = #{record.certificate,jdbcType=TINYINT},
@ -237,8 +237,8 @@
<if test="playerId != null">
player_id = #{playerId,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
porject_id = #{porjectId,jdbcType=BIGINT},
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
@ -264,7 +264,7 @@
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteProjectPlayer">
update t_compete_project_player
set player_id = #{playerId,jdbcType=BIGINT},
porject_id = #{porjectId,jdbcType=BIGINT},
project_id = #{projectId,jdbcType=BIGINT},
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
gender_group = #{genderGroup,jdbcType=TINYINT},
certificate = #{certificate,jdbcType=TINYINT},

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

@ -4,7 +4,7 @@
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.CompeteTeam">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="creator" jdbcType="BIGINT" property="creator" />
<result column="porject_id" jdbcType="BIGINT" property="porjectId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" />
<result column="gender_group" jdbcType="TINYINT" property="genderGroup" />
<result column="certificate" jdbcType="TINYINT" property="certificate" />
@ -72,7 +72,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, creator, porject_id, compete_time_id, gender_group, certificate, qr_code, created_at,
id, creator, project_id, compete_time_id, gender_group, certificate, qr_code, created_at,
updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteTeamExample" resultMap="BaseResultMap">
@ -106,11 +106,11 @@
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
insert into t_compete_team (id, creator, porject_id,
insert into t_compete_team (id, creator, project_id,
compete_time_id, gender_group, certificate,
qr_code, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{porjectId,jdbcType=BIGINT},
values (#{id,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT},
#{competeTimeId,jdbcType=BIGINT}, #{genderGroup,jdbcType=TINYINT}, #{certificate,jdbcType=TINYINT},
#{qrCode,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
@ -124,8 +124,8 @@
<if test="creator != null">
creator,
</if>
<if test="porjectId != null">
porject_id,
<if test="projectId != null">
project_id,
</if>
<if test="competeTimeId != null">
compete_time_id,
@ -156,8 +156,8 @@
<if test="creator != null">
#{creator,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
#{porjectId,jdbcType=BIGINT},
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
#{competeTimeId,jdbcType=BIGINT},
@ -197,8 +197,8 @@
<if test="record.creator != null">
creator = #{record.creator,jdbcType=BIGINT},
</if>
<if test="record.porjectId != null">
porject_id = #{record.porjectId,jdbcType=BIGINT},
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.competeTimeId != null">
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
@ -230,7 +230,7 @@
update t_compete_team
set id = #{record.id,jdbcType=BIGINT},
creator = #{record.creator,jdbcType=BIGINT},
porject_id = #{record.porjectId,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
gender_group = #{record.genderGroup,jdbcType=TINYINT},
certificate = #{record.certificate,jdbcType=TINYINT},
@ -248,8 +248,8 @@
<if test="creator != null">
creator = #{creator,jdbcType=BIGINT},
</if>
<if test="porjectId != null">
porject_id = #{porjectId,jdbcType=BIGINT},
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="competeTimeId != null">
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
@ -278,7 +278,7 @@
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.CompeteTeam">
update t_compete_team
set creator = #{creator,jdbcType=BIGINT},
porject_id = #{porjectId,jdbcType=BIGINT},
project_id = #{projectId,jdbcType=BIGINT},
compete_time_id = #{competeTimeId,jdbcType=BIGINT},
gender_group = #{genderGroup,jdbcType=TINYINT},
certificate = #{certificate,jdbcType=TINYINT},

Loading…
Cancel
Save