Browse Source

重新生成项目、迭代、需求、产品、阶段代码

master
陈裕财 5 years ago
parent
commit
e0972c6bb7
  1. 26
      xm-core/src/main/java/com/xm/core/entity/XmIteration.java
  2. 24
      xm-core/src/main/java/com/xm/core/entity/XmMenu.java
  3. 24
      xm-core/src/main/java/com/xm/core/entity/XmProduct.java
  4. 41
      xm-core/src/main/java/com/xm/core/entity/XmProject.java
  5. 34
      xm-core/src/main/java/com/xm/core/entity/XmProjectPhase.java
  6. 37
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMapper.xml
  7. 28
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml
  8. 31
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
  9. 44
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml
  10. 16
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml

26
xm-core/src/main/java/com/xm/core/entity/XmIteration.java

@ -1,17 +1,16 @@
package com.xm.core.entity;
package com.xm.core.entity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.math.BigDecimal;
/** /**
* 组织 com.qqkj 顶级模块 oa 大模块 xm 小模块 <br>
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmIteration所有属性名: <br> * 实体 XmIteration所有属性名: <br>
* id,branchId,iterationName,startTime,endTime,onlineTime,pid,adminUserid,adminUsername,ctime,budgetCost,budgetWorkload,seqNo,istatus,cuserid,cusername,remark;<br>
* id,branchId,iterationName,startTime,endTime,onlineTime,pid,adminUserid,adminUsername,ctime,budgetCost,budgetWorkload,seqNo,istatus,cuserid,cusername,remark,iphase;<br>
* XM.xm_iteration 迭代定义的所有字段名: <br> * XM.xm_iteration 迭代定义的所有字段名: <br>
* id,branch_id,iteration_name,start_time,end_time,online_time,pid,admin_userid,admin_username,ctime,budget_cost,budget_workload,seq_no,istatus,cuserid,cusername,remark;<br>
* id,branch_id,iteration_name,start_time,end_time,online_time,pid,admin_userid,admin_username,ctime,budget_cost,budget_workload,seq_no,istatus,cuserid,cusername,remark,iphase;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -72,6 +71,9 @@ public class XmIteration implements java.io.Serializable {
@ApiModelProperty(notes="备注",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="备注",allowEmptyValue=true,example="",allowableValues="")
String remark; String remark;
@ApiModelProperty(notes="迭代阶段:0未开始,1需求评审,2计划会,3研发中,4测试中,5迭代上线,6已完成",allowEmptyValue=true,example="",allowableValues="")
String iphase;
/**迭代编码**/ /**迭代编码**/
public XmIteration(String id) { public XmIteration(String id) {
this.id = id; this.id = id;
@ -183,6 +185,12 @@ public class XmIteration implements java.io.Serializable {
public void setRemark(String remark) { public void setRemark(String remark) {
this.remark = remark; this.remark = remark;
} }
/**
* 迭代阶段:0未开始,1需求评审,2计划会,3研发中,4测试中,5迭代上线,6已完成
**/
public void setIphase(String iphase) {
this.iphase = iphase;
}
/** /**
* 迭代编码 * 迭代编码
@ -286,5 +294,11 @@ public class XmIteration implements java.io.Serializable {
public String getRemark() { public String getRemark() {
return this.remark; return this.remark;
} }
/**
* 迭代阶段:0未开始,1需求评审,2计划会,3研发中,4测试中,5迭代上线,6已完成
**/
public String getIphase() {
return this.iphase;
}
} }

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

@ -1,14 +1,15 @@
package com.xm.core.entity;
package com.xm.core.entity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/** /**
* 组织 com.qqkj 顶级模块 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;<br>
* menuId,menuName,pmenuId,productId,remark,status,online,demandUrl,codeUrl,designUrl,docUrl,helpUrl,operDocUrl,seqNo,mmUserid,mmUsername,ctime;<br>
* XM.xm_menu 功能表的所有字段名: <br> * XM.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;<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;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* menu_id;<br> * menu_id;<br>
*/ */
@ -66,6 +67,9 @@ public class XmMenu implements java.io.Serializable {
@ApiModelProperty(notes="故事管理员姓名",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="故事管理员姓名",allowEmptyValue=true,example="",allowableValues="")
String mmUsername; String mmUsername;
@ApiModelProperty(notes="创建时间",allowEmptyValue=true,example="",allowableValues="")
Date ctime;
/**功能编号**/ /**功能编号**/
public XmMenu(String menuId) { public XmMenu(String menuId) {
this.menuId = menuId; this.menuId = menuId;
@ -171,6 +175,12 @@ public class XmMenu implements java.io.Serializable {
public void setMmUsername(String mmUsername) { public void setMmUsername(String mmUsername) {
this.mmUsername = mmUsername; this.mmUsername = mmUsername;
} }
/**
* 创建时间
**/
public void setCtime(Date ctime) {
this.ctime = ctime;
}
/** /**
* 功能编号 * 功能编号
@ -268,5 +278,11 @@ public class XmMenu implements java.io.Serializable {
public String getMmUsername() { public String getMmUsername() {
return this.mmUsername; return this.mmUsername;
} }
/**
* 创建时间
**/
public Date getCtime() {
return this.ctime;
}
} }

24
xm-core/src/main/java/com/xm/core/entity/XmProduct.java

@ -1,16 +1,15 @@
package com.xm.core.entity;
package com.xm.core.entity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Date; import java.util.Date;
/** /**
* 组织 com.qqkj 顶级模块 xm 大模块 core 小模块 <br>
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmProduct所有属性名: <br> * 实体 XmProduct所有属性名: <br>
* id,productName,branchId,remark,version,pmUserid,pmUsername,ctime;<br>
* id,productName,branchId,remark,version,pmUserid,pmUsername,ctime,deptid;<br>
* XM.xm_product 产品表的所有字段名: <br> * XM.xm_product 产品表的所有字段名: <br>
* id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime;<br>
* id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime,deptid;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -44,6 +43,9 @@ public class XmProduct implements java.io.Serializable {
@ApiModelProperty(notes="创建日期",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="创建日期",allowEmptyValue=true,example="",allowableValues="")
Date ctime; Date ctime;
@ApiModelProperty(notes="归属部门",allowEmptyValue=true,example="",allowableValues="")
String deptid;
/**产品编号**/ /**产品编号**/
public XmProduct(String id) { public XmProduct(String id) {
this.id = id; this.id = id;
@ -101,6 +103,12 @@ public class XmProduct implements java.io.Serializable {
public void setCtime(Date ctime) { public void setCtime(Date ctime) {
this.ctime = ctime; this.ctime = ctime;
} }
/**
* 归属部门
**/
public void setDeptid(String deptid) {
this.deptid = deptid;
}
/** /**
* 产品编号 * 产品编号
@ -150,5 +158,11 @@ public class XmProduct implements java.io.Serializable {
public Date getCtime() { public Date getCtime() {
return this.ctime; return this.ctime;
} }
/**
* 归属部门
**/
public String getDeptid() {
return this.deptid;
}
} }

41
xm-core/src/main/java/com/xm/core/entity/XmProject.java

@ -1,17 +1,16 @@
package com.xm.core.entity;
package com.xm.core.entity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.math.BigDecimal;
/** /**
* 组织 com.qqkj 顶级模块 oa 大模块 xm 小模块 <br>
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmProject所有属性名: <br> * 实体 XmProject所有属性名: <br>
* id,code,name,xmType,startTime,endTime,urgent,priority,description,createUserid,createUsername,createTime,assess,assessRemarks,status,branchId,planTotalCost,bizProcInstId,bizFlowState,planNouserAt,planInnerUserAt,planOutUserAt,locked,baseTime,baseRemark,baselineId,planWorkload,totalReceivables,budgetMarginRate,contractAmt,planInnerUserPrice,planOutUserPrice,planOutUserCnt,planInnerUserCnt,planWorkingHours,taxRate,planInnerUserWorkload,planOutUserWorkload,fromTplId,budgetCtrl;<br>
* id,code,name,xmType,startTime,endTime,urgent,priority,description,createUserid,createUsername,createTime,assess,assessRemarks,status,branchId,planTotalCost,bizProcInstId,bizFlowState,planNouserAt,planInnerUserAt,planOutUserAt,locked,baseTime,baseRemark,baselineId,planWorkload,totalReceivables,budgetMarginRate,contractAmt,planInnerUserPrice,planOutUserPrice,planOutUserCnt,planInnerUserCnt,planWorkingHours,taxRate,planInnerUserWorkload,planOutUserWorkload,fromTplId,budgetCtrl,deptid,showOut;<br>
* XM.xm_project xm_project的所有字段名: <br> * XM.xm_project xm_project的所有字段名: <br>
* id,code,name,xm_type,start_time,end_time,urgent,priority,description,create_userid,create_username,create_time,assess,assess_remarks,status,branch_id,plan_total_cost,biz_proc_inst_id,biz_flow_state,plan_nouser_at,plan_inner_user_at,plan_out_user_at,locked,base_time,base_remark,baseline_id,plan_workload,total_receivables,budget_margin_rate,contract_amt,plan_inner_user_price,plan_out_user_price,plan_out_user_cnt,plan_inner_user_cnt,plan_working_hours,tax_rate,plan_inner_user_workload,plan_out_user_workload,from_tpl_id,budget_ctrl;<br>
* id,code,name,xm_type,start_time,end_time,urgent,priority,description,create_userid,create_username,create_time,assess,assess_remarks,status,branch_id,plan_total_cost,biz_proc_inst_id,biz_flow_state,plan_nouser_at,plan_inner_user_at,plan_out_user_at,locked,base_time,base_remark,baseline_id,plan_workload,total_receivables,budget_margin_rate,contract_amt,plan_inner_user_price,plan_out_user_price,plan_out_user_cnt,plan_inner_user_cnt,plan_working_hours,tax_rate,plan_inner_user_workload,plan_out_user_workload,from_tpl_id,budget_ctrl,deptid,show_out;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -141,6 +140,12 @@ public class XmProject implements java.io.Serializable {
@ApiModelProperty(notes="是否进行预算控制",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="是否进行预算控制",allowEmptyValue=true,example="",allowableValues="")
String budgetCtrl; String budgetCtrl;
@ApiModelProperty(notes="部门编号",allowEmptyValue=true,example="",allowableValues="")
String deptid;
@ApiModelProperty(notes="是否对外公开0否1是",allowEmptyValue=true,example="",allowableValues="")
String showOut;
/**项目编号**/ /**项目编号**/
public XmProject(String id) { public XmProject(String id) {
this.id = id; this.id = id;
@ -390,6 +395,18 @@ public class XmProject implements java.io.Serializable {
public void setBudgetCtrl(String budgetCtrl) { public void setBudgetCtrl(String budgetCtrl) {
this.budgetCtrl = budgetCtrl; this.budgetCtrl = budgetCtrl;
} }
/**
* 部门编号
**/
public void setDeptid(String deptid) {
this.deptid = deptid;
}
/**
* 是否对外公开0否1是
**/
public void setShowOut(String showOut) {
this.showOut = showOut;
}
/** /**
* 项目编号 * 项目编号
@ -631,5 +648,17 @@ public class XmProject implements java.io.Serializable {
public String getBudgetCtrl() { public String getBudgetCtrl() {
return this.budgetCtrl; return this.budgetCtrl;
} }
/**
* 部门编号
**/
public String getDeptid() {
return this.deptid;
}
/**
* 是否对外公开0否1是
**/
public String getShowOut() {
return this.showOut;
}
} }

34
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;<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;<br>
* XM.xm_project_phase 项目阶段模板的所有字段名: <br> * XM.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;<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;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -149,6 +149,12 @@ public class XmProjectPhase implements java.io.Serializable {
@ApiModelProperty(notes="管理者姓名",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="管理者姓名",allowEmptyValue=true,example="",allowableValues="")
String mngUsername; String mngUsername;
@ApiModelProperty(notes="是否里程碑0否1是",allowEmptyValue=true,example="",allowableValues="")
String milestone;
@ApiModelProperty(notes="节点是否为叶子节点",allowEmptyValue=true,example="",allowableValues="")
String pleaf;
/**阶段主键**/ /**阶段主键**/
public XmProjectPhase(String id) { public XmProjectPhase(String id) {
this.id = id; this.id = id;
@ -416,6 +422,18 @@ public class XmProjectPhase implements java.io.Serializable {
public void setMngUsername(String mngUsername) { public void setMngUsername(String mngUsername) {
this.mngUsername = mngUsername; this.mngUsername = mngUsername;
} }
/**
* 是否里程碑0否1是
**/
public void setMilestone(String milestone) {
this.milestone = milestone;
}
/**
* 节点是否为叶子节点
**/
public void setPleaf(String pleaf) {
this.pleaf = pleaf;
}
/** /**
* 阶段主键 * 阶段主键
@ -675,5 +693,17 @@ public class XmProjectPhase implements java.io.Serializable {
public String getMngUsername() { public String getMngUsername() {
return this.mngUsername; return this.mngUsername;
} }
/**
* 是否里程碑0否1是
**/
public String getMilestone() {
return this.milestone;
}
/**
* 节点是否为叶子节点
**/
public String getPleaf() {
return this.pleaf;
}
} }

37
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMapper.xml

@ -104,19 +104,19 @@
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmIteration" useGeneratedKeys="false" keyProperty="id">
<insert id="insert" parameterType="com.xm.core.entity.XmIteration" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_iteration( insert into XM.xm_iteration(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{branchId},#{iterationName},#{startTime},#{endTime},#{onlineTime},#{pid},#{adminUserid},#{adminUsername},#{ctime},#{budgetCost},#{budgetWorkload},#{seqNo},#{istatus},#{cuserid},#{cusername},#{remark}
#{id},#{branchId},#{iterationName},#{startTime},#{endTime},#{onlineTime},#{pid},#{adminUserid},#{adminUsername},#{ctime},#{budgetCost},#{budgetWorkload},#{seqNo},#{istatus},#{cuserid},#{cusername},#{remark},#{iphase}
) )
</insert> </insert>
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIteration"> <delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIteration">
delete from XM.xm_iteration res
delete from XM.xm_iteration
<where> <where>
<include refid="where"/>
1=2
</where> </where>
</delete> </delete>
@ -161,16 +161,19 @@
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from XM.xm_iteration delete from XM.xm_iteration
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
</foreach>
where
(id)
in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item.id}
)
</foreach>
</delete> </delete>
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,branch_id,iteration_name,start_time,end_time,online_time,pid,admin_userid,admin_username,ctime,budget_cost,budget_workload,seq_no,istatus,cuserid,cusername,remark
id,branch_id,iteration_name,start_time,end_time,online_time,pid,admin_userid,admin_username,ctime,budget_cost,budget_workload,seq_no,istatus,cuserid,cusername,remark,iphase
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -178,13 +181,13 @@
<if test="id != null and id != ''"> and res.id = #{id} </if> <if test="id != null and id != ''"> and res.id = #{id} </if>
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if> <if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </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="startTime != null"> and TO_CHAR(res.start_time,'YYYY-MM-DD') = TO_CHAR(#{startTime},'YYYY-MM-DD') </if>
<if test="endTime != null"> and TO_CHAR(res.end_time,'YYYY-MM-DD') = TO_CHAR(#{endTime},'YYYY-MM-DD') </if>
<if test="onlineTime != null"> and TO_CHAR(res.online_time,'YYYY-MM-DD') = TO_CHAR(#{onlineTime},'YYYY-MM-DD') </if>
<if test="startTime != null"> and date_format(res.start_time,'%Y-%m-%d') = date_format(#{startTime},'%Y-%m-%d') </if>
<if test="endTime != null"> and date_format(res.end_time,'%Y-%m-%d') = date_format(#{endTime},'%Y-%m-%d') </if>
<if test="onlineTime != null"> and date_format(res.online_time,'%Y-%m-%d') = date_format(#{onlineTime},'%Y-%m-%d') </if>
<if test="pid != null and pid != ''"> and res.pid = #{pid} </if> <if test="pid != null and pid != ''"> and res.pid = #{pid} </if>
<if test="adminUserid != null and adminUserid != ''"> and res.admin_userid = #{adminUserid} </if> <if test="adminUserid != null and adminUserid != ''"> and res.admin_userid = #{adminUserid} </if>
<if test="adminUsername != null and adminUsername != ''"> and res.admin_username = #{adminUsername} </if> <if test="adminUsername != null and adminUsername != ''"> and res.admin_username = #{adminUsername} </if>
<if test="ctime != null"> and TO_CHAR(res.ctime,'YYYY-MM-DD') = TO_CHAR(#{ctime},'YYYY-MM-DD') </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if>
<if test="budgetCost != null and budgetCost != ''"> and res.budget_cost = #{budgetCost} </if> <if test="budgetCost != null and budgetCost != ''"> and res.budget_cost = #{budgetCost} </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="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if> <if test="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if>
@ -192,6 +195,7 @@
<if test="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if> <if test="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if>
<if test="cusername != null and cusername != ''"> and res.cusername = #{cusername} </if> <if test="cusername != null and cusername != ''"> and res.cusername = #{cusername} </if>
<if test="remark != null and remark != ''"> and res.remark = #{remark} </if> <if test="remark != null and remark != ''"> and res.remark = #{remark} </if>
<if test="iphase != null and iphase != ''"> and res.iphase = #{iphase} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -210,7 +214,8 @@
istatus = #{istatus}, istatus = #{istatus},
cuserid = #{cuserid}, cuserid = #{cuserid},
cusername = #{cusername}, cusername = #{cusername},
remark = #{remark}
remark = #{remark},
iphase = #{iphase}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if> <if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
@ -229,6 +234,7 @@
<if test="cuserid != null and cuserid != ''"> cuserid = #{cuserid}, </if> <if test="cuserid != null and cuserid != ''"> cuserid = #{cuserid}, </if>
<if test="cusername != null and cusername != ''"> cusername = #{cusername}, </if> <if test="cusername != null and cusername != ''"> cusername = #{cusername}, </if>
<if test="remark != null and remark != ''"> remark = #{remark}, </if> <if test="remark != null and remark != ''"> remark = #{remark}, </if>
<if test="iphase != null and iphase != ''"> iphase = #{iphase}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -247,6 +253,7 @@
istatus = #{item.istatus}, istatus = #{item.istatus},
cuserid = #{item.cuserid}, cuserid = #{item.cuserid},
cusername = #{item.cusername}, cusername = #{item.cusername},
remark = #{item.remark}
remark = #{item.remark},
iphase = #{item.iphase}
</sql> </sql>
</mapper> </mapper>

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

@ -113,7 +113,6 @@
</if> </if>
<if test="key != null and key !='' "> and res.menu_name like #{key} </if> <if test="key != null and key !='' "> and res.menu_name like #{key} </if>
</where> </where>
order by res.seq_no asc
</select> </select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> --> <!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
@ -149,15 +148,15 @@
insert into XM.xm_menu( insert into XM.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}
#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime}
) )
</insert> </insert>
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenu"> <delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenu">
delete from XM.xm_menu res
delete from XM.xm_menu
<where> <where>
<include refid="where"/>
1=2
</where> </where>
</delete> </delete>
@ -202,16 +201,19 @@
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from XM.xm_menu delete from XM.xm_menu
where menu_id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.menuId }
</foreach>
where
(menu_id)
in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item.menuId}
)
</foreach>
</delete> </delete>
<!--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
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
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -232,6 +234,7 @@
<if test="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if> <if test="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if>
<if test="mmUserid != null and mmUserid != ''"> and res.mm_userid = #{mmUserid} </if> <if test="mmUserid != null and mmUserid != ''"> and res.mm_userid = #{mmUserid} </if>
<if test="mmUsername != null and mmUsername != ''"> and res.mm_username = #{mmUsername} </if> <if test="mmUsername != null and mmUsername != ''"> and res.mm_username = #{mmUsername} </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -249,7 +252,8 @@
oper_doc_url = #{operDocUrl}, oper_doc_url = #{operDocUrl},
seq_no = #{seqNo}, seq_no = #{seqNo},
mm_userid = #{mmUserid}, mm_userid = #{mmUserid},
mm_username = #{mmUsername}
mm_username = #{mmUsername},
ctime = #{ctime}
</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>
@ -267,6 +271,7 @@
<if test="seqNo != null and seqNo != ''"> seq_no = #{seqNo}, </if> <if test="seqNo != null and seqNo != ''"> seq_no = #{seqNo}, </if>
<if test="mmUserid != null and mmUserid != ''"> mm_userid = #{mmUserid}, </if> <if test="mmUserid != null and mmUserid != ''"> mm_userid = #{mmUserid}, </if>
<if test="mmUsername != null and mmUsername != ''"> mm_username = #{mmUsername}, </if> <if test="mmUsername != null and mmUsername != ''"> mm_username = #{mmUsername}, </if>
<if test="ctime != null"> ctime = #{ctime}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -284,6 +289,7 @@
oper_doc_url = #{item.operDocUrl}, oper_doc_url = #{item.operDocUrl},
seq_no = #{item.seqNo}, seq_no = #{item.seqNo},
mm_userid = #{item.mmUserid}, mm_userid = #{item.mmUserid},
mm_username = #{item.mmUsername}
mm_username = #{item.mmUsername},
ctime = #{item.ctime}
</sql> </sql>
</mapper> </mapper>

31
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml

@ -85,19 +85,19 @@
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProduct" useGeneratedKeys="false" keyProperty="id">
<insert id="insert" parameterType="com.xm.core.entity.XmProduct" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_product( insert into XM.xm_product(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{productName},#{branchId},#{remark},#{version},#{pmUserid},#{pmUsername},#{ctime}
#{id},#{productName},#{branchId},#{remark},#{version},#{pmUserid},#{pmUsername},#{ctime},#{deptid}
) )
</insert> </insert>
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProduct"> <delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProduct">
delete from XM.xm_product res
delete from XM.xm_product
<where> <where>
<include refid="where"/>
1=2
</where> </where>
</delete> </delete>
@ -142,16 +142,19 @@
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from XM.xm_product delete from XM.xm_product
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
</foreach>
where
(id)
in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item.id}
)
</foreach>
</delete> </delete>
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime
id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime,deptid
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -163,7 +166,8 @@
<if test="version != null and version != ''"> and res.version = #{version} </if> <if test="version != null and version != ''"> and res.version = #{version} </if>
<if test="pmUserid != null and pmUserid != ''"> and res.pm_userid = #{pmUserid} </if> <if test="pmUserid != null and pmUserid != ''"> and res.pm_userid = #{pmUserid} </if>
<if test="pmUsername != null and pmUsername != ''"> and res.pm_username = #{pmUsername} </if> <if test="pmUsername != null and pmUsername != ''"> and res.pm_username = #{pmUsername} </if>
<if test="ctime != null"> and TO_CHAR(res.ctime,'YYYY-MM-DD') = TO_CHAR(#{ctime},'YYYY-MM-DD') </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if>
<if test="deptid != null and deptid != ''"> and res.deptid = #{deptid} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -173,7 +177,8 @@
version = #{version}, version = #{version},
pm_userid = #{pmUserid}, pm_userid = #{pmUserid},
pm_username = #{pmUsername}, pm_username = #{pmUsername},
ctime = #{ctime}
ctime = #{ctime},
deptid = #{deptid}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="productName != null and productName != ''"> product_name = #{productName}, </if> <if test="productName != null and productName != ''"> product_name = #{productName}, </if>
@ -183,6 +188,7 @@
<if test="pmUserid != null and pmUserid != ''"> pm_userid = #{pmUserid}, </if> <if test="pmUserid != null and pmUserid != ''"> pm_userid = #{pmUserid}, </if>
<if test="pmUsername != null and pmUsername != ''"> pm_username = #{pmUsername}, </if> <if test="pmUsername != null and pmUsername != ''"> pm_username = #{pmUsername}, </if>
<if test="ctime != null"> ctime = #{ctime}, </if> <if test="ctime != null"> ctime = #{ctime}, </if>
<if test="deptid != null and deptid != ''"> deptid = #{deptid}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -192,6 +198,7 @@
version = #{item.version}, version = #{item.version},
pm_userid = #{item.pmUserid}, pm_userid = #{item.pmUserid},
pm_username = #{item.pmUsername}, pm_username = #{item.pmUsername},
ctime = #{item.ctime}
ctime = #{item.ctime},
deptid = #{item.deptid}
</sql> </sql>
</mapper> </mapper>

44
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml

@ -74,9 +74,6 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test=" createTimeStart !=null "> and res.create_time &gt; #{createTimeStart} </if>
<if test=" createTimeEnd !=null "> and res.create_time &lt; #{createTimeEnd} </if>
<include refid="where"/> <include refid="where"/>
<!-- 筛选属于当前年份的项目 --> <!-- 筛选属于当前年份的项目 -->
@ -162,19 +159,19 @@
</where> </where>
</select> </select>
<!-- 新增一条记录 主键id,--> <!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProject" useGeneratedKeys="false" keyProperty="id">
<insert id="insert" parameterType="com.xm.core.entity.XmProject" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project( insert into XM.xm_project(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{id},#{code},#{name},#{xmType},#{startTime},#{endTime},#{urgent},#{priority},#{description},#{createUserid},#{createUsername},#{createTime},#{assess},#{assessRemarks},#{status},#{branchId},#{planTotalCost},#{bizProcInstId},#{bizFlowState},#{planNouserAt},#{planInnerUserAt},#{planOutUserAt},#{locked},#{baseTime},#{baseRemark},#{baselineId},#{planWorkload},#{totalReceivables},#{budgetMarginRate},#{contractAmt},#{planInnerUserPrice},#{planOutUserPrice},#{planOutUserCnt},#{planInnerUserCnt},#{planWorkingHours},#{taxRate},#{planInnerUserWorkload},#{planOutUserWorkload},#{fromTplId},#{budgetCtrl}
#{id},#{code},#{name},#{xmType},#{startTime},#{endTime},#{urgent},#{priority},#{description},#{createUserid},#{createUsername},#{createTime},#{assess},#{assessRemarks},#{status},#{branchId},#{planTotalCost},#{bizProcInstId},#{bizFlowState},#{planNouserAt},#{planInnerUserAt},#{planOutUserAt},#{locked},#{baseTime},#{baseRemark},#{baselineId},#{planWorkload},#{totalReceivables},#{budgetMarginRate},#{contractAmt},#{planInnerUserPrice},#{planOutUserPrice},#{planOutUserCnt},#{planInnerUserCnt},#{planWorkingHours},#{taxRate},#{planInnerUserWorkload},#{planOutUserWorkload},#{fromTplId},#{budgetCtrl},#{deptid},#{showOut}
) )
</insert> </insert>
<!-- 按条件删除若干条记录--> <!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProject"> <delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProject">
delete from XM.xm_project res
delete from XM.xm_project
<where> <where>
<include refid="where"/>
1=2
</where> </where>
</delete> </delete>
@ -219,16 +216,19 @@
<!-- 批量删除 --> <!-- 批量删除 -->
<delete id="batchDelete" parameterType="List"> <delete id="batchDelete" parameterType="List">
delete from XM.xm_project delete from XM.xm_project
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }
</foreach>
where
(id)
in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
( #{item.id}
)
</foreach>
</delete> </delete>
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
id,code,name,xm_type,start_time,end_time,urgent,priority,description,create_userid,create_username,create_time,assess,assess_remarks,status,branch_id,plan_total_cost,biz_proc_inst_id,biz_flow_state,plan_nouser_at,plan_inner_user_at,plan_out_user_at,locked,base_time,base_remark,baseline_id,plan_workload,total_receivables,budget_margin_rate,contract_amt,plan_inner_user_price,plan_out_user_price,plan_out_user_cnt,plan_inner_user_cnt,plan_working_hours,tax_rate,plan_inner_user_workload,plan_out_user_workload,from_tpl_id,budget_ctrl
id,code,name,xm_type,start_time,end_time,urgent,priority,description,create_userid,create_username,create_time,assess,assess_remarks,status,branch_id,plan_total_cost,biz_proc_inst_id,biz_flow_state,plan_nouser_at,plan_inner_user_at,plan_out_user_at,locked,base_time,base_remark,baseline_id,plan_workload,total_receivables,budget_margin_rate,contract_amt,plan_inner_user_price,plan_out_user_price,plan_out_user_cnt,plan_inner_user_cnt,plan_working_hours,tax_rate,plan_inner_user_workload,plan_out_user_workload,from_tpl_id,budget_ctrl,deptid,show_out
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -237,14 +237,14 @@
<if test="code != null and code != ''"> and res.code = #{code} </if> <if test="code != null and code != ''"> and res.code = #{code} </if>
<if test="name != null and name != ''"> and res.name = #{name} </if> <if test="name != null and name != ''"> and res.name = #{name} </if>
<if test="xmType != null and xmType != ''"> and res.xm_type = #{xmType} </if> <if test="xmType != null and xmType != ''"> and res.xm_type = #{xmType} </if>
<if test="startTime != null"> and TO_CHAR(res.start_time,'YYYY-MM-DD') = TO_CHAR(#{startTime},'YYYY-MM-DD') </if>
<if test="endTime != null"> and TO_CHAR(res.end_time,'YYYY-MM-DD') = TO_CHAR(#{endTime},'YYYY-MM-DD') </if>
<if test="startTime != null"> and date_format(res.start_time,'%Y-%m-%d') = date_format(#{startTime},'%Y-%m-%d') </if>
<if test="endTime != null"> and date_format(res.end_time,'%Y-%m-%d') = date_format(#{endTime},'%Y-%m-%d') </if>
<if test="urgent != null and urgent != ''"> and res.urgent = #{urgent} </if> <if test="urgent != null and urgent != ''"> and res.urgent = #{urgent} </if>
<if test="priority != null and priority != ''"> and res.priority = #{priority} </if> <if test="priority != null and priority != ''"> and res.priority = #{priority} </if>
<if test="description != null and description != ''"> and res.description = #{description} </if> <if test="description != null and description != ''"> and res.description = #{description} </if>
<if test="createUserid != null and createUserid != ''"> and res.create_userid = #{createUserid} </if> <if test="createUserid != null and createUserid != ''"> and res.create_userid = #{createUserid} </if>
<if test="createUsername != null and createUsername != ''"> and res.create_username = #{createUsername} </if> <if test="createUsername != null and createUsername != ''"> and res.create_username = #{createUsername} </if>
<if test="createTime != null"> and TO_CHAR(res.create_time,'YYYY-MM-DD') = TO_CHAR(#{createTime},'YYYY-MM-DD') </if>
<if test="createTime != null"> and date_format(res.create_time,'%Y-%m-%d') = date_format(#{createTime},'%Y-%m-%d') </if>
<if test="assess != null and assess != ''"> and res.assess = #{assess} </if> <if test="assess != null and assess != ''"> and res.assess = #{assess} </if>
<if test="assessRemarks != null and assessRemarks != ''"> and res.assess_remarks = #{assessRemarks} </if> <if test="assessRemarks != null and assessRemarks != ''"> and res.assess_remarks = #{assessRemarks} </if>
<if test="status != null and status != ''"> and res.status = #{status} </if> <if test="status != null and status != ''"> and res.status = #{status} </if>
@ -256,7 +256,7 @@
<if test="planInnerUserAt != null and planInnerUserAt != ''"> and res.plan_inner_user_at = #{planInnerUserAt} </if> <if test="planInnerUserAt != null and planInnerUserAt != ''"> and res.plan_inner_user_at = #{planInnerUserAt} </if>
<if test="planOutUserAt != null and planOutUserAt != ''"> and res.plan_out_user_at = #{planOutUserAt} </if> <if test="planOutUserAt != null and planOutUserAt != ''"> and res.plan_out_user_at = #{planOutUserAt} </if>
<if test="locked != null and locked != ''"> and res.locked = #{locked} </if> <if test="locked != null and locked != ''"> and res.locked = #{locked} </if>
<if test="baseTime != null"> and TO_CHAR(res.base_time,'YYYY-MM-DD') = TO_CHAR(#{baseTime},'YYYY-MM-DD') </if>
<if test="baseTime != null"> and date_format(res.base_time,'%Y-%m-%d') = date_format(#{baseTime},'%Y-%m-%d') </if>
<if test="baseRemark != null and baseRemark != ''"> and res.base_remark = #{baseRemark} </if> <if test="baseRemark != null and baseRemark != ''"> and res.base_remark = #{baseRemark} </if>
<if test="baselineId != null and baselineId != ''"> and res.baseline_id = #{baselineId} </if> <if test="baselineId != null and baselineId != ''"> and res.baseline_id = #{baselineId} </if>
<if test="planWorkload != null and planWorkload != ''"> and res.plan_workload = #{planWorkload} </if> <if test="planWorkload != null and planWorkload != ''"> and res.plan_workload = #{planWorkload} </if>
@ -273,6 +273,8 @@
<if test="planOutUserWorkload != null and planOutUserWorkload != ''"> and res.plan_out_user_workload = #{planOutUserWorkload} </if> <if test="planOutUserWorkload != null and planOutUserWorkload != ''"> and res.plan_out_user_workload = #{planOutUserWorkload} </if>
<if test="fromTplId != null and fromTplId != ''"> and res.from_tpl_id = #{fromTplId} </if> <if test="fromTplId != null and fromTplId != ''"> and res.from_tpl_id = #{fromTplId} </if>
<if test="budgetCtrl != null and budgetCtrl != ''"> and res.budget_ctrl = #{budgetCtrl} </if> <if test="budgetCtrl != null and budgetCtrl != ''"> and res.budget_ctrl = #{budgetCtrl} </if>
<if test="deptid != null and deptid != ''"> and res.deptid = #{deptid} </if>
<if test="showOut != null and showOut != ''"> and res.show_out = #{showOut} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -314,7 +316,9 @@
plan_inner_user_workload = #{planInnerUserWorkload}, plan_inner_user_workload = #{planInnerUserWorkload},
plan_out_user_workload = #{planOutUserWorkload}, plan_out_user_workload = #{planOutUserWorkload},
from_tpl_id = #{fromTplId}, from_tpl_id = #{fromTplId},
budget_ctrl = #{budgetCtrl}
budget_ctrl = #{budgetCtrl},
deptid = #{deptid},
show_out = #{showOut}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="code != null and code != ''"> code = #{code}, </if> <if test="code != null and code != ''"> code = #{code}, </if>
@ -356,6 +360,8 @@
<if test="planOutUserWorkload != null and planOutUserWorkload != ''"> plan_out_user_workload = #{planOutUserWorkload}, </if> <if test="planOutUserWorkload != null and planOutUserWorkload != ''"> plan_out_user_workload = #{planOutUserWorkload}, </if>
<if test="fromTplId != null and fromTplId != ''"> from_tpl_id = #{fromTplId}, </if> <if test="fromTplId != null and fromTplId != ''"> from_tpl_id = #{fromTplId}, </if>
<if test="budgetCtrl != null and budgetCtrl != ''"> budget_ctrl = #{budgetCtrl}, </if> <if test="budgetCtrl != null and budgetCtrl != ''"> budget_ctrl = #{budgetCtrl}, </if>
<if test="deptid != null and deptid != ''"> deptid = #{deptid}, </if>
<if test="showOut != null and showOut != ''"> show_out = #{showOut}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -397,6 +403,8 @@
plan_inner_user_workload = #{item.planInnerUserWorkload}, plan_inner_user_workload = #{item.planInnerUserWorkload},
plan_out_user_workload = #{item.planOutUserWorkload}, plan_out_user_workload = #{item.planOutUserWorkload},
from_tpl_id = #{item.fromTplId}, from_tpl_id = #{item.fromTplId},
budget_ctrl = #{item.budgetCtrl}
budget_ctrl = #{item.budgetCtrl},
deptid = #{item.deptid},
show_out = #{item.showOut}
</sql> </sql>
</mapper> </mapper>

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

@ -103,7 +103,7 @@
insert into XM.xm_project_phase( insert into XM.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}
#{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}
) )
</insert> </insert>
@ -168,7 +168,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
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
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -216,6 +216,8 @@
<if test="taskBudgetAt != null and taskBudgetAt != ''"> and res.task_budget_at = #{taskBudgetAt} </if> <if test="taskBudgetAt != null and taskBudgetAt != ''"> and res.task_budget_at = #{taskBudgetAt} </if>
<if test="mngUserid != null and mngUserid != ''"> and res.mng_userid = #{mngUserid} </if> <if test="mngUserid != null and mngUserid != ''"> and res.mng_userid = #{mngUserid} </if>
<if test="mngUsername != null and mngUsername != ''"> and res.mng_username = #{mngUsername} </if> <if test="mngUsername != null and mngUsername != ''"> and res.mng_username = #{mngUsername} </if>
<if test="milestone != null and milestone != ''"> and res.milestone = #{milestone} </if>
<if test="pleaf != null and pleaf != ''"> and res.pleaf = #{pleaf} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -260,7 +262,9 @@
task_budget_workload = #{taskBudgetWorkload}, task_budget_workload = #{taskBudgetWorkload},
task_budget_at = #{taskBudgetAt}, task_budget_at = #{taskBudgetAt},
mng_userid = #{mngUserid}, mng_userid = #{mngUserid},
mng_username = #{mngUsername}
mng_username = #{mngUsername},
milestone = #{milestone},
pleaf = #{pleaf}
</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>
@ -305,6 +309,8 @@
<if test="taskBudgetAt != null and taskBudgetAt != ''"> task_budget_at = #{taskBudgetAt}, </if> <if test="taskBudgetAt != null and taskBudgetAt != ''"> task_budget_at = #{taskBudgetAt}, </if>
<if test="mngUserid != null and mngUserid != ''"> mng_userid = #{mngUserid}, </if> <if test="mngUserid != null and mngUserid != ''"> mng_userid = #{mngUserid}, </if>
<if test="mngUsername != null and mngUsername != ''"> mng_username = #{mngUsername}, </if> <if test="mngUsername != null and mngUsername != ''"> mng_username = #{mngUsername}, </if>
<if test="milestone != null and milestone != ''"> milestone = #{milestone}, </if>
<if test="pleaf != null and pleaf != ''"> pleaf = #{pleaf}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -349,6 +355,8 @@
task_budget_workload = #{item.taskBudgetWorkload}, task_budget_workload = #{item.taskBudgetWorkload},
task_budget_at = #{item.taskBudgetAt}, task_budget_at = #{item.taskBudgetAt},
mng_userid = #{item.mngUserid}, mng_userid = #{item.mngUserid},
mng_username = #{item.mngUsername}
mng_username = #{item.mngUsername},
milestone = #{item.milestone},
pleaf = #{item.pleaf}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save