Merge branch 'v1.3' of https://github.com/metersphere/metersphere into v1.3
This commit is contained in:
commit
5927f0fc2b
|
@ -6,14 +6,14 @@ import java.io.Serializable;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class Notice implements Serializable {
|
public class Notice implements Serializable {
|
||||||
|
private String id;
|
||||||
|
|
||||||
private String event;
|
private String event;
|
||||||
|
|
||||||
private String testId;
|
private String testId;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
private String email;
|
|
||||||
|
|
||||||
private String enable;
|
private String enable;
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -104,6 +104,76 @@ public class NoticeExample {
|
||||||
criteria.add(new Criterion(condition, value1, value2));
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(String value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(String value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(String value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(String value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLike(String value) {
|
||||||
|
addCriterion("id like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotLike(String value) {
|
||||||
|
addCriterion("id not like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<String> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<String> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
public Criteria andEventIsNull() {
|
public Criteria andEventIsNull() {
|
||||||
addCriterion("EVENT is null");
|
addCriterion("EVENT is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
@ -314,76 +384,6 @@ public class NoticeExample {
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andEmailIsNull() {
|
|
||||||
addCriterion("EMAIL is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailIsNotNull() {
|
|
||||||
addCriterion("EMAIL is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailEqualTo(String value) {
|
|
||||||
addCriterion("EMAIL =", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailNotEqualTo(String value) {
|
|
||||||
addCriterion("EMAIL <>", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailGreaterThan(String value) {
|
|
||||||
addCriterion("EMAIL >", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("EMAIL >=", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailLessThan(String value) {
|
|
||||||
addCriterion("EMAIL <", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("EMAIL <=", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailLike(String value) {
|
|
||||||
addCriterion("EMAIL like", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailNotLike(String value) {
|
|
||||||
addCriterion("EMAIL not like", value, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailIn(List<String> values) {
|
|
||||||
addCriterion("EMAIL in", values, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailNotIn(List<String> values) {
|
|
||||||
addCriterion("EMAIL not in", values, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailBetween(String value1, String value2) {
|
|
||||||
addCriterion("EMAIL between", value1, value2, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEmailNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("EMAIL not between", value1, value2, "email");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnableIsNull() {
|
public Criteria andEnableIsNull() {
|
||||||
addCriterion("`ENABLE` is null");
|
addCriterion("`ENABLE` is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|
|
@ -2,21 +2,30 @@ package io.metersphere.base.mapper;
|
||||||
|
|
||||||
import io.metersphere.base.domain.Notice;
|
import io.metersphere.base.domain.Notice;
|
||||||
import io.metersphere.base.domain.NoticeExample;
|
import io.metersphere.base.domain.NoticeExample;
|
||||||
import java.util.List;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface NoticeMapper {
|
public interface NoticeMapper {
|
||||||
long countByExample(NoticeExample example);
|
long countByExample(NoticeExample example);
|
||||||
|
|
||||||
int deleteByExample(NoticeExample example);
|
int deleteByExample(NoticeExample example);
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(String id);
|
||||||
|
|
||||||
int insert(Notice record);
|
int insert(Notice record);
|
||||||
|
|
||||||
int insertSelective(Notice record);
|
int insertSelective(Notice record);
|
||||||
|
|
||||||
List<Notice> selectByExample(NoticeExample example);
|
List<Notice> selectByExample(NoticeExample example);
|
||||||
|
|
||||||
|
Notice selectByPrimaryKey(String id);
|
||||||
|
|
||||||
int updateByExampleSelective(@Param("record") Notice record, @Param("example") NoticeExample example);
|
int updateByExampleSelective(@Param("record") Notice record, @Param("example") NoticeExample example);
|
||||||
|
|
||||||
int updateByExample(@Param("record") Notice record, @Param("example") NoticeExample example);
|
int updateByExample(@Param("record") Notice record, @Param("example") NoticeExample example);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(Notice record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(Notice record);
|
||||||
}
|
}
|
|
@ -2,10 +2,10 @@
|
||||||
<!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.base.mapper.NoticeMapper">
|
<mapper namespace="io.metersphere.base.mapper.NoticeMapper">
|
||||||
<resultMap id="BaseResultMap" type="io.metersphere.base.domain.Notice">
|
<resultMap id="BaseResultMap" type="io.metersphere.base.domain.Notice">
|
||||||
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||||
<result column="EVENT" jdbcType="VARCHAR" property="event" />
|
<result column="EVENT" jdbcType="VARCHAR" property="event" />
|
||||||
<result column="TEST_ID" jdbcType="VARCHAR" property="testId" />
|
<result column="TEST_ID" jdbcType="VARCHAR" property="testId" />
|
||||||
<result column="NAME" jdbcType="VARCHAR" property="name" />
|
<result column="NAME" jdbcType="VARCHAR" property="name" />
|
||||||
<result column="EMAIL" jdbcType="VARCHAR" property="email" />
|
|
||||||
<result column="ENABLE" jdbcType="VARCHAR" property="enable" />
|
<result column="ENABLE" jdbcType="VARCHAR" property="enable" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
EVENT, TEST_ID, `NAME`, EMAIL, `ENABLE`
|
id, EVENT, TEST_ID, `NAME`, `ENABLE`
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="io.metersphere.base.domain.NoticeExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="io.metersphere.base.domain.NoticeExample" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
|
@ -83,21 +83,34 @@
|
||||||
order by ${orderByClause}
|
order by ${orderByClause}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||||
|
SELECT
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
FROM notice
|
||||||
|
WHERE id = #{id,jdbcType=VARCHAR}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||||
|
DELETE FROM notice
|
||||||
|
WHERE id = #{id,jdbcType=VARCHAR}
|
||||||
|
</delete>
|
||||||
<delete id="deleteByExample" parameterType="io.metersphere.base.domain.NoticeExample">
|
<delete id="deleteByExample" parameterType="io.metersphere.base.domain.NoticeExample">
|
||||||
delete from notice
|
DELETE FROM notice
|
||||||
<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.base.domain.Notice">
|
<insert id="insert" parameterType="io.metersphere.base.domain.Notice">
|
||||||
insert into notice (EVENT, TEST_ID, `NAME`,
|
INSERT INTO notice (id, EVENT, TEST_ID,
|
||||||
EMAIL, `ENABLE`)
|
`NAME`, `ENABLE`)
|
||||||
values (#{event,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
VALUES (#{id,jdbcType=VARCHAR}, #{event,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR},
|
||||||
#{email,jdbcType=VARCHAR}, #{enable,jdbcType=VARCHAR})
|
#{name,jdbcType=VARCHAR}, #{enable,jdbcType=VARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="io.metersphere.base.domain.Notice">
|
<insert id="insertSelective" parameterType="io.metersphere.base.domain.Notice">
|
||||||
insert into notice
|
insert into notice
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
<if test="event != null">
|
<if test="event != null">
|
||||||
EVENT,
|
EVENT,
|
||||||
</if>
|
</if>
|
||||||
|
@ -107,14 +120,14 @@
|
||||||
<if test="name != null">
|
<if test="name != null">
|
||||||
`NAME`,
|
`NAME`,
|
||||||
</if>
|
</if>
|
||||||
<if test="email != null">
|
|
||||||
EMAIL,
|
|
||||||
</if>
|
|
||||||
<if test="enable != null">
|
<if test="enable != null">
|
||||||
`ENABLE`,
|
`ENABLE`,
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="event != null">
|
<if test="event != null">
|
||||||
#{event,jdbcType=VARCHAR},
|
#{event,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -124,9 +137,6 @@
|
||||||
<if test="name != null">
|
<if test="name != null">
|
||||||
#{name,jdbcType=VARCHAR},
|
#{name,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="email != null">
|
|
||||||
#{email,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="enable != null">
|
<if test="enable != null">
|
||||||
#{enable,jdbcType=VARCHAR},
|
#{enable,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -141,6 +151,9 @@
|
||||||
<update id="updateByExampleSelective" parameterType="map">
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
update notice
|
update notice
|
||||||
<set>
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="record.event != null">
|
<if test="record.event != null">
|
||||||
EVENT = #{record.event,jdbcType=VARCHAR},
|
EVENT = #{record.event,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -150,9 +163,6 @@
|
||||||
<if test="record.name != null">
|
<if test="record.name != null">
|
||||||
`NAME` = #{record.name,jdbcType=VARCHAR},
|
`NAME` = #{record.name,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.email != null">
|
|
||||||
EMAIL = #{record.email,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.enable != null">
|
<if test="record.enable != null">
|
||||||
`ENABLE` = #{record.enable,jdbcType=VARCHAR},
|
`ENABLE` = #{record.enable,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -162,14 +172,40 @@
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByExample" parameterType="map">
|
<update id="updateByExample" parameterType="map">
|
||||||
update notice
|
UPDATE notice
|
||||||
set EVENT = #{record.event,jdbcType=VARCHAR},
|
SET id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
EVENT = #{record.event,jdbcType=VARCHAR},
|
||||||
TEST_ID = #{record.testId,jdbcType=VARCHAR},
|
TEST_ID = #{record.testId,jdbcType=VARCHAR},
|
||||||
`NAME` = #{record.name,jdbcType=VARCHAR},
|
`NAME` = #{record.name,jdbcType=VARCHAR},
|
||||||
EMAIL = #{record.email,jdbcType=VARCHAR},
|
|
||||||
`ENABLE` = #{record.enable,jdbcType=VARCHAR}
|
`ENABLE` = #{record.enable,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>
|
||||||
</update>
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.base.domain.Notice">
|
||||||
|
UPDATE notice
|
||||||
|
<set>
|
||||||
|
<if test="event != null">
|
||||||
|
EVENT = #{event,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="testId != null">
|
||||||
|
TEST_ID = #{testId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
`NAME` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="enable != null">
|
||||||
|
`ENABLE` = #{enable,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
WHERE id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="io.metersphere.base.domain.Notice">
|
||||||
|
UPDATE notice
|
||||||
|
SET EVENT = #{event,jdbcType=VARCHAR},
|
||||||
|
TEST_ID = #{testId,jdbcType=VARCHAR},
|
||||||
|
`NAME` = #{name,jdbcType=VARCHAR},
|
||||||
|
`ENABLE` = #{enable,jdbcType=VARCHAR}
|
||||||
|
WHERE id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
|
@ -6,16 +6,4 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class NoticeDetail extends Notice {
|
public class NoticeDetail extends Notice {
|
||||||
private String[] names;
|
private String[] names;
|
||||||
|
|
||||||
private String[] emails;
|
|
||||||
|
|
||||||
private String event;
|
|
||||||
|
|
||||||
private String testId;
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
private String email;
|
|
||||||
|
|
||||||
private String enable;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class NoticeService {
|
public class NoticeService {
|
||||||
|
@ -24,27 +25,16 @@ public class NoticeService {
|
||||||
if (notices.size() > 0) {
|
if (notices.size() > 0) {
|
||||||
noticeMapper.deleteByExample(example);
|
noticeMapper.deleteByExample(example);
|
||||||
}
|
}
|
||||||
saveNotice(noticeRequest, notice);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void saveNotice(NoticeRequest noticeRequest, Notice notice) {
|
|
||||||
noticeRequest.getNotices().forEach(n -> {
|
noticeRequest.getNotices().forEach(n -> {
|
||||||
if (n.getNames().length > 0) {
|
if (n.getNames().length > 0) {
|
||||||
for (String x : n.getNames()) {
|
for (String x : n.getNames()) {
|
||||||
|
notice.setId(UUID.randomUUID().toString());
|
||||||
notice.setEvent(n.getEvent());
|
notice.setEvent(n.getEvent());
|
||||||
notice.setEmail(n.getEmail());
|
|
||||||
notice.setEnable(n.getEnable());
|
notice.setEnable(n.getEnable());
|
||||||
notice.setTestId(noticeRequest.getTestId());
|
notice.setTestId(noticeRequest.getTestId());
|
||||||
notice.setName(x);
|
notice.setName(x);
|
||||||
noticeMapper.insert(notice);
|
noticeMapper.insert(notice);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
notice.setEvent(n.getEvent());
|
|
||||||
notice.setEmail(n.getEmail());
|
|
||||||
notice.setEnable(n.getEnable());
|
|
||||||
notice.setTestId(noticeRequest.getTestId());
|
|
||||||
notice.setName("");
|
|
||||||
noticeMapper.insert(notice);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -67,18 +57,16 @@ public class NoticeService {
|
||||||
notice1.setEnable(n.getEnable());
|
notice1.setEnable(n.getEnable());
|
||||||
notice1.setTestId(id);
|
notice1.setTestId(id);
|
||||||
notice1.setEvent(n.getEvent());
|
notice1.setEvent(n.getEvent());
|
||||||
notice1.setEmail(n.getEmail());
|
|
||||||
}
|
}
|
||||||
if (n.getEvent().equals("执行失败")) {
|
if (n.getEvent().equals("执行失败")) {
|
||||||
fail.add(n.getName());
|
fail.add(n.getName());
|
||||||
notice2.setEnable(n.getEnable());
|
notice2.setEnable(n.getEnable());
|
||||||
notice2.setTestId(id);
|
notice2.setTestId(id);
|
||||||
notice2.setEvent(n.getEvent());
|
notice2.setEvent(n.getEvent());
|
||||||
notice2.setEmail(n.getEmail());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
successArray = success.toArray(new String[success.size()]);
|
successArray = success.toArray(new String[0]);
|
||||||
failArray = fail.toArray(new String[fail.size()]);
|
failArray = fail.toArray(new String[0]);
|
||||||
notice1.setNames(successArray);
|
notice1.setNames(successArray);
|
||||||
notice2.setNames(failArray);
|
notice2.setNames(failArray);
|
||||||
notice.add(notice1);
|
notice.add(notice1);
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
ALTER TABLE notice
|
||||||
|
ADD COLUMN id VARCHAR(50);
|
||||||
|
UPDATE notice
|
||||||
|
SET id = uuid();
|
||||||
|
ALTER TABLE notice
|
||||||
|
MODIFY COLUMN id VARCHAR(50) PRIMARY KEY;
|
||||||
|
ALTER TABLE notice
|
||||||
|
DROP COLUMN EMAIL;
|
|
@ -144,13 +144,11 @@ export default {
|
||||||
{
|
{
|
||||||
event: "执行成功",
|
event: "执行成功",
|
||||||
names: [],
|
names: [],
|
||||||
email: "邮箱",
|
|
||||||
enable: false
|
enable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
event: "执行失败",
|
event: "执行失败",
|
||||||
names: [],
|
names: [],
|
||||||
email: "邮箱",
|
|
||||||
enable: false
|
enable: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue