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

View File

@ -3,14 +3,14 @@ package io.metersphere.load.domain;
import java.util.ArrayList;
import java.util.List;
public class LoadTestFollowExample {
public class LoadTestFollowerExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public LoadTestFollowExample() {
public LoadTestFollowerExample() {
oredCriteria = new ArrayList<Criteria>();
}
@ -174,73 +174,73 @@ public class LoadTestFollowExample {
return (Criteria) this;
}
public Criteria andFollowIdIsNull() {
addCriterion("follow_id is null");
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andFollowIdIsNotNull() {
addCriterion("follow_id is not null");
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andFollowIdEqualTo(String value) {
addCriterion("follow_id =", value, "followId");
public Criteria andUserIdEqualTo(String value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdNotEqualTo(String value) {
addCriterion("follow_id <>", value, "followId");
public Criteria andUserIdNotEqualTo(String value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdGreaterThan(String value) {
addCriterion("follow_id >", value, "followId");
public Criteria andUserIdGreaterThan(String value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdGreaterThanOrEqualTo(String value) {
addCriterion("follow_id >=", value, "followId");
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdLessThan(String value) {
addCriterion("follow_id <", value, "followId");
public Criteria andUserIdLessThan(String value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdLessThanOrEqualTo(String value) {
addCriterion("follow_id <=", value, "followId");
public Criteria andUserIdLessThanOrEqualTo(String value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdLike(String value) {
addCriterion("follow_id like", value, "followId");
public Criteria andUserIdLike(String value) {
addCriterion("user_id like", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdNotLike(String value) {
addCriterion("follow_id not like", value, "followId");
public Criteria andUserIdNotLike(String value) {
addCriterion("user_id not like", value, "userId");
return (Criteria) this;
}
public Criteria andFollowIdIn(List<String> values) {
addCriterion("follow_id in", values, "followId");
public Criteria andUserIdIn(List<String> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andFollowIdNotIn(List<String> values) {
addCriterion("follow_id not in", values, "followId");
public Criteria andUserIdNotIn(List<String> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andFollowIdBetween(String value1, String value2) {
addCriterion("follow_id between", value1, value2, "followId");
public Criteria andUserIdBetween(String value1, String value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andFollowIdNotBetween(String value1, String value2) {
addCriterion("follow_id not between", value1, value2, "followId");
public Criteria andUserIdNotBetween(String value1, String value2) {
addCriterion("user_id not between", value1, value2, "userId");
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"?>
<!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">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFollow">
<mapper namespace="io.metersphere.load.mapper.LoadTestFollowerMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFollower">
<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>
<sql id="Example_Where_Clause">
<where>
@ -64,15 +64,15 @@
</where>
</sql>
<sql id="Base_Column_List">
test_id, follow_id
test_id, user_id
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_follow
from load_test_follower
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -80,49 +80,49 @@
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample">
delete from load_test_follow
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample">
delete from load_test_follower
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFollow">
insert into load_test_follow (test_id, follow_id)
values (#{testId,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR})
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFollower">
insert into load_test_follower (test_id, user_id)
values (#{testId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFollow">
insert into load_test_follow
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFollower">
insert into load_test_follower
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="testId != null">
test_id,
</if>
<if test="followId != null">
follow_id,
<if test="userId != null">
user_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="testId != null">
#{testId,jdbcType=VARCHAR},
</if>
<if test="followId != null">
#{followId,jdbcType=VARCHAR},
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultType="java.lang.Long">
select count(*) from load_test_follow
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFollowerExample" resultType="java.lang.Long">
select count(*) from load_test_follower
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_follow
update load_test_follower
<set>
<if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if test="record.followId != null">
follow_id = #{record.followId,jdbcType=VARCHAR},
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
@ -130,9 +130,9 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_follow
update load_test_follower
set test_id = #{record.testId,jdbcType=VARCHAR},
follow_id = #{record.followId,jdbcType=VARCHAR}
user_id = #{record.userId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</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.report_id.length_range=
load_test_report_result.report_id.not_blank=
load_test_follow.test_id.length_range=
load_test_follow.test_id.not_blank=
load_test_follow.follow_id.length_range=
load_test_follow.follow_id.not_blank=
load_test_follower.test_id.length_range=
load_test_follower.test_id.not_blank=
load_test_follower.user_id.length_range=
load_test_follower.user_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.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.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_follow.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_follow.follow_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.test_id.length_range=Load Test Follow Test ID must be between {min} and {max} characters
load_test_follower.test_id.not_blank=Load Test Follow Test ID is required
load_test_follower.user_id.length_range=Load Test Follow ID must be between {min} and {max} characters
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_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

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.report_id.length_range=性能测试报告结果报告ID长度范围为{min}到{max}
load_test_report_result.report_id.not_blank=性能测试报告结果报告ID不能为空
load_test_follow.test_id.length_range=性能测试ID长度范围为{min}到{max}
load_test_follow.test_id.not_blank=性能测试ID不能为空
load_test_follow.follow_id.length_range=性能测试关注ID长度范围为{min}到{max}
load_test_follow.follow_id.not_blank=性能测试关注ID不能为空
load_test_follower.test_id.length_range=性能测试ID长度范围为{min}到{max}
load_test_follower.test_id.not_blank=性能测试ID不能为空
load_test_follower.user_id.length_range=性能测试关注ID长度范围为{min}到{max}
load_test_follower.user_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.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.report_id.length_range=性能測試報告結果報告ID長度範圍為{min}到{max}
load_test_report_result.report_id.not_blank=性能測試報告結果報告ID不能為空
load_test_follow.test_id.length_range=性能測試ID長度範圍為{min}到{max}
load_test_follow.test_id.not_blank=性能測試ID不能為空
load_test_follow.follow_id.length_range=性能測試關注ID長度範圍為{min}到{max}
load_test_follow.follow_id.not_blank=性能測試關注ID不能為空
load_test_follower.test_id.length_range=性能測試ID長度範圍為{min}到{max}
load_test_follower.test_id.not_blank=性能測試ID不能為空
load_test_follower.user_id.length_range=性能測試關注ID長度範圍為{min}到{max}
load_test_follower.user_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.resource_index.not_blank=性能測試報告結果資源索引不能為空