From 4c1d63e7a9fc876642f54edb1ac281781de8f063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 22 Jul 2022 13:37:33 +0800 Subject: [PATCH] bug --- .../main/java/com/xm/core/entity/XmTestPlanCase.java | 5 ++++- .../mapper/xm/core/dao/XmTestPlanCaseMapper.xml | 12 ++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/xm-core/src/main/java/com/xm/core/entity/XmTestPlanCase.java b/xm-core/src/main/java/com/xm/core/entity/XmTestPlanCase.java index 01a7167d..21a74cca 100644 --- a/xm-core/src/main/java/com/xm/core/entity/XmTestPlanCase.java +++ b/xm-core/src/main/java/com/xm/core/entity/XmTestPlanCase.java @@ -8,7 +8,7 @@ import java.util.Date; /** * 组织 com 顶级模块 xm 大模块 core 小模块
* 实体 XmTestPlanCase所有属性名:
- * "bugs","bug数目","execUserid","执行人","caseId","测试用例编号","ltime","更新时间","ctime","创建时间","execStatus","0-未测,1-通过,2-受阻,3-忽略,4-失败","execUsername","执行人姓名","priority","优先级","remark","执行备注","testStep","测试步骤","planId","计划编号";
+ * "bugs","bug数目","execUserid","执行人","caseId","测试用例编号","ltime","更新时间","ctime","创建时间","execStatus","0-未测,1-通过,2-受阻,3-忽略,4-失败","execUsername","执行人姓名","priority","优先级","remark","执行备注","testStep","测试步骤","planId","计划编号","projectId","项目编号";
* 当前主键(包括多主键):
* case_id,plan_id;
*/ @@ -51,6 +51,9 @@ public class XmTestPlanCase implements java.io.Serializable { @ApiModelProperty(notes="测试步骤",allowEmptyValue=true,example="",allowableValues="") String testStep; + + @ApiModelProperty(notes="项目编号",allowEmptyValue=true,example="",allowableValues="") + String projectId; /** *测试用例编号,计划编号 diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml index 26dbb729..9e6ed449 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml @@ -76,7 +76,7 @@ insert into xm_test_plan_case( ) values ( - #{bugs},#{execUserid},#{caseId},#{ltime},#{ctime},#{execStatus},#{execUsername},#{priority},#{remark},#{testStep},#{planId} + #{bugs},#{execUserid},#{caseId},#{ltime},#{ctime},#{execStatus},#{execUsername},#{priority},#{remark},#{testStep},#{planId},#{projectId} ) @@ -151,7 +151,7 @@ - bugs,exec_userid,case_id,ltime,ctime,exec_status,exec_username,priority,remark,test_step,plan_id + bugs,exec_userid,case_id,ltime,ctime,exec_status,exec_username,priority,remark,test_step,plan_id,project_id @@ -167,6 +167,7 @@ and res.remark = #{remark} and res.test_step = #{testStep} and res.plan_id = #{planId} + and res.project_id = #{projectId} @@ -178,7 +179,8 @@ exec_username = #{execUsername}, priority = #{priority}, remark = #{remark}, - test_step = #{testStep} + test_step = #{testStep}, + project_id = #{projectId} bugs = #{bugs}, @@ -190,6 +192,7 @@ priority = #{priority}, remark = #{remark}, test_step = #{testStep}, + project_id = #{projectId}, @@ -201,6 +204,7 @@ exec_username = #{item.execUsername}, priority = #{item.priority}, remark = #{item.remark}, - test_step = #{item.testStep} + test_step = #{item.testStep}, + project_id = #{item.projectId} \ No newline at end of file