Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
967f56c728
  1. 19
      xm-core/src/main/java/com/xm/core/entity/XmMenu.java
  2. 19
      xm-core/src/main/java/com/xm/core/entity/XmProjectPhase.java
  3. 19
      xm-core/src/main/java/com/xm/core/entity/XmTask.java
  4. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml
  5. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml
  6. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

19
xm-core/src/main/java/com/xm/core/entity/XmMenu.java

@ -7,9 +7,9 @@ import java.util.Date;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmMenu所有属性名: <br> * 实体 XmMenu所有属性名: <br>
* menuId,menuName,pmenuId,productId,remark,status,online,demandUrl,codeUrl,designUrl,docUrl,helpUrl,operDocUrl,seqNo,mmUserid,mmUsername,ctime,ntype,sinceVersion,childrenCnt,ltime,tagIds,tagNames,pidPaths;<br>
* menuId,menuName,pmenuId,productId,remark,status,online,demandUrl,codeUrl,designUrl,docUrl,helpUrl,operDocUrl,seqNo,mmUserid,mmUsername,ctime,ntype,sinceVersion,childrenCnt,ltime,tagIds,tagNames,pidPaths,lvl;<br>
* xm_menu 功能表的所有字段名: <br> * xm_menu 功能表的所有字段名: <br>
* menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths;<br>
* menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths,lvl;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* menu_id;<br> * menu_id;<br>
*/ */
@ -90,6 +90,9 @@ public class XmMenu implements java.io.Serializable {
@ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="")
String pidPaths; String pidPaths;
@ApiModelProperty(notes="层级0-顶级,1-一级,2-二级,3-三级,4-四级。总共5级",allowEmptyValue=true,example="",allowableValues="")
Integer lvl;
/**功能编号**/ /**功能编号**/
public XmMenu(String menuId) { public XmMenu(String menuId) {
@ -244,6 +247,12 @@ public class XmMenu implements java.io.Serializable {
public void setPidPaths(String pidPaths) { public void setPidPaths(String pidPaths) {
this.pidPaths = pidPaths; this.pidPaths = pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public void setLvl(Integer lvl) {
this.lvl = lvl;
}
/** /**
* 功能编号 * 功能编号
@ -389,5 +398,11 @@ public class XmMenu implements java.io.Serializable {
public String getPidPaths() { public String getPidPaths() {
return this.pidPaths; return this.pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public Integer getLvl() {
return this.lvl;
}
} }

19
xm-core/src/main/java/com/xm/core/entity/XmProjectPhase.java

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmProjectPhase所有属性名: <br> * 实体 XmProjectPhase所有属性名: <br>
* 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;<br>
* 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;<br>
* xm_project_phase 项目阶段模板的所有字段名: <br> * xm_project_phase 项目阶段模板的所有字段名: <br>
* 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;<br>
* 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;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -175,6 +175,9 @@ public class XmProjectPhase implements java.io.Serializable {
@ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="")
String pidPaths; String pidPaths;
@ApiModelProperty(notes="层级0-顶级,1-一级,2-二级,3-三级,4-四级。总共5级",allowEmptyValue=true,example="",allowableValues="")
Integer lvl;
/**阶段主键**/ /**阶段主键**/
public XmProjectPhase(String id) { public XmProjectPhase(String id) {
@ -497,6 +500,12 @@ public class XmProjectPhase implements java.io.Serializable {
public void setPidPaths(String pidPaths) { public void setPidPaths(String pidPaths) {
this.pidPaths = pidPaths; this.pidPaths = pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public void setLvl(Integer lvl) {
this.lvl = lvl;
}
/** /**
* 阶段主键 * 阶段主键
@ -810,5 +819,11 @@ public class XmProjectPhase implements java.io.Serializable {
public String getPidPaths() { public String getPidPaths() {
return this.pidPaths; return this.pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public Integer getLvl() {
return this.lvl;
}
} }

19
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,projectPhaseId,projectPhaseName,taskSkillNames,exeUsernames,taskSkillIds,exeUserids,taskOut,planType,settleSchemel,menuId,menuName,productId,productName,cbranchId,cdeptid,tagIds,tagNames,ntype,childrenCnt,ltime,pidPaths;<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,projectPhaseId,projectPhaseName,taskSkillNames,exeUsernames,taskSkillIds,exeUserids,taskOut,planType,settleSchemel,menuId,menuName,productId,productName,cbranchId,cdeptid,tagIds,tagNames,ntype,childrenCnt,ltime,pidPaths,lvl;<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,project_phase_id,project_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;<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,project_phase_id,project_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;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -181,6 +181,9 @@ public class XmTask implements java.io.Serializable {
@ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="父级id逗号分割,最后一个为本节点节点编号,以,号结尾",allowEmptyValue=true,example="",allowableValues="")
String pidPaths; String pidPaths;
@ApiModelProperty(notes="层级0-顶级,1-一级,2-二级,3-三级,4-四级。总共5级",allowEmptyValue=true,example="",allowableValues="")
Integer lvl;
/**任务编号**/ /**任务编号**/
public XmTask(String id) { public XmTask(String id) {
@ -515,6 +518,12 @@ public class XmTask implements java.io.Serializable {
public void setPidPaths(String pidPaths) { public void setPidPaths(String pidPaths) {
this.pidPaths = pidPaths; this.pidPaths = pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public void setLvl(Integer lvl) {
this.lvl = lvl;
}
/** /**
* 任务编号 * 任务编号
@ -840,5 +849,11 @@ public class XmTask implements java.io.Serializable {
public String getPidPaths() { public String getPidPaths() {
return this.pidPaths; return this.pidPaths;
} }
/**
* 层级0-顶级1-一级2-二级3-三级4-四级总共5级
**/
public Integer getLvl() {
return this.lvl;
}
} }

12
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml

@ -128,7 +128,7 @@
insert into xm_menu( insert into xm_menu(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime},#{ntype},#{sinceVersion},#{childrenCnt},#{ltime},#{tagIds},#{tagNames},#{pidPaths}
#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime},#{ntype},#{sinceVersion},#{childrenCnt},#{ltime},#{tagIds},#{tagNames},#{pidPaths},#{lvl}
) )
</insert> </insert>
@ -191,7 +191,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths
menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths,lvl
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -220,6 +220,7 @@
<if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if> <if test="tagIds != null and tagIds != ''"> and res.tag_ids = #{tagIds} </if>
<if test="tagNames != null and tagNames != ''"> and res.tag_names = #{tagNames} </if> <if test="tagNames != null and tagNames != ''"> and res.tag_names = #{tagNames} </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">
@ -245,7 +246,8 @@
ltime = #{ltime}, ltime = #{ltime},
tag_ids = #{tagIds}, tag_ids = #{tagIds},
tag_names = #{tagNames}, tag_names = #{tagNames},
pid_paths = #{pidPaths}
pid_paths = #{pidPaths},
lvl = #{lvl}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if> <if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if>
@ -271,6 +273,7 @@
<if test="tagIds != null and tagIds != ''"> tag_ids = #{tagIds}, </if> <if test="tagIds != null and tagIds != ''"> tag_ids = #{tagIds}, </if>
<if test="tagNames != null and tagNames != ''"> tag_names = #{tagNames}, </if> <if test="tagNames != null and tagNames != ''"> tag_names = #{tagNames}, </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">
@ -296,6 +299,7 @@
ltime = #{item.ltime}, ltime = #{item.ltime},
tag_ids = #{item.tagIds}, tag_ids = #{item.tagIds},
tag_names = #{item.tagNames}, tag_names = #{item.tagNames},
pid_paths = #{item.pidPaths}
pid_paths = #{item.pidPaths},
lvl = #{item.lvl}
</sql> </sql>
</mapper> </mapper>

12
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml

@ -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>

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

@ -230,7 +230,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},#{projectPhaseId},#{projectPhaseName},#{taskSkillNames},#{exeUsernames},#{taskSkillIds},#{exeUserids},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName},#{productId},#{productName},#{cbranchId},#{cdeptid},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{pidPaths}
#{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},#{projectPhaseId},#{projectPhaseName},#{taskSkillNames},#{exeUsernames},#{taskSkillIds},#{exeUserids},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName},#{productId},#{productName},#{cbranchId},#{cdeptid},#{tagIds},#{tagNames},#{ntype},#{childrenCnt},#{ltime},#{pidPaths},#{lvl}
) )
</insert> </insert>
@ -293,7 +293,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,project_phase_id,project_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
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,project_phase_id,project_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
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -352,6 +352,7 @@
<if test="childrenCnt != null and childrenCnt != ''"> and res.children_cnt = #{childrenCnt} </if> <if test="childrenCnt != null and childrenCnt != ''"> and res.children_cnt = #{childrenCnt} </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="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">
@ -407,7 +408,8 @@
ntype = #{ntype}, ntype = #{ntype},
children_cnt = #{childrenCnt}, children_cnt = #{childrenCnt},
ltime = #{ltime}, ltime = #{ltime},
pid_paths = #{pidPaths}
pid_paths = #{pidPaths},
lvl = #{lvl}
</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>
@ -463,6 +465,7 @@
<if test="childrenCnt != null and childrenCnt != ''"> children_cnt = #{childrenCnt}, </if> <if test="childrenCnt != null and childrenCnt != ''"> children_cnt = #{childrenCnt}, </if>
<if test="ltime != null"> ltime = #{ltime}, </if> <if test="ltime != null"> ltime = #{ltime}, </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">
@ -518,6 +521,7 @@
ntype = #{item.ntype}, ntype = #{item.ntype},
children_cnt = #{item.childrenCnt}, children_cnt = #{item.childrenCnt},
ltime = #{item.ltime}, ltime = #{item.ltime},
pid_paths = #{item.pidPaths}
pid_paths = #{item.pidPaths},
lvl = #{item.lvl}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save