51 changed files with 2297 additions and 1339 deletions
@ -0,0 +1,51 @@ |
|||||
|
package com.ccsens.mt.api; |
||||
|
|
||||
|
import com.ccsens.cloudutil.annotation.MustLogin; |
||||
|
import com.ccsens.mt.bean.dto.CompeteDto; |
||||
|
import com.ccsens.mt.bean.vo.CompeteVo; |
||||
|
import com.ccsens.mt.service.ICompeteService; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import com.ccsens.util.bean.dto.QueryDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import io.swagger.annotations.ApiParam; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
/** |
||||
|
* @author 逗 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Api(tags = "线上体育竞技比赛", description = "") |
||||
|
@RestController |
||||
|
@RequestMapping("/compete") |
||||
|
public class CompeteScoreController { |
||||
|
@Resource |
||||
|
private ICompeteService competeService; |
||||
|
|
||||
|
@MustLogin |
||||
|
@ApiOperation(value = "查询比赛项目上的参赛选手列表", notes = "") |
||||
|
@RequestMapping(value = "/get/playerList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
||||
|
public JsonResponse<CompeteVo.QueryPlayerList> queryPlayerList(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) { |
||||
|
log.info("查询比赛项目上的参赛选手列表:{}",params); |
||||
|
CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params); |
||||
|
return JsonResponse.newInstance().ok(playerList); |
||||
|
} |
||||
|
|
||||
|
// @MustLogin
|
||||
|
// @ApiOperation(value = "查看单个选手的信息和分数", notes = "")
|
||||
|
// @RequestMapping(value = "/get/player", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
||||
|
// public JsonResponse<CompeteVo.QueryPlayerList> getPlayerInfo(@ApiParam @Validated @RequestBody QueryDto<CompeteDto.CompeteProjectId> params) {
|
||||
|
// log.info("查询比赛项目上的参赛选手列表:{}",params);
|
||||
|
// CompeteVo.QueryPlayerList playerList = competeService.queryPlayerList(params);
|
||||
|
// return JsonResponse.newInstance().ok(playerList);
|
||||
|
// }
|
||||
|
|
||||
|
|
||||
|
} |
@ -1,4 +1,4 @@ |
|||||
spring: |
spring: |
||||
profiles: |
profiles: |
||||
active: dev |
active: test |
||||
include: common, util-dev |
include: common, util-test |
@ -1,117 +1,128 @@ |
|||||
package com.ccsens.tall.bean.po; |
package com.ccsens.tall.bean.po; |
||||
|
|
||||
import java.io.Serializable; |
import java.io.Serializable; |
||||
import java.util.Date; |
import java.util.Date; |
||||
|
|
||||
public class ProRole implements Serializable { |
public class ProRole implements Serializable { |
||||
private Long id; |
private Long id; |
||||
|
|
||||
private Long projectId; |
private Long projectId; |
||||
|
|
||||
private Long parentId; |
private Long parentId; |
||||
|
|
||||
private String name; |
private String name; |
||||
|
|
||||
private String description; |
private String description; |
||||
|
|
||||
private Integer sequence; |
private Integer sequence; |
||||
|
|
||||
private Date createdAt; |
private Date createdAt; |
||||
|
|
||||
private Date updatedAt; |
private Date updatedAt; |
||||
|
|
||||
private Byte recStatus; |
private Byte recStatus; |
||||
|
|
||||
private static final long serialVersionUID = 1L; |
private Long relevanceProjectId; |
||||
|
|
||||
public Long getId() { |
private static final long serialVersionUID = 1L; |
||||
return id; |
|
||||
} |
public Long getId() { |
||||
|
return id; |
||||
public void setId(Long id) { |
} |
||||
this.id = id; |
|
||||
} |
public void setId(Long id) { |
||||
|
this.id = id; |
||||
public Long getProjectId() { |
} |
||||
return projectId; |
|
||||
} |
public Long getProjectId() { |
||||
|
return projectId; |
||||
public void setProjectId(Long projectId) { |
} |
||||
this.projectId = projectId; |
|
||||
} |
public void setProjectId(Long projectId) { |
||||
|
this.projectId = projectId; |
||||
public Long getParentId() { |
} |
||||
return parentId; |
|
||||
} |
public Long getParentId() { |
||||
|
return parentId; |
||||
public void setParentId(Long parentId) { |
} |
||||
this.parentId = parentId; |
|
||||
} |
public void setParentId(Long parentId) { |
||||
|
this.parentId = parentId; |
||||
public String getName() { |
} |
||||
return name; |
|
||||
} |
public String getName() { |
||||
|
return name; |
||||
public void setName(String name) { |
} |
||||
this.name = name == null ? null : name.trim(); |
|
||||
} |
public void setName(String name) { |
||||
|
this.name = name == null ? null : name.trim(); |
||||
public String getDescription() { |
} |
||||
return description; |
|
||||
} |
public String getDescription() { |
||||
|
return description; |
||||
public void setDescription(String description) { |
} |
||||
this.description = description == null ? null : description.trim(); |
|
||||
} |
public void setDescription(String description) { |
||||
|
this.description = description == null ? null : description.trim(); |
||||
public Integer getSequence() { |
} |
||||
return sequence; |
|
||||
} |
public Integer getSequence() { |
||||
|
return sequence; |
||||
public void setSequence(Integer sequence) { |
} |
||||
this.sequence = sequence; |
|
||||
} |
public void setSequence(Integer sequence) { |
||||
|
this.sequence = sequence; |
||||
public Date getCreatedAt() { |
} |
||||
return createdAt; |
|
||||
} |
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
public void setCreatedAt(Date createdAt) { |
} |
||||
this.createdAt = createdAt; |
|
||||
} |
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
public Date getUpdatedAt() { |
} |
||||
return updatedAt; |
|
||||
} |
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
public void setUpdatedAt(Date updatedAt) { |
} |
||||
this.updatedAt = updatedAt; |
|
||||
} |
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
public Byte getRecStatus() { |
} |
||||
return recStatus; |
|
||||
} |
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
public void setRecStatus(Byte recStatus) { |
} |
||||
this.recStatus = recStatus; |
|
||||
} |
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
@Override |
} |
||||
public String toString() { |
|
||||
StringBuilder sb = new StringBuilder(); |
public Long getRelevanceProjectId() { |
||||
sb.append(getClass().getSimpleName()); |
return relevanceProjectId; |
||||
sb.append(" ["); |
} |
||||
sb.append("Hash = ").append(hashCode()); |
|
||||
sb.append(", id=").append(id); |
public void setRelevanceProjectId(Long relevanceProjectId) { |
||||
sb.append(", projectId=").append(projectId); |
this.relevanceProjectId = relevanceProjectId; |
||||
sb.append(", parentId=").append(parentId); |
} |
||||
sb.append(", name=").append(name); |
|
||||
sb.append(", description=").append(description); |
@Override |
||||
sb.append(", sequence=").append(sequence); |
public String toString() { |
||||
sb.append(", createdAt=").append(createdAt); |
StringBuilder sb = new StringBuilder(); |
||||
sb.append(", updatedAt=").append(updatedAt); |
sb.append(getClass().getSimpleName()); |
||||
sb.append(", recStatus=").append(recStatus); |
sb.append(" ["); |
||||
sb.append("]"); |
sb.append("Hash = ").append(hashCode()); |
||||
return sb.toString(); |
sb.append(", id=").append(id); |
||||
} |
sb.append(", projectId=").append(projectId); |
||||
|
sb.append(", parentId=").append(parentId); |
||||
|
sb.append(", name=").append(name); |
||||
|
sb.append(", description=").append(description); |
||||
|
sb.append(", sequence=").append(sequence); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append(", relevanceProjectId=").append(relevanceProjectId); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
} |
} |
File diff suppressed because it is too large
@ -1,31 +1,30 @@ |
|||||
package com.ccsens.tall.persist.mapper; |
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
import com.ccsens.tall.bean.po.ProRole; |
import com.ccsens.tall.bean.po.ProRole; |
||||
import com.ccsens.tall.bean.po.ProRoleExample; |
import com.ccsens.tall.bean.po.ProRoleExample; |
||||
import org.apache.ibatis.annotations.Param; |
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
|
||||
|
public interface ProRoleMapper { |
||||
public interface ProRoleMapper { |
long countByExample(ProRoleExample example); |
||||
long countByExample(ProRoleExample example); |
|
||||
|
int deleteByExample(ProRoleExample example); |
||||
int deleteByExample(ProRoleExample example); |
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
int deleteByPrimaryKey(Long id); |
|
||||
|
int insert(ProRole record); |
||||
int insert(ProRole record); |
|
||||
|
int insertSelective(ProRole record); |
||||
int insertSelective(ProRole record); |
|
||||
|
List<ProRole> selectByExample(ProRoleExample example); |
||||
List<ProRole> selectByExample(ProRoleExample example); |
|
||||
|
ProRole selectByPrimaryKey(Long id); |
||||
ProRole selectByPrimaryKey(Long id); |
|
||||
|
int updateByExampleSelective(@Param("record") ProRole record, @Param("example") ProRoleExample example); |
||||
int updateByExampleSelective(@Param("record") ProRole record, @Param("example") ProRoleExample example); |
|
||||
|
int updateByExample(@Param("record") ProRole record, @Param("example") ProRoleExample example); |
||||
int updateByExample(@Param("record") ProRole record, @Param("example") ProRoleExample example); |
|
||||
|
int updateByPrimaryKeySelective(ProRole record); |
||||
int updateByPrimaryKeySelective(ProRole record); |
|
||||
|
int updateByPrimaryKey(ProRole record); |
||||
int updateByPrimaryKey(ProRole record); |
|
||||
} |
} |
@ -1,4 +1,4 @@ |
|||||
spring: |
spring: |
||||
profiles: |
profiles: |
||||
active: test |
active: dev |
||||
include: util-test,common |
include: util-dev,common |
||||
|
@ -1,275 +1,291 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.ccsens.tall.persist.mapper.ProRoleMapper"> |
<mapper namespace="com.ccsens.tall.persist.mapper.ProRoleMapper"> |
||||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProRole"> |
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProRole"> |
||||
<id column="id" jdbcType="BIGINT" property="id" /> |
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
||||
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
||||
<result column="name" jdbcType="VARCHAR" property="name" /> |
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
<result column="description" jdbcType="VARCHAR" property="description" /> |
<result column="description" jdbcType="VARCHAR" property="description" /> |
||||
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
</resultMap> |
<result column="relevance_project_id" jdbcType="BIGINT" property="relevanceProjectId" /> |
||||
<sql id="Example_Where_Clause"> |
</resultMap> |
||||
<where> |
<sql id="Example_Where_Clause"> |
||||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
<where> |
||||
<if test="criteria.valid"> |
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<if test="criteria.valid"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<choose> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<when test="criterion.noValue"> |
<choose> |
||||
and ${criterion.condition} |
<when test="criterion.noValue"> |
||||
</when> |
and ${criterion.condition} |
||||
<when test="criterion.singleValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} |
<when test="criterion.singleValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} |
||||
<when test="criterion.betweenValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
<when test="criterion.betweenValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
<when test="criterion.listValue"> |
</when> |
||||
and ${criterion.condition} |
<when test="criterion.listValue"> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
and ${criterion.condition} |
||||
#{listItem} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
</foreach> |
#{listItem} |
||||
</when> |
</foreach> |
||||
</choose> |
</when> |
||||
</foreach> |
</choose> |
||||
</trim> |
</foreach> |
||||
</if> |
</trim> |
||||
</foreach> |
</if> |
||||
</where> |
</foreach> |
||||
</sql> |
</where> |
||||
<sql id="Update_By_Example_Where_Clause"> |
</sql> |
||||
<where> |
<sql id="Update_By_Example_Where_Clause"> |
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
<where> |
||||
<if test="criteria.valid"> |
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<if test="criteria.valid"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<choose> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<when test="criterion.noValue"> |
<choose> |
||||
and ${criterion.condition} |
<when test="criterion.noValue"> |
||||
</when> |
and ${criterion.condition} |
||||
<when test="criterion.singleValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} |
<when test="criterion.singleValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} |
||||
<when test="criterion.betweenValue"> |
</when> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
<when test="criterion.betweenValue"> |
||||
</when> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
<when test="criterion.listValue"> |
</when> |
||||
and ${criterion.condition} |
<when test="criterion.listValue"> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
and ${criterion.condition} |
||||
#{listItem} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
</foreach> |
#{listItem} |
||||
</when> |
</foreach> |
||||
</choose> |
</when> |
||||
</foreach> |
</choose> |
||||
</trim> |
</foreach> |
||||
</if> |
</trim> |
||||
</foreach> |
</if> |
||||
</where> |
</foreach> |
||||
</sql> |
</where> |
||||
<sql id="Base_Column_List"> |
</sql> |
||||
id, project_id, parent_id, name, description, sequence, created_at, updated_at, rec_status |
<sql id="Base_Column_List"> |
||||
</sql> |
id, project_id, parent_id, name, description, sequence, created_at, updated_at, rec_status, |
||||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample" resultMap="BaseResultMap"> |
relevance_project_id |
||||
select |
</sql> |
||||
<if test="distinct"> |
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample" resultMap="BaseResultMap"> |
||||
distinct |
select |
||||
</if> |
<if test="distinct"> |
||||
<include refid="Base_Column_List" /> |
distinct |
||||
from t_pro_role |
</if> |
||||
<if test="_parameter != null"> |
<include refid="Base_Column_List" /> |
||||
<include refid="Example_Where_Clause" /> |
from t_pro_role |
||||
</if> |
<if test="_parameter != null"> |
||||
<if test="orderByClause != null"> |
<include refid="Example_Where_Clause" /> |
||||
order by ${orderByClause} |
</if> |
||||
</if> |
<if test="orderByClause != null"> |
||||
</select> |
order by ${orderByClause} |
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
</if> |
||||
select |
</select> |
||||
<include refid="Base_Column_List" /> |
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
from t_pro_role |
select |
||||
where id = #{id,jdbcType=BIGINT} |
<include refid="Base_Column_List" /> |
||||
</select> |
from t_pro_role |
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
where id = #{id,jdbcType=BIGINT} |
||||
delete from t_pro_role |
</select> |
||||
where id = #{id,jdbcType=BIGINT} |
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
</delete> |
delete from t_pro_role |
||||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample"> |
where id = #{id,jdbcType=BIGINT} |
||||
delete from t_pro_role |
</delete> |
||||
<if test="_parameter != null"> |
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample"> |
||||
<include refid="Example_Where_Clause" /> |
delete from t_pro_role |
||||
</if> |
<if test="_parameter != null"> |
||||
</delete> |
<include refid="Example_Where_Clause" /> |
||||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProRole"> |
</if> |
||||
insert into t_pro_role (id, project_id, parent_id, |
</delete> |
||||
name, description, sequence, |
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProRole"> |
||||
created_at, updated_at, rec_status |
insert into t_pro_role (id, project_id, parent_id, |
||||
) |
name, description, sequence, |
||||
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, |
created_at, updated_at, rec_status, |
||||
#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{sequence,jdbcType=INTEGER}, |
relevance_project_id) |
||||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, |
||||
) |
#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{sequence,jdbcType=INTEGER}, |
||||
</insert> |
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
||||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProRole"> |
#{relevanceProjectId,jdbcType=BIGINT}) |
||||
insert into t_pro_role |
</insert> |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProRole"> |
||||
<if test="id != null"> |
insert into t_pro_role |
||||
id, |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
</if> |
<if test="id != null"> |
||||
<if test="projectId != null"> |
id, |
||||
project_id, |
</if> |
||||
</if> |
<if test="projectId != null"> |
||||
<if test="parentId != null"> |
project_id, |
||||
parent_id, |
</if> |
||||
</if> |
<if test="parentId != null"> |
||||
<if test="name != null"> |
parent_id, |
||||
name, |
</if> |
||||
</if> |
<if test="name != null"> |
||||
<if test="description != null"> |
name, |
||||
description, |
</if> |
||||
</if> |
<if test="description != null"> |
||||
<if test="sequence != null"> |
description, |
||||
sequence, |
</if> |
||||
</if> |
<if test="sequence != null"> |
||||
<if test="createdAt != null"> |
sequence, |
||||
created_at, |
</if> |
||||
</if> |
<if test="createdAt != null"> |
||||
<if test="updatedAt != null"> |
created_at, |
||||
updated_at, |
</if> |
||||
</if> |
<if test="updatedAt != null"> |
||||
<if test="recStatus != null"> |
updated_at, |
||||
rec_status, |
</if> |
||||
</if> |
<if test="recStatus != null"> |
||||
</trim> |
rec_status, |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
</if> |
||||
<if test="id != null"> |
<if test="relevanceProjectId != null"> |
||||
#{id,jdbcType=BIGINT}, |
relevance_project_id, |
||||
</if> |
</if> |
||||
<if test="projectId != null"> |
</trim> |
||||
#{projectId,jdbcType=BIGINT}, |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
</if> |
<if test="id != null"> |
||||
<if test="parentId != null"> |
#{id,jdbcType=BIGINT}, |
||||
#{parentId,jdbcType=BIGINT}, |
</if> |
||||
</if> |
<if test="projectId != null"> |
||||
<if test="name != null"> |
#{projectId,jdbcType=BIGINT}, |
||||
#{name,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="parentId != null"> |
||||
<if test="description != null"> |
#{parentId,jdbcType=BIGINT}, |
||||
#{description,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="name != null"> |
||||
<if test="sequence != null"> |
#{name,jdbcType=VARCHAR}, |
||||
#{sequence,jdbcType=INTEGER}, |
</if> |
||||
</if> |
<if test="description != null"> |
||||
<if test="createdAt != null"> |
#{description,jdbcType=VARCHAR}, |
||||
#{createdAt,jdbcType=TIMESTAMP}, |
</if> |
||||
</if> |
<if test="sequence != null"> |
||||
<if test="updatedAt != null"> |
#{sequence,jdbcType=INTEGER}, |
||||
#{updatedAt,jdbcType=TIMESTAMP}, |
</if> |
||||
</if> |
<if test="createdAt != null"> |
||||
<if test="recStatus != null"> |
#{createdAt,jdbcType=TIMESTAMP}, |
||||
#{recStatus,jdbcType=TINYINT}, |
</if> |
||||
</if> |
<if test="updatedAt != null"> |
||||
</trim> |
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
</insert> |
</if> |
||||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample" resultType="java.lang.Long"> |
<if test="recStatus != null"> |
||||
select count(*) from t_pro_role |
#{recStatus,jdbcType=TINYINT}, |
||||
<if test="_parameter != null"> |
</if> |
||||
<include refid="Example_Where_Clause" /> |
<if test="relevanceProjectId != null"> |
||||
</if> |
#{relevanceProjectId,jdbcType=BIGINT}, |
||||
</select> |
</if> |
||||
<update id="updateByExampleSelective" parameterType="map"> |
</trim> |
||||
update t_pro_role |
</insert> |
||||
<set> |
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProRoleExample" resultType="java.lang.Long"> |
||||
<if test="record.id != null"> |
select count(*) from t_pro_role |
||||
id = #{record.id,jdbcType=BIGINT}, |
<if test="_parameter != null"> |
||||
</if> |
<include refid="Example_Where_Clause" /> |
||||
<if test="record.projectId != null"> |
</if> |
||||
project_id = #{record.projectId,jdbcType=BIGINT}, |
</select> |
||||
</if> |
<update id="updateByExampleSelective" parameterType="map"> |
||||
<if test="record.parentId != null"> |
update t_pro_role |
||||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
<set> |
||||
</if> |
<if test="record.id != null"> |
||||
<if test="record.name != null"> |
id = #{record.id,jdbcType=BIGINT}, |
||||
name = #{record.name,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="record.projectId != null"> |
||||
<if test="record.description != null"> |
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
description = #{record.description,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="record.parentId != null"> |
||||
<if test="record.sequence != null"> |
parent_id = #{record.parentId,jdbcType=BIGINT}, |
||||
sequence = #{record.sequence,jdbcType=INTEGER}, |
</if> |
||||
</if> |
<if test="record.name != null"> |
||||
<if test="record.createdAt != null"> |
name = #{record.name,jdbcType=VARCHAR}, |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
</if> |
||||
</if> |
<if test="record.description != null"> |
||||
<if test="record.updatedAt != null"> |
description = #{record.description,jdbcType=VARCHAR}, |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
</if> |
||||
</if> |
<if test="record.sequence != null"> |
||||
<if test="record.recStatus != null"> |
sequence = #{record.sequence,jdbcType=INTEGER}, |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
</if> |
||||
</if> |
<if test="record.createdAt != null"> |
||||
</set> |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
<if test="_parameter != null"> |
</if> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
<if test="record.updatedAt != null"> |
||||
</if> |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
</update> |
</if> |
||||
<update id="updateByExample" parameterType="map"> |
<if test="record.recStatus != null"> |
||||
update t_pro_role |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
set id = #{record.id,jdbcType=BIGINT}, |
</if> |
||||
project_id = #{record.projectId,jdbcType=BIGINT}, |
<if test="record.relevanceProjectId != null"> |
||||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
relevance_project_id = #{record.relevanceProjectId,jdbcType=BIGINT}, |
||||
name = #{record.name,jdbcType=VARCHAR}, |
</if> |
||||
description = #{record.description,jdbcType=VARCHAR}, |
</set> |
||||
sequence = #{record.sequence,jdbcType=INTEGER}, |
<if test="_parameter != null"> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
<include refid="Update_By_Example_Where_Clause" /> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
</if> |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
</update> |
||||
<if test="_parameter != null"> |
<update id="updateByExample" parameterType="map"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
update t_pro_role |
||||
</if> |
set id = #{record.id,jdbcType=BIGINT}, |
||||
</update> |
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProRole"> |
parent_id = #{record.parentId,jdbcType=BIGINT}, |
||||
update t_pro_role |
name = #{record.name,jdbcType=VARCHAR}, |
||||
<set> |
description = #{record.description,jdbcType=VARCHAR}, |
||||
<if test="projectId != null"> |
sequence = #{record.sequence,jdbcType=INTEGER}, |
||||
project_id = #{projectId,jdbcType=BIGINT}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
<if test="parentId != null"> |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
parent_id = #{parentId,jdbcType=BIGINT}, |
relevance_project_id = #{record.relevanceProjectId,jdbcType=BIGINT} |
||||
</if> |
<if test="_parameter != null"> |
||||
<if test="name != null"> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
name = #{name,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
</update> |
||||
<if test="description != null"> |
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProRole"> |
||||
description = #{description,jdbcType=VARCHAR}, |
update t_pro_role |
||||
</if> |
<set> |
||||
<if test="sequence != null"> |
<if test="projectId != null"> |
||||
sequence = #{sequence,jdbcType=INTEGER}, |
project_id = #{projectId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="parentId != null"> |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
parent_id = #{parentId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="name != null"> |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
name = #{name,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="description != null"> |
||||
rec_status = #{recStatus,jdbcType=TINYINT}, |
description = #{description,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
</set> |
<if test="sequence != null"> |
||||
where id = #{id,jdbcType=BIGINT} |
sequence = #{sequence,jdbcType=INTEGER}, |
||||
</update> |
</if> |
||||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProRole"> |
<if test="createdAt != null"> |
||||
update t_pro_role |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
set project_id = #{projectId,jdbcType=BIGINT}, |
</if> |
||||
parent_id = #{parentId,jdbcType=BIGINT}, |
<if test="updatedAt != null"> |
||||
name = #{name,jdbcType=VARCHAR}, |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
description = #{description,jdbcType=VARCHAR}, |
</if> |
||||
sequence = #{sequence,jdbcType=INTEGER}, |
<if test="recStatus != null"> |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
</if> |
||||
rec_status = #{recStatus,jdbcType=TINYINT} |
<if test="relevanceProjectId != null"> |
||||
where id = #{id,jdbcType=BIGINT} |
relevance_project_id = #{relevanceProjectId,jdbcType=BIGINT}, |
||||
</update> |
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProRole"> |
||||
|
update t_pro_role |
||||
|
set project_id = #{projectId,jdbcType=BIGINT}, |
||||
|
parent_id = #{parentId,jdbcType=BIGINT}, |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
description = #{description,jdbcType=VARCHAR}, |
||||
|
sequence = #{sequence,jdbcType=INTEGER}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
relevance_project_id = #{relevanceProjectId,jdbcType=BIGINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue