From 133900359b96a43456047c1c46f9c8c140f83e7e Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 7 Sep 2023 18:07:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B6=88=E6=81=AF=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4MessageTask=E8=A1=A8=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/domain/MessageTask.java | 38 +- .../project/domain/MessageTaskExample.java | 530 +++++++++++------- .../project/mapper/MessageTaskMapper.xml | 185 +++--- 3 files changed, 465 insertions(+), 288 deletions(-) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java index 8da56434f8..78b9041fea 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java @@ -15,11 +15,6 @@ public class MessageTask implements Serializable { @Size(min = 1, max = 50, message = "{message_task.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{message_task.type.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{message_task.type.length_range}", groups = {Created.class, Updated.class}) - private String type; - @Schema(description = "通知事件类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.event.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{message_task.event.length_range}", groups = {Created.class, Updated.class}) @@ -30,22 +25,21 @@ public class MessageTask implements Serializable { @Size(min = 1, max = 50, message = "{message_task.receiver.length_range}", groups = {Created.class, Updated.class}) private String receiver; + @Schema(description = "机器人id", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{message_task.project_robot_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{message_task.project_robot_id.length_range}", groups = {Created.class, Updated.class}) + private String projectRobotId; + @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.task_type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{message_task.task_type.length_range}", groups = {Created.class, Updated.class}) private String taskType; - @Schema(description = "webhook地址") - private String webhook; - @Schema(description = "具体测试的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.test_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.test_id.length_range}", groups = {Created.class, Updated.class}) private String testId; - @Schema(description = "创建时间") - private Long createTime; - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.project_id.length_range}", groups = {Created.class, Updated.class}) @@ -55,19 +49,33 @@ public class MessageTask implements Serializable { @NotNull(message = "{message_task.enable.not_blank}", groups = {Created.class, Updated.class}) private Boolean enable; + @Schema(description = "创建人") + private String createUser; + + @Schema(description = "创建时间") + private Long createTime; + + @Schema(description = "修改人") + private String updateUser; + + @Schema(description = "更新时间") + private Long updateTime; + private static final long serialVersionUID = 1L; public enum Column { id("id", "id", "VARCHAR", false), - type("type", "type", "VARCHAR", true), event("event", "event", "VARCHAR", false), receiver("receiver", "receiver", "VARCHAR", false), + projectRobotId("project_robot_id", "projectRobotId", "VARCHAR", false), taskType("task_type", "taskType", "VARCHAR", false), - webhook("webhook", "webhook", "VARCHAR", false), testId("test_id", "testId", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), projectId("project_id", "projectId", "VARCHAR", false), - enable("enable", "enable", "BIT", true); + enable("enable", "enable", "BIT", true), + createUser("create_user", "createUser", "VARCHAR", false), + createTime("create_time", "createTime", "BIGINT", false), + updateUser("update_user", "updateUser", "VARCHAR", false), + updateTime("update_time", "updateTime", "BIGINT", false); private static final String BEGINNING_DELIMITER = "`"; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTaskExample.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTaskExample.java index 5cddacc247..e81003182b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTaskExample.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTaskExample.java @@ -174,76 +174,6 @@ public class MessageTaskExample { return (Criteria) this; } - public Criteria andTypeIsNull() { - addCriterion("`type` is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("`type` is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(String value) { - addCriterion("`type` =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(String value) { - addCriterion("`type` <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(String value) { - addCriterion("`type` >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("`type` >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(String value) { - addCriterion("`type` <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("`type` <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLike(String value) { - addCriterion("`type` like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotLike(String value) { - addCriterion("`type` not like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("`type` in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("`type` not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(String value1, String value2) { - addCriterion("`type` between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("`type` not between", value1, value2, "type"); - return (Criteria) this; - } - public Criteria andEventIsNull() { addCriterion("event is null"); return (Criteria) this; @@ -384,6 +314,76 @@ public class MessageTaskExample { return (Criteria) this; } + public Criteria andProjectRobotIdIsNull() { + addCriterion("project_robot_id is null"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdIsNotNull() { + addCriterion("project_robot_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdEqualTo(String value) { + addCriterion("project_robot_id =", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdNotEqualTo(String value) { + addCriterion("project_robot_id <>", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdGreaterThan(String value) { + addCriterion("project_robot_id >", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdGreaterThanOrEqualTo(String value) { + addCriterion("project_robot_id >=", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdLessThan(String value) { + addCriterion("project_robot_id <", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdLessThanOrEqualTo(String value) { + addCriterion("project_robot_id <=", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdLike(String value) { + addCriterion("project_robot_id like", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdNotLike(String value) { + addCriterion("project_robot_id not like", value, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdIn(List values) { + addCriterion("project_robot_id in", values, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdNotIn(List values) { + addCriterion("project_robot_id not in", values, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdBetween(String value1, String value2) { + addCriterion("project_robot_id between", value1, value2, "projectRobotId"); + return (Criteria) this; + } + + public Criteria andProjectRobotIdNotBetween(String value1, String value2) { + addCriterion("project_robot_id not between", value1, value2, "projectRobotId"); + return (Criteria) this; + } + public Criteria andTaskTypeIsNull() { addCriterion("task_type is null"); return (Criteria) this; @@ -454,76 +454,6 @@ public class MessageTaskExample { return (Criteria) this; } - public Criteria andWebhookIsNull() { - addCriterion("webhook is null"); - return (Criteria) this; - } - - public Criteria andWebhookIsNotNull() { - addCriterion("webhook is not null"); - return (Criteria) this; - } - - public Criteria andWebhookEqualTo(String value) { - addCriterion("webhook =", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookNotEqualTo(String value) { - addCriterion("webhook <>", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookGreaterThan(String value) { - addCriterion("webhook >", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookGreaterThanOrEqualTo(String value) { - addCriterion("webhook >=", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookLessThan(String value) { - addCriterion("webhook <", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookLessThanOrEqualTo(String value) { - addCriterion("webhook <=", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookLike(String value) { - addCriterion("webhook like", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookNotLike(String value) { - addCriterion("webhook not like", value, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookIn(List values) { - addCriterion("webhook in", values, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookNotIn(List values) { - addCriterion("webhook not in", values, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookBetween(String value1, String value2) { - addCriterion("webhook between", value1, value2, "webhook"); - return (Criteria) this; - } - - public Criteria andWebhookNotBetween(String value1, String value2) { - addCriterion("webhook not between", value1, value2, "webhook"); - return (Criteria) this; - } - public Criteria andTestIdIsNull() { addCriterion("test_id is null"); return (Criteria) this; @@ -594,66 +524,6 @@ public class MessageTaskExample { return (Criteria) this; } - public Criteria andCreateTimeIsNull() { - addCriterion("create_time is null"); - return (Criteria) this; - } - - public Criteria andCreateTimeIsNotNull() { - addCriterion("create_time is not null"); - return (Criteria) this; - } - - public Criteria andCreateTimeEqualTo(Long value) { - addCriterion("create_time =", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotEqualTo(Long value) { - addCriterion("create_time <>", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThan(Long value) { - addCriterion("create_time >", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { - addCriterion("create_time >=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThan(Long value) { - addCriterion("create_time <", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThanOrEqualTo(Long value) { - addCriterion("create_time <=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeIn(List values) { - addCriterion("create_time in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotIn(List values) { - addCriterion("create_time not in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeBetween(Long value1, Long value2) { - addCriterion("create_time between", value1, value2, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotBetween(Long value1, Long value2) { - addCriterion("create_time not between", value1, value2, "createTime"); - return (Criteria) this; - } - public Criteria andProjectIdIsNull() { addCriterion("project_id is null"); return (Criteria) this; @@ -783,6 +653,266 @@ public class MessageTaskExample { addCriterion("`enable` not between", value1, value2, "enable"); return (Criteria) this; } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNull() { + addCriterion("update_user is null"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNotNull() { + addCriterion("update_user is not null"); + return (Criteria) this; + } + + public Criteria andUpdateUserEqualTo(String value) { + addCriterion("update_user =", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotEqualTo(String value) { + addCriterion("update_user <>", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThan(String value) { + addCriterion("update_user >", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThanOrEqualTo(String value) { + addCriterion("update_user >=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThan(String value) { + addCriterion("update_user <", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThanOrEqualTo(String value) { + addCriterion("update_user <=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLike(String value) { + addCriterion("update_user like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotLike(String value) { + addCriterion("update_user not like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserIn(List values) { + addCriterion("update_user in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotIn(List values) { + addCriterion("update_user not in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserBetween(String value1, String value2) { + addCriterion("update_user between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotBetween(String value1, String value2) { + addCriterion("update_user not between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Long value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Long value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Long value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Long value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Long value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Long value1, Long value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Long value1, Long value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/mapper/MessageTaskMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/project/mapper/MessageTaskMapper.xml index 1ccc002239..3af218344b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/mapper/MessageTaskMapper.xml +++ b/backend/framework/domain/src/main/java/io/metersphere/project/mapper/MessageTaskMapper.xml @@ -3,15 +3,17 @@ - + - - + + + + @@ -72,8 +74,8 @@ - id, `type`, event, receiver, task_type, webhook, test_id, create_time, project_id, - `enable` + id, event, receiver, project_robot_id, task_type, test_id, project_id, `enable`, + create_user, create_time, update_user, update_time @@ -194,33 +210,39 @@ id = #{record.id,jdbcType=VARCHAR}, - - `type` = #{record.type,jdbcType=VARCHAR}, - event = #{record.event,jdbcType=VARCHAR}, receiver = #{record.receiver,jdbcType=VARCHAR}, + + project_robot_id = #{record.projectRobotId,jdbcType=VARCHAR}, + task_type = #{record.taskType,jdbcType=VARCHAR}, - - webhook = #{record.webhook,jdbcType=VARCHAR}, - test_id = #{record.testId,jdbcType=VARCHAR}, - - create_time = #{record.createTime,jdbcType=BIGINT}, - project_id = #{record.projectId,jdbcType=VARCHAR}, `enable` = #{record.enable,jdbcType=BIT}, + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + update_user = #{record.updateUser,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=BIGINT}, + @@ -229,15 +251,17 @@ update message_task set id = #{record.id,jdbcType=VARCHAR}, - `type` = #{record.type,jdbcType=VARCHAR}, event = #{record.event,jdbcType=VARCHAR}, receiver = #{record.receiver,jdbcType=VARCHAR}, + project_robot_id = #{record.projectRobotId,jdbcType=VARCHAR}, task_type = #{record.taskType,jdbcType=VARCHAR}, - webhook = #{record.webhook,jdbcType=VARCHAR}, test_id = #{record.testId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, project_id = #{record.projectId,jdbcType=VARCHAR}, - `enable` = #{record.enable,jdbcType=BIT} + `enable` = #{record.enable,jdbcType=BIT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + update_user = #{record.updateUser,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=BIGINT} @@ -245,59 +269,68 @@ update message_task - - `type` = #{type,jdbcType=VARCHAR}, - event = #{event,jdbcType=VARCHAR}, receiver = #{receiver,jdbcType=VARCHAR}, + + project_robot_id = #{projectRobotId,jdbcType=VARCHAR}, + task_type = #{taskType,jdbcType=VARCHAR}, - - webhook = #{webhook,jdbcType=VARCHAR}, - test_id = #{testId,jdbcType=VARCHAR}, - - create_time = #{createTime,jdbcType=BIGINT}, - project_id = #{projectId,jdbcType=VARCHAR}, `enable` = #{enable,jdbcType=BIT}, + + create_user = #{createUser,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + update_user = #{updateUser,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=BIGINT}, + where id = #{id,jdbcType=VARCHAR} update message_task - set `type` = #{type,jdbcType=VARCHAR}, - event = #{event,jdbcType=VARCHAR}, + set event = #{event,jdbcType=VARCHAR}, receiver = #{receiver,jdbcType=VARCHAR}, + project_robot_id = #{projectRobotId,jdbcType=VARCHAR}, task_type = #{taskType,jdbcType=VARCHAR}, - webhook = #{webhook,jdbcType=VARCHAR}, test_id = #{testId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, project_id = #{projectId,jdbcType=VARCHAR}, - `enable` = #{enable,jdbcType=BIT} + `enable` = #{enable,jdbcType=BIT}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + update_user = #{updateUser,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=BIGINT} where id = #{id,jdbcType=VARCHAR} insert into message_task - (id, `type`, event, receiver, task_type, webhook, test_id, create_time, project_id, - `enable`) + (id, event, receiver, project_robot_id, task_type, test_id, project_id, `enable`, + create_user, create_time, update_user, update_time) values - (#{item.id,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.event,jdbcType=VARCHAR}, - #{item.receiver,jdbcType=VARCHAR}, #{item.taskType,jdbcType=VARCHAR}, #{item.webhook,jdbcType=VARCHAR}, - #{item.testId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, #{item.projectId,jdbcType=VARCHAR}, - #{item.enable,jdbcType=BIT}) + (#{item.id,jdbcType=VARCHAR}, #{item.event,jdbcType=VARCHAR}, #{item.receiver,jdbcType=VARCHAR}, + #{item.projectRobotId,jdbcType=VARCHAR}, #{item.taskType,jdbcType=VARCHAR}, #{item.testId,jdbcType=VARCHAR}, + #{item.projectId,jdbcType=VARCHAR}, #{item.enable,jdbcType=BIT}, #{item.createUser,jdbcType=VARCHAR}, + #{item.createTime,jdbcType=BIGINT}, #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=BIGINT} + ) @@ -313,33 +346,39 @@ #{item.id,jdbcType=VARCHAR} - - #{item.type,jdbcType=VARCHAR} - #{item.event,jdbcType=VARCHAR} #{item.receiver,jdbcType=VARCHAR} + + #{item.projectRobotId,jdbcType=VARCHAR} + #{item.taskType,jdbcType=VARCHAR} - - #{item.webhook,jdbcType=VARCHAR} - #{item.testId,jdbcType=VARCHAR} - - #{item.createTime,jdbcType=BIGINT} - #{item.projectId,jdbcType=VARCHAR} #{item.enable,jdbcType=BIT} + + #{item.createUser,jdbcType=VARCHAR} + + + #{item.createTime,jdbcType=BIGINT} + + + #{item.updateUser,jdbcType=VARCHAR} + + + #{item.updateTime,jdbcType=BIGINT} + )