|
|
@ -134,7 +134,7 @@ |
|
|
insert into xm_project_phase( |
|
|
insert into xm_project_phase( |
|
|
<include refid="columns"/> |
|
|
<include refid="columns"/> |
|
|
) values ( |
|
|
) values ( |
|
|
#{id},#{phaseName},#{remark},#{parentPhaseId},#{branchId},#{projectId},#{beginDate},#{endDate},#{phaseBudgetHours},#{phaseBudgetStaffNu},#{ctime},#{phaseBudgetNouserAt},#{phaseBudgetInnerUserAt},#{phaseBudgetOutUserAt},#{projectBaselineId},#{bizProcInstId},#{bizFlowState},#{phaseBudgetWorkload},#{phaseActWorkload},#{phaseActInnerUserWorkload},#{phaseActOutUserWorkload},#{taskType},#{planType},#{seqNo},#{phaseBudgetInnerUserWorkload},#{phaseBudgetOutUserWorkload},#{actNouserAt},#{actInnerUserAt},#{phaseBudgetInnerUserPrice},#{phaseBudgetOutUserPrice},#{phaseBudgetOutUserCnt},#{phaseBudgetInnerUserCnt},#{actRate},#{phaseStatus},#{actOutUserAt},#{taskCnt},#{finishTaskCnt},#{iterationCnt},#{calcTime},#{taskBudgetWorkload},#{taskBudgetAt},#{mngUserid},#{mngUsername},#{milestone},#{pleaf},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{isKeyPath},#{pidPaths} |
|
|
|
|
|
|
|
|
#{id},#{phaseName},#{remark},#{parentPhaseId},#{branchId},#{projectId},#{beginDate},#{endDate},#{phaseBudgetHours},#{phaseBudgetStaffNu},#{ctime},#{phaseBudgetNouserAt},#{phaseBudgetInnerUserAt},#{phaseBudgetOutUserAt},#{projectBaselineId},#{bizProcInstId},#{bizFlowState},#{phaseBudgetWorkload},#{phaseActWorkload},#{phaseActInnerUserWorkload},#{phaseActOutUserWorkload},#{taskType},#{planType},#{seqNo},#{phaseBudgetInnerUserWorkload},#{phaseBudgetOutUserWorkload},#{actNouserAt},#{actInnerUserAt},#{phaseBudgetInnerUserPrice},#{phaseBudgetOutUserPrice},#{phaseBudgetOutUserCnt},#{phaseBudgetInnerUserCnt},#{actRate},#{phaseStatus},#{actOutUserAt},#{taskCnt},#{finishTaskCnt},#{iterationCnt},#{calcTime},#{taskBudgetWorkload},#{taskBudgetAt},#{mngUserid},#{mngUsername},#{milestone},#{pleaf},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{isKeyPath},#{pidPaths},#{lvl} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -197,7 +197,7 @@ |
|
|
|
|
|
|
|
|
<!--sql片段 列--> |
|
|
<!--sql片段 列--> |
|
|
<sql id="columns"> |
|
|
<sql id="columns"> |
|
|
id,phase_name,remark,parent_phase_id,branch_id,project_id,begin_date,end_date,phase_budget_hours,phase_budget_staff_nu,ctime,phase_budget_nouser_at,phase_budget_inner_user_at,phase_budget_out_user_at,project_baseline_id,biz_proc_inst_id,biz_flow_state,phase_budget_workload,phase_act_workload,phase_act_inner_user_workload,phase_act_out_user_workload,task_type,plan_type,seq_no,phase_budget_inner_user_workload,phase_budget_out_user_workload,act_nouser_at,act_inner_user_at,phase_budget_inner_user_price,phase_budget_out_user_price,phase_budget_out_user_cnt,phase_budget_inner_user_cnt,act_rate,phase_status,act_out_user_at,task_cnt,finish_task_cnt,iteration_cnt,calc_time,task_budget_workload,task_budget_at,mng_userid,mng_username,milestone,pleaf,tag_ids,tag_names,ntype,children_cnt,ltime,is_key_path,pid_paths |
|
|
|
|
|
|
|
|
id,phase_name,remark,parent_phase_id,branch_id,project_id,begin_date,end_date,phase_budget_hours,phase_budget_staff_nu,ctime,phase_budget_nouser_at,phase_budget_inner_user_at,phase_budget_out_user_at,project_baseline_id,biz_proc_inst_id,biz_flow_state,phase_budget_workload,phase_act_workload,phase_act_inner_user_workload,phase_act_out_user_workload,task_type,plan_type,seq_no,phase_budget_inner_user_workload,phase_budget_out_user_workload,act_nouser_at,act_inner_user_at,phase_budget_inner_user_price,phase_budget_out_user_price,phase_budget_out_user_cnt,phase_budget_inner_user_cnt,act_rate,phase_status,act_out_user_at,task_cnt,finish_task_cnt,iteration_cnt,calc_time,task_budget_workload,task_budget_at,mng_userid,mng_username,milestone,pleaf,tag_ids,tag_names,ntype,children_cnt,ltime,is_key_path,pid_paths,lvl |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
@ -254,6 +254,7 @@ |
|
|
<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="isKeyPath != null and isKeyPath != ''"> and res.is_key_path = #{isKeyPath} </if> |
|
|
<if test="isKeyPath != null and isKeyPath != ''"> and res.is_key_path = #{isKeyPath} </if> |
|
|
<if test="pidPaths != null and pidPaths != ''"> and res.pid_paths = #{pidPaths} </if> |
|
|
<if test="pidPaths != null and pidPaths != ''"> and res.pid_paths = #{pidPaths} </if> |
|
|
|
|
|
<if test="lvl != null and lvl != ''"> and res.lvl = #{lvl} </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 更新字段 --> |
|
|
<!--sql片段 更新字段 --> |
|
|
<sql id="set"> |
|
|
<sql id="set"> |
|
|
@ -307,7 +308,8 @@ |
|
|
children_cnt = #{childrenCnt}, |
|
|
children_cnt = #{childrenCnt}, |
|
|
ltime = #{ltime}, |
|
|
ltime = #{ltime}, |
|
|
is_key_path = #{isKeyPath}, |
|
|
is_key_path = #{isKeyPath}, |
|
|
pid_paths = #{pidPaths} |
|
|
|
|
|
|
|
|
pid_paths = #{pidPaths}, |
|
|
|
|
|
lvl = #{lvl} |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="someFieldSet"> |
|
|
<sql id="someFieldSet"> |
|
|
<if test="phaseName != null and phaseName != ''"> phase_name = #{phaseName}, </if> |
|
|
<if test="phaseName != null and phaseName != ''"> phase_name = #{phaseName}, </if> |
|
|
@ -361,6 +363,7 @@ |
|
|
<if test="ltime != null"> ltime = #{ltime}, </if> |
|
|
<if test="ltime != null"> ltime = #{ltime}, </if> |
|
|
<if test="isKeyPath != null and isKeyPath != ''"> is_key_path = #{isKeyPath}, </if> |
|
|
<if test="isKeyPath != null and isKeyPath != ''"> is_key_path = #{isKeyPath}, </if> |
|
|
<if test="pidPaths != null and pidPaths != ''"> pid_paths = #{pidPaths}, </if> |
|
|
<if test="pidPaths != null and pidPaths != ''"> pid_paths = #{pidPaths}, </if> |
|
|
|
|
|
<if test="lvl != null and lvl != ''"> lvl = #{lvl}, </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 批量更新 --> |
|
|
<!--sql片段 批量更新 --> |
|
|
<sql id="batchSet"> |
|
|
<sql id="batchSet"> |
|
|
@ -414,6 +417,7 @@ |
|
|
children_cnt = #{item.childrenCnt}, |
|
|
children_cnt = #{item.childrenCnt}, |
|
|
ltime = #{item.ltime}, |
|
|
ltime = #{item.ltime}, |
|
|
is_key_path = #{item.isKeyPath}, |
|
|
is_key_path = #{item.isKeyPath}, |
|
|
pid_paths = #{item.pidPaths} |
|
|
|
|
|
|
|
|
pid_paths = #{item.pidPaths}, |
|
|
|
|
|
lvl = #{item.lvl} |
|
|
</sql> |
|
|
</sql> |
|
|
</mapper> |
|
|
</mapper> |