@ -35,18 +35,6 @@
<if test= "linkIterationId != null and linkIterationId != ''" > and exists (select 1 from xm_menu m where m.iteration_id=#{linkIterationId} and m.menu_id=res.menu_id) </if>
<if test= "linkIterationId != null and linkIterationId != ''" > and exists (select 1 from xm_menu m where m.iteration_id=#{linkIterationId} and m.menu_id=res.menu_id) </if>
</sql>
</sql>
<update id= "editSomeFields" parameterType= "HashMap" >
update xm_question
<set >
<include refid= "someFieldSet" />
</set>
where id in
<foreach collection= "ids" item= "item" index= "index" open= "(" separator= "," close= ")" >
#{item}
</foreach>
</update>
<select id= "getXmQuestionAttDist" parameterType= "HashMap" resultType= "HashMap" >
<select id= "getXmQuestionAttDist" parameterType= "HashMap" resultType= "HashMap" >
select count(*) as value,${groupBy} as name from xm_question res
select count(*) as value,${groupBy} as name from xm_question res
<where >
<where >
@ -121,7 +109,7 @@
</select>
</select>
<!-- 获取数据条目 返回long -->
<!-- 获取数据条目 返回long -->
<select id= "countByWhere" parameterType= "com.xm.core.entity.XmQuestion" resultType= "long" >
<select id= "countByWhere" parameterType= "com.xm.core.entity.XmQuestion" resultType= "long" >
select count(1 ) from xm_question res
select count(* ) from xm_question res
<where >
<where >
<include refid= "where" />
<include refid= "where" />
</where>
</where>
@ -131,7 +119,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},#{actCos t},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{caseExecId},#{remarks},#{productId},#{repRate},#{verNum},#{vpath},#{pverNum},#{bugReason},#{rate},#{initWorkload}
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{budgetWorkload},#{budgetAt},#{actWorkload},#{actA t},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{caseExecId},#{remarks},#{productId},#{repRate},#{verNum},#{vpath},#{pverNum},#{bugReason},#{rate},#{initWorkload},#{taskOut}
)
)
</insert>
</insert>
@ -181,6 +169,18 @@
where id = #{item.id}
where id = #{item.id}
</foreach>
</foreach>
</update>
</update>
<!-- 批量修改某几个字段 -->
<delete id= "editSomeFields" parameterType= "HashMap" >
update xm_question
<set >
<include refid= "someFieldSet" />
</set>
where (id) in
<foreach collection= "ids" item= "item" index= "index" open= "(" separator= "," close= ")" >
( #{item})
</foreach>
</delete>
<!-- 批量删除 -->
<!-- 批量删除 -->
<delete id= "batchDelete" parameterType= "List" >
<delete id= "batchDelete" parameterType= "List" >
delete from xm_question
delete from xm_question
@ -194,7 +194,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_cos t,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,init_workload
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_at,act_workload,act_a t,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,init_workload,task_out
</sql>
</sql>
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
@ -222,9 +222,9 @@
<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= "budgetWorkload != null and budgetWorkload != ''" > and res.budget_workload = #{budgetWorkload} </if>
<if test= "budgetWorkload != null and budgetWorkload != ''" > and res.budget_workload = #{budgetWorkload} </if>
<if test= "budgetCost != null and budgetCost != ''" > and res.budget_cost = #{budgetCos t} </if>
<if test= "budgetAt != null and budgetAt != ''" > and res.budget_at = #{budgetA t} </if>
<if test= "actWorkload != null and actWorkload != ''" > and res.act_workload = #{actWorkload} </if>
<if test= "actWorkload != null and actWorkload != ''" > and res.act_workload = #{actWorkload} </if>
<if test= "actCost != null and actCost != ''" > and res.act_cost = #{actCos t} </if>
<if test= "actAt != null and actAt != ''" > and res.act_at = #{actA t} </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>
@ -246,6 +246,7 @@
<if test= "bugReason != null and bugReason != ''" > and res.bug_reason = #{bugReason} </if>
<if test= "bugReason != null and bugReason != ''" > and res.bug_reason = #{bugReason} </if>
<if test= "rate != null and rate != ''" > and res.rate = #{rate} </if>
<if test= "rate != null and rate != ''" > and res.rate = #{rate} </if>
<if test= "initWorkload != null and initWorkload != ''" > and res.init_workload = #{initWorkload} </if>
<if test= "initWorkload != null and initWorkload != ''" > and res.init_workload = #{initWorkload} </if>
<if test= "taskOut != null and taskOut != ''" > and res.task_out = #{taskOut} </if>
</sql>
</sql>
<!-- sql片段 更新字段 -->
<!-- sql片段 更新字段 -->
<sql id= "set" >
<sql id= "set" >
@ -271,9 +272,9 @@
menu_id = #{menuId},
menu_id = #{menuId},
menu_name = #{menuName},
menu_name = #{menuName},
budget_workload = #{budgetWorkload},
budget_workload = #{budgetWorkload},
budget_cost = #{budgetCos t},
budget_at = #{budgetA t},
act_workload = #{actWorkload},
act_workload = #{actWorkload},
act_cost = #{actCos t},
act_at = #{actA t},
expect_result = #{expectResult},
expect_result = #{expectResult},
op_step = #{opStep},
op_step = #{opStep},
curr_result = #{currResult},
curr_result = #{currResult},
@ -294,7 +295,8 @@
pver_num = #{pverNum},
pver_num = #{pverNum},
bug_reason = #{bugReason},
bug_reason = #{bugReason},
rate = #{rate},
rate = #{rate},
init_workload = #{initWorkload}
init_workload = #{initWorkload},
task_out = #{taskOut}
</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>
@ -319,9 +321,9 @@
<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= "budgetWorkload != null and budgetWorkload != ''" > budget_workload = #{budgetWorkload}, </if>
<if test= "budgetWorkload != null and budgetWorkload != ''" > budget_workload = #{budgetWorkload}, </if>
<if test= "budgetCost != null and budgetCost != ''" > budget_cost = #{budgetCos t}, </if>
<if test= "budgetAt != null and budgetAt != ''" > budget_at = #{budgetA t}, </if>
<if test= "actWorkload != null and actWorkload != ''" > act_workload = #{actWorkload}, </if>
<if test= "actWorkload != null and actWorkload != ''" > act_workload = #{actWorkload}, </if>
<if test= "actCost != null and actCost != ''" > act_cost = #{actCos t}, </if>
<if test= "actAt != null and actAt != ''" > act_at = #{actA t}, </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>
@ -343,6 +345,7 @@
<if test= "bugReason != null and bugReason != ''" > bug_reason = #{bugReason}, </if>
<if test= "bugReason != null and bugReason != ''" > bug_reason = #{bugReason}, </if>
<if test= "rate != null and rate != ''" > rate = #{rate}, </if>
<if test= "rate != null and rate != ''" > rate = #{rate}, </if>
<if test= "initWorkload != null and initWorkload != ''" > init_workload = #{initWorkload}, </if>
<if test= "initWorkload != null and initWorkload != ''" > init_workload = #{initWorkload}, </if>
<if test= "taskOut != null and taskOut != ''" > task_out = #{taskOut}, </if>
</sql>
</sql>
<!-- sql片段 批量更新 -->
<!-- sql片段 批量更新 -->
<sql id= "batchSet" >
<sql id= "batchSet" >
@ -368,9 +371,9 @@
menu_id = #{item.menuId},
menu_id = #{item.menuId},
menu_name = #{item.menuName},
menu_name = #{item.menuName},
budget_workload = #{item.budgetWorkload},
budget_workload = #{item.budgetWorkload},
budget_cost = #{item.budgetCos t},
budget_at = #{item.budgetA t},
act_workload = #{item.actWorkload},
act_workload = #{item.actWorkload},
act_cost = #{item.actCos t},
act_at = #{item.actA t},
expect_result = #{item.expectResult},
expect_result = #{item.expectResult},
op_step = #{item.opStep},
op_step = #{item.opStep},
curr_result = #{item.currResult},
curr_result = #{item.currResult},
@ -391,6 +394,7 @@
pver_num = #{item.pverNum},
pver_num = #{item.pverNum},
bug_reason = #{item.bugReason},
bug_reason = #{item.bugReason},
rate = #{item.rate},
rate = #{item.rate},
init_workload = #{item.initWorkload}
init_workload = #{item.initWorkload},
task_out = #{item.taskOut}
</sql>
</sql>
</mapper>
</mapper>