Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
ca5433eb6a
  1. 40
      xm-core/src/main/java/com/xm/core/entity/XmQuestion.java
  2. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml

40
xm-core/src/main/java/com/xm/core/entity/XmQuestion.java

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmQuestion所有属性名: <br> * 实体 XmQuestion所有属性名: <br>
* id,name,projectId,projectName,caseId,caseName,endTime,askUserid,askUsername,handlerUserid,handlerUsername,priority,solution,description,createUserid,createUsername,createTime,bugStatus,bizProcInstId,bizFlowState,menuId,menuName,budgetWorkload,budgetCost,actWorkload,actCost,expectResult,opStep,currResult,refRequire,bugSeverity,bugType,tagIds,tagNames,urls,ltime,qtype,iterationId,iterationName,caseExecId,remarks,productId,repRate,verNum,vpath,pverNum,bugReason,rate;<br>
* id,name,projectId,projectName,caseId,caseName,endTime,askUserid,askUsername,handlerUserid,handlerUsername,priority,solution,description,createUserid,createUsername,createTime,bugStatus,bizProcInstId,bizFlowState,menuId,menuName,budgetWorkload,budgetCost,actWorkload,actCost,expectResult,opStep,currResult,refRequire,bugSeverity,bugType,tagIds,tagNames,urls,ltime,qtype,caseExecId,remarks,productId,repRate,verNum,vpath,pverNum,bugReason,rate;<br>
* xm_question xm_question的所有字段名: <br> * xm_question xm_question的所有字段名: <br>
* id,name,project_id,project_name,case_id,case_name,end_time,ask_userid,ask_username,handler_userid,handler_username,priority,solution,description,create_userid,create_username,create_time,bug_status,biz_proc_inst_id,biz_flow_state,menu_id,menu_name,budget_workload,budget_cost,act_workload,act_cost,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,iteration_id,iteration_name,case_exec_id,remarks,product_id,rep_rate,ver_num,vpath,pver_num,bug_reason,rate;<br>
* id,name,project_id,project_name,case_id,case_name,end_time,ask_userid,ask_username,handler_userid,handler_username,priority,solution,description,create_userid,create_username,create_time,bug_status,biz_proc_inst_id,biz_flow_state,menu_id,menu_name,budget_workload,budget_cost,act_workload,act_cost,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,case_exec_id,remarks,product_id,rep_rate,ver_num,vpath,pver_num,bug_reason,rate;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -128,15 +128,9 @@ public class XmQuestion implements java.io.Serializable {
@ApiModelProperty(notes="最后更新时间",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="最后更新时间",allowEmptyValue=true,example="",allowableValues="")
Date ltime; Date ltime;
@ApiModelProperty(notes="问题类型risk-风险、bug-功能问题、consult-普通咨询、",allowEmptyValue=true,example="",allowableValues="")
@ApiModelProperty(notes="问题类型2-风险、1-功能问题、3-普通咨询、(暂时不用这个字段了)",allowEmptyValue=true,example="",allowableValues="")
String qtype; String qtype;
@ApiModelProperty(notes="迭代编号",allowEmptyValue=true,example="",allowableValues="")
String iterationId;
@ApiModelProperty(notes="迭代名称",allowEmptyValue=true,example="",allowableValues="")
String iterationName;
@ApiModelProperty(notes="关联的案例执行编号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="关联的案例执行编号",allowEmptyValue=true,example="",allowableValues="")
String caseExecId; String caseExecId;
@ -390,23 +384,11 @@ public class XmQuestion implements java.io.Serializable {
this.ltime = ltime; this.ltime = ltime;
} }
/** /**
* 问题类型risk-风险bug-功能问题consult-普通咨询
* 问题类型2-风险1-功能问题3-普通咨询暂时不用这个字段了
**/ **/
public void setQtype(String qtype) { public void setQtype(String qtype) {
this.qtype = qtype; this.qtype = qtype;
} }
/**
* 迭代编号
**/
public void setIterationId(String iterationId) {
this.iterationId = iterationId;
}
/**
* 迭代名称
**/
public void setIterationName(String iterationName) {
this.iterationName = iterationName;
}
/** /**
* 关联的案例执行编号 * 关联的案例执行编号
**/ **/
@ -679,23 +661,11 @@ public class XmQuestion implements java.io.Serializable {
return this.ltime; return this.ltime;
} }
/** /**
* 问题类型risk-风险bug-功能问题consult-普通咨询
* 问题类型2-风险1-功能问题3-普通咨询暂时不用这个字段了
**/ **/
public String getQtype() { public String getQtype() {
return this.qtype; return this.qtype;
} }
/**
* 迭代编号
**/
public String getIterationId() {
return this.iterationId;
}
/**
* 迭代名称
**/
public String getIterationName() {
return this.iterationName;
}
/** /**
* 关联的案例执行编号 * 关联的案例执行编号
**/ **/

12
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml

@ -140,7 +140,7 @@
insert into xm_question( insert into xm_question(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{budgetWorkload},#{budgetCost},#{actWorkload},#{actCost},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{iterationId},#{iterationName},#{caseExecId},#{remarks},#{productId},#{repRate},#{verNum},#{vpath},#{pverNum},#{bugReason},#{rate}
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{budgetWorkload},#{budgetCost},#{actWorkload},#{actCost},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{caseExecId},#{remarks},#{productId},#{repRate},#{verNum},#{vpath},#{pverNum},#{bugReason},#{rate}
) )
</insert> </insert>
@ -203,7 +203,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,name,project_id,project_name,case_id,case_name,end_time,ask_userid,ask_username,handler_userid,handler_username,priority,solution,description,create_userid,create_username,create_time,bug_status,biz_proc_inst_id,biz_flow_state,menu_id,menu_name,budget_workload,budget_cost,act_workload,act_cost,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,iteration_id,iteration_name,case_exec_id,remarks,product_id,rep_rate,ver_num,vpath,pver_num,bug_reason,rate
id,name,project_id,project_name,case_id,case_name,end_time,ask_userid,ask_username,handler_userid,handler_username,priority,solution,description,create_userid,create_username,create_time,bug_status,biz_proc_inst_id,biz_flow_state,menu_id,menu_name,budget_workload,budget_cost,act_workload,act_cost,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,case_exec_id,remarks,product_id,rep_rate,ver_num,vpath,pver_num,bug_reason,rate
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -245,8 +245,6 @@
<if test="urls != null and urls != ''"> and res.urls = #{urls} </if> <if test="urls != null and urls != ''"> and res.urls = #{urls} </if>
<if test="ltime != null"> and date_format(res.ltime,'%Y-%m-%d') = date_format(#{ltime},'%Y-%m-%d') </if> <if test="ltime != null"> and date_format(res.ltime,'%Y-%m-%d') = date_format(#{ltime},'%Y-%m-%d') </if>
<if test="qtype != null and qtype != ''"> and res.qtype = #{qtype} </if> <if test="qtype != null and qtype != ''"> and res.qtype = #{qtype} </if>
<if test="iterationId != null and iterationId != ''"> and res.iteration_id = #{iterationId} </if>
<if test="iterationName != null and iterationName != ''"> and res.iteration_name = #{iterationName} </if>
<if test="caseExecId != null and caseExecId != ''"> and res.case_exec_id = #{caseExecId} </if> <if test="caseExecId != null and caseExecId != ''"> and res.case_exec_id = #{caseExecId} </if>
<if test="remarks != null and remarks != ''"> and res.remarks = #{remarks} </if> <if test="remarks != null and remarks != ''"> and res.remarks = #{remarks} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if> <if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
@ -295,8 +293,6 @@
urls = #{urls}, urls = #{urls},
ltime = #{ltime}, ltime = #{ltime},
qtype = #{qtype}, qtype = #{qtype},
iteration_id = #{iterationId},
iteration_name = #{iterationName},
case_exec_id = #{caseExecId}, case_exec_id = #{caseExecId},
remarks = #{remarks}, remarks = #{remarks},
product_id = #{productId}, product_id = #{productId},
@ -344,8 +340,6 @@
<if test="urls != null and urls != ''"> urls = #{urls}, </if> <if test="urls != null and urls != ''"> urls = #{urls}, </if>
<if test="ltime != null"> ltime = #{ltime}, </if> <if test="ltime != null"> ltime = #{ltime}, </if>
<if test="qtype != null and qtype != ''"> qtype = #{qtype}, </if> <if test="qtype != null and qtype != ''"> qtype = #{qtype}, </if>
<if test="iterationId != null and iterationId != ''"> iteration_id = #{iterationId}, </if>
<if test="iterationName != null and iterationName != ''"> iteration_name = #{iterationName}, </if>
<if test="caseExecId != null and caseExecId != ''"> case_exec_id = #{caseExecId}, </if> <if test="caseExecId != null and caseExecId != ''"> case_exec_id = #{caseExecId}, </if>
<if test="remarks != null and remarks != ''"> remarks = #{remarks}, </if> <if test="remarks != null and remarks != ''"> remarks = #{remarks}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if> <if test="productId != null and productId != ''"> product_id = #{productId}, </if>
@ -394,8 +388,6 @@
urls = #{item.urls}, urls = #{item.urls},
ltime = #{item.ltime}, ltime = #{item.ltime},
qtype = #{item.qtype}, qtype = #{item.qtype},
iteration_id = #{item.iterationId},
iteration_name = #{item.iterationName},
case_exec_id = #{item.caseExecId}, case_exec_id = #{item.caseExecId},
remarks = #{item.remarks}, remarks = #{item.remarks},
product_id = #{item.productId}, product_id = #{item.productId},

Loading…
Cancel
Save