Browse Source

添加节点类型、标签等

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

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

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块 <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,planWorkload,planCostAmount,totalActWorkload,totalActCostAmount,expectResult,opStep,currResult,refRequire,bugSeverity,bugType,tagIds,tagNames,urls,ltime,qtype,taskId,taskName,iterationId,iterationName,caseExecId,lremark,productId;<br>
* id,name,projectId,projectName,caseId,caseName,endTime,askUserid,askUsername,handlerUserid,handlerUsername,priority,solution,description,createUserid,createUsername,createTime,bugStatus,bizProcInstId,bizFlowState,menuId,menuName,planWorkload,planCostAmount,totalActWorkload,totalActCostAmount,expectResult,opStep,currResult,refRequire,bugSeverity,bugType,tagIds,tagNames,urls,ltime,qtype,taskId,taskName,iterationId,iterationName,caseExecId,lremark,productId,repRate,verNum,vpath,pverNum;<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,plan_workload,plan_cost_amount,total_act_workload,total_act_cost_amount,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,task_id,task_name,iteration_id,iteration_name,case_exec_id,lremark,product_id;<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,plan_workload,plan_cost_amount,total_act_workload,total_act_cost_amount,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,task_id,task_name,iteration_id,iteration_name,case_exec_id,lremark,product_id,rep_rate,ver_num,vpath,pver_num;<br>
* 当前主键(包括多主键):<br>
* id;<br>
*/
@ -71,7 +71,7 @@ public class XmQuestion implements java.io.Serializable {
@ApiModelProperty(notes="创建时间",allowEmptyValue=true,example="",allowableValues="")
Date createTime;
@ApiModelProperty(notes="create创建(active激活)–confirm确认(confirmed已确认)–solve解决(resolved已解决)–close关闭(closed已关闭)",allowEmptyValue=true,example="",allowableValues="")
@ApiModelProperty(notes="bug状态1|新提交2|处理中3|已修复4|重新打开5|已发布6|已拒绝7|挂起",allowEmptyValue=true,example="",allowableValues="")
String bugStatus;
@ApiModelProperty(notes="当前流程实例编号",allowEmptyValue=true,example="",allowableValues="")
@ -151,6 +151,18 @@ public class XmQuestion implements java.io.Serializable {
@ApiModelProperty(notes="产品编号",allowEmptyValue=true,example="",allowableValues="")
String productId;
@ApiModelProperty(notes="复现频率1-必现,2-大概率复现,3-小概率复现,4-仅出现一次",allowEmptyValue=true,example="",allowableValues="")
String repRate;
@ApiModelProperty(notes="版本号",allowEmptyValue=true,example="",allowableValues="")
String verNum;
@ApiModelProperty(notes="访问路径/斜杠分割",allowEmptyValue=true,example="",allowableValues="")
String vpath;
@ApiModelProperty(notes="发布版本",allowEmptyValue=true,example="",allowableValues="")
String pverNum;
/**问题编号**/
public XmQuestion(String id) {
@ -264,7 +276,7 @@ public class XmQuestion implements java.io.Serializable {
this.createTime = createTime;
}
/**
* create创建active激活confirm确认confirmed已确认solve解决resolved已解决close关闭closed已关闭
* bug状态1|新提交2|处理中3|已修复4|重新打开5|已发布6|已拒绝7|挂起
**/
public void setBugStatus(String bugStatus) {
this.bugStatus = bugStatus;
@ -425,6 +437,30 @@ public class XmQuestion implements java.io.Serializable {
public void setProductId(String productId) {
this.productId = productId;
}
/**
* 复现频率1-必现2-大概率复现3-小概率复现4-仅出现一次
**/
public void setRepRate(String repRate) {
this.repRate = repRate;
}
/**
* 版本号
**/
public void setVerNum(String verNum) {
this.verNum = verNum;
}
/**
* 访问路径/斜杠分割
**/
public void setVpath(String vpath) {
this.vpath = vpath;
}
/**
* 发布版本
**/
public void setPverNum(String pverNum) {
this.pverNum = pverNum;
}
/**
* 问题编号
@ -529,7 +565,7 @@ public class XmQuestion implements java.io.Serializable {
return this.createTime;
}
/**
* create创建active激活confirm确认confirmed已确认solve解决resolved已解决close关闭closed已关闭
* bug状态1|新提交2|处理中3|已修复4|重新打开5|已发布6|已拒绝7|挂起
**/
public String getBugStatus() {
return this.bugStatus;
@ -690,5 +726,29 @@ public class XmQuestion implements java.io.Serializable {
public String getProductId() {
return this.productId;
}
/**
* 复现频率1-必现2-大概率复现3-小概率复现4-仅出现一次
**/
public String getRepRate() {
return this.repRate;
}
/**
* 版本号
**/
public String getVerNum() {
return this.verNum;
}
/**
* 访问路径/斜杠分割
**/
public String getVpath() {
return this.vpath;
}
/**
* 发布版本
**/
public String getPverNum() {
return this.pverNum;
}
}

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

@ -113,7 +113,13 @@
where
res.id = #{id}
</select>
<select id="selectListByIds" parameterType="List" resultType="com.xm.core.entity.XmQuestion">
select * from xm_question res
where (res.id) in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from xm_question res
@ -132,7 +138,7 @@
insert into xm_question(
<include refid="columns"/>
) values (
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{planWorkload},#{planCostAmount},#{totalActWorkload},#{totalActCostAmount},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{taskId},#{taskName},#{iterationId},#{iterationName},#{caseExecId},#{lremark},#{productId}
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{planWorkload},#{planCostAmount},#{totalActWorkload},#{totalActCostAmount},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{taskId},#{taskName},#{iterationId},#{iterationName},#{caseExecId},#{lremark},#{productId},#{repRate},#{verNum},#{vpath},#{pverNum}
)
</insert>
@ -195,7 +201,7 @@
<!--sql片段 列-->
<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,plan_workload,plan_cost_amount,total_act_workload,total_act_cost_amount,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,task_id,task_name,iteration_id,iteration_name,case_exec_id,lremark,product_id
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,plan_workload,plan_cost_amount,total_act_workload,total_act_cost_amount,expect_result,op_step,curr_result,ref_require,bug_severity,bug_type,tag_ids,tag_names,urls,ltime,qtype,task_id,task_name,iteration_id,iteration_name,case_exec_id,lremark,product_id,rep_rate,ver_num,vpath,pver_num
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -244,6 +250,10 @@
<if test="caseExecId != null and caseExecId != ''"> and res.case_exec_id = #{caseExecId} </if>
<if test="lremark != null and lremark != ''"> and res.lremark = #{lremark} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
<if test="repRate != null and repRate != ''"> and res.rep_rate = #{repRate} </if>
<if test="verNum != null and verNum != ''"> and res.ver_num = #{verNum} </if>
<if test="vpath != null and vpath != ''"> and res.vpath = #{vpath} </if>
<if test="pverNum != null and pverNum != ''"> and res.pver_num = #{pverNum} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
@ -289,7 +299,11 @@
iteration_name = #{iterationName},
case_exec_id = #{caseExecId},
lremark = #{lremark},
product_id = #{productId}
product_id = #{productId},
rep_rate = #{repRate},
ver_num = #{verNum},
vpath = #{vpath},
pver_num = #{pverNum}
</sql>
<sql id="someFieldSet">
<if test="name != null and name != ''"> name = #{name}, </if>
@ -335,6 +349,10 @@
<if test="caseExecId != null and caseExecId != ''"> case_exec_id = #{caseExecId}, </if>
<if test="lremark != null and lremark != ''"> lremark = #{lremark}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if>
<if test="repRate != null and repRate != ''"> rep_rate = #{repRate}, </if>
<if test="verNum != null and verNum != ''"> ver_num = #{verNum}, </if>
<if test="vpath != null and vpath != ''"> vpath = #{vpath}, </if>
<if test="pverNum != null and pverNum != ''"> pver_num = #{pverNum}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
@ -380,6 +398,10 @@
iteration_name = #{item.iterationName},
case_exec_id = #{item.caseExecId},
lremark = #{item.lremark},
product_id = #{item.productId}
product_id = #{item.productId},
rep_rate = #{item.repRate},
ver_num = #{item.verNum},
vpath = #{item.vpath},
pver_num = #{item.pverNum}
</sql>
</mapper>
Loading…
Cancel
Save