Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
32b0e8c64f
  1. 893
      xm-core/src/main/java/com/xm/core/entity/XmBranchState.java
  2. 914
      xm-core/src/main/java/com/xm/core/entity/XmIterationState.java
  3. 682
      xm-core/src/main/java/com/xm/core/entity/XmMenuState.java
  4. 962
      xm-core/src/main/java/com/xm/core/entity/XmProductState.java
  5. 895
      xm-core/src/main/java/com/xm/core/entity/XmProjectState.java
  6. 895
      xm-core/src/main/java/com/xm/core/entity/XmProjectStateHis.java
  7. 404
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchStateMapper.xml
  8. 310
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationStateMapper.xml
  9. 224
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuStateMapper.xml
  10. 364
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductStateMapper.xml
  11. 388
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateHisMapper.xml
  12. 388
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateMapper.xml

893
xm-core/src/main/java/com/xm/core/entity/XmBranchState.java
File diff suppressed because it is too large
View File

914
xm-core/src/main/java/com/xm/core/entity/XmIterationState.java
File diff suppressed because it is too large
View File

682
xm-core/src/main/java/com/xm/core/entity/XmMenuState.java

@ -2,15 +2,15 @@ package com.xm.core.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.math.BigDecimal;
import java.util.Date;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmMenuState所有属性名: <br>
* menuId,planStartTime,planEndTime,actStartTime,actEndTime,planWorkload,actWorkload,planCostAmount,actCostAmount,finishRate,demandRate,designRate,devRate,uatRate,sitRate,onlineStatus,onlineTime,planStatus,chargeUserid,chargeUsername,menuStatus,ctime,ltime,cuserid,cusername,calcTime,menuName,planWorkhours,planWorkerCnt,closedBugs,activeBugs,confirmedBugs,resolvedBugs,productId,productName,testCases,execCases,designCases,finishCases,projectCnt,iterationCnt,taskCnt,finishTaskCnt,bizDate,bugCnt;<br>
* menuId,finishRate,menuStatus,ctime,calcTime,menuName,planWorkhours,planWorkerCnt,closedBugs,activeBugs,confirmedBugs,resolvedBugs,productId,testCases,execCases,designCases,finishCases,bizDate,bugCnt,taskCnt,taskUnstartCnt,taskExecCnt,taskFinishCnt,taskSetCnt,taskOutCnt,taskCloseCnt,budgetNouserAt,budgetOuserAt,budgetIuserAt,actUserAt,actIuserAt,actOuserAt,actNouserAt,budgetWorkload,budgetOuserWorkload,budgetIuserWorkload,actWorkload,actOuserWorkload,actIuserWorkload,estimateWorkload,budgetAt,actAt,minStartTime,maxEndTime,productCnt,iterationCnt,projectCnt;<br>
* xm_menu_state 功能状态表,无需前端维护所有数据由汇总统计得出的所有字段名: <br>
* menu_id,plan_start_time,plan_end_time,act_start_time,act_end_time,plan_workload,act_workload,plan_cost_amount,act_cost_amount,finish_rate,demand_rate,design_rate,dev_rate,uat_rate,sit_rate,online_status,online_time,plan_status,charge_userid,charge_username,menu_status,ctime,ltime,cuserid,cusername,calc_time,menu_name,plan_workhours,plan_worker_cnt,closed_bugs,active_bugs,confirmed_bugs,resolved_bugs,product_id,product_name,test_cases,exec_cases,design_cases,finish_cases,project_cnt,iteration_cnt,task_cnt,finish_task_cnt,biz_date,bug_cnt;<br>
* menu_id,finish_rate,menu_status,ctime,calc_time,menu_name,plan_workhours,plan_worker_cnt,closed_bugs,active_bugs,confirmed_bugs,resolved_bugs,product_id,test_cases,exec_cases,design_cases,finish_cases,biz_date,bug_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,budget_workload,budget_ouser_workload,budget_iuser_workload,act_workload,act_ouser_workload,act_iuser_workload,estimate_workload,budget_at,act_at,min_start_time,max_end_time,product_cnt,iteration_cnt,project_cnt;<br>
* 当前主键(包括多主键):<br>
* menu_id;<br>
*/
@ -23,78 +23,15 @@ public class XmMenuState implements java.io.Serializable {
String menuId;
@ApiModelProperty(notes="开始时间",allowEmptyValue=true,example="",allowableValues="")
Date planStartTime;
@ApiModelProperty(notes="结束时间",allowEmptyValue=true,example="",allowableValues="")
Date planEndTime;
@ApiModelProperty(notes="实际开始时间",allowEmptyValue=true,example="",allowableValues="")
Date actStartTime;
@ApiModelProperty(notes="实际结束时间",allowEmptyValue=true,example="",allowableValues="")
Date actEndTime;
@ApiModelProperty(notes="计划工作量,根据关联任务汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal planWorkload;
@ApiModelProperty(notes="实际工作量,根据关联任务汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actWorkload;
@ApiModelProperty(notes="计划成本,根据关联任务汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal planCostAmount;
@ApiModelProperty(notes="实际成本金额根据关联任务汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actCostAmount;
@ApiModelProperty(notes="总体完成比例0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal finishRate;
@ApiModelProperty(notes="需求完成率0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal demandRate;
@ApiModelProperty(notes="设计完成率0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal designRate;
@ApiModelProperty(notes="开发完成率0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal devRate;
@ApiModelProperty(notes="uat测试完成率0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal uatRate;
@ApiModelProperty(notes="sit测试完成率0-100之间,根据taskType进行汇总",allowEmptyValue=true,example="",allowableValues="")
BigDecimal sitRate;
@ApiModelProperty(notes="上线状态0未上线1上线成功",allowEmptyValue=true,example="",allowableValues="")
String onlineStatus;
@ApiModelProperty(notes="上线时间",allowEmptyValue=true,example="",allowableValues="")
Date onlineTime;
@ApiModelProperty(notes="计划状态0初始1正常2暂停3延误4结束5关闭",allowEmptyValue=true,example="",allowableValues="")
String planStatus;
@ApiModelProperty(notes="负责人编号",allowEmptyValue=true,example="",allowableValues="")
String chargeUserid;
@ApiModelProperty(notes="负责人姓名",allowEmptyValue=true,example="",allowableValues="")
String chargeUsername;
@ApiModelProperty(notes="状态0初始1设计中2开发中3测试中4uat测试2已上线3已下线4已删除",allowEmptyValue=true,example="",allowableValues="")
String menuStatus;
@ApiModelProperty(notes="创建时间",allowEmptyValue=true,example="",allowableValues="")
Date ctime;
@ApiModelProperty(notes="更新时间",allowEmptyValue=true,example="",allowableValues="")
Date ltime;
@ApiModelProperty(notes="创建人编号",allowEmptyValue=true,example="",allowableValues="")
String cuserid;
@ApiModelProperty(notes="创建人姓名",allowEmptyValue=true,example="",allowableValues="")
String cusername;
@ApiModelProperty(notes="汇总时间",allowEmptyValue=true,example="",allowableValues="")
Date calcTime;
@ -122,9 +59,6 @@ public class XmMenuState implements java.io.Serializable {
@ApiModelProperty(notes="产品编号",allowEmptyValue=true,example="",allowableValues="")
String productId;
@ApiModelProperty(notes="产品名称",allowEmptyValue=true,example="",allowableValues="")
String productName;
@ApiModelProperty(notes="测试案例总数",allowEmptyValue=true,example="",allowableValues="")
Integer testCases;
@ -137,23 +71,95 @@ public class XmMenuState implements java.io.Serializable {
@ApiModelProperty(notes="完成案例总数",allowEmptyValue=true,example="",allowableValues="")
Integer finishCases;
@ApiModelProperty(notes="关联项目数",allowEmptyValue=true,example="",allowableValues="")
Integer projectCnt;
@ApiModelProperty(notes="业务日期yyyy-MM-dd字符串",allowEmptyValue=true,example="",allowableValues="")
String bizDate;
@ApiModelProperty(notes="关联迭代数",allowEmptyValue=true,example="",allowableValues="")
Integer iterationCnt;
@ApiModelProperty(notes="bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer bugCnt;
@ApiModelProperty(notes="任务数",allowEmptyValue=true,example="",allowableValues="")
@ApiModelProperty(notes="任务数",allowEmptyValue=true,example="",allowableValues="")
Integer taskCnt;
@ApiModelProperty(notes="完成的任务数",allowEmptyValue=true,example="",allowableValues="")
Integer finishTaskCnt;
@ApiModelProperty(notes="待开始任务",allowEmptyValue=true,example="",allowableValues="")
Integer taskUnstartCnt;
@ApiModelProperty(notes="业务日期yyyy-MM-dd字符串",allowEmptyValue=true,example="",allowableValues="")
String bizDate;
@ApiModelProperty(notes="执行中任务",allowEmptyValue=true,example="",allowableValues="")
Integer taskExecCnt;
@ApiModelProperty(notes="bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer bugCnt;
@ApiModelProperty(notes="已完成任务总数-来自任务表",allowEmptyValue=true,example="",allowableValues="")
Integer taskFinishCnt;
@ApiModelProperty(notes="已结算任务",allowEmptyValue=true,example="",allowableValues="")
Integer taskSetCnt;
@ApiModelProperty(notes="外购任务数,来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal taskOutCnt;
@ApiModelProperty(notes="已关闭任务",allowEmptyValue=true,example="",allowableValues="")
Integer taskCloseCnt;
@ApiModelProperty(notes="项目总非人力预算-来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetNouserAt;
@ApiModelProperty(notes="项目总外购人力预算-来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetOuserAt;
@ApiModelProperty(notes="项目总内部人力预算-来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetIuserAt;
@ApiModelProperty(notes="项目总人力成本",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actUserAt;
@ApiModelProperty(notes="项目总内部人力成本金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actIuserAt;
@ApiModelProperty(notes="项目总外购人力成本金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actOuserAt;
@ApiModelProperty(notes="项目总非人力成本",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actNouserAt;
@ApiModelProperty(notes="项目总预算工作量-来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetWorkload;
@ApiModelProperty(notes="外购人力总工作量-应该大于或等于阶段计划外购人力总成本",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetOuserWorkload;
@ApiModelProperty(notes="内部人力总工作量-应该大于或等于阶段计划内部人力总成本",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetIuserWorkload;
@ApiModelProperty(notes="已完成工作量-来自计划中实际完成工作量",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actWorkload;
@ApiModelProperty(notes="实际外购总工作量,来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actOuserWorkload;
@ApiModelProperty(notes="实际内部总工作量,来自任务表",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actIuserWorkload;
@ApiModelProperty(notes="预估工时",allowEmptyValue=true,example="",allowableValues="")
BigDecimal estimateWorkload;
@ApiModelProperty(notes="预算金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetAt;
@ApiModelProperty(notes="实际金额",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actAt;
@ApiModelProperty(notes="最早开始日期",allowEmptyValue=true,example="",allowableValues="")
Date minStartTime;
@ApiModelProperty(notes="最晚结束时间",allowEmptyValue=true,example="",allowableValues="")
Date maxEndTime;
@ApiModelProperty(notes="关联产品数(主要是指子节点关联)",allowEmptyValue=true,example="",allowableValues="")
Integer productCnt;
@ApiModelProperty(notes="关联迭代数(主要是指子节点关联)",allowEmptyValue=true,example="",allowableValues="")
Integer iterationCnt;
@ApiModelProperty(notes="关联项目数(主要是指子节点关联)",allowEmptyValue=true,example="",allowableValues="")
Integer projectCnt;
/**功能编号**/
public XmMenuState(String menuId) {
@ -170,120 +176,12 @@ public class XmMenuState implements java.io.Serializable {
public void setMenuId(String menuId) {
this.menuId = menuId;
}
/**
* 开始时间
**/
public void setPlanStartTime(Date planStartTime) {
this.planStartTime = planStartTime;
}
/**
* 结束时间
**/
public void setPlanEndTime(Date planEndTime) {
this.planEndTime = planEndTime;
}
/**
* 实际开始时间
**/
public void setActStartTime(Date actStartTime) {
this.actStartTime = actStartTime;
}
/**
* 实际结束时间
**/
public void setActEndTime(Date actEndTime) {
this.actEndTime = actEndTime;
}
/**
* 计划工作量根据关联任务汇总
**/
public void setPlanWorkload(BigDecimal planWorkload) {
this.planWorkload = planWorkload;
}
/**
* 实际工作量根据关联任务汇总
**/
public void setActWorkload(BigDecimal actWorkload) {
this.actWorkload = actWorkload;
}
/**
* 计划成本根据关联任务汇总
**/
public void setPlanCostAmount(BigDecimal planCostAmount) {
this.planCostAmount = planCostAmount;
}
/**
* 实际成本金额根据关联任务汇总
**/
public void setActCostAmount(BigDecimal actCostAmount) {
this.actCostAmount = actCostAmount;
}
/**
* 总体完成比例0-100之间,根据taskType进行汇总
**/
public void setFinishRate(BigDecimal finishRate) {
this.finishRate = finishRate;
}
/**
* 需求完成率0-100之间,根据taskType进行汇总
**/
public void setDemandRate(BigDecimal demandRate) {
this.demandRate = demandRate;
}
/**
* 设计完成率0-100之间,根据taskType进行汇总
**/
public void setDesignRate(BigDecimal designRate) {
this.designRate = designRate;
}
/**
* 开发完成率0-100之间,根据taskType进行汇总
**/
public void setDevRate(BigDecimal devRate) {
this.devRate = devRate;
}
/**
* uat测试完成率0-100之间,根据taskType进行汇总
**/
public void setUatRate(BigDecimal uatRate) {
this.uatRate = uatRate;
}
/**
* sit测试完成率0-100之间,根据taskType进行汇总
**/
public void setSitRate(BigDecimal sitRate) {
this.sitRate = sitRate;
}
/**
* 上线状态0未上线1上线成功
**/
public void setOnlineStatus(String onlineStatus) {
this.onlineStatus = onlineStatus;
}
/**
* 上线时间
**/
public void setOnlineTime(Date onlineTime) {
this.onlineTime = onlineTime;
}
/**
* 计划状态0初始1正常2暂停3延误4结束5关闭
**/
public void setPlanStatus(String planStatus) {
this.planStatus = planStatus;
}
/**
* 负责人编号
**/
public void setChargeUserid(String chargeUserid) {
this.chargeUserid = chargeUserid;
}
/**
* 负责人姓名
**/
public void setChargeUsername(String chargeUsername) {
this.chargeUsername = chargeUsername;
}
/**
* 状态0初始1设计中2开发中3测试中4uat测试2已上线3已下线4已删除
**/
@ -296,24 +194,6 @@ public class XmMenuState implements java.io.Serializable {
public void setCtime(Date ctime) {
this.ctime = ctime;
}
/**
* 更新时间
**/
public void setLtime(Date ltime) {
this.ltime = ltime;
}
/**
* 创建人编号
**/
public void setCuserid(String cuserid) {
this.cuserid = cuserid;
}
/**
* 创建人姓名
**/
public void setCusername(String cusername) {
this.cusername = cusername;
}
/**
* 汇总时间
**/
@ -368,12 +248,6 @@ public class XmMenuState implements java.io.Serializable {
public void setProductId(String productId) {
this.productId = productId;
}
/**
* 产品名称
**/
public void setProductName(String productName) {
this.productName = productName;
}
/**
* 测试案例总数
**/
@ -399,191 +273,209 @@ public class XmMenuState implements java.io.Serializable {
this.finishCases = finishCases;
}
/**
* 关联项目数
* 业务日期yyyy-MM-dd字符串
**/
public void setProjectCnt(Integer projectCnt) {
this.projectCnt = projectCnt;
public void setBizDate(String bizDate) {
this.bizDate = bizDate;
}
/**
* 关联迭代
* bug总
**/
public void setIterationCnt(Integer iterationCnt) {
this.iterationCnt = iterationCnt;
public void setBugCnt(Integer bugCnt) {
this.bugCnt = bugCnt;
}
/**
* 任务数
* 任务
**/
public void setTaskCnt(Integer taskCnt) {
this.taskCnt = taskCnt;
}
/**
* 完成的任务数
* 待开始任务
**/
public void setFinishTaskCnt(Integer finishTaskCnt) {
this.finishTaskCnt = finishTaskCnt;
public void setTaskUnstartCnt(Integer taskUnstartCnt) {
this.taskUnstartCnt = taskUnstartCnt;
}
/**
* 业务日期yyyy-MM-dd字符串
* 执行中任务
**/
public void setBizDate(String bizDate) {
this.bizDate = bizDate;
public void setTaskExecCnt(Integer taskExecCnt) {
this.taskExecCnt = taskExecCnt;
}
/**
* bug总数
* 已完成任务总数-来自任务表
**/
public void setBugCnt(Integer bugCnt) {
this.bugCnt = bugCnt;
public void setTaskFinishCnt(Integer taskFinishCnt) {
this.taskFinishCnt = taskFinishCnt;
}
/**
* 功能编号
* 已结算任务
**/
public String getMenuId() {
return this.menuId;
public void setTaskSetCnt(Integer taskSetCnt) {
this.taskSetCnt = taskSetCnt;
}
/**
* 开始时间
* 外购任务数来自任务表
**/
public Date getPlanStartTime() {
return this.planStartTime;
public void setTaskOutCnt(BigDecimal taskOutCnt) {
this.taskOutCnt = taskOutCnt;
}
/**
* 结束时间
* 已关闭任务
**/
public Date getPlanEndTime() {
return this.planEndTime;
public void setTaskCloseCnt(Integer taskCloseCnt) {
this.taskCloseCnt = taskCloseCnt;
}
/**
* 实际开始时间
* 项目总非人力预算-来自任务表
**/
public Date getActStartTime() {
return this.actStartTime;
public void setBudgetNouserAt(BigDecimal budgetNouserAt) {
this.budgetNouserAt = budgetNouserAt;
}
/**
* 实际结束时间
* 项目总外购人力预算-来自任务表
**/
public Date getActEndTime() {
return this.actEndTime;
public void setBudgetOuserAt(BigDecimal budgetOuserAt) {
this.budgetOuserAt = budgetOuserAt;
}
/**
* 计划工作量根据关联任务汇总
* 项目总内部人力预算-来自任务表
**/
public BigDecimal getPlanWorkload() {
return this.planWorkload;
public void setBudgetIuserAt(BigDecimal budgetIuserAt) {
this.budgetIuserAt = budgetIuserAt;
}
/**
* 实际工作量根据关联任务汇总
* 项目总人力成本
**/
public BigDecimal getActWorkload() {
return this.actWorkload;
public void setActUserAt(BigDecimal actUserAt) {
this.actUserAt = actUserAt;
}
/**
* 计划成本根据关联任务汇总
* 项目总内部人力成本金额
**/
public BigDecimal getPlanCostAmount() {
return this.planCostAmount;
public void setActIuserAt(BigDecimal actIuserAt) {
this.actIuserAt = actIuserAt;
}
/**
* 实际成本金额根据关联任务汇总
* 项目总外购人力成本金额
**/
public BigDecimal getActCostAmount() {
return this.actCostAmount;
public void setActOuserAt(BigDecimal actOuserAt) {
this.actOuserAt = actOuserAt;
}
/**
* 总体完成比例0-100之间,根据taskType进行汇总
* 项目总非人力成本
**/
public BigDecimal getFinishRate() {
return this.finishRate;
public void setActNouserAt(BigDecimal actNouserAt) {
this.actNouserAt = actNouserAt;
}
/**
* 需求完成率0-100之间,根据taskType进行汇总
* 项目总预算工作量-来自任务表
**/
public BigDecimal getDemandRate() {
return this.demandRate;
public void setBudgetWorkload(BigDecimal budgetWorkload) {
this.budgetWorkload = budgetWorkload;
}
/**
* 设计完成率0-100之间,根据taskType进行汇总
* 外购人力总工作量-应该大于或等于阶段计划外购人力总成本
**/
public BigDecimal getDesignRate() {
return this.designRate;
public void setBudgetOuserWorkload(BigDecimal budgetOuserWorkload) {
this.budgetOuserWorkload = budgetOuserWorkload;
}
/**
* 开发完成率0-100之间,根据taskType进行汇总
* 内部人力总工作量-应该大于或等于阶段计划内部人力总成本
**/
public BigDecimal getDevRate() {
return this.devRate;
public void setBudgetIuserWorkload(BigDecimal budgetIuserWorkload) {
this.budgetIuserWorkload = budgetIuserWorkload;
}
/**
* uat测试完成率0-100之间,根据taskType进行汇总
* 已完成工作量-来自计划中实际完成工作量
**/
public BigDecimal getUatRate() {
return this.uatRate;
public void setActWorkload(BigDecimal actWorkload) {
this.actWorkload = actWorkload;
}
/**
* sit测试完成率0-100之间,根据taskType进行汇总
* 实际外购总工作量来自任务表
**/
public BigDecimal getSitRate() {
return this.sitRate;
public void setActOuserWorkload(BigDecimal actOuserWorkload) {
this.actOuserWorkload = actOuserWorkload;
}
/**
* 上线状态0未上线1上线成功
* 实际内部总工作量来自任务表
**/
public String getOnlineStatus() {
return this.onlineStatus;
public void setActIuserWorkload(BigDecimal actIuserWorkload) {
this.actIuserWorkload = actIuserWorkload;
}
/**
* 上线时间
* 预估工时
**/
public Date getOnlineTime() {
return this.onlineTime;
public void setEstimateWorkload(BigDecimal estimateWorkload) {
this.estimateWorkload = estimateWorkload;
}
/**
* 计划状态0初始1正常2暂停3延误4结束5关闭
* 预算金额
**/
public String getPlanStatus() {
return this.planStatus;
public void setBudgetAt(BigDecimal budgetAt) {
this.budgetAt = budgetAt;
}
/**
* 负责人编号
* 实际金额
**/
public String getChargeUserid() {
return this.chargeUserid;
public void setActAt(BigDecimal actAt) {
this.actAt = actAt;
}
/**
* 负责人姓名
* 最早开始日期
**/
public String getChargeUsername() {
return this.chargeUsername;
public void setMinStartTime(Date minStartTime) {
this.minStartTime = minStartTime;
}
/**
* 状态0初始1设计中2开发中3测试中4uat测试2已上线3已下线4已删除
* 最晚结束时间
**/
public String getMenuStatus() {
return this.menuStatus;
public void setMaxEndTime(Date maxEndTime) {
this.maxEndTime = maxEndTime;
}
/**
* 创建时间
* 关联产品数主要是指子节点关联
**/
public Date getCtime() {
return this.ctime;
public void setProductCnt(Integer productCnt) {
this.productCnt = productCnt;
}
/**
* 关联迭代数主要是指子节点关联
**/
public void setIterationCnt(Integer iterationCnt) {
this.iterationCnt = iterationCnt;
}
/**
* 关联项目数主要是指子节点关联
**/
public void setProjectCnt(Integer projectCnt) {
this.projectCnt = projectCnt;
}
/**
* 功能编号
**/
public String getMenuId() {
return this.menuId;
}
/**
* 更新时间
* 总体完成比例0-100之间,根据taskType进行汇总
**/
public Date getLtime() {
return this.ltime;
public BigDecimal getFinishRate() {
return this.finishRate;
}
/**
* 创建人编号
* 状态0初始1设计中2开发中3测试中4uat测试2已上线3已下线4已删除
**/
public String getCuserid() {
return this.cuserid;
public String getMenuStatus() {
return this.menuStatus;
}
/**
* 创建人姓名
* 创建时间
**/
public String getCusername() {
return this.cusername;
public Date getCtime() {
return this.ctime;
}
/**
* 汇总时间
@ -639,12 +531,6 @@ public class XmMenuState implements java.io.Serializable {
public String getProductId() {
return this.productId;
}
/**
* 产品名称
**/
public String getProductName() {
return this.productName;
}
/**
* 测试案例总数
**/
@ -670,40 +556,184 @@ public class XmMenuState implements java.io.Serializable {
return this.finishCases;
}
/**
* 关联项目数
* 业务日期yyyy-MM-dd字符串
**/
public Integer getProjectCnt() {
return this.projectCnt;
public String getBizDate() {
return this.bizDate;
}
/**
* 关联迭代
* bug总
**/
public Integer getIterationCnt() {
return this.iterationCnt;
public Integer getBugCnt() {
return this.bugCnt;
}
/**
* 任务数
* 任务
**/
public Integer getTaskCnt() {
return this.taskCnt;
}
/**
* 完成的任务数
* 待开始任务
**/
public Integer getFinishTaskCnt() {
return this.finishTaskCnt;
public Integer getTaskUnstartCnt() {
return this.taskUnstartCnt;
}
/**
* 业务日期yyyy-MM-dd字符串
* 执行中任务
**/
public String getBizDate() {
return this.bizDate;
public Integer getTaskExecCnt() {
return this.taskExecCnt;
}
/**
* bug总数
* 已完成任务总数-来自任务表
**/
public Integer getBugCnt() {
return this.bugCnt;
public Integer getTaskFinishCnt() {
return this.taskFinishCnt;
}
/**
* 已结算任务
**/
public Integer getTaskSetCnt() {
return this.taskSetCnt;
}
/**
* 外购任务数来自任务表
**/
public BigDecimal getTaskOutCnt() {
return this.taskOutCnt;
}
/**
* 已关闭任务
**/
public Integer getTaskCloseCnt() {
return this.taskCloseCnt;
}
/**
* 项目总非人力预算-来自任务表
**/
public BigDecimal getBudgetNouserAt() {
return this.budgetNouserAt;
}
/**
* 项目总外购人力预算-来自任务表
**/
public BigDecimal getBudgetOuserAt() {
return this.budgetOuserAt;
}
/**
* 项目总内部人力预算-来自任务表
**/
public BigDecimal getBudgetIuserAt() {
return this.budgetIuserAt;
}
/**
* 项目总人力成本
**/
public BigDecimal getActUserAt() {
return this.actUserAt;
}
/**
* 项目总内部人力成本金额
**/
public BigDecimal getActIuserAt() {
return this.actIuserAt;
}
/**
* 项目总外购人力成本金额
**/
public BigDecimal getActOuserAt() {
return this.actOuserAt;
}
/**
* 项目总非人力成本
**/
public BigDecimal getActNouserAt() {
return this.actNouserAt;
}
/**
* 项目总预算工作量-来自任务表
**/
public BigDecimal getBudgetWorkload() {
return this.budgetWorkload;
}
/**
* 外购人力总工作量-应该大于或等于阶段计划外购人力总成本
**/
public BigDecimal getBudgetOuserWorkload() {
return this.budgetOuserWorkload;
}
/**
* 内部人力总工作量-应该大于或等于阶段计划内部人力总成本
**/
public BigDecimal getBudgetIuserWorkload() {
return this.budgetIuserWorkload;
}
/**
* 已完成工作量-来自计划中实际完成工作量
**/
public BigDecimal getActWorkload() {
return this.actWorkload;
}
/**
* 实际外购总工作量来自任务表
**/
public BigDecimal getActOuserWorkload() {
return this.actOuserWorkload;
}
/**
* 实际内部总工作量来自任务表
**/
public BigDecimal getActIuserWorkload() {
return this.actIuserWorkload;
}
/**
* 预估工时
**/
public BigDecimal getEstimateWorkload() {
return this.estimateWorkload;
}
/**
* 预算金额
**/
public BigDecimal getBudgetAt() {
return this.budgetAt;
}
/**
* 实际金额
**/
public BigDecimal getActAt() {
return this.actAt;
}
/**
* 最早开始日期
**/
public Date getMinStartTime() {
return this.minStartTime;
}
/**
* 最晚结束时间
**/
public Date getMaxEndTime() {
return this.maxEndTime;
}
/**
* 关联产品数主要是指子节点关联
**/
public Integer getProductCnt() {
return this.productCnt;
}
/**
* 关联迭代数主要是指子节点关联
**/
public Integer getIterationCnt() {
return this.iterationCnt;
}
/**
* 关联项目数主要是指子节点关联
**/
public Integer getProjectCnt() {
return this.projectCnt;
}
}

962
xm-core/src/main/java/com/xm/core/entity/XmProductState.java
File diff suppressed because it is too large
View File

895
xm-core/src/main/java/com/xm/core/entity/XmProjectState.java
File diff suppressed because it is too large
View File

895
xm-core/src/main/java/com/xm/core/entity/XmProjectStateHis.java
File diff suppressed because it is too large
View File

404
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchStateMapper.xml

@ -126,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},#{totalBudgetIuserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOuserAmount},#{totalCompleteWorkload},#{totalCostIuserAmount},#{totalCostOuserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanIuserWorkload},#{totalPlanOuserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt},#{projectCnt},#{productBudgetWorkload},#{productActWorkload},#{estimateWorkload},#{execTaskCnt},#{toStartTaskCnt},#{execMenuCnt},#{toStartMenuCnt},#{minStartTime},#{maxEndTime}
#{projectCnt},#{bizDate},#{fileCnt},#{calcTime},#{calcStatus},#{phaseCnt},#{phaseFinishCnt},#{needPayAt},#{finishPayAt},#{needColAt},#{finishColAt},#{riskCnt},#{riskFinishCnt},#{branchId},#{branchName},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{finishRate},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{estimateWorkload},#{actWorkload},#{actOuserWorkload},#{actIuserWorkload},#{needPayCnt},#{finishPayCnt},#{finishPayUserCnt},#{needPayUserCnt},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{minStartTime},#{maxEndTime},#{menuCnt},#{menuFinishCnt},#{menuExecCnt},#{menuUnstartCnt},#{menuCloseCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{planWorkhours},#{planWorkerCnt},#{actWorkerCnt},#{budgetAt},#{actAt}
)
</insert>
@ -189,259 +189,271 @@
<!--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_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,min_start_time,max_end_time
project_cnt,biz_date,file_cnt,calc_time,calc_status,phase_cnt,phase_finish_cnt,need_pay_at,finish_pay_at,need_col_at,finish_col_at,risk_cnt,risk_finish_cnt,branch_id,branch_name,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,finish_rate,budget_workload,budget_ouser_workload,budget_iuser_workload,estimate_workload,act_workload,act_ouser_workload,act_iuser_workload,need_pay_cnt,finish_pay_cnt,finish_pay_user_cnt,need_pay_user_cnt,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,min_start_time,max_end_time,menu_cnt,menu_finish_cnt,menu_exec_cnt,menu_unstart_cnt,menu_close_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,plan_workhours,plan_worker_cnt,act_worker_cnt,budget_at,act_at
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="totalFileCnt != null and totalFileCnt != ''"> and res.total_file_cnt = #{totalFileCnt} </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> and res.total_bug_cnt = #{totalBugCnt} </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> and res.total_task_cnt = #{totalTaskCnt} </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> and res.total_budget_nouser_amount = #{totalBudgetNouserAmount} </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> and res.total_staff_cnt = #{totalStaffCnt} </if>
<if test="fileCnt != null and fileCnt != ''"> and res.file_cnt = #{fileCnt} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> and res.total_cost_nouser_amount = #{totalCostNouserAmount} </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> and res.total_closed_bug_cnt = #{totalClosedBugCnt} </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> and res.total_resolved_bug_cnt = #{totalResolvedBugCnt} </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> and res.total_complete_task_cnt = #{totalCompleteTaskCnt} </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> and res.total_phase_cnt = #{totalPhaseCnt} </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> and res.total_complete_phase_cnt = #{totalCompletePhaseCnt} </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> and res.total_need_pay_amount = #{totalNeedPayAmount} </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> and res.total_finish_pay_amount = #{totalFinishPayAmount} </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> and res.total_budget_iuser_amount = #{totalBudgetIuserAmount} </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="phaseCnt != null and phaseCnt != ''"> and res.phase_cnt = #{phaseCnt} </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> and res.phase_finish_cnt = #{phaseFinishCnt} </if>
<if test="needPayAt != null and needPayAt != ''"> and res.need_pay_at = #{needPayAt} </if>
<if test="finishPayAt != null and finishPayAt != ''"> and res.finish_pay_at = #{finishPayAt} </if>
<if test="needColAt != null and needColAt != ''"> and res.need_col_at = #{needColAt} </if>
<if test="finishColAt != null and finishColAt != ''"> and res.finish_col_at = #{finishColAt} </if>
<if test="riskCnt != null and riskCnt != ''"> and res.risk_cnt = #{riskCnt} </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> and res.risk_finish_cnt = #{riskFinishCnt} </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="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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> and res.total_cost_iuser_amount = #{totalCostIuserAmount} </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>
<if test="projectStatus != null and projectStatus != ''"> and res.project_status = #{projectStatus} </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> and res.total_act_workload = #{totalActWorkload} </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> and res.total_act_out_workload = #{totalActOutWorkload} </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> and res.total_act_inner_workload = #{totalActInnerWorkload} </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> and res.total_task_budget_cost_at = #{totalTaskBudgetCostAt} </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> and res.total_task_out_cnt = #{totalTaskOutCnt} </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> and res.total_need_pay_cnt = #{totalNeedPayCnt} </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> and res.total_plan_iuser_workload = #{totalPlanIuserWorkload} </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> and res.total_plan_ouser_workload = #{totalPlanOuserWorkload} </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="needPayCnt != null and needPayCnt != ''"> and res.need_pay_cnt = #{needPayCnt} </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> and res.finish_pay_cnt = #{finishPayCnt} </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> and res.finish_pay_user_cnt = #{finishPayUserCnt} </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> and res.need_pay_user_cnt = #{needPayUserCnt} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<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>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="menuCnt != null and menuCnt != ''"> and res.menu_cnt = #{menuCnt} </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> and res.menu_finish_cnt = #{menuFinishCnt} </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> and res.menu_exec_cnt = #{menuExecCnt} </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> and res.menu_unstart_cnt = #{menuUnstartCnt} </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> and res.menu_close_cnt = #{menuCloseCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> and res.act_worker_cnt = #{actWorkerCnt} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
project_cnt = #{projectCnt},
biz_date = #{bizDate},
total_file_cnt = #{totalFileCnt},
total_bug_cnt = #{totalBugCnt},
total_task_cnt = #{totalTaskCnt},
total_budget_nouser_amount = #{totalBudgetNouserAmount},
total_staff_cnt = #{totalStaffCnt},
file_cnt = #{fileCnt},
calc_time = #{calcTime},
calc_status = #{calcStatus},
total_cost_nouser_amount = #{totalCostNouserAmount},
total_closed_bug_cnt = #{totalClosedBugCnt},
total_resolved_bug_cnt = #{totalResolvedBugCnt},
total_complete_task_cnt = #{totalCompleteTaskCnt},
total_phase_cnt = #{totalPhaseCnt},
total_complete_phase_cnt = #{totalCompletePhaseCnt},
total_need_pay_amount = #{totalNeedPayAmount},
total_finish_pay_amount = #{totalFinishPayAmount},
total_need_col_amount = #{totalNeedColAmount},
total_finish_col_amount = #{totalFinishColAmount},
total_cost_user_amount = #{totalCostUserAmount},
total_budget_iuser_amount = #{totalBudgetIuserAmount},
total_plan_workload = #{totalPlanWorkload},
total_risk_cnt = #{totalRiskCnt},
total_complete_risk_cnt = #{totalCompleteRiskCnt},
phase_cnt = #{phaseCnt},
phase_finish_cnt = #{phaseFinishCnt},
need_pay_at = #{needPayAt},
finish_pay_at = #{finishPayAt},
need_col_at = #{needColAt},
finish_col_at = #{finishColAt},
risk_cnt = #{riskCnt},
risk_finish_cnt = #{riskFinishCnt},
branch_name = #{branchName},
total_budget_ouser_amount = #{totalBudgetOuserAmount},
total_complete_workload = #{totalCompleteWorkload},
total_cost_iuser_amount = #{totalCostIuserAmount},
total_cost_ouser_amount = #{totalCostOuserAmount},
total_progress = #{totalProgress},
total_active_bug_cnt = #{totalActiveBugCnt},
total_confirmed_bug_cnt = #{totalConfirmedBugCnt},
project_status = #{projectStatus},
total_act_workload = #{totalActWorkload},
total_act_out_workload = #{totalActOutWorkload},
total_act_inner_workload = #{totalActInnerWorkload},
total_task_budget_cost_at = #{totalTaskBudgetCostAt},
total_task_out_cnt = #{totalTaskOutCnt},
total_need_pay_cnt = #{totalNeedPayCnt},
total_finish_pay_cnt = #{totalFinishPayCnt},
total_finish_pay_user_cnt = #{totalFinishPayUserCnt},
total_need_pay_user_cnt = #{totalNeedPayUserCnt},
total_plan_iuser_workload = #{totalPlanIuserWorkload},
total_plan_ouser_workload = #{totalPlanOuserWorkload},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
finish_rate = #{finishRate},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
estimate_workload = #{estimateWorkload},
act_workload = #{actWorkload},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
need_pay_cnt = #{needPayCnt},
finish_pay_cnt = #{finishPayCnt},
finish_pay_user_cnt = #{finishPayUserCnt},
need_pay_user_cnt = #{needPayUserCnt},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
iteration_cnt = #{iterationCnt},
product_cnt = #{productCnt},
menu_cnt = #{menuCnt},
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},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime}
max_end_time = #{maxEndTime},
menu_cnt = #{menuCnt},
menu_finish_cnt = #{menuFinishCnt},
menu_exec_cnt = #{menuExecCnt},
menu_unstart_cnt = #{menuUnstartCnt},
menu_close_cnt = #{menuCloseCnt},
task_cnt = #{taskCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
bug_cnt = #{bugCnt},
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
act_worker_cnt = #{actWorkerCnt},
budget_at = #{budgetAt},
act_at = #{actAt}
</sql>
<sql id="someFieldSet">
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="totalFileCnt != null and totalFileCnt != ''"> total_file_cnt = #{totalFileCnt}, </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> total_bug_cnt = #{totalBugCnt}, </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> total_task_cnt = #{totalTaskCnt}, </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> total_budget_nouser_amount = #{totalBudgetNouserAmount}, </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> total_staff_cnt = #{totalStaffCnt}, </if>
<if test="fileCnt != null and fileCnt != ''"> file_cnt = #{fileCnt}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> total_cost_nouser_amount = #{totalCostNouserAmount}, </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> total_closed_bug_cnt = #{totalClosedBugCnt}, </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> total_resolved_bug_cnt = #{totalResolvedBugCnt}, </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> total_complete_task_cnt = #{totalCompleteTaskCnt}, </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> total_phase_cnt = #{totalPhaseCnt}, </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> total_complete_phase_cnt = #{totalCompletePhaseCnt}, </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> total_need_pay_amount = #{totalNeedPayAmount}, </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> total_finish_pay_amount = #{totalFinishPayAmount}, </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> total_budget_iuser_amount = #{totalBudgetIuserAmount}, </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="phaseCnt != null and phaseCnt != ''"> phase_cnt = #{phaseCnt}, </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> phase_finish_cnt = #{phaseFinishCnt}, </if>
<if test="needPayAt != null and needPayAt != ''"> need_pay_at = #{needPayAt}, </if>
<if test="finishPayAt != null and finishPayAt != ''"> finish_pay_at = #{finishPayAt}, </if>
<if test="needColAt != null and needColAt != ''"> need_col_at = #{needColAt}, </if>
<if test="finishColAt != null and finishColAt != ''"> finish_col_at = #{finishColAt}, </if>
<if test="riskCnt != null and riskCnt != ''"> risk_cnt = #{riskCnt}, </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> risk_finish_cnt = #{riskFinishCnt}, </if>
<if test="branchName != null and branchName != ''"> branch_name = #{branchName}, </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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> total_cost_iuser_amount = #{totalCostIuserAmount}, </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>
<if test="projectStatus != null and projectStatus != ''"> project_status = #{projectStatus}, </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> total_act_workload = #{totalActWorkload}, </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> total_act_out_workload = #{totalActOutWorkload}, </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> total_act_inner_workload = #{totalActInnerWorkload}, </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> total_task_budget_cost_at = #{totalTaskBudgetCostAt}, </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> total_task_out_cnt = #{totalTaskOutCnt}, </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> total_need_pay_cnt = #{totalNeedPayCnt}, </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> total_plan_iuser_workload = #{totalPlanIuserWorkload}, </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> total_plan_ouser_workload = #{totalPlanOuserWorkload}, </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="needPayCnt != null and needPayCnt != ''"> need_pay_cnt = #{needPayCnt}, </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> finish_pay_cnt = #{finishPayCnt}, </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> finish_pay_user_cnt = #{finishPayUserCnt}, </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> need_pay_user_cnt = #{needPayUserCnt}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<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>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> menu_finish_cnt = #{menuFinishCnt}, </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> menu_exec_cnt = #{menuExecCnt}, </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> menu_unstart_cnt = #{menuUnstartCnt}, </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> menu_close_cnt = #{menuCloseCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> act_worker_cnt = #{actWorkerCnt}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
project_cnt = #{item.projectCnt},
biz_date = #{item.bizDate},
total_file_cnt = #{item.totalFileCnt},
total_bug_cnt = #{item.totalBugCnt},
total_task_cnt = #{item.totalTaskCnt},
total_budget_nouser_amount = #{item.totalBudgetNouserAmount},
total_staff_cnt = #{item.totalStaffCnt},
file_cnt = #{item.fileCnt},
calc_time = #{item.calcTime},
calc_status = #{item.calcStatus},
total_cost_nouser_amount = #{item.totalCostNouserAmount},
total_closed_bug_cnt = #{item.totalClosedBugCnt},
total_resolved_bug_cnt = #{item.totalResolvedBugCnt},
total_complete_task_cnt = #{item.totalCompleteTaskCnt},
total_phase_cnt = #{item.totalPhaseCnt},
total_complete_phase_cnt = #{item.totalCompletePhaseCnt},
total_need_pay_amount = #{item.totalNeedPayAmount},
total_finish_pay_amount = #{item.totalFinishPayAmount},
total_need_col_amount = #{item.totalNeedColAmount},
total_finish_col_amount = #{item.totalFinishColAmount},
total_cost_user_amount = #{item.totalCostUserAmount},
total_budget_iuser_amount = #{item.totalBudgetIuserAmount},
total_plan_workload = #{item.totalPlanWorkload},
total_risk_cnt = #{item.totalRiskCnt},
total_complete_risk_cnt = #{item.totalCompleteRiskCnt},
phase_cnt = #{item.phaseCnt},
phase_finish_cnt = #{item.phaseFinishCnt},
need_pay_at = #{item.needPayAt},
finish_pay_at = #{item.finishPayAt},
need_col_at = #{item.needColAt},
finish_col_at = #{item.finishColAt},
risk_cnt = #{item.riskCnt},
risk_finish_cnt = #{item.riskFinishCnt},
branch_name = #{item.branchName},
total_budget_ouser_amount = #{item.totalBudgetOuserAmount},
total_complete_workload = #{item.totalCompleteWorkload},
total_cost_iuser_amount = #{item.totalCostIuserAmount},
total_cost_ouser_amount = #{item.totalCostOuserAmount},
total_progress = #{item.totalProgress},
total_active_bug_cnt = #{item.totalActiveBugCnt},
total_confirmed_bug_cnt = #{item.totalConfirmedBugCnt},
project_status = #{item.projectStatus},
total_act_workload = #{item.totalActWorkload},
total_act_out_workload = #{item.totalActOutWorkload},
total_act_inner_workload = #{item.totalActInnerWorkload},
total_task_budget_cost_at = #{item.totalTaskBudgetCostAt},
total_task_out_cnt = #{item.totalTaskOutCnt},
total_need_pay_cnt = #{item.totalNeedPayCnt},
total_finish_pay_cnt = #{item.totalFinishPayCnt},
total_finish_pay_user_cnt = #{item.totalFinishPayUserCnt},
total_need_pay_user_cnt = #{item.totalNeedPayUserCnt},
total_plan_iuser_workload = #{item.totalPlanIuserWorkload},
total_plan_ouser_workload = #{item.totalPlanOuserWorkload},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
finish_rate = #{item.finishRate},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
estimate_workload = #{item.estimateWorkload},
act_workload = #{item.actWorkload},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
need_pay_cnt = #{item.needPayCnt},
finish_pay_cnt = #{item.finishPayCnt},
finish_pay_user_cnt = #{item.finishPayUserCnt},
need_pay_user_cnt = #{item.needPayUserCnt},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
iteration_cnt = #{item.iterationCnt},
product_cnt = #{item.productCnt},
menu_cnt = #{item.menuCnt},
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},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime}
max_end_time = #{item.maxEndTime},
menu_cnt = #{item.menuCnt},
menu_finish_cnt = #{item.menuFinishCnt},
menu_exec_cnt = #{item.menuExecCnt},
menu_unstart_cnt = #{item.menuUnstartCnt},
menu_close_cnt = #{item.menuCloseCnt},
task_cnt = #{item.taskCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
bug_cnt = #{item.bugCnt},
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
act_worker_cnt = #{item.actWorkerCnt},
budget_at = #{item.budgetAt},
act_at = #{item.actAt}
</sql>
</mapper>

310
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationStateMapper.xml

@ -70,7 +70,7 @@
insert into xm_iteration_state(
<include refid="columns"/>
) values (
#{distBudgetCost},#{distBudgetWorkload},#{actCost},#{actWorkload},#{actStaffNum},#{finishRate},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{productCnt},#{menuCnt},#{taskCnt},#{finishTaskCnt},#{calcTime},#{iterationName},#{budgetCost},#{budgetWorkload},#{iterationId},#{bizDate},#{closedBugCnt},#{resolvedBugCnt},#{activeBugCnt},#{confirmedBugCnt},#{bugCnt},#{estimateWorkload},#{minStartTime},#{maxEndTime}
#{iterationId},#{bizDate},#{fileCnt},#{iterationName},#{calcTime},#{calcStatus},#{phaseCnt},#{phaseFinishCnt},#{needPayAt},#{finishPayAt},#{needColAt},#{finishColAt},#{riskCnt},#{riskFinishCnt},#{branchId},#{branchName},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{finishRate},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{estimateWorkload},#{actWorkload},#{projectStatus},#{actOuserWorkload},#{actIuserWorkload},#{needPayCnt},#{finishPayCnt},#{finishPayUserCnt},#{needPayUserCnt},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{minStartTime},#{maxEndTime},#{menuCnt},#{menuFinishCnt},#{menuExecCnt},#{menuUnstartCnt},#{menuCloseCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{planWorkhours},#{planWorkerCnt},#{actWorkerCnt},#{projectCnt},#{budgetAt},#{actAt}
)
</insert>
@ -133,131 +133,283 @@
<!--sql片段 列-->
<sql id="columns">
dist_budget_cost,dist_budget_workload,act_cost,act_workload,act_staff_num,finish_rate,test_cases,exec_cases,design_cases,finish_cases,project_cnt,product_cnt,menu_cnt,task_cnt,finish_task_cnt,calc_time,iteration_name,budget_cost,budget_workload,iteration_id,biz_date,closed_bug_cnt,resolved_bug_cnt,active_bug_cnt,confirmed_bug_cnt,bug_cnt,estimate_workload,min_start_time,max_end_time
iteration_id,biz_date,file_cnt,iteration_name,calc_time,calc_status,phase_cnt,phase_finish_cnt,need_pay_at,finish_pay_at,need_col_at,finish_col_at,risk_cnt,risk_finish_cnt,branch_id,branch_name,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,finish_rate,budget_workload,budget_ouser_workload,budget_iuser_workload,estimate_workload,act_workload,project_status,act_ouser_workload,act_iuser_workload,need_pay_cnt,finish_pay_cnt,finish_pay_user_cnt,need_pay_user_cnt,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,min_start_time,max_end_time,menu_cnt,menu_finish_cnt,menu_exec_cnt,menu_unstart_cnt,menu_close_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,plan_workhours,plan_worker_cnt,act_worker_cnt,project_cnt,budget_at,act_at
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="distBudgetCost != null and distBudgetCost != ''"> and res.dist_budget_cost = #{distBudgetCost} </if>
<if test="distBudgetWorkload != null and distBudgetWorkload != ''"> and res.dist_budget_workload = #{distBudgetWorkload} </if>
<if test="actCost != null and actCost != ''"> and res.act_cost = #{actCost} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="actStaffNum != null and actStaffNum != ''"> and res.act_staff_num = #{actStaffNum} </if>
<if test="iterationId != null and iterationId != ''"> and res.iteration_id = #{iterationId} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="fileCnt != null and fileCnt != ''"> and res.file_cnt = #{fileCnt} </if>
<if test="iterationName != null and iterationName != ''"> and res.iteration_name = #{iterationName} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if>
<if test="phaseCnt != null and phaseCnt != ''"> and res.phase_cnt = #{phaseCnt} </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> and res.phase_finish_cnt = #{phaseFinishCnt} </if>
<if test="needPayAt != null and needPayAt != ''"> and res.need_pay_at = #{needPayAt} </if>
<if test="finishPayAt != null and finishPayAt != ''"> and res.finish_pay_at = #{finishPayAt} </if>
<if test="needColAt != null and needColAt != ''"> and res.need_col_at = #{needColAt} </if>
<if test="finishColAt != null and finishColAt != ''"> and res.finish_col_at = #{finishColAt} </if>
<if test="riskCnt != null and riskCnt != ''"> and res.risk_cnt = #{riskCnt} </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> and res.risk_finish_cnt = #{riskFinishCnt} </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="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="projectStatus != null and projectStatus != ''"> and res.project_status = #{projectStatus} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="needPayCnt != null and needPayCnt != ''"> and res.need_pay_cnt = #{needPayCnt} </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> and res.finish_pay_cnt = #{finishPayCnt} </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> and res.finish_pay_user_cnt = #{finishPayUserCnt} </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> and res.need_pay_user_cnt = #{needPayUserCnt} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<if test="productCnt != null and productCnt != ''"> and res.product_cnt = #{productCnt} </if>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="menuCnt != null and menuCnt != ''"> and res.menu_cnt = #{menuCnt} </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> and res.menu_finish_cnt = #{menuFinishCnt} </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> and res.menu_exec_cnt = #{menuExecCnt} </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> and res.menu_unstart_cnt = #{menuUnstartCnt} </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> and res.menu_close_cnt = #{menuCloseCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> and res.finish_task_cnt = #{finishTaskCnt} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="iterationName != null and iterationName != ''"> and res.iteration_name = #{iterationName} </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="iterationId != null and iterationId != ''"> and res.iteration_id = #{iterationId} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="closedBugCnt != null and closedBugCnt != ''"> and res.closed_bug_cnt = #{closedBugCnt} </if>
<if test="resolvedBugCnt != null and resolvedBugCnt != ''"> and res.resolved_bug_cnt = #{resolvedBugCnt} </if>
<if test="activeBugCnt != null and activeBugCnt != ''"> and res.active_bug_cnt = #{activeBugCnt} </if>
<if test="confirmedBugCnt != null and confirmedBugCnt != ''"> and res.confirmed_bug_cnt = #{confirmedBugCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> and res.act_worker_cnt = #{actWorkerCnt} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
dist_budget_cost = #{distBudgetCost},
dist_budget_workload = #{distBudgetWorkload},
act_cost = #{actCost},
act_workload = #{actWorkload},
act_staff_num = #{actStaffNum},
biz_date = #{bizDate},
file_cnt = #{fileCnt},
iteration_name = #{iterationName},
calc_time = #{calcTime},
calc_status = #{calcStatus},
phase_cnt = #{phaseCnt},
phase_finish_cnt = #{phaseFinishCnt},
need_pay_at = #{needPayAt},
finish_pay_at = #{finishPayAt},
need_col_at = #{needColAt},
finish_col_at = #{finishColAt},
risk_cnt = #{riskCnt},
risk_finish_cnt = #{riskFinishCnt},
branch_id = #{branchId},
branch_name = #{branchName},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
finish_rate = #{finishRate},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
estimate_workload = #{estimateWorkload},
act_workload = #{actWorkload},
project_status = #{projectStatus},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
need_pay_cnt = #{needPayCnt},
finish_pay_cnt = #{finishPayCnt},
finish_pay_user_cnt = #{finishPayUserCnt},
need_pay_user_cnt = #{needPayUserCnt},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
project_cnt = #{projectCnt},
iteration_cnt = #{iterationCnt},
product_cnt = #{productCnt},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime},
menu_cnt = #{menuCnt},
menu_finish_cnt = #{menuFinishCnt},
menu_exec_cnt = #{menuExecCnt},
menu_unstart_cnt = #{menuUnstartCnt},
menu_close_cnt = #{menuCloseCnt},
task_cnt = #{taskCnt},
finish_task_cnt = #{finishTaskCnt},
calc_time = #{calcTime},
iteration_name = #{iterationName},
budget_cost = #{budgetCost},
budget_workload = #{budgetWorkload},
biz_date = #{bizDate},
closed_bug_cnt = #{closedBugCnt},
resolved_bug_cnt = #{resolvedBugCnt},
active_bug_cnt = #{activeBugCnt},
confirmed_bug_cnt = #{confirmedBugCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
bug_cnt = #{bugCnt},
estimate_workload = #{estimateWorkload},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime}
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
act_worker_cnt = #{actWorkerCnt},
project_cnt = #{projectCnt},
budget_at = #{budgetAt},
act_at = #{actAt}
</sql>
<sql id="someFieldSet">
<if test="distBudgetCost != null and distBudgetCost != ''"> dist_budget_cost = #{distBudgetCost}, </if>
<if test="distBudgetWorkload != null and distBudgetWorkload != ''"> dist_budget_workload = #{distBudgetWorkload}, </if>
<if test="actCost != null and actCost != ''"> act_cost = #{actCost}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="actStaffNum != null and actStaffNum != ''"> act_staff_num = #{actStaffNum}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="fileCnt != null and fileCnt != ''"> file_cnt = #{fileCnt}, </if>
<if test="iterationName != null and iterationName != ''"> iteration_name = #{iterationName}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if>
<if test="phaseCnt != null and phaseCnt != ''"> phase_cnt = #{phaseCnt}, </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> phase_finish_cnt = #{phaseFinishCnt}, </if>
<if test="needPayAt != null and needPayAt != ''"> need_pay_at = #{needPayAt}, </if>
<if test="finishPayAt != null and finishPayAt != ''"> finish_pay_at = #{finishPayAt}, </if>
<if test="needColAt != null and needColAt != ''"> need_col_at = #{needColAt}, </if>
<if test="finishColAt != null and finishColAt != ''"> finish_col_at = #{finishColAt}, </if>
<if test="riskCnt != null and riskCnt != ''"> risk_cnt = #{riskCnt}, </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> risk_finish_cnt = #{riskFinishCnt}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="branchName != null and branchName != ''"> branch_name = #{branchName}, </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="projectStatus != null and projectStatus != ''"> project_status = #{projectStatus}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="needPayCnt != null and needPayCnt != ''"> need_pay_cnt = #{needPayCnt}, </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> finish_pay_cnt = #{finishPayCnt}, </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> finish_pay_user_cnt = #{finishPayUserCnt}, </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> need_pay_user_cnt = #{needPayUserCnt}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="productCnt != null and productCnt != ''"> product_cnt = #{productCnt}, </if>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> menu_finish_cnt = #{menuFinishCnt}, </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> menu_exec_cnt = #{menuExecCnt}, </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> menu_unstart_cnt = #{menuUnstartCnt}, </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> menu_close_cnt = #{menuCloseCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> finish_task_cnt = #{finishTaskCnt}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="iterationName != null and iterationName != ''"> iteration_name = #{iterationName}, </if>
<if test="budgetCost != null and budgetCost != ''"> budget_cost = #{budgetCost}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="closedBugCnt != null and closedBugCnt != ''"> closed_bug_cnt = #{closedBugCnt}, </if>
<if test="resolvedBugCnt != null and resolvedBugCnt != ''"> resolved_bug_cnt = #{resolvedBugCnt}, </if>
<if test="activeBugCnt != null and activeBugCnt != ''"> active_bug_cnt = #{activeBugCnt}, </if>
<if test="confirmedBugCnt != null and confirmedBugCnt != ''"> confirmed_bug_cnt = #{confirmedBugCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> act_worker_cnt = #{actWorkerCnt}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
dist_budget_cost = #{item.distBudgetCost},
dist_budget_workload = #{item.distBudgetWorkload},
act_cost = #{item.actCost},
act_workload = #{item.actWorkload},
act_staff_num = #{item.actStaffNum},
biz_date = #{item.bizDate},
file_cnt = #{item.fileCnt},
iteration_name = #{item.iterationName},
calc_time = #{item.calcTime},
calc_status = #{item.calcStatus},
phase_cnt = #{item.phaseCnt},
phase_finish_cnt = #{item.phaseFinishCnt},
need_pay_at = #{item.needPayAt},
finish_pay_at = #{item.finishPayAt},
need_col_at = #{item.needColAt},
finish_col_at = #{item.finishColAt},
risk_cnt = #{item.riskCnt},
risk_finish_cnt = #{item.riskFinishCnt},
branch_id = #{item.branchId},
branch_name = #{item.branchName},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
finish_rate = #{item.finishRate},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
estimate_workload = #{item.estimateWorkload},
act_workload = #{item.actWorkload},
project_status = #{item.projectStatus},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
need_pay_cnt = #{item.needPayCnt},
finish_pay_cnt = #{item.finishPayCnt},
finish_pay_user_cnt = #{item.finishPayUserCnt},
need_pay_user_cnt = #{item.needPayUserCnt},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
project_cnt = #{item.projectCnt},
iteration_cnt = #{item.iterationCnt},
product_cnt = #{item.productCnt},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime},
menu_cnt = #{item.menuCnt},
menu_finish_cnt = #{item.menuFinishCnt},
menu_exec_cnt = #{item.menuExecCnt},
menu_unstart_cnt = #{item.menuUnstartCnt},
menu_close_cnt = #{item.menuCloseCnt},
task_cnt = #{item.taskCnt},
finish_task_cnt = #{item.finishTaskCnt},
calc_time = #{item.calcTime},
iteration_name = #{item.iterationName},
budget_cost = #{item.budgetCost},
budget_workload = #{item.budgetWorkload},
biz_date = #{item.bizDate},
closed_bug_cnt = #{item.closedBugCnt},
resolved_bug_cnt = #{item.resolvedBugCnt},
active_bug_cnt = #{item.activeBugCnt},
confirmed_bug_cnt = #{item.confirmedBugCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
bug_cnt = #{item.bugCnt},
estimate_workload = #{item.estimateWorkload},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime}
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
act_worker_cnt = #{item.actWorkerCnt},
project_cnt = #{item.projectCnt},
budget_at = #{item.budgetAt},
act_at = #{item.actAt}
</sql>
</mapper>

224
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuStateMapper.xml

@ -180,7 +180,7 @@
insert into xm_menu_state(
<include refid="columns"/>
) values (
#{menuId},#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{onlineStatus},#{onlineTime},#{planStatus},#{chargeUserid},#{chargeUsername},#{menuStatus},#{ctime},#{ltime},#{cuserid},#{cusername},#{calcTime},#{menuName},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{productId},#{productName},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{bizDate},#{bugCnt}
#{menuId},#{finishRate},#{menuStatus},#{ctime},#{calcTime},#{menuName},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{productId},#{testCases},#{execCases},#{designCases},#{finishCases},#{bizDate},#{bugCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{actWorkload},#{actOuserWorkload},#{actIuserWorkload},#{estimateWorkload},#{budgetAt},#{actAt},#{minStartTime},#{maxEndTime},#{productCnt},#{iterationCnt},#{projectCnt}
)
</insert>
@ -243,36 +243,15 @@
<!--sql片段 列-->
<sql id="columns">
menu_id,plan_start_time,plan_end_time,act_start_time,act_end_time,plan_workload,act_workload,plan_cost_amount,act_cost_amount,finish_rate,demand_rate,design_rate,dev_rate,uat_rate,sit_rate,online_status,online_time,plan_status,charge_userid,charge_username,menu_status,ctime,ltime,cuserid,cusername,calc_time,menu_name,plan_workhours,plan_worker_cnt,closed_bugs,active_bugs,confirmed_bugs,resolved_bugs,product_id,product_name,test_cases,exec_cases,design_cases,finish_cases,project_cnt,iteration_cnt,task_cnt,finish_task_cnt,biz_date,bug_cnt
menu_id,finish_rate,menu_status,ctime,calc_time,menu_name,plan_workhours,plan_worker_cnt,closed_bugs,active_bugs,confirmed_bugs,resolved_bugs,product_id,test_cases,exec_cases,design_cases,finish_cases,biz_date,bug_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,budget_workload,budget_ouser_workload,budget_iuser_workload,act_workload,act_ouser_workload,act_iuser_workload,estimate_workload,budget_at,act_at,min_start_time,max_end_time,product_cnt,iteration_cnt,project_cnt
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="menuId != null and menuId != ''"> and res.menu_id = #{menuId} </if>
<if test="planStartTime != null"> and date_format(res.plan_start_time,'%Y-%m-%d') = date_format(#{planStartTime},'%Y-%m-%d') </if>
<if test="planEndTime != null"> and date_format(res.plan_end_time,'%Y-%m-%d') = date_format(#{planEndTime},'%Y-%m-%d') </if>
<if test="actStartTime != null"> and date_format(res.act_start_time,'%Y-%m-%d') = date_format(#{actStartTime},'%Y-%m-%d') </if>
<if test="actEndTime != null"> and date_format(res.act_end_time,'%Y-%m-%d') = date_format(#{actEndTime},'%Y-%m-%d') </if>
<if test="planWorkload != null and planWorkload != ''"> and res.plan_workload = #{planWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="planCostAmount != null and planCostAmount != ''"> and res.plan_cost_amount = #{planCostAmount} </if>
<if test="actCostAmount != null and actCostAmount != ''"> and res.act_cost_amount = #{actCostAmount} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="demandRate != null and demandRate != ''"> and res.demand_rate = #{demandRate} </if>
<if test="designRate != null and designRate != ''"> and res.design_rate = #{designRate} </if>
<if test="devRate != null and devRate != ''"> and res.dev_rate = #{devRate} </if>
<if test="uatRate != null and uatRate != ''"> and res.uat_rate = #{uatRate} </if>
<if test="sitRate != null and sitRate != ''"> and res.sit_rate = #{sitRate} </if>
<if test="onlineStatus != null and onlineStatus != ''"> and res.online_status = #{onlineStatus} </if>
<if test="onlineTime != null"> and date_format(res.online_time,'%Y-%m-%d') = date_format(#{onlineTime},'%Y-%m-%d') </if>
<if test="planStatus != null and planStatus != ''"> and res.plan_status = #{planStatus} </if>
<if test="chargeUserid != null and chargeUserid != ''"> and res.charge_userid = #{chargeUserid} </if>
<if test="chargeUsername != null and chargeUsername != ''"> and res.charge_username = #{chargeUsername} </if>
<if test="menuStatus != null and menuStatus != ''"> and res.menu_status = #{menuStatus} </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%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="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if>
<if test="cusername != null and cusername != ''"> and res.cusername = #{cusername} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="menuName != null and menuName != ''"> and res.menu_name = #{menuName} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
@ -282,44 +261,46 @@
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
<if test="productName != null and productName != ''"> and res.product_name = #{productName} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> and res.finish_task_cnt = #{finishTaskCnt} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="productCnt != null and productCnt != ''"> and res.product_cnt = #{productCnt} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
plan_start_time = #{planStartTime},
plan_end_time = #{planEndTime},
act_start_time = #{actStartTime},
act_end_time = #{actEndTime},
plan_workload = #{planWorkload},
act_workload = #{actWorkload},
plan_cost_amount = #{planCostAmount},
act_cost_amount = #{actCostAmount},
finish_rate = #{finishRate},
demand_rate = #{demandRate},
design_rate = #{designRate},
dev_rate = #{devRate},
uat_rate = #{uatRate},
sit_rate = #{sitRate},
online_status = #{onlineStatus},
online_time = #{onlineTime},
plan_status = #{planStatus},
charge_userid = #{chargeUserid},
charge_username = #{chargeUsername},
menu_status = #{menuStatus},
ctime = #{ctime},
ltime = #{ltime},
cuserid = #{cuserid},
cusername = #{cusername},
calc_time = #{calcTime},
menu_name = #{menuName},
plan_workhours = #{planWorkhours},
@ -329,43 +310,45 @@
confirmed_bugs = #{confirmedBugs},
resolved_bugs = #{resolvedBugs},
product_id = #{productId},
product_name = #{productName},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
project_cnt = #{projectCnt},
iteration_cnt = #{iterationCnt},
task_cnt = #{taskCnt},
finish_task_cnt = #{finishTaskCnt},
biz_date = #{bizDate},
bug_cnt = #{bugCnt}
bug_cnt = #{bugCnt},
task_cnt = #{taskCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
act_workload = #{actWorkload},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
estimate_workload = #{estimateWorkload},
budget_at = #{budgetAt},
act_at = #{actAt},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime},
product_cnt = #{productCnt},
iteration_cnt = #{iterationCnt},
project_cnt = #{projectCnt}
</sql>
<sql id="someFieldSet">
<if test="planStartTime != null"> plan_start_time = #{planStartTime}, </if>
<if test="planEndTime != null"> plan_end_time = #{planEndTime}, </if>
<if test="actStartTime != null"> act_start_time = #{actStartTime}, </if>
<if test="actEndTime != null"> act_end_time = #{actEndTime}, </if>
<if test="planWorkload != null and planWorkload != ''"> plan_workload = #{planWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="planCostAmount != null and planCostAmount != ''"> plan_cost_amount = #{planCostAmount}, </if>
<if test="actCostAmount != null and actCostAmount != ''"> act_cost_amount = #{actCostAmount}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="demandRate != null and demandRate != ''"> demand_rate = #{demandRate}, </if>
<if test="designRate != null and designRate != ''"> design_rate = #{designRate}, </if>
<if test="devRate != null and devRate != ''"> dev_rate = #{devRate}, </if>
<if test="uatRate != null and uatRate != ''"> uat_rate = #{uatRate}, </if>
<if test="sitRate != null and sitRate != ''"> sit_rate = #{sitRate}, </if>
<if test="onlineStatus != null and onlineStatus != ''"> online_status = #{onlineStatus}, </if>
<if test="onlineTime != null"> online_time = #{onlineTime}, </if>
<if test="planStatus != null and planStatus != ''"> plan_status = #{planStatus}, </if>
<if test="chargeUserid != null and chargeUserid != ''"> charge_userid = #{chargeUserid}, </if>
<if test="chargeUsername != null and chargeUsername != ''"> charge_username = #{chargeUsername}, </if>
<if test="menuStatus != null and menuStatus != ''"> menu_status = #{menuStatus}, </if>
<if test="ctime != null"> ctime = #{ctime}, </if>
<if test="ltime != null"> ltime = #{ltime}, </if>
<if test="cuserid != null and cuserid != ''"> cuserid = #{cuserid}, </if>
<if test="cusername != null and cusername != ''"> cusername = #{cusername}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="menuName != null and menuName != ''"> menu_name = #{menuName}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
@ -375,44 +358,46 @@
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if>
<if test="productName != null and productName != ''"> product_name = #{productName}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> finish_task_cnt = #{finishTaskCnt}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="productCnt != null and productCnt != ''"> product_cnt = #{productCnt}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
plan_start_time = #{item.planStartTime},
plan_end_time = #{item.planEndTime},
act_start_time = #{item.actStartTime},
act_end_time = #{item.actEndTime},
plan_workload = #{item.planWorkload},
act_workload = #{item.actWorkload},
plan_cost_amount = #{item.planCostAmount},
act_cost_amount = #{item.actCostAmount},
finish_rate = #{item.finishRate},
demand_rate = #{item.demandRate},
design_rate = #{item.designRate},
dev_rate = #{item.devRate},
uat_rate = #{item.uatRate},
sit_rate = #{item.sitRate},
online_status = #{item.onlineStatus},
online_time = #{item.onlineTime},
plan_status = #{item.planStatus},
charge_userid = #{item.chargeUserid},
charge_username = #{item.chargeUsername},
menu_status = #{item.menuStatus},
ctime = #{item.ctime},
ltime = #{item.ltime},
cuserid = #{item.cuserid},
cusername = #{item.cusername},
calc_time = #{item.calcTime},
menu_name = #{item.menuName},
plan_workhours = #{item.planWorkhours},
@ -422,16 +407,39 @@
confirmed_bugs = #{item.confirmedBugs},
resolved_bugs = #{item.resolvedBugs},
product_id = #{item.productId},
product_name = #{item.productName},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
project_cnt = #{item.projectCnt},
iteration_cnt = #{item.iterationCnt},
task_cnt = #{item.taskCnt},
finish_task_cnt = #{item.finishTaskCnt},
biz_date = #{item.bizDate},
bug_cnt = #{item.bugCnt}
bug_cnt = #{item.bugCnt},
task_cnt = #{item.taskCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
act_workload = #{item.actWorkload},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
estimate_workload = #{item.estimateWorkload},
budget_at = #{item.budgetAt},
act_at = #{item.actAt},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime},
product_cnt = #{item.productCnt},
iteration_cnt = #{item.iterationCnt},
project_cnt = #{item.projectCnt}
</sql>
</mapper>

364
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductStateMapper.xml

@ -70,7 +70,7 @@
insert into xm_product_state(
<include refid="columns"/>
) values (
#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{ctime},#{ltime},#{cuserid},#{cusername},#{calcTime},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{productId},#{productName},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{bizDate},#{branchId},#{bugCnt},#{menuCnt},#{menuFinishCnt},#{estimateWorkload}
#{productId},#{bizDate},#{fileCnt},#{productName},#{calcTime},#{calcStatus},#{phaseCnt},#{phaseFinishCnt},#{needPayAt},#{finishPayAt},#{needColAt},#{finishColAt},#{riskCnt},#{riskFinishCnt},#{branchId},#{branchName},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{finishRate},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{estimateWorkload},#{actWorkload},#{projectStatus},#{actOuserWorkload},#{actIuserWorkload},#{needPayCnt},#{finishPayCnt},#{finishPayUserCnt},#{needPayUserCnt},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{minStartTime},#{maxEndTime},#{menuCnt},#{menuFinishCnt},#{menuExecCnt},#{menuUnstartCnt},#{menuCloseCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{planWorkhours},#{planWorkerCnt},#{actWorkerCnt},#{projectCnt},#{budgetAt},#{actAt}
)
</insert>
@ -133,179 +133,283 @@
<!--sql片段 列-->
<sql id="columns">
plan_start_time,plan_end_time,act_start_time,act_end_time,plan_workload,act_workload,plan_cost_amount,act_cost_amount,finish_rate,demand_rate,design_rate,dev_rate,uat_rate,sit_rate,ctime,ltime,cuserid,cusername,calc_time,plan_workhours,plan_worker_cnt,closed_bugs,active_bugs,confirmed_bugs,resolved_bugs,product_id,product_name,test_cases,exec_cases,design_cases,finish_cases,project_cnt,iteration_cnt,task_cnt,finish_task_cnt,biz_date,branch_id,bug_cnt,menu_cnt,menu_finish_cnt,estimate_workload
product_id,biz_date,file_cnt,product_name,calc_time,calc_status,phase_cnt,phase_finish_cnt,need_pay_at,finish_pay_at,need_col_at,finish_col_at,risk_cnt,risk_finish_cnt,branch_id,branch_name,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,finish_rate,budget_workload,budget_ouser_workload,budget_iuser_workload,estimate_workload,act_workload,project_status,act_ouser_workload,act_iuser_workload,need_pay_cnt,finish_pay_cnt,finish_pay_user_cnt,need_pay_user_cnt,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,min_start_time,max_end_time,menu_cnt,menu_finish_cnt,menu_exec_cnt,menu_unstart_cnt,menu_close_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,plan_workhours,plan_worker_cnt,act_worker_cnt,project_cnt,budget_at,act_at
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="planStartTime != null"> and date_format(res.plan_start_time,'%Y-%m-%d') = date_format(#{planStartTime},'%Y-%m-%d') </if>
<if test="planEndTime != null"> and date_format(res.plan_end_time,'%Y-%m-%d') = date_format(#{planEndTime},'%Y-%m-%d') </if>
<if test="actStartTime != null"> and date_format(res.act_start_time,'%Y-%m-%d') = date_format(#{actStartTime},'%Y-%m-%d') </if>
<if test="actEndTime != null"> and date_format(res.act_end_time,'%Y-%m-%d') = date_format(#{actEndTime},'%Y-%m-%d') </if>
<if test="planWorkload != null and planWorkload != ''"> and res.plan_workload = #{planWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="planCostAmount != null and planCostAmount != ''"> and res.plan_cost_amount = #{planCostAmount} </if>
<if test="actCostAmount != null and actCostAmount != ''"> and res.act_cost_amount = #{actCostAmount} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="demandRate != null and demandRate != ''"> and res.demand_rate = #{demandRate} </if>
<if test="designRate != null and designRate != ''"> and res.design_rate = #{designRate} </if>
<if test="devRate != null and devRate != ''"> and res.dev_rate = #{devRate} </if>
<if test="uatRate != null and uatRate != ''"> and res.uat_rate = #{uatRate} </if>
<if test="sitRate != null and sitRate != ''"> and res.sit_rate = #{sitRate} </if>
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%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="cuserid != null and cuserid != ''"> and res.cuserid = #{cuserid} </if>
<if test="cusername != null and cusername != ''"> and res.cusername = #{cusername} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="fileCnt != null and fileCnt != ''"> and res.file_cnt = #{fileCnt} </if>
<if test="productName != null and productName != ''"> and res.product_name = #{productName} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if>
<if test="phaseCnt != null and phaseCnt != ''"> and res.phase_cnt = #{phaseCnt} </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> and res.phase_finish_cnt = #{phaseFinishCnt} </if>
<if test="needPayAt != null and needPayAt != ''"> and res.need_pay_at = #{needPayAt} </if>
<if test="finishPayAt != null and finishPayAt != ''"> and res.finish_pay_at = #{finishPayAt} </if>
<if test="needColAt != null and needColAt != ''"> and res.need_col_at = #{needColAt} </if>
<if test="finishColAt != null and finishColAt != ''"> and res.finish_col_at = #{finishColAt} </if>
<if test="riskCnt != null and riskCnt != ''"> and res.risk_cnt = #{riskCnt} </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> and res.risk_finish_cnt = #{riskFinishCnt} </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="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="projectStatus != null and projectStatus != ''"> and res.project_status = #{projectStatus} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="needPayCnt != null and needPayCnt != ''"> and res.need_pay_cnt = #{needPayCnt} </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> and res.finish_pay_cnt = #{finishPayCnt} </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> and res.finish_pay_user_cnt = #{finishPayUserCnt} </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> and res.need_pay_user_cnt = #{needPayUserCnt} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> and res.finish_task_cnt = #{finishTaskCnt} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="productCnt != null and productCnt != ''"> and res.product_cnt = #{productCnt} </if>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="menuCnt != null and menuCnt != ''"> and res.menu_cnt = #{menuCnt} </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> and res.menu_finish_cnt = #{menuFinishCnt} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> and res.menu_exec_cnt = #{menuExecCnt} </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> and res.menu_unstart_cnt = #{menuUnstartCnt} </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> and res.menu_close_cnt = #{menuCloseCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> and res.act_worker_cnt = #{actWorkerCnt} </if>
<if test="projectCnt != null and projectCnt != ''"> and res.project_cnt = #{projectCnt} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
plan_start_time = #{planStartTime},
plan_end_time = #{planEndTime},
act_start_time = #{actStartTime},
act_end_time = #{actEndTime},
plan_workload = #{planWorkload},
act_workload = #{actWorkload},
plan_cost_amount = #{planCostAmount},
act_cost_amount = #{actCostAmount},
finish_rate = #{finishRate},
demand_rate = #{demandRate},
design_rate = #{designRate},
dev_rate = #{devRate},
uat_rate = #{uatRate},
sit_rate = #{sitRate},
ctime = #{ctime},
ltime = #{ltime},
cuserid = #{cuserid},
cusername = #{cusername},
calc_time = #{calcTime},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
closed_bugs = #{closedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
resolved_bugs = #{resolvedBugs},
biz_date = #{bizDate},
file_cnt = #{fileCnt},
product_name = #{productName},
calc_time = #{calcTime},
calc_status = #{calcStatus},
phase_cnt = #{phaseCnt},
phase_finish_cnt = #{phaseFinishCnt},
need_pay_at = #{needPayAt},
finish_pay_at = #{finishPayAt},
need_col_at = #{needColAt},
finish_col_at = #{finishColAt},
risk_cnt = #{riskCnt},
risk_finish_cnt = #{riskFinishCnt},
branch_id = #{branchId},
branch_name = #{branchName},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
finish_rate = #{finishRate},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
estimate_workload = #{estimateWorkload},
act_workload = #{actWorkload},
project_status = #{projectStatus},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
need_pay_cnt = #{needPayCnt},
finish_pay_cnt = #{finishPayCnt},
finish_pay_user_cnt = #{finishPayUserCnt},
need_pay_user_cnt = #{needPayUserCnt},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
project_cnt = #{projectCnt},
iteration_cnt = #{iterationCnt},
task_cnt = #{taskCnt},
finish_task_cnt = #{finishTaskCnt},
biz_date = #{bizDate},
branch_id = #{branchId},
bug_cnt = #{bugCnt},
product_cnt = #{productCnt},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime},
menu_cnt = #{menuCnt},
menu_finish_cnt = #{menuFinishCnt},
estimate_workload = #{estimateWorkload}
menu_exec_cnt = #{menuExecCnt},
menu_unstart_cnt = #{menuUnstartCnt},
menu_close_cnt = #{menuCloseCnt},
task_cnt = #{taskCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
bug_cnt = #{bugCnt},
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
act_worker_cnt = #{actWorkerCnt},
project_cnt = #{projectCnt},
budget_at = #{budgetAt},
act_at = #{actAt}
</sql>
<sql id="someFieldSet">
<if test="planStartTime != null"> plan_start_time = #{planStartTime}, </if>
<if test="planEndTime != null"> plan_end_time = #{planEndTime}, </if>
<if test="actStartTime != null"> act_start_time = #{actStartTime}, </if>
<if test="actEndTime != null"> act_end_time = #{actEndTime}, </if>
<if test="planWorkload != null and planWorkload != ''"> plan_workload = #{planWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="planCostAmount != null and planCostAmount != ''"> plan_cost_amount = #{planCostAmount}, </if>
<if test="actCostAmount != null and actCostAmount != ''"> act_cost_amount = #{actCostAmount}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="demandRate != null and demandRate != ''"> demand_rate = #{demandRate}, </if>
<if test="designRate != null and designRate != ''"> design_rate = #{designRate}, </if>
<if test="devRate != null and devRate != ''"> dev_rate = #{devRate}, </if>
<if test="uatRate != null and uatRate != ''"> uat_rate = #{uatRate}, </if>
<if test="sitRate != null and sitRate != ''"> sit_rate = #{sitRate}, </if>
<if test="ctime != null"> ctime = #{ctime}, </if>
<if test="ltime != null"> ltime = #{ltime}, </if>
<if test="cuserid != null and cuserid != ''"> cuserid = #{cuserid}, </if>
<if test="cusername != null and cusername != ''"> cusername = #{cusername}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="fileCnt != null and fileCnt != ''"> file_cnt = #{fileCnt}, </if>
<if test="productName != null and productName != ''"> product_name = #{productName}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if>
<if test="phaseCnt != null and phaseCnt != ''"> phase_cnt = #{phaseCnt}, </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> phase_finish_cnt = #{phaseFinishCnt}, </if>
<if test="needPayAt != null and needPayAt != ''"> need_pay_at = #{needPayAt}, </if>
<if test="finishPayAt != null and finishPayAt != ''"> finish_pay_at = #{finishPayAt}, </if>
<if test="needColAt != null and needColAt != ''"> need_col_at = #{needColAt}, </if>
<if test="finishColAt != null and finishColAt != ''"> finish_col_at = #{finishColAt}, </if>
<if test="riskCnt != null and riskCnt != ''"> risk_cnt = #{riskCnt}, </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> risk_finish_cnt = #{riskFinishCnt}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="branchName != null and branchName != ''"> branch_name = #{branchName}, </if>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="projectStatus != null and projectStatus != ''"> project_status = #{projectStatus}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="needPayCnt != null and needPayCnt != ''"> need_pay_cnt = #{needPayCnt}, </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> finish_pay_cnt = #{finishPayCnt}, </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> finish_pay_user_cnt = #{finishPayUserCnt}, </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> need_pay_user_cnt = #{needPayUserCnt}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="finishTaskCnt != null and finishTaskCnt != ''"> finish_task_cnt = #{finishTaskCnt}, </if>
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="productCnt != null and productCnt != ''"> product_cnt = #{productCnt}, </if>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> menu_finish_cnt = #{menuFinishCnt}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> menu_exec_cnt = #{menuExecCnt}, </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> menu_unstart_cnt = #{menuUnstartCnt}, </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> menu_close_cnt = #{menuCloseCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> act_worker_cnt = #{actWorkerCnt}, </if>
<if test="projectCnt != null and projectCnt != ''"> project_cnt = #{projectCnt}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
plan_start_time = #{item.planStartTime},
plan_end_time = #{item.planEndTime},
act_start_time = #{item.actStartTime},
act_end_time = #{item.actEndTime},
plan_workload = #{item.planWorkload},
act_workload = #{item.actWorkload},
plan_cost_amount = #{item.planCostAmount},
act_cost_amount = #{item.actCostAmount},
finish_rate = #{item.finishRate},
demand_rate = #{item.demandRate},
design_rate = #{item.designRate},
dev_rate = #{item.devRate},
uat_rate = #{item.uatRate},
sit_rate = #{item.sitRate},
ctime = #{item.ctime},
ltime = #{item.ltime},
cuserid = #{item.cuserid},
cusername = #{item.cusername},
calc_time = #{item.calcTime},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
closed_bugs = #{item.closedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
resolved_bugs = #{item.resolvedBugs},
biz_date = #{item.bizDate},
file_cnt = #{item.fileCnt},
product_name = #{item.productName},
calc_time = #{item.calcTime},
calc_status = #{item.calcStatus},
phase_cnt = #{item.phaseCnt},
phase_finish_cnt = #{item.phaseFinishCnt},
need_pay_at = #{item.needPayAt},
finish_pay_at = #{item.finishPayAt},
need_col_at = #{item.needColAt},
finish_col_at = #{item.finishColAt},
risk_cnt = #{item.riskCnt},
risk_finish_cnt = #{item.riskFinishCnt},
branch_id = #{item.branchId},
branch_name = #{item.branchName},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
finish_rate = #{item.finishRate},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
estimate_workload = #{item.estimateWorkload},
act_workload = #{item.actWorkload},
project_status = #{item.projectStatus},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
need_pay_cnt = #{item.needPayCnt},
finish_pay_cnt = #{item.finishPayCnt},
finish_pay_user_cnt = #{item.finishPayUserCnt},
need_pay_user_cnt = #{item.needPayUserCnt},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
project_cnt = #{item.projectCnt},
iteration_cnt = #{item.iterationCnt},
task_cnt = #{item.taskCnt},
finish_task_cnt = #{item.finishTaskCnt},
biz_date = #{item.bizDate},
branch_id = #{item.branchId},
bug_cnt = #{item.bugCnt},
product_cnt = #{item.productCnt},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime},
menu_cnt = #{item.menuCnt},
menu_finish_cnt = #{item.menuFinishCnt},
estimate_workload = #{item.estimateWorkload}
menu_exec_cnt = #{item.menuExecCnt},
menu_unstart_cnt = #{item.menuUnstartCnt},
menu_close_cnt = #{item.menuCloseCnt},
task_cnt = #{item.taskCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
bug_cnt = #{item.bugCnt},
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
act_worker_cnt = #{item.actWorkerCnt},
project_cnt = #{item.projectCnt},
budget_at = #{item.budgetAt},
act_at = #{item.actAt}
</sql>
</mapper>

388
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateHisMapper.xml

@ -72,7 +72,7 @@
insert into xm_project_state_his(
<include refid="columns"/>
) values (
#{projectId},#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{projectName},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetIuserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOuserAmount},#{totalCompleteWorkload},#{totalCostIuserAmount},#{totalCostOuserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanIuserWorkload},#{totalPlanOuserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt},#{finishMenuCnt},#{estimateWorkload},#{execTaskCnt},#{toStartTaskCnt},#{execMenuCnt},#{toStartMenuCnt},#{minStartTime},#{maxEndTime}
#{projectId},#{bizDate},#{fileCnt},#{projectName},#{calcTime},#{calcStatus},#{phaseCnt},#{phaseFinishCnt},#{needPayAt},#{finishPayAt},#{needColAt},#{finishColAt},#{riskCnt},#{riskFinishCnt},#{branchId},#{branchName},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{finishRate},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{estimateWorkload},#{actWorkload},#{projectStatus},#{actOuserWorkload},#{actIuserWorkload},#{needPayCnt},#{finishPayCnt},#{finishPayUserCnt},#{needPayUserCnt},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{minStartTime},#{maxEndTime},#{menuCnt},#{menuFinishCnt},#{menuExecCnt},#{menuUnstartCnt},#{menuCloseCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{planWorkhours},#{planWorkerCnt},#{actWorkerCnt},#{budgetAt},#{actAt}
)
</insert>
@ -135,256 +135,276 @@
<!--sql片段 列-->
<sql id="columns">
project_id,biz_date,total_file_cnt,total_bug_cnt,total_task_cnt,total_budget_nouser_amount,project_name,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,finish_menu_cnt,estimate_workload,exec_task_cnt,to_start_task_cnt,exec_menu_cnt,to_start_menu_cnt,min_start_time,max_end_time
project_id,biz_date,file_cnt,project_name,calc_time,calc_status,phase_cnt,phase_finish_cnt,need_pay_at,finish_pay_at,need_col_at,finish_col_at,risk_cnt,risk_finish_cnt,branch_id,branch_name,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,finish_rate,budget_workload,budget_ouser_workload,budget_iuser_workload,estimate_workload,act_workload,project_status,act_ouser_workload,act_iuser_workload,need_pay_cnt,finish_pay_cnt,finish_pay_user_cnt,need_pay_user_cnt,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,min_start_time,max_end_time,menu_cnt,menu_finish_cnt,menu_exec_cnt,menu_unstart_cnt,menu_close_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,plan_workhours,plan_worker_cnt,act_worker_cnt,budget_at,act_at
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="projectId != null and projectId != ''"> and res.project_id = #{projectId} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="totalFileCnt != null and totalFileCnt != ''"> and res.total_file_cnt = #{totalFileCnt} </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> and res.total_bug_cnt = #{totalBugCnt} </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> and res.total_task_cnt = #{totalTaskCnt} </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> and res.total_budget_nouser_amount = #{totalBudgetNouserAmount} </if>
<if test="fileCnt != null and fileCnt != ''"> and res.file_cnt = #{fileCnt} </if>
<if test="projectName != null and projectName != ''"> and res.project_name = #{projectName} </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> and res.total_staff_cnt = #{totalStaffCnt} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> and res.total_cost_nouser_amount = #{totalCostNouserAmount} </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> and res.total_closed_bug_cnt = #{totalClosedBugCnt} </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> and res.total_resolved_bug_cnt = #{totalResolvedBugCnt} </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> and res.total_complete_task_cnt = #{totalCompleteTaskCnt} </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> and res.total_phase_cnt = #{totalPhaseCnt} </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> and res.total_complete_phase_cnt = #{totalCompletePhaseCnt} </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> and res.total_need_pay_amount = #{totalNeedPayAmount} </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> and res.total_finish_pay_amount = #{totalFinishPayAmount} </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> and res.total_budget_iuser_amount = #{totalBudgetIuserAmount} </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="phaseCnt != null and phaseCnt != ''"> and res.phase_cnt = #{phaseCnt} </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> and res.phase_finish_cnt = #{phaseFinishCnt} </if>
<if test="needPayAt != null and needPayAt != ''"> and res.need_pay_at = #{needPayAt} </if>
<if test="finishPayAt != null and finishPayAt != ''"> and res.finish_pay_at = #{finishPayAt} </if>
<if test="needColAt != null and needColAt != ''"> and res.need_col_at = #{needColAt} </if>
<if test="finishColAt != null and finishColAt != ''"> and res.finish_col_at = #{finishColAt} </if>
<if test="riskCnt != null and riskCnt != ''"> and res.risk_cnt = #{riskCnt} </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> and res.risk_finish_cnt = #{riskFinishCnt} </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="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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> and res.total_cost_iuser_amount = #{totalCostIuserAmount} </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>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="projectStatus != null and projectStatus != ''"> and res.project_status = #{projectStatus} </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> and res.total_act_workload = #{totalActWorkload} </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> and res.total_act_out_workload = #{totalActOutWorkload} </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> and res.total_act_inner_workload = #{totalActInnerWorkload} </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> and res.total_task_budget_cost_at = #{totalTaskBudgetCostAt} </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> and res.total_task_out_cnt = #{totalTaskOutCnt} </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> and res.total_need_pay_cnt = #{totalNeedPayCnt} </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> and res.total_plan_iuser_workload = #{totalPlanIuserWorkload} </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> and res.total_plan_ouser_workload = #{totalPlanOuserWorkload} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="needPayCnt != null and needPayCnt != ''"> and res.need_pay_cnt = #{needPayCnt} </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> and res.finish_pay_cnt = #{finishPayCnt} </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> and res.finish_pay_user_cnt = #{finishPayUserCnt} </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> and res.need_pay_user_cnt = #{needPayUserCnt} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<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="finishMenuCnt != null and finishMenuCnt != ''"> and res.finish_menu_cnt = #{finishMenuCnt} </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>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="menuCnt != null and menuCnt != ''"> and res.menu_cnt = #{menuCnt} </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> and res.menu_finish_cnt = #{menuFinishCnt} </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> and res.menu_exec_cnt = #{menuExecCnt} </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> and res.menu_unstart_cnt = #{menuUnstartCnt} </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> and res.menu_close_cnt = #{menuCloseCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> and res.act_worker_cnt = #{actWorkerCnt} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
total_file_cnt = #{totalFileCnt},
total_bug_cnt = #{totalBugCnt},
total_task_cnt = #{totalTaskCnt},
total_budget_nouser_amount = #{totalBudgetNouserAmount},
file_cnt = #{fileCnt},
project_name = #{projectName},
total_staff_cnt = #{totalStaffCnt},
calc_time = #{calcTime},
calc_status = #{calcStatus},
total_cost_nouser_amount = #{totalCostNouserAmount},
total_closed_bug_cnt = #{totalClosedBugCnt},
total_resolved_bug_cnt = #{totalResolvedBugCnt},
total_complete_task_cnt = #{totalCompleteTaskCnt},
total_phase_cnt = #{totalPhaseCnt},
total_complete_phase_cnt = #{totalCompletePhaseCnt},
total_need_pay_amount = #{totalNeedPayAmount},
total_finish_pay_amount = #{totalFinishPayAmount},
total_need_col_amount = #{totalNeedColAmount},
total_finish_col_amount = #{totalFinishColAmount},
total_cost_user_amount = #{totalCostUserAmount},
total_budget_iuser_amount = #{totalBudgetIuserAmount},
total_plan_workload = #{totalPlanWorkload},
total_risk_cnt = #{totalRiskCnt},
total_complete_risk_cnt = #{totalCompleteRiskCnt},
phase_cnt = #{phaseCnt},
phase_finish_cnt = #{phaseFinishCnt},
need_pay_at = #{needPayAt},
finish_pay_at = #{finishPayAt},
need_col_at = #{needColAt},
finish_col_at = #{finishColAt},
risk_cnt = #{riskCnt},
risk_finish_cnt = #{riskFinishCnt},
branch_id = #{branchId},
branch_name = #{branchName},
total_budget_ouser_amount = #{totalBudgetOuserAmount},
total_complete_workload = #{totalCompleteWorkload},
total_cost_iuser_amount = #{totalCostIuserAmount},
total_cost_ouser_amount = #{totalCostOuserAmount},
total_progress = #{totalProgress},
total_active_bug_cnt = #{totalActiveBugCnt},
total_confirmed_bug_cnt = #{totalConfirmedBugCnt},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
finish_rate = #{finishRate},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
estimate_workload = #{estimateWorkload},
act_workload = #{actWorkload},
project_status = #{projectStatus},
total_act_workload = #{totalActWorkload},
total_act_out_workload = #{totalActOutWorkload},
total_act_inner_workload = #{totalActInnerWorkload},
total_task_budget_cost_at = #{totalTaskBudgetCostAt},
total_task_out_cnt = #{totalTaskOutCnt},
total_need_pay_cnt = #{totalNeedPayCnt},
total_finish_pay_cnt = #{totalFinishPayCnt},
total_finish_pay_user_cnt = #{totalFinishPayUserCnt},
total_need_pay_user_cnt = #{totalNeedPayUserCnt},
total_plan_iuser_workload = #{totalPlanIuserWorkload},
total_plan_ouser_workload = #{totalPlanOuserWorkload},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
need_pay_cnt = #{needPayCnt},
finish_pay_cnt = #{finishPayCnt},
finish_pay_user_cnt = #{finishPayUserCnt},
need_pay_user_cnt = #{needPayUserCnt},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
iteration_cnt = #{iterationCnt},
product_cnt = #{productCnt},
menu_cnt = #{menuCnt},
finish_menu_cnt = #{finishMenuCnt},
estimate_workload = #{estimateWorkload},
exec_task_cnt = #{execTaskCnt},
to_start_task_cnt = #{toStartTaskCnt},
exec_menu_cnt = #{execMenuCnt},
to_start_menu_cnt = #{toStartMenuCnt},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime}
max_end_time = #{maxEndTime},
menu_cnt = #{menuCnt},
menu_finish_cnt = #{menuFinishCnt},
menu_exec_cnt = #{menuExecCnt},
menu_unstart_cnt = #{menuUnstartCnt},
menu_close_cnt = #{menuCloseCnt},
task_cnt = #{taskCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
bug_cnt = #{bugCnt},
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
act_worker_cnt = #{actWorkerCnt},
budget_at = #{budgetAt},
act_at = #{actAt}
</sql>
<sql id="someFieldSet">
<if test="totalFileCnt != null and totalFileCnt != ''"> total_file_cnt = #{totalFileCnt}, </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> total_bug_cnt = #{totalBugCnt}, </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> total_task_cnt = #{totalTaskCnt}, </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> total_budget_nouser_amount = #{totalBudgetNouserAmount}, </if>
<if test="fileCnt != null and fileCnt != ''"> file_cnt = #{fileCnt}, </if>
<if test="projectName != null and projectName != ''"> project_name = #{projectName}, </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> total_staff_cnt = #{totalStaffCnt}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> total_cost_nouser_amount = #{totalCostNouserAmount}, </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> total_closed_bug_cnt = #{totalClosedBugCnt}, </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> total_resolved_bug_cnt = #{totalResolvedBugCnt}, </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> total_complete_task_cnt = #{totalCompleteTaskCnt}, </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> total_phase_cnt = #{totalPhaseCnt}, </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> total_complete_phase_cnt = #{totalCompletePhaseCnt}, </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> total_need_pay_amount = #{totalNeedPayAmount}, </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> total_finish_pay_amount = #{totalFinishPayAmount}, </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> total_budget_iuser_amount = #{totalBudgetIuserAmount}, </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="phaseCnt != null and phaseCnt != ''"> phase_cnt = #{phaseCnt}, </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> phase_finish_cnt = #{phaseFinishCnt}, </if>
<if test="needPayAt != null and needPayAt != ''"> need_pay_at = #{needPayAt}, </if>
<if test="finishPayAt != null and finishPayAt != ''"> finish_pay_at = #{finishPayAt}, </if>
<if test="needColAt != null and needColAt != ''"> need_col_at = #{needColAt}, </if>
<if test="finishColAt != null and finishColAt != ''"> finish_col_at = #{finishColAt}, </if>
<if test="riskCnt != null and riskCnt != ''"> risk_cnt = #{riskCnt}, </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> risk_finish_cnt = #{riskFinishCnt}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="branchName != null and branchName != ''"> branch_name = #{branchName}, </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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> total_cost_iuser_amount = #{totalCostIuserAmount}, </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>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="projectStatus != null and projectStatus != ''"> project_status = #{projectStatus}, </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> total_act_workload = #{totalActWorkload}, </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> total_act_out_workload = #{totalActOutWorkload}, </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> total_act_inner_workload = #{totalActInnerWorkload}, </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> total_task_budget_cost_at = #{totalTaskBudgetCostAt}, </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> total_task_out_cnt = #{totalTaskOutCnt}, </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> total_need_pay_cnt = #{totalNeedPayCnt}, </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> total_plan_iuser_workload = #{totalPlanIuserWorkload}, </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> total_plan_ouser_workload = #{totalPlanOuserWorkload}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="needPayCnt != null and needPayCnt != ''"> need_pay_cnt = #{needPayCnt}, </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> finish_pay_cnt = #{finishPayCnt}, </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> finish_pay_user_cnt = #{finishPayUserCnt}, </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> need_pay_user_cnt = #{needPayUserCnt}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="productCnt != null and productCnt != ''"> product_cnt = #{productCnt}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="finishMenuCnt != null and finishMenuCnt != ''"> finish_menu_cnt = #{finishMenuCnt}, </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>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> menu_finish_cnt = #{menuFinishCnt}, </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> menu_exec_cnt = #{menuExecCnt}, </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> menu_unstart_cnt = #{menuUnstartCnt}, </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> menu_close_cnt = #{menuCloseCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> act_worker_cnt = #{actWorkerCnt}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
total_file_cnt = #{item.totalFileCnt},
total_bug_cnt = #{item.totalBugCnt},
total_task_cnt = #{item.totalTaskCnt},
total_budget_nouser_amount = #{item.totalBudgetNouserAmount},
file_cnt = #{item.fileCnt},
project_name = #{item.projectName},
total_staff_cnt = #{item.totalStaffCnt},
calc_time = #{item.calcTime},
calc_status = #{item.calcStatus},
total_cost_nouser_amount = #{item.totalCostNouserAmount},
total_closed_bug_cnt = #{item.totalClosedBugCnt},
total_resolved_bug_cnt = #{item.totalResolvedBugCnt},
total_complete_task_cnt = #{item.totalCompleteTaskCnt},
total_phase_cnt = #{item.totalPhaseCnt},
total_complete_phase_cnt = #{item.totalCompletePhaseCnt},
total_need_pay_amount = #{item.totalNeedPayAmount},
total_finish_pay_amount = #{item.totalFinishPayAmount},
total_need_col_amount = #{item.totalNeedColAmount},
total_finish_col_amount = #{item.totalFinishColAmount},
total_cost_user_amount = #{item.totalCostUserAmount},
total_budget_iuser_amount = #{item.totalBudgetIuserAmount},
total_plan_workload = #{item.totalPlanWorkload},
total_risk_cnt = #{item.totalRiskCnt},
total_complete_risk_cnt = #{item.totalCompleteRiskCnt},
phase_cnt = #{item.phaseCnt},
phase_finish_cnt = #{item.phaseFinishCnt},
need_pay_at = #{item.needPayAt},
finish_pay_at = #{item.finishPayAt},
need_col_at = #{item.needColAt},
finish_col_at = #{item.finishColAt},
risk_cnt = #{item.riskCnt},
risk_finish_cnt = #{item.riskFinishCnt},
branch_id = #{item.branchId},
branch_name = #{item.branchName},
total_budget_ouser_amount = #{item.totalBudgetOuserAmount},
total_complete_workload = #{item.totalCompleteWorkload},
total_cost_iuser_amount = #{item.totalCostIuserAmount},
total_cost_ouser_amount = #{item.totalCostOuserAmount},
total_progress = #{item.totalProgress},
total_active_bug_cnt = #{item.totalActiveBugCnt},
total_confirmed_bug_cnt = #{item.totalConfirmedBugCnt},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
finish_rate = #{item.finishRate},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
estimate_workload = #{item.estimateWorkload},
act_workload = #{item.actWorkload},
project_status = #{item.projectStatus},
total_act_workload = #{item.totalActWorkload},
total_act_out_workload = #{item.totalActOutWorkload},
total_act_inner_workload = #{item.totalActInnerWorkload},
total_task_budget_cost_at = #{item.totalTaskBudgetCostAt},
total_task_out_cnt = #{item.totalTaskOutCnt},
total_need_pay_cnt = #{item.totalNeedPayCnt},
total_finish_pay_cnt = #{item.totalFinishPayCnt},
total_finish_pay_user_cnt = #{item.totalFinishPayUserCnt},
total_need_pay_user_cnt = #{item.totalNeedPayUserCnt},
total_plan_iuser_workload = #{item.totalPlanIuserWorkload},
total_plan_ouser_workload = #{item.totalPlanOuserWorkload},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
need_pay_cnt = #{item.needPayCnt},
finish_pay_cnt = #{item.finishPayCnt},
finish_pay_user_cnt = #{item.finishPayUserCnt},
need_pay_user_cnt = #{item.needPayUserCnt},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
iteration_cnt = #{item.iterationCnt},
product_cnt = #{item.productCnt},
menu_cnt = #{item.menuCnt},
finish_menu_cnt = #{item.finishMenuCnt},
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},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime}
max_end_time = #{item.maxEndTime},
menu_cnt = #{item.menuCnt},
menu_finish_cnt = #{item.menuFinishCnt},
menu_exec_cnt = #{item.menuExecCnt},
menu_unstart_cnt = #{item.menuUnstartCnt},
menu_close_cnt = #{item.menuCloseCnt},
task_cnt = #{item.taskCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
bug_cnt = #{item.bugCnt},
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
act_worker_cnt = #{item.actWorkerCnt},
budget_at = #{item.budgetAt},
act_at = #{item.actAt}
</sql>
</mapper>

388
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateMapper.xml

@ -73,7 +73,7 @@
insert into xm_project_state(
<include refid="columns"/>
) values (
#{projectId},#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{projectName},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetIuserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOuserAmount},#{totalCompleteWorkload},#{totalCostIuserAmount},#{totalCostOuserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanIuserWorkload},#{totalPlanOuserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt},#{finishMenuCnt},#{estimateWorkload},#{execTaskCnt},#{toStartTaskCnt},#{execMenuCnt},#{toStartMenuCnt},#{minStartTime},#{maxEndTime}
#{projectId},#{bizDate},#{fileCnt},#{projectName},#{calcTime},#{calcStatus},#{phaseCnt},#{phaseFinishCnt},#{needPayAt},#{finishPayAt},#{needColAt},#{finishColAt},#{riskCnt},#{riskFinishCnt},#{branchId},#{branchName},#{budgetNouserAt},#{budgetOuserAt},#{budgetIuserAt},#{actUserAt},#{actIuserAt},#{actOuserAt},#{actNouserAt},#{finishRate},#{budgetWorkload},#{budgetOuserWorkload},#{budgetIuserWorkload},#{estimateWorkload},#{actWorkload},#{projectStatus},#{actOuserWorkload},#{actIuserWorkload},#{needPayCnt},#{finishPayCnt},#{finishPayUserCnt},#{needPayUserCnt},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{minStartTime},#{maxEndTime},#{menuCnt},#{menuFinishCnt},#{menuExecCnt},#{menuUnstartCnt},#{menuCloseCnt},#{taskCnt},#{taskUnstartCnt},#{taskExecCnt},#{taskFinishCnt},#{taskSetCnt},#{taskOutCnt},#{taskCloseCnt},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{planWorkhours},#{planWorkerCnt},#{actWorkerCnt},#{budgetAt},#{actAt}
)
</insert>
@ -136,259 +136,279 @@
<!--sql片段 列-->
<sql id="columns">
project_id,biz_date,total_file_cnt,total_bug_cnt,total_task_cnt,total_budget_nouser_amount,project_name,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,finish_menu_cnt,estimate_workload,exec_task_cnt,to_start_task_cnt,exec_menu_cnt,to_start_menu_cnt,min_start_time,max_end_time
project_id,biz_date,file_cnt,project_name,calc_time,calc_status,phase_cnt,phase_finish_cnt,need_pay_at,finish_pay_at,need_col_at,finish_col_at,risk_cnt,risk_finish_cnt,branch_id,branch_name,budget_nouser_at,budget_ouser_at,budget_iuser_at,act_user_at,act_iuser_at,act_ouser_at,act_nouser_at,finish_rate,budget_workload,budget_ouser_workload,budget_iuser_workload,estimate_workload,act_workload,project_status,act_ouser_workload,act_iuser_workload,need_pay_cnt,finish_pay_cnt,finish_pay_user_cnt,need_pay_user_cnt,test_cases,exec_cases,design_cases,finish_cases,iteration_cnt,product_cnt,min_start_time,max_end_time,menu_cnt,menu_finish_cnt,menu_exec_cnt,menu_unstart_cnt,menu_close_cnt,task_cnt,task_unstart_cnt,task_exec_cnt,task_finish_cnt,task_set_cnt,task_out_cnt,task_close_cnt,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,plan_workhours,plan_worker_cnt,act_worker_cnt,budget_at,act_at
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
<sql id="where">
<if test="projectId != null and projectId != ''"> and res.project_id = #{projectId} </if>
<if test="bizDate != null and bizDate != ''"> and res.biz_date = #{bizDate} </if>
<if test="totalFileCnt != null and totalFileCnt != ''"> and res.total_file_cnt = #{totalFileCnt} </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> and res.total_bug_cnt = #{totalBugCnt} </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> and res.total_task_cnt = #{totalTaskCnt} </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> and res.total_budget_nouser_amount = #{totalBudgetNouserAmount} </if>
<if test="fileCnt != null and fileCnt != ''"> and res.file_cnt = #{fileCnt} </if>
<if test="projectName != null and projectName != ''"> and res.project_name = #{projectName} </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> and res.total_staff_cnt = #{totalStaffCnt} </if>
<if test="calcTime != null"> and date_format(res.calc_time,'%Y-%m-%d') = date_format(#{calcTime},'%Y-%m-%d') </if>
<if test="calcStatus != null and calcStatus != ''"> and res.calc_status = #{calcStatus} </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> and res.total_cost_nouser_amount = #{totalCostNouserAmount} </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> and res.total_closed_bug_cnt = #{totalClosedBugCnt} </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> and res.total_resolved_bug_cnt = #{totalResolvedBugCnt} </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> and res.total_complete_task_cnt = #{totalCompleteTaskCnt} </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> and res.total_phase_cnt = #{totalPhaseCnt} </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> and res.total_complete_phase_cnt = #{totalCompletePhaseCnt} </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> and res.total_need_pay_amount = #{totalNeedPayAmount} </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> and res.total_finish_pay_amount = #{totalFinishPayAmount} </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> and res.total_budget_iuser_amount = #{totalBudgetIuserAmount} </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="phaseCnt != null and phaseCnt != ''"> and res.phase_cnt = #{phaseCnt} </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> and res.phase_finish_cnt = #{phaseFinishCnt} </if>
<if test="needPayAt != null and needPayAt != ''"> and res.need_pay_at = #{needPayAt} </if>
<if test="finishPayAt != null and finishPayAt != ''"> and res.finish_pay_at = #{finishPayAt} </if>
<if test="needColAt != null and needColAt != ''"> and res.need_col_at = #{needColAt} </if>
<if test="finishColAt != null and finishColAt != ''"> and res.finish_col_at = #{finishColAt} </if>
<if test="riskCnt != null and riskCnt != ''"> and res.risk_cnt = #{riskCnt} </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> and res.risk_finish_cnt = #{riskFinishCnt} </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="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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> and res.total_cost_iuser_amount = #{totalCostIuserAmount} </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>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> and res.budget_nouser_at = #{budgetNouserAt} </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> and res.budget_ouser_at = #{budgetOuserAt} </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> and res.budget_iuser_at = #{budgetIuserAt} </if>
<if test="actUserAt != null and actUserAt != ''"> and res.act_user_at = #{actUserAt} </if>
<if test="actIuserAt != null and actIuserAt != ''"> and res.act_iuser_at = #{actIuserAt} </if>
<if test="actOuserAt != null and actOuserAt != ''"> and res.act_ouser_at = #{actOuserAt} </if>
<if test="actNouserAt != null and actNouserAt != ''"> and res.act_nouser_at = #{actNouserAt} </if>
<if test="finishRate != null and finishRate != ''"> and res.finish_rate = #{finishRate} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> and res.budget_ouser_workload = #{budgetOuserWorkload} </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> and res.budget_iuser_workload = #{budgetIuserWorkload} </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> and res.estimate_workload = #{estimateWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
<if test="projectStatus != null and projectStatus != ''"> and res.project_status = #{projectStatus} </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> and res.total_act_workload = #{totalActWorkload} </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> and res.total_act_out_workload = #{totalActOutWorkload} </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> and res.total_act_inner_workload = #{totalActInnerWorkload} </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> and res.total_task_budget_cost_at = #{totalTaskBudgetCostAt} </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> and res.total_task_out_cnt = #{totalTaskOutCnt} </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> and res.total_need_pay_cnt = #{totalNeedPayCnt} </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> and res.total_plan_iuser_workload = #{totalPlanIuserWorkload} </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> and res.total_plan_ouser_workload = #{totalPlanOuserWorkload} </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> and res.act_ouser_workload = #{actOuserWorkload} </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> and res.act_iuser_workload = #{actIuserWorkload} </if>
<if test="needPayCnt != null and needPayCnt != ''"> and res.need_pay_cnt = #{needPayCnt} </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> and res.finish_pay_cnt = #{finishPayCnt} </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> and res.finish_pay_user_cnt = #{finishPayUserCnt} </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> and res.need_pay_user_cnt = #{needPayUserCnt} </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>
<if test="finishCases != null and finishCases != ''"> and res.finish_cases = #{finishCases} </if>
<if test="iterationCnt != null and iterationCnt != ''"> and res.iteration_cnt = #{iterationCnt} </if>
<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="finishMenuCnt != null and finishMenuCnt != ''"> and res.finish_menu_cnt = #{finishMenuCnt} </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>
<if test="minStartTime != null"> and date_format(res.min_start_time,'%Y-%m-%d') = date_format(#{minStartTime},'%Y-%m-%d') </if>
<if test="maxEndTime != null"> and date_format(res.max_end_time,'%Y-%m-%d') = date_format(#{maxEndTime},'%Y-%m-%d') </if>
<if test="menuCnt != null and menuCnt != ''"> and res.menu_cnt = #{menuCnt} </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> and res.menu_finish_cnt = #{menuFinishCnt} </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> and res.menu_exec_cnt = #{menuExecCnt} </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> and res.menu_unstart_cnt = #{menuUnstartCnt} </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> and res.menu_close_cnt = #{menuCloseCnt} </if>
<if test="taskCnt != null and taskCnt != ''"> and res.task_cnt = #{taskCnt} </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> and res.task_unstart_cnt = #{taskUnstartCnt} </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> and res.task_exec_cnt = #{taskExecCnt} </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> and res.task_finish_cnt = #{taskFinishCnt} </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> and res.task_set_cnt = #{taskSetCnt} </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> and res.task_out_cnt = #{taskOutCnt} </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> and res.task_close_cnt = #{taskCloseCnt} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="planWorkhours != null and planWorkhours != ''"> and res.plan_workhours = #{planWorkhours} </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> and res.plan_worker_cnt = #{planWorkerCnt} </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> and res.act_worker_cnt = #{actWorkerCnt} </if>
<if test="budgetAt != null and budgetAt != ''"> and res.budget_at = #{budgetAt} </if>
<if test="actAt != null and actAt != ''"> and res.act_at = #{actAt} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
biz_date = #{bizDate},
total_file_cnt = #{totalFileCnt},
total_bug_cnt = #{totalBugCnt},
total_task_cnt = #{totalTaskCnt},
total_budget_nouser_amount = #{totalBudgetNouserAmount},
file_cnt = #{fileCnt},
project_name = #{projectName},
total_staff_cnt = #{totalStaffCnt},
calc_time = #{calcTime},
calc_status = #{calcStatus},
total_cost_nouser_amount = #{totalCostNouserAmount},
total_closed_bug_cnt = #{totalClosedBugCnt},
total_resolved_bug_cnt = #{totalResolvedBugCnt},
total_complete_task_cnt = #{totalCompleteTaskCnt},
total_phase_cnt = #{totalPhaseCnt},
total_complete_phase_cnt = #{totalCompletePhaseCnt},
total_need_pay_amount = #{totalNeedPayAmount},
total_finish_pay_amount = #{totalFinishPayAmount},
total_need_col_amount = #{totalNeedColAmount},
total_finish_col_amount = #{totalFinishColAmount},
total_cost_user_amount = #{totalCostUserAmount},
total_budget_iuser_amount = #{totalBudgetIuserAmount},
total_plan_workload = #{totalPlanWorkload},
total_risk_cnt = #{totalRiskCnt},
total_complete_risk_cnt = #{totalCompleteRiskCnt},
phase_cnt = #{phaseCnt},
phase_finish_cnt = #{phaseFinishCnt},
need_pay_at = #{needPayAt},
finish_pay_at = #{finishPayAt},
need_col_at = #{needColAt},
finish_col_at = #{finishColAt},
risk_cnt = #{riskCnt},
risk_finish_cnt = #{riskFinishCnt},
branch_id = #{branchId},
branch_name = #{branchName},
total_budget_ouser_amount = #{totalBudgetOuserAmount},
total_complete_workload = #{totalCompleteWorkload},
total_cost_iuser_amount = #{totalCostIuserAmount},
total_cost_ouser_amount = #{totalCostOuserAmount},
total_progress = #{totalProgress},
total_active_bug_cnt = #{totalActiveBugCnt},
total_confirmed_bug_cnt = #{totalConfirmedBugCnt},
budget_nouser_at = #{budgetNouserAt},
budget_ouser_at = #{budgetOuserAt},
budget_iuser_at = #{budgetIuserAt},
act_user_at = #{actUserAt},
act_iuser_at = #{actIuserAt},
act_ouser_at = #{actOuserAt},
act_nouser_at = #{actNouserAt},
finish_rate = #{finishRate},
budget_workload = #{budgetWorkload},
budget_ouser_workload = #{budgetOuserWorkload},
budget_iuser_workload = #{budgetIuserWorkload},
estimate_workload = #{estimateWorkload},
act_workload = #{actWorkload},
project_status = #{projectStatus},
total_act_workload = #{totalActWorkload},
total_act_out_workload = #{totalActOutWorkload},
total_act_inner_workload = #{totalActInnerWorkload},
total_task_budget_cost_at = #{totalTaskBudgetCostAt},
total_task_out_cnt = #{totalTaskOutCnt},
total_need_pay_cnt = #{totalNeedPayCnt},
total_finish_pay_cnt = #{totalFinishPayCnt},
total_finish_pay_user_cnt = #{totalFinishPayUserCnt},
total_need_pay_user_cnt = #{totalNeedPayUserCnt},
total_plan_iuser_workload = #{totalPlanIuserWorkload},
total_plan_ouser_workload = #{totalPlanOuserWorkload},
act_ouser_workload = #{actOuserWorkload},
act_iuser_workload = #{actIuserWorkload},
need_pay_cnt = #{needPayCnt},
finish_pay_cnt = #{finishPayCnt},
finish_pay_user_cnt = #{finishPayUserCnt},
need_pay_user_cnt = #{needPayUserCnt},
test_cases = #{testCases},
exec_cases = #{execCases},
design_cases = #{designCases},
finish_cases = #{finishCases},
iteration_cnt = #{iterationCnt},
product_cnt = #{productCnt},
menu_cnt = #{menuCnt},
finish_menu_cnt = #{finishMenuCnt},
estimate_workload = #{estimateWorkload},
exec_task_cnt = #{execTaskCnt},
to_start_task_cnt = #{toStartTaskCnt},
exec_menu_cnt = #{execMenuCnt},
to_start_menu_cnt = #{toStartMenuCnt},
min_start_time = #{minStartTime},
max_end_time = #{maxEndTime}
max_end_time = #{maxEndTime},
menu_cnt = #{menuCnt},
menu_finish_cnt = #{menuFinishCnt},
menu_exec_cnt = #{menuExecCnt},
menu_unstart_cnt = #{menuUnstartCnt},
menu_close_cnt = #{menuCloseCnt},
task_cnt = #{taskCnt},
task_unstart_cnt = #{taskUnstartCnt},
task_exec_cnt = #{taskExecCnt},
task_finish_cnt = #{taskFinishCnt},
task_set_cnt = #{taskSetCnt},
task_out_cnt = #{taskOutCnt},
task_close_cnt = #{taskCloseCnt},
bug_cnt = #{bugCnt},
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
plan_workhours = #{planWorkhours},
plan_worker_cnt = #{planWorkerCnt},
act_worker_cnt = #{actWorkerCnt},
budget_at = #{budgetAt},
act_at = #{actAt}
</sql>
<sql id="someFieldSet">
<if test="bizDate != null and bizDate != ''"> biz_date = #{bizDate}, </if>
<if test="totalFileCnt != null and totalFileCnt != ''"> total_file_cnt = #{totalFileCnt}, </if>
<if test="totalBugCnt != null and totalBugCnt != ''"> total_bug_cnt = #{totalBugCnt}, </if>
<if test="totalTaskCnt != null and totalTaskCnt != ''"> total_task_cnt = #{totalTaskCnt}, </if>
<if test="totalBudgetNouserAmount != null and totalBudgetNouserAmount != ''"> total_budget_nouser_amount = #{totalBudgetNouserAmount}, </if>
<if test="fileCnt != null and fileCnt != ''"> file_cnt = #{fileCnt}, </if>
<if test="projectName != null and projectName != ''"> project_name = #{projectName}, </if>
<if test="totalStaffCnt != null and totalStaffCnt != ''"> total_staff_cnt = #{totalStaffCnt}, </if>
<if test="calcTime != null"> calc_time = #{calcTime}, </if>
<if test="calcStatus != null and calcStatus != ''"> calc_status = #{calcStatus}, </if>
<if test="totalCostNouserAmount != null and totalCostNouserAmount != ''"> total_cost_nouser_amount = #{totalCostNouserAmount}, </if>
<if test="totalClosedBugCnt != null and totalClosedBugCnt != ''"> total_closed_bug_cnt = #{totalClosedBugCnt}, </if>
<if test="totalResolvedBugCnt != null and totalResolvedBugCnt != ''"> total_resolved_bug_cnt = #{totalResolvedBugCnt}, </if>
<if test="totalCompleteTaskCnt != null and totalCompleteTaskCnt != ''"> total_complete_task_cnt = #{totalCompleteTaskCnt}, </if>
<if test="totalPhaseCnt != null and totalPhaseCnt != ''"> total_phase_cnt = #{totalPhaseCnt}, </if>
<if test="totalCompletePhaseCnt != null and totalCompletePhaseCnt != ''"> total_complete_phase_cnt = #{totalCompletePhaseCnt}, </if>
<if test="totalNeedPayAmount != null and totalNeedPayAmount != ''"> total_need_pay_amount = #{totalNeedPayAmount}, </if>
<if test="totalFinishPayAmount != null and totalFinishPayAmount != ''"> total_finish_pay_amount = #{totalFinishPayAmount}, </if>
<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="totalBudgetIuserAmount != null and totalBudgetIuserAmount != ''"> total_budget_iuser_amount = #{totalBudgetIuserAmount}, </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="phaseCnt != null and phaseCnt != ''"> phase_cnt = #{phaseCnt}, </if>
<if test="phaseFinishCnt != null and phaseFinishCnt != ''"> phase_finish_cnt = #{phaseFinishCnt}, </if>
<if test="needPayAt != null and needPayAt != ''"> need_pay_at = #{needPayAt}, </if>
<if test="finishPayAt != null and finishPayAt != ''"> finish_pay_at = #{finishPayAt}, </if>
<if test="needColAt != null and needColAt != ''"> need_col_at = #{needColAt}, </if>
<if test="finishColAt != null and finishColAt != ''"> finish_col_at = #{finishColAt}, </if>
<if test="riskCnt != null and riskCnt != ''"> risk_cnt = #{riskCnt}, </if>
<if test="riskFinishCnt != null and riskFinishCnt != ''"> risk_finish_cnt = #{riskFinishCnt}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="branchName != null and branchName != ''"> branch_name = #{branchName}, </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="totalCostIuserAmount != null and totalCostIuserAmount != ''"> total_cost_iuser_amount = #{totalCostIuserAmount}, </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>
<if test="budgetNouserAt != null and budgetNouserAt != ''"> budget_nouser_at = #{budgetNouserAt}, </if>
<if test="budgetOuserAt != null and budgetOuserAt != ''"> budget_ouser_at = #{budgetOuserAt}, </if>
<if test="budgetIuserAt != null and budgetIuserAt != ''"> budget_iuser_at = #{budgetIuserAt}, </if>
<if test="actUserAt != null and actUserAt != ''"> act_user_at = #{actUserAt}, </if>
<if test="actIuserAt != null and actIuserAt != ''"> act_iuser_at = #{actIuserAt}, </if>
<if test="actOuserAt != null and actOuserAt != ''"> act_ouser_at = #{actOuserAt}, </if>
<if test="actNouserAt != null and actNouserAt != ''"> act_nouser_at = #{actNouserAt}, </if>
<if test="finishRate != null and finishRate != ''"> finish_rate = #{finishRate}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="budgetOuserWorkload != null and budgetOuserWorkload != ''"> budget_ouser_workload = #{budgetOuserWorkload}, </if>
<if test="budgetIuserWorkload != null and budgetIuserWorkload != ''"> budget_iuser_workload = #{budgetIuserWorkload}, </if>
<if test="estimateWorkload != null and estimateWorkload != ''"> estimate_workload = #{estimateWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
<if test="projectStatus != null and projectStatus != ''"> project_status = #{projectStatus}, </if>
<if test="totalActWorkload != null and totalActWorkload != ''"> total_act_workload = #{totalActWorkload}, </if>
<if test="totalActOutWorkload != null and totalActOutWorkload != ''"> total_act_out_workload = #{totalActOutWorkload}, </if>
<if test="totalActInnerWorkload != null and totalActInnerWorkload != ''"> total_act_inner_workload = #{totalActInnerWorkload}, </if>
<if test="totalTaskBudgetCostAt != null and totalTaskBudgetCostAt != ''"> total_task_budget_cost_at = #{totalTaskBudgetCostAt}, </if>
<if test="totalTaskOutCnt != null and totalTaskOutCnt != ''"> total_task_out_cnt = #{totalTaskOutCnt}, </if>
<if test="totalNeedPayCnt != null and totalNeedPayCnt != ''"> total_need_pay_cnt = #{totalNeedPayCnt}, </if>
<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="totalPlanIuserWorkload != null and totalPlanIuserWorkload != ''"> total_plan_iuser_workload = #{totalPlanIuserWorkload}, </if>
<if test="totalPlanOuserWorkload != null and totalPlanOuserWorkload != ''"> total_plan_ouser_workload = #{totalPlanOuserWorkload}, </if>
<if test="actOuserWorkload != null and actOuserWorkload != ''"> act_ouser_workload = #{actOuserWorkload}, </if>
<if test="actIuserWorkload != null and actIuserWorkload != ''"> act_iuser_workload = #{actIuserWorkload}, </if>
<if test="needPayCnt != null and needPayCnt != ''"> need_pay_cnt = #{needPayCnt}, </if>
<if test="finishPayCnt != null and finishPayCnt != ''"> finish_pay_cnt = #{finishPayCnt}, </if>
<if test="finishPayUserCnt != null and finishPayUserCnt != ''"> finish_pay_user_cnt = #{finishPayUserCnt}, </if>
<if test="needPayUserCnt != null and needPayUserCnt != ''"> need_pay_user_cnt = #{needPayUserCnt}, </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>
<if test="finishCases != null and finishCases != ''"> finish_cases = #{finishCases}, </if>
<if test="iterationCnt != null and iterationCnt != ''"> iteration_cnt = #{iterationCnt}, </if>
<if test="productCnt != null and productCnt != ''"> product_cnt = #{productCnt}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="finishMenuCnt != null and finishMenuCnt != ''"> finish_menu_cnt = #{finishMenuCnt}, </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>
<if test="minStartTime != null"> min_start_time = #{minStartTime}, </if>
<if test="maxEndTime != null"> max_end_time = #{maxEndTime}, </if>
<if test="menuCnt != null and menuCnt != ''"> menu_cnt = #{menuCnt}, </if>
<if test="menuFinishCnt != null and menuFinishCnt != ''"> menu_finish_cnt = #{menuFinishCnt}, </if>
<if test="menuExecCnt != null and menuExecCnt != ''"> menu_exec_cnt = #{menuExecCnt}, </if>
<if test="menuUnstartCnt != null and menuUnstartCnt != ''"> menu_unstart_cnt = #{menuUnstartCnt}, </if>
<if test="menuCloseCnt != null and menuCloseCnt != ''"> menu_close_cnt = #{menuCloseCnt}, </if>
<if test="taskCnt != null and taskCnt != ''"> task_cnt = #{taskCnt}, </if>
<if test="taskUnstartCnt != null and taskUnstartCnt != ''"> task_unstart_cnt = #{taskUnstartCnt}, </if>
<if test="taskExecCnt != null and taskExecCnt != ''"> task_exec_cnt = #{taskExecCnt}, </if>
<if test="taskFinishCnt != null and taskFinishCnt != ''"> task_finish_cnt = #{taskFinishCnt}, </if>
<if test="taskSetCnt != null and taskSetCnt != ''"> task_set_cnt = #{taskSetCnt}, </if>
<if test="taskOutCnt != null and taskOutCnt != ''"> task_out_cnt = #{taskOutCnt}, </if>
<if test="taskCloseCnt != null and taskCloseCnt != ''"> task_close_cnt = #{taskCloseCnt}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="planWorkhours != null and planWorkhours != ''"> plan_workhours = #{planWorkhours}, </if>
<if test="planWorkerCnt != null and planWorkerCnt != ''"> plan_worker_cnt = #{planWorkerCnt}, </if>
<if test="actWorkerCnt != null and actWorkerCnt != ''"> act_worker_cnt = #{actWorkerCnt}, </if>
<if test="budgetAt != null and budgetAt != ''"> budget_at = #{budgetAt}, </if>
<if test="actAt != null and actAt != ''"> act_at = #{actAt}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
biz_date = #{item.bizDate},
total_file_cnt = #{item.totalFileCnt},
total_bug_cnt = #{item.totalBugCnt},
total_task_cnt = #{item.totalTaskCnt},
total_budget_nouser_amount = #{item.totalBudgetNouserAmount},
file_cnt = #{item.fileCnt},
project_name = #{item.projectName},
total_staff_cnt = #{item.totalStaffCnt},
calc_time = #{item.calcTime},
calc_status = #{item.calcStatus},
total_cost_nouser_amount = #{item.totalCostNouserAmount},
total_closed_bug_cnt = #{item.totalClosedBugCnt},
total_resolved_bug_cnt = #{item.totalResolvedBugCnt},
total_complete_task_cnt = #{item.totalCompleteTaskCnt},
total_phase_cnt = #{item.totalPhaseCnt},
total_complete_phase_cnt = #{item.totalCompletePhaseCnt},
total_need_pay_amount = #{item.totalNeedPayAmount},
total_finish_pay_amount = #{item.totalFinishPayAmount},
total_need_col_amount = #{item.totalNeedColAmount},
total_finish_col_amount = #{item.totalFinishColAmount},
total_cost_user_amount = #{item.totalCostUserAmount},
total_budget_iuser_amount = #{item.totalBudgetIuserAmount},
total_plan_workload = #{item.totalPlanWorkload},
total_risk_cnt = #{item.totalRiskCnt},
total_complete_risk_cnt = #{item.totalCompleteRiskCnt},
phase_cnt = #{item.phaseCnt},
phase_finish_cnt = #{item.phaseFinishCnt},
need_pay_at = #{item.needPayAt},
finish_pay_at = #{item.finishPayAt},
need_col_at = #{item.needColAt},
finish_col_at = #{item.finishColAt},
risk_cnt = #{item.riskCnt},
risk_finish_cnt = #{item.riskFinishCnt},
branch_id = #{item.branchId},
branch_name = #{item.branchName},
total_budget_ouser_amount = #{item.totalBudgetOuserAmount},
total_complete_workload = #{item.totalCompleteWorkload},
total_cost_iuser_amount = #{item.totalCostIuserAmount},
total_cost_ouser_amount = #{item.totalCostOuserAmount},
total_progress = #{item.totalProgress},
total_active_bug_cnt = #{item.totalActiveBugCnt},
total_confirmed_bug_cnt = #{item.totalConfirmedBugCnt},
budget_nouser_at = #{item.budgetNouserAt},
budget_ouser_at = #{item.budgetOuserAt},
budget_iuser_at = #{item.budgetIuserAt},
act_user_at = #{item.actUserAt},
act_iuser_at = #{item.actIuserAt},
act_ouser_at = #{item.actOuserAt},
act_nouser_at = #{item.actNouserAt},
finish_rate = #{item.finishRate},
budget_workload = #{item.budgetWorkload},
budget_ouser_workload = #{item.budgetOuserWorkload},
budget_iuser_workload = #{item.budgetIuserWorkload},
estimate_workload = #{item.estimateWorkload},
act_workload = #{item.actWorkload},
project_status = #{item.projectStatus},
total_act_workload = #{item.totalActWorkload},
total_act_out_workload = #{item.totalActOutWorkload},
total_act_inner_workload = #{item.totalActInnerWorkload},
total_task_budget_cost_at = #{item.totalTaskBudgetCostAt},
total_task_out_cnt = #{item.totalTaskOutCnt},
total_need_pay_cnt = #{item.totalNeedPayCnt},
total_finish_pay_cnt = #{item.totalFinishPayCnt},
total_finish_pay_user_cnt = #{item.totalFinishPayUserCnt},
total_need_pay_user_cnt = #{item.totalNeedPayUserCnt},
total_plan_iuser_workload = #{item.totalPlanIuserWorkload},
total_plan_ouser_workload = #{item.totalPlanOuserWorkload},
act_ouser_workload = #{item.actOuserWorkload},
act_iuser_workload = #{item.actIuserWorkload},
need_pay_cnt = #{item.needPayCnt},
finish_pay_cnt = #{item.finishPayCnt},
finish_pay_user_cnt = #{item.finishPayUserCnt},
need_pay_user_cnt = #{item.needPayUserCnt},
test_cases = #{item.testCases},
exec_cases = #{item.execCases},
design_cases = #{item.designCases},
finish_cases = #{item.finishCases},
iteration_cnt = #{item.iterationCnt},
product_cnt = #{item.productCnt},
menu_cnt = #{item.menuCnt},
finish_menu_cnt = #{item.finishMenuCnt},
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},
min_start_time = #{item.minStartTime},
max_end_time = #{item.maxEndTime}
max_end_time = #{item.maxEndTime},
menu_cnt = #{item.menuCnt},
menu_finish_cnt = #{item.menuFinishCnt},
menu_exec_cnt = #{item.menuExecCnt},
menu_unstart_cnt = #{item.menuUnstartCnt},
menu_close_cnt = #{item.menuCloseCnt},
task_cnt = #{item.taskCnt},
task_unstart_cnt = #{item.taskUnstartCnt},
task_exec_cnt = #{item.taskExecCnt},
task_finish_cnt = #{item.taskFinishCnt},
task_set_cnt = #{item.taskSetCnt},
task_out_cnt = #{item.taskOutCnt},
task_close_cnt = #{item.taskCloseCnt},
bug_cnt = #{item.bugCnt},
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
plan_workhours = #{item.planWorkhours},
plan_worker_cnt = #{item.planWorkerCnt},
act_worker_cnt = #{item.actWorkerCnt},
budget_at = #{item.budgetAt},
act_at = #{item.actAt}
</sql>
</mapper>
Loading…
Cancel
Save