Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
38b0bbc045
  1. 114
      xm-core/src/main/java/com/xm/core/entity/XmQuestion.java
  2. 31
      xm-core/src/main/java/com/xm/core/entity/XmTask.java
  3. 64
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml
  4. 8
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

114
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,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>
* 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>
* 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,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>
* 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>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -87,16 +87,16 @@ public class XmQuestion implements java.io.Serializable {
String menuName; String menuName;
@ApiModelProperty(notes="预估工时单位人时",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="预估工时单位人时",allowEmptyValue=true,example="",allowableValues="")
BigDecimal planWorkload;
BigDecimal budgetWorkload;
@ApiModelProperty(notes="预估成本金额",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="预估成本金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal planCostAmount;
BigDecimal budgetCost;
@ApiModelProperty(notes="实际工时",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="实际工时",allowEmptyValue=true,example="",allowableValues="")
BigDecimal totalActWorkload;
BigDecimal actWorkload;
@ApiModelProperty(notes="实际总金额",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="实际总金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal totalActCostAmount;
BigDecimal actCost;
@ApiModelProperty(notes="期望结果",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="期望结果",allowEmptyValue=true,example="",allowableValues="")
String expectResult; String expectResult;
@ -131,12 +131,6 @@ public class XmQuestion implements java.io.Serializable {
@ApiModelProperty(notes="问题类型risk-风险、bug-功能问题、consult-普通咨询、",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="问题类型risk-风险、bug-功能问题、consult-普通咨询、",allowEmptyValue=true,example="",allowableValues="")
String qtype; String qtype;
@ApiModelProperty(notes="测试任务编号关联taskType='test'的任务",allowEmptyValue=true,example="",allowableValues="")
String taskId;
@ApiModelProperty(notes="测试任务名称",allowEmptyValue=true,example="",allowableValues="")
String taskName;
@ApiModelProperty(notes="迭代编号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="迭代编号",allowEmptyValue=true,example="",allowableValues="")
String iterationId; String iterationId;
@ -147,7 +141,7 @@ public class XmQuestion implements java.io.Serializable {
String caseExecId; String caseExecId;
@ApiModelProperty(notes="最后更新说明",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="最后更新说明",allowEmptyValue=true,example="",allowableValues="")
String lremark;
String remarks;
@ApiModelProperty(notes="产品编号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="产品编号",allowEmptyValue=true,example="",allowableValues="")
String productId; String productId;
@ -163,6 +157,12 @@ public class XmQuestion implements java.io.Serializable {
@ApiModelProperty(notes="发布版本",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="发布版本",allowEmptyValue=true,example="",allowableValues="")
String pverNum; String pverNum;
@ApiModelProperty(notes="原因分析",allowEmptyValue=true,example="",allowableValues="")
String bugReason;
@ApiModelProperty(notes="进度0-100",allowEmptyValue=true,example="",allowableValues="")
Integer rate;
/**问题编号**/ /**问题编号**/
public XmQuestion(String id) { public XmQuestion(String id) {
@ -308,26 +308,26 @@ public class XmQuestion implements java.io.Serializable {
/** /**
* 预估工时单位人时 * 预估工时单位人时
**/ **/
public void setPlanWorkload(BigDecimal planWorkload) {
this.planWorkload = planWorkload;
public void setBudgetWorkload(BigDecimal budgetWorkload) {
this.budgetWorkload = budgetWorkload;
} }
/** /**
* 预估成本金额 * 预估成本金额
**/ **/
public void setPlanCostAmount(BigDecimal planCostAmount) {
this.planCostAmount = planCostAmount;
public void setBudgetCost(BigDecimal budgetCost) {
this.budgetCost = budgetCost;
} }
/** /**
* 实际工时 * 实际工时
**/ **/
public void setTotalActWorkload(BigDecimal totalActWorkload) {
this.totalActWorkload = totalActWorkload;
public void setActWorkload(BigDecimal actWorkload) {
this.actWorkload = actWorkload;
} }
/** /**
* 实际总金额 * 实际总金额
**/ **/
public void setTotalActCostAmount(BigDecimal totalActCostAmount) {
this.totalActCostAmount = totalActCostAmount;
public void setActCost(BigDecimal actCost) {
this.actCost = actCost;
} }
/** /**
* 期望结果 * 期望结果
@ -395,18 +395,6 @@ public class XmQuestion implements java.io.Serializable {
public void setQtype(String qtype) { public void setQtype(String qtype) {
this.qtype = qtype; this.qtype = qtype;
} }
/**
* 测试任务编号关联taskType='test'的任务
**/
public void setTaskId(String taskId) {
this.taskId = taskId;
}
/**
* 测试任务名称
**/
public void setTaskName(String taskName) {
this.taskName = taskName;
}
/** /**
* 迭代编号 * 迭代编号
**/ **/
@ -428,8 +416,8 @@ public class XmQuestion implements java.io.Serializable {
/** /**
* 最后更新说明 * 最后更新说明
**/ **/
public void setLremark(String lremark) {
this.lremark = lremark;
public void setRemarks(String remarks) {
this.remarks = remarks;
} }
/** /**
* 产品编号 * 产品编号
@ -461,6 +449,18 @@ public class XmQuestion implements java.io.Serializable {
public void setPverNum(String pverNum) { public void setPverNum(String pverNum) {
this.pverNum = pverNum; this.pverNum = pverNum;
} }
/**
* 原因分析
**/
public void setBugReason(String bugReason) {
this.bugReason = bugReason;
}
/**
* 进度0-100
**/
public void setRate(Integer rate) {
this.rate = rate;
}
/** /**
* 问题编号 * 问题编号
@ -597,26 +597,26 @@ public class XmQuestion implements java.io.Serializable {
/** /**
* 预估工时单位人时 * 预估工时单位人时
**/ **/
public BigDecimal getPlanWorkload() {
return this.planWorkload;
public BigDecimal getBudgetWorkload() {
return this.budgetWorkload;
} }
/** /**
* 预估成本金额 * 预估成本金额
**/ **/
public BigDecimal getPlanCostAmount() {
return this.planCostAmount;
public BigDecimal getBudgetCost() {
return this.budgetCost;
} }
/** /**
* 实际工时 * 实际工时
**/ **/
public BigDecimal getTotalActWorkload() {
return this.totalActWorkload;
public BigDecimal getActWorkload() {
return this.actWorkload;
} }
/** /**
* 实际总金额 * 实际总金额
**/ **/
public BigDecimal getTotalActCostAmount() {
return this.totalActCostAmount;
public BigDecimal getActCost() {
return this.actCost;
} }
/** /**
* 期望结果 * 期望结果
@ -684,18 +684,6 @@ public class XmQuestion implements java.io.Serializable {
public String getQtype() { public String getQtype() {
return this.qtype; return this.qtype;
} }
/**
* 测试任务编号关联taskType='test'的任务
**/
public String getTaskId() {
return this.taskId;
}
/**
* 测试任务名称
**/
public String getTaskName() {
return this.taskName;
}
/** /**
* 迭代编号 * 迭代编号
**/ **/
@ -717,8 +705,8 @@ public class XmQuestion implements java.io.Serializable {
/** /**
* 最后更新说明 * 最后更新说明
**/ **/
public String getLremark() {
return this.lremark;
public String getRemarks() {
return this.remarks;
} }
/** /**
* 产品编号 * 产品编号
@ -750,5 +738,17 @@ public class XmQuestion implements java.io.Serializable {
public String getPverNum() { public String getPverNum() {
return this.pverNum; return this.pverNum;
} }
/**
* 原因分析
**/
public String getBugReason() {
return this.bugReason;
}
/**
* 进度0-100
**/
public Integer getRate() {
return this.rate;
}
} }

31
xm-core/src/main/java/com/xm/core/entity/XmTask.java

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmTask所有属性名: <br> * 实体 XmTask所有属性名: <br>
* id,name,parentTaskid,parentTaskname,projectId,projectName,level,sortLevel,executorUserid,executorUsername,preTaskid,preTaskname,startTime,endTime,milestone,description,remarks,createUserid,createUsername,createTime,rate,budgetCost,budgetWorkload,actCost,actWorkload,taskState,taskType,taskClass,toTaskCenter,actStartTime,actEndTime,bizProcInstId,bizFlowState,phaseId,phaseName,taskSkillNames,exeUsernames,taskSkillIds,exeUserids,taskOut,planType,settleSchemel,menuId,menuName,productId,productName,cbranchId,cdeptid,tagIds,tagNames,ntype,childrenCnt,ltime,pidPaths,lvl,isTpl,keyPath,uniInnerPrice,uniOutPrice,calcType,ptype,wtype,bctrl;<br>
* id,name,parentTaskid,parentTaskname,projectId,projectName,level,sortLevel,executorUserid,executorUsername,preTaskid,preTaskname,startTime,endTime,milestone,description,remarks,createUserid,createUsername,createTime,rate,budgetCost,budgetWorkload,actCost,actWorkload,taskState,taskType,taskClass,toTaskCenter,actStartTime,actEndTime,bizProcInstId,bizFlowState,phaseId,phaseName,taskSkillNames,exeUsernames,taskSkillIds,exeUserids,taskOut,planType,settleSchemel,menuId,menuName,productId,cbranchId,cdeptid,tagIds,tagNames,ntype,childrenCnt,ltime,pidPaths,lvl,isTpl,keyPath,uniInnerPrice,uniOutPrice,calcType,ptype,wtype,bctrl;<br>
* xm_task xm_task的所有字段名: <br> * xm_task xm_task的所有字段名: <br>
* id,name,parent_taskid,parent_taskname,project_id,project_name,level,sort_level,executor_userid,executor_username,pre_taskid,pre_taskname,start_time,end_time,milestone,description,remarks,create_userid,create_username,create_time,rate,budget_cost,budget_workload,act_cost,act_workload,task_state,task_type,task_class,to_task_center,act_start_time,act_end_time,biz_proc_inst_id,biz_flow_state,phase_id,phase_name,task_skill_names,exe_usernames,task_skill_ids,exe_userids,task_out,plan_type,settle_schemel,menu_id,menu_name,product_id,product_name,cbranch_id,cdeptid,tag_ids,tag_names,ntype,children_cnt,ltime,pid_paths,lvl,is_tpl,key_path,uni_inner_price,uni_out_price,calc_type,ptype,wtype,bctrl;<br>
* id,name,parent_taskid,parent_taskname,project_id,project_name,level,sort_level,executor_userid,executor_username,pre_taskid,pre_taskname,start_time,end_time,milestone,description,remarks,create_userid,create_username,create_time,rate,budget_cost,budget_workload,act_cost,act_workload,task_state,task_type,task_class,to_task_center,act_start_time,act_end_time,biz_proc_inst_id,biz_flow_state,phase_id,phase_name,task_skill_names,exe_usernames,task_skill_ids,exe_userids,task_out,plan_type,settle_schemel,menu_id,menu_name,product_id,cbranch_id,cdeptid,tag_ids,tag_names,ntype,children_cnt,ltime,pid_paths,lvl,is_tpl,key_path,uni_inner_price,uni_out_price,calc_type,ptype,wtype,bctrl;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -41,7 +41,7 @@ public class XmTask implements java.io.Serializable {
@ApiModelProperty(notes="任务级别",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="任务级别",allowEmptyValue=true,example="",allowableValues="")
String level; String level;
@ApiModelProperty(notes="排序级别",allowEmptyValue=true,example="",allowableValues="")
@ApiModelProperty(notes="序号",allowEmptyValue=true,example="",allowableValues="")
String sortLevel; String sortLevel;
@ApiModelProperty(notes="任务执行人编号",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="任务执行人编号",allowEmptyValue=true,example="",allowableValues="")
@ -81,7 +81,7 @@ public class XmTask implements java.io.Serializable {
Date createTime; Date createTime;
@ApiModelProperty(notes="任务进度0-100(=实际工时/预算工时*100)",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="任务进度0-100(=实际工时/预算工时*100)",allowEmptyValue=true,example="",allowableValues="")
BigDecimal rate;
Integer rate;
@ApiModelProperty(notes="当前任务预算金额(calc_type=2时预算工时*单价,calc_type=1时下级汇总)",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="当前任务预算金额(calc_type=2时预算工时*单价,calc_type=1时下级汇总)",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetCost; BigDecimal budgetCost;
@ -155,9 +155,6 @@ public class XmTask implements java.io.Serializable {
@ApiModelProperty(notes="产品编号根据功能变化带进",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="产品编号根据功能变化带进",allowEmptyValue=true,example="",allowableValues="")
String productId; String productId;
@ApiModelProperty(notes="产品名称(作废)",allowEmptyValue=true,example="",allowableValues="")
String productName;
@ApiModelProperty(notes="创建机构",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建机构",allowEmptyValue=true,example="",allowableValues="")
String cbranchId; String cbranchId;
@ -261,7 +258,7 @@ public class XmTask implements java.io.Serializable {
this.level = level; this.level = level;
} }
/** /**
* 排序级别
* 序号
**/ **/
public void setSortLevel(String sortLevel) { public void setSortLevel(String sortLevel) {
this.sortLevel = sortLevel; this.sortLevel = sortLevel;
@ -341,7 +338,7 @@ public class XmTask implements java.io.Serializable {
/** /**
* 任务进度0-100=实际工时/预算工时*100 * 任务进度0-100=实际工时/预算工时*100
**/ **/
public void setRate(BigDecimal rate) {
public void setRate(Integer rate) {
this.rate = rate; this.rate = rate;
} }
/** /**
@ -488,12 +485,6 @@ public class XmTask implements java.io.Serializable {
public void setProductId(String productId) { public void setProductId(String productId) {
this.productId = productId; this.productId = productId;
} }
/**
* 产品名称(作废)
**/
public void setProductName(String productName) {
this.productName = productName;
}
/** /**
* 创建机构 * 创建机构
**/ **/
@ -640,7 +631,7 @@ public class XmTask implements java.io.Serializable {
return this.level; return this.level;
} }
/** /**
* 排序级别
* 序号
**/ **/
public String getSortLevel() { public String getSortLevel() {
return this.sortLevel; return this.sortLevel;
@ -720,7 +711,7 @@ public class XmTask implements java.io.Serializable {
/** /**
* 任务进度0-100=实际工时/预算工时*100 * 任务进度0-100=实际工时/预算工时*100
**/ **/
public BigDecimal getRate() {
public Integer getRate() {
return this.rate; return this.rate;
} }
/** /**
@ -867,12 +858,6 @@ public class XmTask implements java.io.Serializable {
public String getProductId() { public String getProductId() {
return this.productId; return this.productId;
} }
/**
* 产品名称(作废)
**/
public String getProductName() {
return this.productName;
}
/** /**
* 创建机构 * 创建机构
**/ **/

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

@ -138,7 +138,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},#{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}
#{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}
) )
</insert> </insert>
@ -201,7 +201,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,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
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
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -228,10 +228,10 @@
<if test="bizFlowState != null and bizFlowState != ''"> and res.biz_flow_state = #{bizFlowState} </if> <if test="bizFlowState != null and bizFlowState != ''"> and res.biz_flow_state = #{bizFlowState} </if>
<if test="menuId != null and menuId != ''"> and res.menu_id = #{menuId} </if> <if test="menuId != null and menuId != ''"> and res.menu_id = #{menuId} </if>
<if test="menuName != null and menuName != ''"> and res.menu_name = #{menuName} </if> <if test="menuName != null and menuName != ''"> and res.menu_name = #{menuName} </if>
<if test="planWorkload != null and planWorkload != ''"> and res.plan_workload = #{planWorkload} </if>
<if test="planCostAmount != null and planCostAmount != ''"> and res.plan_cost_amount = #{planCostAmount} </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> and res.total_act_workload = #{totalActWorkload} </if>
<if test="totalActCostAmount != null and totalActCostAmount != ''"> and res.total_act_cost_amount = #{totalActCostAmount} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetCost != null and budgetCost != ''"> and res.budget_cost = #{budgetCost} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="actCost != null and actCost != ''"> and res.act_cost = #{actCost} </if>
<if test="expectResult != null and expectResult != ''"> and res.expect_result = #{expectResult} </if> <if test="expectResult != null and expectResult != ''"> and res.expect_result = #{expectResult} </if>
<if test="opStep != null and opStep != ''"> and res.op_step = #{opStep} </if> <if test="opStep != null and opStep != ''"> and res.op_step = #{opStep} </if>
<if test="currResult != null and currResult != ''"> and res.curr_result = #{currResult} </if> <if test="currResult != null and currResult != ''"> and res.curr_result = #{currResult} </if>
@ -243,17 +243,17 @@
<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="taskId != null and taskId != ''"> and res.task_id = #{taskId} </if>
<if test="taskName != null and taskName != ''"> and res.task_name = #{taskName} </if>
<if test="iterationId != null and iterationId != ''"> and res.iteration_id = #{iterationId} </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="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="lremark != null and lremark != ''"> and res.lremark = #{lremark} </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>
<if test="repRate != null and repRate != ''"> and res.rep_rate = #{repRate} </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="verNum != null and verNum != ''"> and res.ver_num = #{verNum} </if>
<if test="vpath != null and vpath != ''"> and res.vpath = #{vpath} </if> <if test="vpath != null and vpath != ''"> and res.vpath = #{vpath} </if>
<if test="pverNum != null and pverNum != ''"> and res.pver_num = #{pverNum} </if> <if test="pverNum != null and pverNum != ''"> and res.pver_num = #{pverNum} </if>
<if test="bugReason != null and bugReason != ''"> and res.bug_reason = #{bugReason} </if>
<if test="rate != null and rate != ''"> and res.rate = #{rate} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -278,10 +278,10 @@
biz_flow_state = #{bizFlowState}, biz_flow_state = #{bizFlowState},
menu_id = #{menuId}, menu_id = #{menuId},
menu_name = #{menuName}, menu_name = #{menuName},
plan_workload = #{planWorkload},
plan_cost_amount = #{planCostAmount},
total_act_workload = #{totalActWorkload},
total_act_cost_amount = #{totalActCostAmount},
budget_workload = #{budgetWorkload},
budget_cost = #{budgetCost},
act_workload = #{actWorkload},
act_cost = #{actCost},
expect_result = #{expectResult}, expect_result = #{expectResult},
op_step = #{opStep}, op_step = #{opStep},
curr_result = #{currResult}, curr_result = #{currResult},
@ -293,17 +293,17 @@
urls = #{urls}, urls = #{urls},
ltime = #{ltime}, ltime = #{ltime},
qtype = #{qtype}, qtype = #{qtype},
task_id = #{taskId},
task_name = #{taskName},
iteration_id = #{iterationId}, iteration_id = #{iterationId},
iteration_name = #{iterationName}, iteration_name = #{iterationName},
case_exec_id = #{caseExecId}, case_exec_id = #{caseExecId},
lremark = #{lremark},
remarks = #{remarks},
product_id = #{productId}, product_id = #{productId},
rep_rate = #{repRate}, rep_rate = #{repRate},
ver_num = #{verNum}, ver_num = #{verNum},
vpath = #{vpath}, vpath = #{vpath},
pver_num = #{pverNum}
pver_num = #{pverNum},
bug_reason = #{bugReason},
rate = #{rate}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="name != null and name != ''"> name = #{name}, </if> <if test="name != null and name != ''"> name = #{name}, </if>
@ -327,10 +327,10 @@
<if test="bizFlowState != null and bizFlowState != ''"> biz_flow_state = #{bizFlowState}, </if> <if test="bizFlowState != null and bizFlowState != ''"> biz_flow_state = #{bizFlowState}, </if>
<if test="menuId != null and menuId != ''"> menu_id = #{menuId}, </if> <if test="menuId != null and menuId != ''"> menu_id = #{menuId}, </if>
<if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if> <if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if>
<if test="planWorkload != null and planWorkload != ''"> plan_workload = #{planWorkload}, </if>
<if test="planCostAmount != null and planCostAmount != ''"> plan_cost_amount = #{planCostAmount}, </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> total_act_workload = #{totalActWorkload}, </if>
<if test="totalActCostAmount != null and totalActCostAmount != ''"> total_act_cost_amount = #{totalActCostAmount}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetCost != null and budgetCost != ''"> budget_cost = #{budgetCost}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="actCost != null and actCost != ''"> act_cost = #{actCost}, </if>
<if test="expectResult != null and expectResult != ''"> expect_result = #{expectResult}, </if> <if test="expectResult != null and expectResult != ''"> expect_result = #{expectResult}, </if>
<if test="opStep != null and opStep != ''"> op_step = #{opStep}, </if> <if test="opStep != null and opStep != ''"> op_step = #{opStep}, </if>
<if test="currResult != null and currResult != ''"> curr_result = #{currResult}, </if> <if test="currResult != null and currResult != ''"> curr_result = #{currResult}, </if>
@ -342,17 +342,17 @@
<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="taskId != null and taskId != ''"> task_id = #{taskId}, </if>
<if test="taskName != null and taskName != ''"> task_name = #{taskName}, </if>
<if test="iterationId != null and iterationId != ''"> iteration_id = #{iterationId}, </if> <if test="iterationId != null and iterationId != ''"> iteration_id = #{iterationId}, </if>
<if test="iterationName != null and iterationName != ''"> iteration_name = #{iterationName}, </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="lremark != null and lremark != ''"> lremark = #{lremark}, </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>
<if test="repRate != null and repRate != ''"> rep_rate = #{repRate}, </if> <if test="repRate != null and repRate != ''"> rep_rate = #{repRate}, </if>
<if test="verNum != null and verNum != ''"> ver_num = #{verNum}, </if> <if test="verNum != null and verNum != ''"> ver_num = #{verNum}, </if>
<if test="vpath != null and vpath != ''"> vpath = #{vpath}, </if> <if test="vpath != null and vpath != ''"> vpath = #{vpath}, </if>
<if test="pverNum != null and pverNum != ''"> pver_num = #{pverNum}, </if> <if test="pverNum != null and pverNum != ''"> pver_num = #{pverNum}, </if>
<if test="bugReason != null and bugReason != ''"> bug_reason = #{bugReason}, </if>
<if test="rate != null and rate != ''"> rate = #{rate}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -377,10 +377,10 @@
biz_flow_state = #{item.bizFlowState}, biz_flow_state = #{item.bizFlowState},
menu_id = #{item.menuId}, menu_id = #{item.menuId},
menu_name = #{item.menuName}, menu_name = #{item.menuName},
plan_workload = #{item.planWorkload},
plan_cost_amount = #{item.planCostAmount},
total_act_workload = #{item.totalActWorkload},
total_act_cost_amount = #{item.totalActCostAmount},
budget_workload = #{item.budgetWorkload},
budget_cost = #{item.budgetCost},
act_workload = #{item.actWorkload},
act_cost = #{item.actCost},
expect_result = #{item.expectResult}, expect_result = #{item.expectResult},
op_step = #{item.opStep}, op_step = #{item.opStep},
curr_result = #{item.currResult}, curr_result = #{item.currResult},
@ -392,16 +392,16 @@
urls = #{item.urls}, urls = #{item.urls},
ltime = #{item.ltime}, ltime = #{item.ltime},
qtype = #{item.qtype}, qtype = #{item.qtype},
task_id = #{item.taskId},
task_name = #{item.taskName},
iteration_id = #{item.iterationId}, iteration_id = #{item.iterationId},
iteration_name = #{item.iterationName}, iteration_name = #{item.iterationName},
case_exec_id = #{item.caseExecId}, case_exec_id = #{item.caseExecId},
lremark = #{item.lremark},
remarks = #{item.remarks},
product_id = #{item.productId}, product_id = #{item.productId},
rep_rate = #{item.repRate}, rep_rate = #{item.repRate},
ver_num = #{item.verNum}, ver_num = #{item.verNum},
vpath = #{item.vpath}, vpath = #{item.vpath},
pver_num = #{item.pverNum}
pver_num = #{item.pverNum},
bug_reason = #{item.bugReason},
rate = #{item.rate}
</sql> </sql>
</mapper> </mapper>

8
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

@ -407,7 +407,7 @@
insert into xm_task( insert into xm_task(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{name},#{parentTaskid},#{parentTaskname},#{projectId},#{projectName},#{level},#{sortLevel},#{executorUserid},#{executorUsername},#{preTaskid},#{preTaskname},#{startTime},#{endTime},#{milestone},#{description},#{remarks},#{createUserid},#{createUsername},#{createTime},#{rate},#{budgetCost},#{budgetWorkload},#{actCost},#{actWorkload},#{taskState},#{taskType},#{taskClass},#{toTaskCenter},#{actStartTime},#{actEndTime},#{bizProcInstId},#{bizFlowState},#{phaseId},#{phaseName},#{taskSkillNames},#{exeUsernames},#{taskSkillIds},#{exeUserids},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName},#{productId},#{productName},#{cbranchId},#{cdeptid},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{pidPaths},#{lvl},#{isTpl},#{keyPath},#{uniInnerPrice},#{uniOutPrice},#{calcType},#{ptype},#{wtype},#{bctrl}
#{id},#{name},#{parentTaskid},#{parentTaskname},#{projectId},#{projectName},#{level},#{sortLevel},#{executorUserid},#{executorUsername},#{preTaskid},#{preTaskname},#{startTime},#{endTime},#{milestone},#{description},#{remarks},#{createUserid},#{createUsername},#{createTime},#{rate},#{budgetCost},#{budgetWorkload},#{actCost},#{actWorkload},#{taskState},#{taskType},#{taskClass},#{toTaskCenter},#{actStartTime},#{actEndTime},#{bizProcInstId},#{bizFlowState},#{phaseId},#{phaseName},#{taskSkillNames},#{exeUsernames},#{taskSkillIds},#{exeUserids},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName},#{productId},#{cbranchId},#{cdeptid},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{pidPaths},#{lvl},#{isTpl},#{keyPath},#{uniInnerPrice},#{uniOutPrice},#{calcType},#{ptype},#{wtype},#{bctrl}
) )
</insert> </insert>
@ -470,7 +470,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,name,parent_taskid,parent_taskname,project_id,project_name,level,sort_level,executor_userid,executor_username,pre_taskid,pre_taskname,start_time,end_time,milestone,description,remarks,create_userid,create_username,create_time,rate,budget_cost,budget_workload,act_cost,act_workload,task_state,task_type,task_class,to_task_center,act_start_time,act_end_time,biz_proc_inst_id,biz_flow_state,phase_id,phase_name,task_skill_names,exe_usernames,task_skill_ids,exe_userids,task_out,plan_type,settle_schemel,menu_id,menu_name,product_id,product_name,cbranch_id,cdeptid,tag_ids,tag_names,ntype,children_cnt,ltime,pid_paths,lvl,is_tpl,key_path,uni_inner_price,uni_out_price,calc_type,ptype,wtype,bctrl
id,name,parent_taskid,parent_taskname,project_id,project_name,level,sort_level,executor_userid,executor_username,pre_taskid,pre_taskname,start_time,end_time,milestone,description,remarks,create_userid,create_username,create_time,rate,budget_cost,budget_workload,act_cost,act_workload,task_state,task_type,task_class,to_task_center,act_start_time,act_end_time,biz_proc_inst_id,biz_flow_state,phase_id,phase_name,task_skill_names,exe_usernames,task_skill_ids,exe_userids,task_out,plan_type,settle_schemel,menu_id,menu_name,product_id,cbranch_id,cdeptid,tag_ids,tag_names,ntype,children_cnt,ltime,pid_paths,lvl,is_tpl,key_path,uni_inner_price,uni_out_price,calc_type,ptype,wtype,bctrl
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -520,7 +520,6 @@
<if test="menuId != null and menuId != ''"> and res.menu_id = #{menuId} </if> <if test="menuId != null and menuId != ''"> and res.menu_id = #{menuId} </if>
<if test="menuName != null and menuName != ''"> and res.menu_name = #{menuName} </if> <if test="menuName != null and menuName != ''"> and res.menu_name = #{menuName} </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>
<if test="productName != null and productName != ''"> and res.product_name = #{productName} </if>
<if test="cbranchId != null and cbranchId != ''"> and res.cbranch_id = #{cbranchId} </if> <if test="cbranchId != null and cbranchId != ''"> and res.cbranch_id = #{cbranchId} </if>
<if test="cdeptid != null and cdeptid != ''"> and res.cdeptid = #{cdeptid} </if> <if test="cdeptid != null and cdeptid != ''"> and res.cdeptid = #{cdeptid} </if>
<if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if> <if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if>
@ -585,7 +584,6 @@
menu_id = #{menuId}, menu_id = #{menuId},
menu_name = #{menuName}, menu_name = #{menuName},
product_id = #{productId}, product_id = #{productId},
product_name = #{productName},
cbranch_id = #{cbranchId}, cbranch_id = #{cbranchId},
cdeptid = #{cdeptid}, cdeptid = #{cdeptid},
tag_ids = #{tagIds}, tag_ids = #{tagIds},
@ -649,7 +647,6 @@
<if test="menuId != null and menuId != ''"> menu_id = #{menuId}, </if> <if test="menuId != null and menuId != ''"> menu_id = #{menuId}, </if>
<if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if> <if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if> <if test="productId != null and productId != ''"> product_id = #{productId}, </if>
<if test="productName != null and productName != ''"> product_name = #{productName}, </if>
<if test="cbranchId != null and cbranchId != ''"> cbranch_id = #{cbranchId}, </if> <if test="cbranchId != null and cbranchId != ''"> cbranch_id = #{cbranchId}, </if>
<if test="cdeptid != null and cdeptid != ''"> cdeptid = #{cdeptid}, </if> <if test="cdeptid != null and cdeptid != ''"> cdeptid = #{cdeptid}, </if>
<if test="tagIds != null and tagIds != ''"> tag_ids = #{tagIds}, </if> <if test="tagIds != null and tagIds != ''"> tag_ids = #{tagIds}, </if>
@ -714,7 +711,6 @@
menu_id = #{item.menuId}, menu_id = #{item.menuId},
menu_name = #{item.menuName}, menu_name = #{item.menuName},
product_id = #{item.productId}, product_id = #{item.productId},
product_name = #{item.productName},
cbranch_id = #{item.cbranchId}, cbranch_id = #{item.cbranchId},
cdeptid = #{item.cdeptid}, cdeptid = #{item.cdeptid},
tag_ids = #{item.tagIds}, tag_ids = #{item.tagIds},

Loading…
Cancel
Save