@ -101,7 +101,13 @@
where
res.branch_id = #{branchId}
</select>
<select id= "selectListByIds" parameterType= "List" resultType= "com.xm.core.entity.XmBranchState" >
select * from xm_branch_state res
where (res.branch_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_branch_state res
@ -120,7 +126,7 @@
insert into xm_branch_state(
<include refid= "columns" />
) values (
#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetInnerU serAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOutUserAmount},#{totalCompleteWorkload},#{totalCostInnerUserAmount},#{totalCostOutU serAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanInnerUserWorkload},#{totalPlanOutU serWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt},#{projectCnt}
#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetIu serAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOuserAmount},#{totalCompleteWorkload},#{totalCostIuserAmount},#{totalCostOu serAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanIuserWorkload},#{totalPlanOu serWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt},#{projectCnt},#{productBudgetWorkload},#{productActWorkload},#{estimateWorkload},#{execTaskCnt},#{toStartTaskCnt},#{execMenuCnt},#{toStartMenuCnt}
)
</insert>
@ -183,7 +189,7 @@
<!-- sql片段 列 -->
<sql id= "columns" >
biz_date,total_file_cnt,total_bug_cnt,total_task_cnt,total_budget_nouser_amount,total_staff_cnt,calc_time,calc_status,total_cost_nouser_amount,total_closed_bug_cnt,total_resolved_bug_cnt,total_complete_task_cnt,total_phase_cnt,total_complete_phase_cnt,total_need_pay_amount,total_finish_pay_amount,total_need_col_amount,total_finish_col_amount,total_cost_user_amount,total_budget_inner_ user_amount,total_plan_workload,total_risk_cnt,total_complete_risk_cnt,branch_id,branch_name,total_budget_out_u ser_amount,total_complete_workload,total_cost_inner_ user_amount,total_cost_out_ user_amount,total_progress,total_active_bug_cnt,total_confirmed_bug_cnt,project_status,total_act_workload,total_act_out_workload,total_act_inner_workload,total_task_budget_cost_at,total_task_out_cnt,total_need_pay_cnt,total_finish_pay_cnt,total_finish_pay_user_cnt,total_need_pay_user_cnt,total_plan_inner_ user_workload,total_plan_out_ user_workload,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,menu_cnt,project_cnt
biz_date,total_file_cnt,total_bug_cnt,total_task_cnt,total_budget_nouser_amount,total_staff_cnt,calc_time,calc_status,total_cost_nouser_amount,total_closed_bug_cnt,total_resolved_bug_cnt,total_complete_task_cnt,total_phase_cnt,total_complete_phase_cnt,total_need_pay_amount,total_finish_pay_amount,total_need_col_amount,total_finish_col_amount,total_cost_user_amount,total_budget_iuser_amount,total_plan_workload,total_risk_cnt,total_complete_risk_cnt,branch_id,branch_name,total_budget_ouser_amount,total_complete_workload,total_cost_iuser_amount,total_cost_ouser_amount,total_progress,total_active_bug_cnt,total_confirmed_bug_cnt,project_status,total_act_workload,total_act_out_workload,total_act_inner_workload,total_task_budget_cost_at,total_task_out_cnt,total_need_pay_cnt,total_finish_pay_cnt,total_finish_pay_user_cnt,total_need_pay_user_cnt,total_plan_iuser_workload,total_plan_ouser_workload,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,menu_cnt,project_cnt,product_budget_workload,product_act_workload,estimate_workload,exec_task_cnt,to_start_task_cnt,exec_menu_cnt,to_start_menu_cnt
</sql>
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
@ -207,16 +213,16 @@
<if test= "totalNeedColAmount != null and totalNeedColAmount != ''" > and res.total_need_col_amount = #{totalNeedColAmount} </if>
<if test= "totalFinishColAmount != null and totalFinishColAmount != ''" > and res.total_finish_col_amount = #{totalFinishColAmount} </if>
<if test= "totalCostUserAmount != null and totalCostUserAmount != ''" > and res.total_cost_user_amount = #{totalCostUserAmount} </if>
<if test= "totalBudgetInnerUserAmount != null and totalBudgetInnerUserAmount != ''" > and res.total_budget_inner_user_amount = #{totalBudgetInnerU serAmount} </if>
<if test= "totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''" > and res.total_budget_iuser_amount = #{totalBudgetIu serAmount} </if>
<if test= "totalPlanWorkload != null and totalPlanWorkload != ''" > and res.total_plan_workload = #{totalPlanWorkload} </if>
<if test= "totalRiskCnt != null and totalRiskCnt != ''" > and res.total_risk_cnt = #{totalRiskCnt} </if>
<if test= "totalCompleteRiskCnt != null and totalCompleteRiskCnt != ''" > and res.total_complete_risk_cnt = #{totalCompleteRiskCnt} </if>
<if test= "branchId != null and branchId != ''" > and res.branch_id = #{branchId} </if>
<if test= "branchName != null and branchName != ''" > and res.branch_name = #{branchName} </if>
<if test= "totalBudgetOutU serAmount != null and totalBudgetOutU serAmount != ''" > and res.total_budget_out_u ser_amount = #{totalBudgetOutU serAmount} </if>
<if test= "totalBudgetOuserAmount != null and totalBudgetOuserAmount != ''" > and res.total_budget_ouser_amount = #{totalBudgetOuserAmount} </if>
<if test= "totalCompleteWorkload != null and totalCompleteWorkload != ''" > and res.total_complete_workload = #{totalCompleteWorkload} </if>
<if test= "totalCostInnerUserAmount != null and totalCostInnerUserAmount != ''" > and res.total_cost_inner_user_amount = #{totalCostInnerU serAmount} </if>
<if test= "totalCostOutU serAmount != null and totalCostOutU serAmount != ''" > and res.total_cost_out_u ser_amount = #{totalCostOutU serAmount} </if>
<if test= "totalCostIuserAmount != null and totalCostIuserAmount != ''" > and res.total_cost_iuser_amount = #{totalCostIu serAmount} </if>
<if test= "totalCostOuserAmount != null and totalCostOuserAmount != ''" > and res.total_cost_ouser_amount = #{totalCostOuserAmount} </if>
<if test= "totalProgress != null and totalProgress != ''" > and res.total_progress = #{totalProgress} </if>
<if test= "totalActiveBugCnt != null and totalActiveBugCnt != ''" > and res.total_active_bug_cnt = #{totalActiveBugCnt} </if>
<if test= "totalConfirmedBugCnt != null and totalConfirmedBugCnt != ''" > and res.total_confirmed_bug_cnt = #{totalConfirmedBugCnt} </if>
@ -230,8 +236,8 @@
<if test= "totalFinishPayCnt != null and totalFinishPayCnt != ''" > and res.total_finish_pay_cnt = #{totalFinishPayCnt} </if>
<if test= "totalFinishPayUserCnt != null and totalFinishPayUserCnt != ''" > and res.total_finish_pay_user_cnt = #{totalFinishPayUserCnt} </if>
<if test= "totalNeedPayUserCnt != null and totalNeedPayUserCnt != ''" > and res.total_need_pay_user_cnt = #{totalNeedPayUserCnt} </if>
<if test= "totalPlanInnerUserWorkload != null and totalPlanInnerUserWorkload != ''" > and res.total_plan_inner_user_workload = #{totalPlanInnerU serWorkload} </if>
<if test= "totalPlanOutU serWorkload != null and totalPlanOutU serWorkload != ''" > and res.total_plan_out_u ser_workload = #{totalPlanOutU serWorkload} </if>
<if test= "totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''" > and res.total_plan_iuser_workload = #{totalPlanIu serWorkload} </if>
<if test= "totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''" > and res.total_plan_ouser_workload = #{totalPlanOuserWorkload} </if>
<if test= "testCases != null and testCases != ''" > and res.test_cases = #{testCases} </if>
<if test= "execCases != null and execCases != ''" > and res.exec_cases = #{execCases} </if>
<if test= "designCases != null and designCases != ''" > and res.design_cases = #{designCases} </if>
@ -240,6 +246,13 @@
<if test= "productCnt != null and productCnt != ''" > and res.product_cnt = #{productCnt} </if>
<if test= "menuCnt != null and menuCnt != ''" > and res.menu_cnt = #{menuCnt} </if>
<if test= "projectCnt != null and projectCnt != ''" > and res.project_cnt = #{projectCnt} </if>
<if test= "productBudgetWorkload != null and productBudgetWorkload != ''" > and res.product_budget_workload = #{productBudgetWorkload} </if>
<if test= "productActWorkload != null and productActWorkload != ''" > and res.product_act_workload = #{productActWorkload} </if>
<if test= "estimateWorkload != null and estimateWorkload != ''" > and res.estimate_workload = #{estimateWorkload} </if>
<if test= "execTaskCnt != null and execTaskCnt != ''" > and res.exec_task_cnt = #{execTaskCnt} </if>
<if test= "toStartTaskCnt != null and toStartTaskCnt != ''" > and res.to_start_task_cnt = #{toStartTaskCnt} </if>
<if test= "execMenuCnt != null and execMenuCnt != ''" > and res.exec_menu_cnt = #{execMenuCnt} </if>
<if test= "toStartMenuCnt != null and toStartMenuCnt != ''" > and res.to_start_menu_cnt = #{toStartMenuCnt} </if>
</sql>
<!-- sql片段 更新字段 -->
<sql id= "set" >
@ -262,15 +275,15 @@
total_need_col_amount = #{totalNeedColAmount},
total_finish_col_amount = #{totalFinishColAmount},
total_cost_user_amount = #{totalCostUserAmount},
total_budget_inner_user_amount = #{totalBudgetInnerU serAmount},
total_budget_iuser_amount = #{totalBudgetIu serAmount},
total_plan_workload = #{totalPlanWorkload},
total_risk_cnt = #{totalRiskCnt},
total_complete_risk_cnt = #{totalCompleteRiskCnt},
branch_name = #{branchName},
total_budget_out_u ser_amount = #{totalBudgetOutU serAmount},
total_budget_ouser_amount = #{totalBudgetOuserAmount},
total_complete_workload = #{totalCompleteWorkload},
total_cost_inner_user_amount = #{totalCostInnerU serAmount},
total_cost_out_u ser_amount = #{totalCostOutU serAmount},
total_cost_iuser_amount = #{totalCostIu serAmount},
total_cost_ouser_amount = #{totalCostOuserAmount},
total_progress = #{totalProgress},
total_active_bug_cnt = #{totalActiveBugCnt},
total_confirmed_bug_cnt = #{totalConfirmedBugCnt},
@ -284,8 +297,8 @@
total_finish_pay_cnt = #{totalFinishPayCnt},
total_finish_pay_user_cnt = #{totalFinishPayUserCnt},
total_need_pay_user_cnt = #{totalNeedPayUserCnt},
total_plan_inner_user_workload = #{totalPlanInnerU serWorkload},
total_plan_out_u ser_workload = #{totalPlanOutU serWorkload},
total_plan_iuser_workload = #{totalPlanIu serWorkload},
total_plan_ouser_workload = #{totalPlanOuserWorkload},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
@ -293,7 +306,14 @@
iteration_cnt = #{iterationCnt},
product_cnt = #{productCnt},
menu_cnt = #{menuCnt},
project_cnt = #{projectCnt}
project_cnt = #{projectCnt},
product_budget_workload = #{productBudgetWorkload},
product_act_workload = #{productActWorkload},
estimate_workload = #{estimateWorkload},
exec_task_cnt = #{execTaskCnt},
to_start_task_cnt = #{toStartTaskCnt},
exec_menu_cnt = #{execMenuCnt},
to_start_menu_cnt = #{toStartMenuCnt}
</sql>
<sql id= "someFieldSet" >
<if test= "bizDate != null and bizDate != ''" > biz_date = #{bizDate}, </if>
@ -315,15 +335,15 @@
<if test= "totalNeedColAmount != null and totalNeedColAmount != ''" > total_need_col_amount = #{totalNeedColAmount}, </if>
<if test= "totalFinishColAmount != null and totalFinishColAmount != ''" > total_finish_col_amount = #{totalFinishColAmount}, </if>
<if test= "totalCostUserAmount != null and totalCostUserAmount != ''" > total_cost_user_amount = #{totalCostUserAmount}, </if>
<if test= "totalBudgetInnerUserAmount != null and totalBudgetInnerUserAmount != ''" > total_budget_inner_user_amount = #{totalBudgetInnerU serAmount}, </if>
<if test= "totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''" > total_budget_iuser_amount = #{totalBudgetIu serAmount}, </if>
<if test= "totalPlanWorkload != null and totalPlanWorkload != ''" > total_plan_workload = #{totalPlanWorkload}, </if>
<if test= "totalRiskCnt != null and totalRiskCnt != ''" > total_risk_cnt = #{totalRiskCnt}, </if>
<if test= "totalCompleteRiskCnt != null and totalCompleteRiskCnt != ''" > total_complete_risk_cnt = #{totalCompleteRiskCnt}, </if>
<if test= "branchName != null and branchName != ''" > branch_name = #{branchName}, </if>
<if test= "totalBudgetOutU serAmount != null and totalBudgetOutU serAmount != ''" > total_budget_out_u ser_amount = #{totalBudgetOutU serAmount}, </if>
<if test= "totalBudgetOuserAmount != null and totalBudgetOuserAmount != ''" > total_budget_ouser_amount = #{totalBudgetOuserAmount}, </if>
<if test= "totalCompleteWorkload != null and totalCompleteWorkload != ''" > total_complete_workload = #{totalCompleteWorkload}, </if>
<if test= "totalCostInnerUserAmount != null and totalCostInnerUserAmount != ''" > total_cost_inner_user_amount = #{totalCostInnerU serAmount}, </if>
<if test= "totalCostOutU serAmount != null and totalCostOutU serAmount != ''" > total_cost_out_u ser_amount = #{totalCostOutU serAmount}, </if>
<if test= "totalCostIuserAmount != null and totalCostIuserAmount != ''" > total_cost_iuser_amount = #{totalCostIu serAmount}, </if>
<if test= "totalCostOuserAmount != null and totalCostOuserAmount != ''" > total_cost_ouser_amount = #{totalCostOuserAmount}, </if>
<if test= "totalProgress != null and totalProgress != ''" > total_progress = #{totalProgress}, </if>
<if test= "totalActiveBugCnt != null and totalActiveBugCnt != ''" > total_active_bug_cnt = #{totalActiveBugCnt}, </if>
<if test= "totalConfirmedBugCnt != null and totalConfirmedBugCnt != ''" > total_confirmed_bug_cnt = #{totalConfirmedBugCnt}, </if>
@ -337,8 +357,8 @@
<if test= "totalFinishPayCnt != null and totalFinishPayCnt != ''" > total_finish_pay_cnt = #{totalFinishPayCnt}, </if>
<if test= "totalFinishPayUserCnt != null and totalFinishPayUserCnt != ''" > total_finish_pay_user_cnt = #{totalFinishPayUserCnt}, </if>
<if test= "totalNeedPayUserCnt != null and totalNeedPayUserCnt != ''" > total_need_pay_user_cnt = #{totalNeedPayUserCnt}, </if>
<if test= "totalPlanInnerUserWorkload != null and totalPlanInnerUserWorkload != ''" > total_plan_inner_user_workload = #{totalPlanInnerU serWorkload}, </if>
<if test= "totalPlanOutU serWorkload != null and totalPlanOutU serWorkload != ''" > total_plan_out_u ser_workload = #{totalPlanOutU serWorkload}, </if>
<if test= "totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''" > total_plan_iuser_workload = #{totalPlanIu serWorkload}, </if>
<if test= "totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''" > total_plan_ouser_workload = #{totalPlanOuserWorkload}, </if>
<if test= "testCases != null and testCases != ''" > test_cases = #{testCases}, </if>
<if test= "execCases != null and execCases != ''" > exec_cases = #{execCases}, </if>
<if test= "designCases != null and designCases != ''" > design_cases = #{designCases}, </if>
@ -347,6 +367,13 @@
<if test= "productCnt != null and productCnt != ''" > product_cnt = #{productCnt}, </if>
<if test= "menuCnt != null and menuCnt != ''" > menu_cnt = #{menuCnt}, </if>
<if test= "projectCnt != null and projectCnt != ''" > project_cnt = #{projectCnt}, </if>
<if test= "productBudgetWorkload != null and productBudgetWorkload != ''" > product_budget_workload = #{productBudgetWorkload}, </if>
<if test= "productActWorkload != null and productActWorkload != ''" > product_act_workload = #{productActWorkload}, </if>
<if test= "estimateWorkload != null and estimateWorkload != ''" > estimate_workload = #{estimateWorkload}, </if>
<if test= "execTaskCnt != null and execTaskCnt != ''" > exec_task_cnt = #{execTaskCnt}, </if>
<if test= "toStartTaskCnt != null and toStartTaskCnt != ''" > to_start_task_cnt = #{toStartTaskCnt}, </if>
<if test= "execMenuCnt != null and execMenuCnt != ''" > exec_menu_cnt = #{execMenuCnt}, </if>
<if test= "toStartMenuCnt != null and toStartMenuCnt != ''" > to_start_menu_cnt = #{toStartMenuCnt}, </if>
</sql>
<!-- sql片段 批量更新 -->
<sql id= "batchSet" >
@ -369,15 +396,15 @@
total_need_col_amount = #{item.totalNeedColAmount},
total_finish_col_amount = #{item.totalFinishColAmount},
total_cost_user_amount = #{item.totalCostUserAmount},
total_budget_inner_user_amount = #{item.totalBudgetInnerU serAmount},
total_budget_iuser_amount = #{item.totalBudgetIu serAmount},
total_plan_workload = #{item.totalPlanWorkload},
total_risk_cnt = #{item.totalRiskCnt},
total_complete_risk_cnt = #{item.totalCompleteRiskCnt},
branch_name = #{item.branchName},
total_budget_out_u ser_amount = #{item.totalBudgetOutU serAmount},
total_budget_ouser_amount = #{item.totalBudgetOuserAmount},
total_complete_workload = #{item.totalCompleteWorkload},
total_cost_inner_user_amount = #{item.totalCostInnerU serAmount},
total_cost_out_u ser_amount = #{item.totalCostOutU serAmount},
total_cost_iuser_amount = #{item.totalCostIu serAmount},
total_cost_ouser_amount = #{item.totalCostOuserAmount},
total_progress = #{item.totalProgress},
total_active_bug_cnt = #{item.totalActiveBugCnt},
total_confirmed_bug_cnt = #{item.totalConfirmedBugCnt},
@ -391,8 +418,8 @@
total_finish_pay_cnt = #{item.totalFinishPayCnt},
total_finish_pay_user_cnt = #{item.totalFinishPayUserCnt},
total_need_pay_user_cnt = #{item.totalNeedPayUserCnt},
total_plan_inner_user_workload = #{item.totalPlanInnerU serWorkload},
total_plan_out_u ser_workload = #{item.totalPlanOutU serWorkload},
total_plan_iuser_workload = #{item.totalPlanIu serWorkload},
total_plan_ouser_workload = #{item.totalPlanOuserWorkload},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
@ -400,6 +427,13 @@
iteration_cnt = #{item.iterationCnt},
product_cnt = #{item.productCnt},
menu_cnt = #{item.menuCnt},
project_cnt = #{item.projectCnt}
project_cnt = #{item.projectCnt},
product_budget_workload = #{item.productBudgetWorkload},
product_act_workload = #{item.productActWorkload},
estimate_workload = #{item.estimateWorkload},
exec_task_cnt = #{item.execTaskCnt},
to_start_task_cnt = #{item.toStartTaskCnt},
exec_menu_cnt = #{item.execMenuCnt},
to_start_menu_cnt = #{item.toStartMenuCnt}
</sql>
</mapper>