build: load domain

This commit is contained in:
CaptainB 2023-05-31 11:23:09 +08:00 committed by f2c-ci-robot[bot]
parent 30198dc8c6
commit cc5fbdac44
9 changed files with 98 additions and 98 deletions

View File

@ -7,16 +7,16 @@ import java.io.Serializable;
import lombok.Data; import lombok.Data;
@Data @Data
public class LoadTestFollow implements Serializable { public class LoadTestFollower implements Serializable {
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_follow.test_id.not_blank}", groups = {Created.class}) @NotBlank(message = "{load_test_follower.test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_follow.test_id.length_range}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 50, message = "{load_test_follower.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId; private String testId;
@Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_follow.follow_id.not_blank}", groups = {Created.class}) @NotBlank(message = "{load_test_follower.user_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_follow.follow_id.length_range}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 50, message = "{load_test_follower.user_id.length_range}", groups = {Created.class, Updated.class})
private String followId; private String userId;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

View File

@ -3,14 +3,14 @@ package io.metersphere.load.domain;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
public class LoadTestFollowExample { public class LoadTestFollowerExample {
protected String orderByClause; protected String orderByClause;
protected boolean distinct; protected boolean distinct;
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
public LoadTestFollowExample() { public LoadTestFollowerExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
@ -174,73 +174,73 @@ public class LoadTestFollowExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdIsNull() { public Criteria andUserIdIsNull() {
addCriterion("follow_id is null"); addCriterion("user_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdIsNotNull() { public Criteria andUserIdIsNotNull() {
addCriterion("follow_id is not null"); addCriterion("user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdEqualTo(String value) { public Criteria andUserIdEqualTo(String value) {
addCriterion("follow_id =", value, "followId"); addCriterion("user_id =", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdNotEqualTo(String value) { public Criteria andUserIdNotEqualTo(String value) {
addCriterion("follow_id <>", value, "followId"); addCriterion("user_id <>", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdGreaterThan(String value) { public Criteria andUserIdGreaterThan(String value) {
addCriterion("follow_id >", value, "followId"); addCriterion("user_id >", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdGreaterThanOrEqualTo(String value) { public Criteria andUserIdGreaterThanOrEqualTo(String value) {
addCriterion("follow_id >=", value, "followId"); addCriterion("user_id >=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdLessThan(String value) { public Criteria andUserIdLessThan(String value) {
addCriterion("follow_id <", value, "followId"); addCriterion("user_id <", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdLessThanOrEqualTo(String value) { public Criteria andUserIdLessThanOrEqualTo(String value) {
addCriterion("follow_id <=", value, "followId"); addCriterion("user_id <=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdLike(String value) { public Criteria andUserIdLike(String value) {
addCriterion("follow_id like", value, "followId"); addCriterion("user_id like", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdNotLike(String value) { public Criteria andUserIdNotLike(String value) {
addCriterion("follow_id not like", value, "followId"); addCriterion("user_id not like", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdIn(List<String> values) { public Criteria andUserIdIn(List<String> values) {
addCriterion("follow_id in", values, "followId"); addCriterion("user_id in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdNotIn(List<String> values) { public Criteria andUserIdNotIn(List<String> values) {
addCriterion("follow_id not in", values, "followId"); addCriterion("user_id not in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdBetween(String value1, String value2) { public Criteria andUserIdBetween(String value1, String value2) {
addCriterion("follow_id between", value1, value2, "followId"); addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFollowIdNotBetween(String value1, String value2) { public Criteria andUserIdNotBetween(String value1, String value2) {
addCriterion("follow_id not between", value1, value2, "followId"); addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
} }

View File

@ -1,22 +0,0 @@
package io.metersphere.load.mapper;
import io.metersphere.load.domain.LoadTestFollow;
import io.metersphere.load.domain.LoadTestFollowExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LoadTestFollowMapper {
long countByExample(LoadTestFollowExample example);
int deleteByExample(LoadTestFollowExample example);
int insert(LoadTestFollow record);
int insertSelective(LoadTestFollow record);
List<LoadTestFollow> selectByExample(LoadTestFollowExample example);
int updateByExampleSelective(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
int updateByExample(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
}

View File

@ -0,0 +1,22 @@
package io.metersphere.load.mapper;
import io.metersphere.load.domain.LoadTestFollower;
import io.metersphere.load.domain.LoadTestFollowerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LoadTestFollowerMapper {
long countByExample(LoadTestFollowerExample example);
int deleteByExample(LoadTestFollowerExample example);
int insert(LoadTestFollower record);
int insertSelective(LoadTestFollower record);
List<LoadTestFollower> selectByExample(LoadTestFollowerExample example);
int updateByExampleSelective(@Param("record") LoadTestFollower record, @Param("example") LoadTestFollowerExample example);
int updateByExample(@Param("record") LoadTestFollower record, @Param("example") LoadTestFollowerExample example);
}

View File

@ -1,9 +1,9 @@
<?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="io.metersphere.load.mapper.LoadTestFollowMapper"> <mapper namespace="io.metersphere.load.mapper.LoadTestFollowerMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFollow"> <resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFollower">
<result column="test_id" jdbcType="VARCHAR" property="testId" /> <result column="test_id" jdbcType="VARCHAR" property="testId" />
<result column="follow_id" jdbcType="VARCHAR" property="followId" /> <result column="user_id" jdbcType="VARCHAR" property="userId" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
@ -64,15 +64,15 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
test_id, follow_id test_id, user_id
</sql> </sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
</if> </if>
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from load_test_follow from load_test_follower
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
@ -80,49 +80,49 @@
order by ${orderByClause} order by ${orderByClause}
</if> </if>
</select> </select>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample"> <delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample">
delete from load_test_follow delete from load_test_follower
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFollow"> <insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFollower">
insert into load_test_follow (test_id, follow_id) insert into load_test_follower (test_id, user_id)
values (#{testId,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR}) values (#{testId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFollow"> <insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFollower">
insert into load_test_follow insert into load_test_follower
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="testId != null"> <if test="testId != null">
test_id, test_id,
</if> </if>
<if test="followId != null"> <if test="userId != null">
follow_id, user_id,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="testId != null"> <if test="testId != null">
#{testId,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR},
</if> </if>
<if test="followId != null"> <if test="userId != null">
#{followId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample" resultType="java.lang.Long">
select count(*) from load_test_follow select count(*) from load_test_follower
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</select> </select>
<update id="updateByExampleSelective" parameterType="map"> <update id="updateByExampleSelective" parameterType="map">
update load_test_follow update load_test_follower
<set> <set>
<if test="record.testId != null"> <if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR}, test_id = #{record.testId,jdbcType=VARCHAR},
</if> </if>
<if test="record.followId != null"> <if test="record.userId != null">
follow_id = #{record.followId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
</if> </if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
@ -130,9 +130,9 @@
</if> </if>
</update> </update>
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
update load_test_follow update load_test_follower
set test_id = #{record.testId,jdbcType=VARCHAR}, set test_id = #{record.testId,jdbcType=VARCHAR},
follow_id = #{record.followId,jdbcType=VARCHAR} user_id = #{record.userId,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>

View File

@ -20,10 +20,10 @@ load_test_report.version_id.not_blank=
load_test_report_result.id.not_blank= load_test_report_result.id.not_blank=
load_test_report_result.report_id.length_range= load_test_report_result.report_id.length_range=
load_test_report_result.report_id.not_blank= load_test_report_result.report_id.not_blank=
load_test_follow.test_id.length_range= load_test_follower.test_id.length_range=
load_test_follow.test_id.not_blank= load_test_follower.test_id.not_blank=
load_test_follow.follow_id.length_range= load_test_follower.user_id.length_range=
load_test_follow.follow_id.not_blank= load_test_follower.user_id.not_blank=
load_test_report_result_part.report_id.not_blank= load_test_report_result_part.report_id.not_blank=
load_test_report_result_part.report_key.not_blank= load_test_report_result_part.report_key.not_blank=
load_test_report_result_part.resource_index.not_blank= load_test_report_result_part.resource_index.not_blank=

View File

@ -20,10 +20,10 @@ load_test_report.version_id.not_blank=Load Test Report Version ID is required
load_test_report_result.id.not_blank=Load Test Report Result ID is required load_test_report_result.id.not_blank=Load Test Report Result ID is required
load_test_report_result.report_id.length_range=Load Test Report Result Report ID must be between {min} and {max} characters load_test_report_result.report_id.length_range=Load Test Report Result Report ID must be between {min} and {max} characters
load_test_report_result.report_id.not_blank=Load Test Report Result Report ID is required load_test_report_result.report_id.not_blank=Load Test Report Result Report ID is required
load_test_follow.test_id.length_range=Load Test Follow Test ID must be between {min} and {max} characters load_test_follower.test_id.length_range=Load Test Follow Test ID must be between {min} and {max} characters
load_test_follow.test_id.not_blank=Load Test Follow Test ID is required load_test_follower.test_id.not_blank=Load Test Follow Test ID is required
load_test_follow.follow_id.length_range=Load Test Follow ID must be between {min} and {max} characters load_test_follower.user_id.length_range=Load Test Follow ID must be between {min} and {max} characters
load_test_follow.follow_id.not_blank=Load Test Follow ID is required load_test_follower.user_id.not_blank=Load Test Follow ID is required
load_test_report_result_part.report_id.not_blank=Load Test Report Result Part Report ID is required load_test_report_result_part.report_id.not_blank=Load Test Report Result Part Report ID is required
load_test_report_result_part.report_key.not_blank=Load Test Report Result Part Report Key is required load_test_report_result_part.report_key.not_blank=Load Test Report Result Part Report Key is required
load_test_report_result_part.resource_index.not_blank=Load Test Report Result Part Resource Index is required load_test_report_result_part.resource_index.not_blank=Load Test Report Result Part Resource Index is required

View File

@ -20,10 +20,10 @@ load_test_report.version_id.not_blank=性能测试报告版本ID不能为空
load_test_report_result.id.not_blank=性能测试报告结果ID不能为空 load_test_report_result.id.not_blank=性能测试报告结果ID不能为空
load_test_report_result.report_id.length_range=性能测试报告结果报告ID长度范围为{min}到{max} load_test_report_result.report_id.length_range=性能测试报告结果报告ID长度范围为{min}到{max}
load_test_report_result.report_id.not_blank=性能测试报告结果报告ID不能为空 load_test_report_result.report_id.not_blank=性能测试报告结果报告ID不能为空
load_test_follow.test_id.length_range=性能测试ID长度范围为{min}到{max} load_test_follower.test_id.length_range=性能测试ID长度范围为{min}到{max}
load_test_follow.test_id.not_blank=性能测试ID不能为空 load_test_follower.test_id.not_blank=性能测试ID不能为空
load_test_follow.follow_id.length_range=性能测试关注ID长度范围为{min}到{max} load_test_follower.user_id.length_range=性能测试关注ID长度范围为{min}到{max}
load_test_follow.follow_id.not_blank=性能测试关注ID不能为空 load_test_follower.user_id.not_blank=性能测试关注ID不能为空
load_test_report_result_part.report_id.not_blank=性能测试报告结果报告ID不能为空 load_test_report_result_part.report_id.not_blank=性能测试报告结果报告ID不能为空
load_test_report_result_part.report_key.not_blank=性能测试报告结果报告KEY不能为空 load_test_report_result_part.report_key.not_blank=性能测试报告结果报告KEY不能为空
load_test_report_result_part.resource_index.not_blank=性能测试报告结果资源索引不能为空 load_test_report_result_part.resource_index.not_blank=性能测试报告结果资源索引不能为空

View File

@ -20,10 +20,10 @@ load_test_report.version_id.not_blank=性能測試報告版本ID不能為空
load_test_report_result.id.not_blank=性能測試報告結果ID不能為空 load_test_report_result.id.not_blank=性能測試報告結果ID不能為空
load_test_report_result.report_id.length_range=性能測試報告結果報告ID長度範圍為{min}到{max} load_test_report_result.report_id.length_range=性能測試報告結果報告ID長度範圍為{min}到{max}
load_test_report_result.report_id.not_blank=性能測試報告結果報告ID不能為空 load_test_report_result.report_id.not_blank=性能測試報告結果報告ID不能為空
load_test_follow.test_id.length_range=性能測試ID長度範圍為{min}到{max} load_test_follower.test_id.length_range=性能測試ID長度範圍為{min}到{max}
load_test_follow.test_id.not_blank=性能測試ID不能為空 load_test_follower.test_id.not_blank=性能測試ID不能為空
load_test_follow.follow_id.length_range=性能測試關注ID長度範圍為{min}到{max} load_test_follower.user_id.length_range=性能測試關注ID長度範圍為{min}到{max}
load_test_follow.follow_id.not_blank=性能測試關注ID不能為空 load_test_follower.user_id.not_blank=性能測試關注ID不能為空
load_test_report_result_part.report_id.not_blank=性能測試報告結果報告ID不能為空 load_test_report_result_part.report_id.not_blank=性能測試報告結果報告ID不能為空
load_test_report_result_part.report_key.not_blank=性能測試報告結果報告KEY不能為空 load_test_report_result_part.report_key.not_blank=性能測試報告結果報告KEY不能為空
load_test_report_result_part.resource_index.not_blank=性能測試報告結果資源索引不能為空 load_test_report_result_part.resource_index.not_blank=性能測試報告結果資源索引不能為空