feat(项目设置): 增加补充历史数据sql
This commit is contained in:
parent
91cbccfec1
commit
89915f4064
|
@ -7,6 +7,48 @@ update functional_case set last_execute_result = 'SUCCESS' where last_execute_re
|
|||
update functional_case set last_execute_result = 'ERROR' where last_execute_result = 'FAILED';
|
||||
update functional_case set last_execute_result = 'PENDING' where last_execute_result = 'SKIPPED';
|
||||
|
||||
|
||||
DELIMITER //
|
||||
|
||||
CREATE PROCEDURE insert_into_message()
|
||||
BEGIN
|
||||
DECLARE done INT DEFAULT FALSE;
|
||||
DECLARE a_id VARCHAR(50);
|
||||
DECLARE cur CURSOR FOR
|
||||
SELECT id
|
||||
FROM project
|
||||
WHERE project.id != '100001100001';
|
||||
|
||||
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
|
||||
|
||||
OPEN cur;
|
||||
|
||||
read_loop: LOOP
|
||||
FETCH cur INTO a_id;
|
||||
IF done THEN
|
||||
LEAVE read_loop;
|
||||
END IF;
|
||||
|
||||
-- 插入到表B中
|
||||
SET @robot_in_site_id = (select id as robotId from project_robot where project_id = a_id limit 1);
|
||||
|
||||
SET @test_plan_task_report_id = UUID_SHORT();
|
||||
INSERT INTO message_task(id, event, receivers, project_robot_id, task_type, test_id, project_id, enable, create_user, create_time, update_user, update_time, use_default_template, use_default_subject, subject)
|
||||
VALUES (@test_plan_task_report_id, 'DELETE', '["CREATE_USER"]', @robot_in_site_id, 'TEST_PLAN_REPORT_TASK', 'NONE', a_id, true, 'admin', unix_timestamp() * 1000, 'admin', unix_timestamp() * 1000, true, true, 'message.title.test_plan_report_task_delete');
|
||||
INSERT INTO message_task_blob(id, template)
|
||||
VALUES (@test_plan_task_report_id, 'message.test_plan_report_task_delete');
|
||||
|
||||
END LOOP;
|
||||
|
||||
CLOSE cur;
|
||||
END//
|
||||
|
||||
DELIMITER ;
|
||||
CALL insert_into_message();
|
||||
DROP PROCEDURE IF EXISTS insert_into_message;
|
||||
|
||||
|
||||
|
||||
-- 初始化计划相关的权限 (删除V3.0.0_11_1测试计划模块相关的权限, 重新初始化, 模块树不单独拥有权限)
|
||||
delete from user_role_permission where permission_id like 'PROJECT_TEST_PLAN_MODULE%' or permission_id like 'PROJECT_TEST_PLAN%';
|
||||
-- 项目管理员(测试计划相关的权限)
|
||||
|
|
|
@ -178,6 +178,21 @@ public class FunctionalCaseMinderControllerTest extends BaseTest {
|
|||
caseChangeRequest.setCustomFields(customFields);
|
||||
caseChangeRequests.add(caseChangeRequest);
|
||||
|
||||
caseChangeRequest = new FunctionalCaseChangeRequest();
|
||||
caseChangeRequest.setId("123dd44dd");
|
||||
caseChangeRequest.setName("对很多司机凤凰师傅节点师傅叫可视电话国际快递符合国际快递发货根据客户个人空间规划人口结构和空间和光可鉴人规划股好方式打开房间好的师傅即可获得师傅叫好的师傅好sad个好师傅和师傅黑色粉丝互粉晚对很多司机凤凰师傅节点师傅叫可视电话国际快递符合国际快递发货根据客户个人空间规划人口结构和空间和光可鉴人规划股好方式打开房间好的师傅即可获得师傅叫好的师傅好sad个好师傅和师傅黑色粉丝互粉晚饭还未发觉饿而gui额外的红包v味道规划为v风格和v晚饭过后v微风个v的师傅v的师傅黄金时代v分饭还未发觉饿而gui额外的红包v味道规划为v风格和v晚饭过后v微风个v的师傅v的师傅黄金时代v分");
|
||||
caseChangeRequest.setModuleId("TEST_MINDER_MODULE_ID_GYQ2");
|
||||
caseChangeRequest.setMoveMode("AFTER");
|
||||
caseChangeRequest.setPriority(3);
|
||||
caseChangeRequest.setTargetId("TEST_FUNCTIONAL_MINDER_CASE_ID_3");
|
||||
caseChangeRequest.setTemplateId("100001");
|
||||
caseChangeRequest.setType("ADD");
|
||||
caseChangeRequest.setPrerequisite("前置条件");
|
||||
caseChangeRequest.setCaseEditType("TEXT");
|
||||
customFields = new ArrayList<>();
|
||||
caseChangeRequest.setCustomFields(customFields);
|
||||
caseChangeRequests.add(caseChangeRequest);
|
||||
|
||||
caseChangeRequest = new FunctionalCaseChangeRequest();
|
||||
caseChangeRequest.setId("TEST_FUNCTIONAL_MINDER_CASE_ID_1");
|
||||
caseChangeRequest.setName("TEST_MINDER_MODULE_ID_GYQ_更新");
|
||||
|
|
Loading…
Reference in New Issue