diff --git a/xm-core/src/main/java/com/xm/core/entity/XmProjectGroup.java b/xm-core/src/main/java/com/xm/core/entity/XmProjectGroup.java
index ab99e5e3..ca614077 100644
--- a/xm-core/src/main/java/com/xm/core/entity/XmProjectGroup.java
+++ b/xm-core/src/main/java/com/xm/core/entity/XmProjectGroup.java
@@ -7,9 +7,9 @@ import java.util.Date;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块
* 实体 XmProjectGroup所有属性名:
- * id,groupName,projectId,pgTypeId,pgTypeName,leaderUserid,leaderUsername,ctime,ltime,productId,branchId,pgClass;
+ * id,groupName,projectId,pgTypeId,pgTypeName,leaderUserid,leaderUsername,ctime,ltime,productId,branchId,pgClass,pgroupId,lvl,pidPaths,isTpl,assUserid,assUsername,childrenCnt,userCnt,qxCode,calcWorkload;
* 表 xm_project_group xm_project_group的所有字段名:
- * id,group_name,project_id,pg_type_id,pg_type_name,leader_userid,leader_username,ctime,ltime,product_id,branch_id,pg_class;
+ * id,group_name,project_id,pg_type_id,pg_type_name,leader_userid,leader_username,ctime,ltime,product_id,branch_id,pg_class,pgroup_id,lvl,pid_paths,is_tpl,ass_userid,ass_username,children_cnt,user_cnt,qx_code,calc_workload;
* 当前主键(包括多主键):
* id;
*/
@@ -54,6 +54,36 @@ public class XmProjectGroup implements java.io.Serializable {
@ApiModelProperty(notes="团队类别0项目1产品",allowEmptyValue=true,example="",allowableValues="")
String pgClass;
+
+ @ApiModelProperty(notes="上级团队编号",allowEmptyValue=true,example="",allowableValues="")
+ String pgroupId;
+
+ @ApiModelProperty(notes="级别0级1级2级3级4级",allowEmptyValue=true,example="",allowableValues="")
+ String lvl;
+
+ @ApiModelProperty(notes="上级编号路径逗号分割,0,开始,本组编号+逗号结束",allowEmptyValue=true,example="",allowableValues="")
+ String pidPaths;
+
+ @ApiModelProperty(notes="是否为模板",allowEmptyValue=true,example="",allowableValues="")
+ String isTpl;
+
+ @ApiModelProperty(notes="副组长编号",allowEmptyValue=true,example="",allowableValues="")
+ String assUserid;
+
+ @ApiModelProperty(notes="副组长姓名",allowEmptyValue=true,example="",allowableValues="")
+ String assUsername;
+
+ @ApiModelProperty(notes="下级团队数量",allowEmptyValue=true,example="",allowableValues="")
+ Integer childrenCnt;
+
+ @ApiModelProperty(notes="组员数量",allowEmptyValue=true,example="",allowableValues="")
+ Integer userCnt;
+
+ @ApiModelProperty(notes="权限码",allowEmptyValue=true,example="",allowableValues="")
+ String qxCode;
+
+ @ApiModelProperty(notes="是否计算工作量0否1是",allowEmptyValue=true,example="",allowableValues="")
+ String calcWorkload;
/**主键**/
public XmProjectGroup(String id) {
@@ -136,6 +166,66 @@ public class XmProjectGroup implements java.io.Serializable {
public void setPgClass(String pgClass) {
this.pgClass = pgClass;
}
+ /**
+ * 上级团队编号
+ **/
+ public void setPgroupId(String pgroupId) {
+ this.pgroupId = pgroupId;
+ }
+ /**
+ * 级别0级1级2级3级4级
+ **/
+ public void setLvl(String lvl) {
+ this.lvl = lvl;
+ }
+ /**
+ * 上级编号路径逗号分割,0,开始,本组编号+逗号结束
+ **/
+ public void setPidPaths(String pidPaths) {
+ this.pidPaths = pidPaths;
+ }
+ /**
+ * 是否为模板
+ **/
+ public void setIsTpl(String isTpl) {
+ this.isTpl = isTpl;
+ }
+ /**
+ * 副组长编号
+ **/
+ public void setAssUserid(String assUserid) {
+ this.assUserid = assUserid;
+ }
+ /**
+ * 副组长姓名
+ **/
+ public void setAssUsername(String assUsername) {
+ this.assUsername = assUsername;
+ }
+ /**
+ * 下级团队数量
+ **/
+ public void setChildrenCnt(Integer childrenCnt) {
+ this.childrenCnt = childrenCnt;
+ }
+ /**
+ * 组员数量
+ **/
+ public void setUserCnt(Integer userCnt) {
+ this.userCnt = userCnt;
+ }
+ /**
+ * 权限码
+ **/
+ public void setQxCode(String qxCode) {
+ this.qxCode = qxCode;
+ }
+ /**
+ * 是否计算工作量0否1是
+ **/
+ public void setCalcWorkload(String calcWorkload) {
+ this.calcWorkload = calcWorkload;
+ }
/**
* 主键
@@ -209,5 +299,65 @@ public class XmProjectGroup implements java.io.Serializable {
public String getPgClass() {
return this.pgClass;
}
+ /**
+ * 上级团队编号
+ **/
+ public String getPgroupId() {
+ return this.pgroupId;
+ }
+ /**
+ * 级别0级1级2级3级4级
+ **/
+ public String getLvl() {
+ return this.lvl;
+ }
+ /**
+ * 上级编号路径逗号分割,0,开始,本组编号+逗号结束
+ **/
+ public String getPidPaths() {
+ return this.pidPaths;
+ }
+ /**
+ * 是否为模板
+ **/
+ public String getIsTpl() {
+ return this.isTpl;
+ }
+ /**
+ * 副组长编号
+ **/
+ public String getAssUserid() {
+ return this.assUserid;
+ }
+ /**
+ * 副组长姓名
+ **/
+ public String getAssUsername() {
+ return this.assUsername;
+ }
+ /**
+ * 下级团队数量
+ **/
+ public Integer getChildrenCnt() {
+ return this.childrenCnt;
+ }
+ /**
+ * 组员数量
+ **/
+ public Integer getUserCnt() {
+ return this.userCnt;
+ }
+ /**
+ * 权限码
+ **/
+ public String getQxCode() {
+ return this.qxCode;
+ }
+ /**
+ * 是否计算工作量0否1是
+ **/
+ public String getCalcWorkload() {
+ return this.calcWorkload;
+ }
}
\ No newline at end of file
diff --git a/xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java b/xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java
index f5cf4bb4..121cfe3d 100644
--- a/xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java
+++ b/xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java
@@ -7,54 +7,49 @@ import java.util.Date;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块
* 实体 XmProjectGroupUser所有属性名:
- * joinTime,id,groupId,userid,username,isHead,outTime,status,bizProcInstId,bizFlowState,projectId;
+ * joinTime,groupId,userid,username,outTime,status,obranchId,isPri,seqNo;
* 表 xm_project_group_user xm_project_group_user的所有字段名:
- * join_time,id,group_id,userid,username,is_head,out_time,status,biz_proc_inst_id,biz_flow_state,project_id;
+ * join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no;
* 当前主键(包括多主键):
- * id;
+ * group_id,userid;
*/
@ApiModel(description="xm_project_group_user")
public class XmProjectGroupUser implements java.io.Serializable {
private static final long serialVersionUID = 1L;
- @ApiModelProperty(notes="主键,主键",allowEmptyValue=true,example="",allowableValues="")
- String id;
+ @ApiModelProperty(notes="团队编号,主键",allowEmptyValue=true,example="",allowableValues="")
+ String groupId;
+
+ @ApiModelProperty(notes="团队成员编号,主键",allowEmptyValue=true,example="",allowableValues="")
+ String userid;
@ApiModelProperty(notes="加入时间",allowEmptyValue=true,example="",allowableValues="")
Date joinTime;
- @ApiModelProperty(notes="团队编号",allowEmptyValue=true,example="",allowableValues="")
- String groupId;
-
- @ApiModelProperty(notes="团队成员编号",allowEmptyValue=true,example="",allowableValues="")
- String userid;
-
@ApiModelProperty(notes="团队成员",allowEmptyValue=true,example="",allowableValues="")
String username;
- @ApiModelProperty(notes="是否组长,1是,0否",allowEmptyValue=true,example="",allowableValues="")
- String isHead;
-
@ApiModelProperty(notes="离队时间",allowEmptyValue=true,example="",allowableValues="")
Date outTime;
@ApiModelProperty(notes="当前状态0参与中1已退出团队",allowEmptyValue=true,example="",allowableValues="")
String status;
- @ApiModelProperty(notes="当前流程实例编号",allowEmptyValue=true,example="",allowableValues="")
- String bizProcInstId;
+ @ApiModelProperty(notes="组员原归属机构编号",allowEmptyValue=true,example="",allowableValues="")
+ String obranchId;
- @ApiModelProperty(notes="当前流程状态0初始1审批中2审批通过3审批不通过4流程取消或者删除",allowEmptyValue=true,example="",allowableValues="")
- String bizFlowState;
+ @ApiModelProperty(notes="是否私人加入0否1是",allowEmptyValue=true,example="",allowableValues="")
+ String isPri;
- @ApiModelProperty(notes="项目编号",allowEmptyValue=true,example="",allowableValues="")
- String projectId;
+ @ApiModelProperty(notes="排序号--从1开始",allowEmptyValue=true,example="",allowableValues="")
+ Integer seqNo;
- /**主键**/
- public XmProjectGroupUser(String id) {
- this.id = id;
+ /**团队编号,团队成员编号**/
+ public XmProjectGroupUser(String groupId,String userid) {
+ this.groupId = groupId;
+ this.userid = userid;
}
/**xm_project_group_user**/
@@ -67,12 +62,6 @@ public class XmProjectGroupUser implements java.io.Serializable {
public void setJoinTime(Date joinTime) {
this.joinTime = joinTime;
}
- /**
- * 主键
- **/
- public void setId(String id) {
- this.id = id;
- }
/**
* 团队编号
**/
@@ -91,12 +80,6 @@ public class XmProjectGroupUser implements java.io.Serializable {
public void setUsername(String username) {
this.username = username;
}
- /**
- * 是否组长,1是,0否
- **/
- public void setIsHead(String isHead) {
- this.isHead = isHead;
- }
/**
* 离队时间
**/
@@ -110,22 +93,22 @@ public class XmProjectGroupUser implements java.io.Serializable {
this.status = status;
}
/**
- * 当前流程实例编号
+ * 组员原归属机构编号
**/
- public void setBizProcInstId(String bizProcInstId) {
- this.bizProcInstId = bizProcInstId;
+ public void setObranchId(String obranchId) {
+ this.obranchId = obranchId;
}
/**
- * 当前流程状态0初始1审批中2审批通过3审批不通过4流程取消或者删除
+ * 是否私人加入0否1是
**/
- public void setBizFlowState(String bizFlowState) {
- this.bizFlowState = bizFlowState;
+ public void setIsPri(String isPri) {
+ this.isPri = isPri;
}
/**
- * 项目编号
+ * 排序号--从1开始
**/
- public void setProjectId(String projectId) {
- this.projectId = projectId;
+ public void setSeqNo(Integer seqNo) {
+ this.seqNo = seqNo;
}
/**
@@ -134,12 +117,6 @@ public class XmProjectGroupUser implements java.io.Serializable {
public Date getJoinTime() {
return this.joinTime;
}
- /**
- * 主键
- **/
- public String getId() {
- return this.id;
- }
/**
* 团队编号
**/
@@ -158,12 +135,6 @@ public class XmProjectGroupUser implements java.io.Serializable {
public String getUsername() {
return this.username;
}
- /**
- * 是否组长,1是,0否
- **/
- public String getIsHead() {
- return this.isHead;
- }
/**
* 离队时间
**/
@@ -177,22 +148,22 @@ public class XmProjectGroupUser implements java.io.Serializable {
return this.status;
}
/**
- * 当前流程实例编号
+ * 组员原归属机构编号
**/
- public String getBizProcInstId() {
- return this.bizProcInstId;
+ public String getObranchId() {
+ return this.obranchId;
}
/**
- * 当前流程状态0初始1审批中2审批通过3审批不通过4流程取消或者删除
+ * 是否私人加入0否1是
**/
- public String getBizFlowState() {
- return this.bizFlowState;
+ public String getIsPri() {
+ return this.isPri;
}
/**
- * 项目编号
+ * 排序号--从1开始
**/
- public String getProjectId() {
- return this.projectId;
+ public Integer getSeqNo() {
+ return this.seqNo;
}
}
\ No newline at end of file
diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
index 55c63304..2b9383e4 100644
--- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
+++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
@@ -3,8 +3,7 @@
-
-
+
and (res.id) in
diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml
index 2d2d369f..b75e2838 100644
--- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml
+++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml
@@ -64,7 +64,7 @@
insert into xm_project_group(
) values (
- #{id},#{groupName},#{projectId},#{pgTypeId},#{pgTypeName},#{leaderUserid},#{leaderUsername},#{ctime},#{ltime},#{productId},#{branchId},#{pgClass}
+ #{id},#{groupName},#{projectId},#{pgTypeId},#{pgTypeName},#{leaderUserid},#{leaderUsername},#{ctime},#{ltime},#{productId},#{branchId},#{pgClass},#{pgroupId},#{lvl},#{pidPaths},#{isTpl},#{assUserid},#{assUsername},#{childrenCnt},#{userCnt},#{qxCode},#{calcWorkload}
)
@@ -127,7 +127,7 @@
- id,group_name,project_id,pg_type_id,pg_type_name,leader_userid,leader_username,ctime,ltime,product_id,branch_id,pg_class
+ id,group_name,project_id,pg_type_id,pg_type_name,leader_userid,leader_username,ctime,ltime,product_id,branch_id,pg_class,pgroup_id,lvl,pid_paths,is_tpl,ass_userid,ass_username,children_cnt,user_cnt,qx_code,calc_workload
@@ -144,6 +144,16 @@
and res.product_id = #{productId}
and res.branch_id = #{branchId}
and res.pg_class = #{pgClass}
+ and res.pgroup_id = #{pgroupId}
+ and res.lvl = #{lvl}
+ and res.pid_paths = #{pidPaths}
+ and res.is_tpl = #{isTpl}
+ and res.ass_userid = #{assUserid}
+ and res.ass_username = #{assUsername}
+ and res.children_cnt = #{childrenCnt}
+ and res.user_cnt = #{userCnt}
+ and res.qx_code = #{qxCode}
+ and res.calc_workload = #{calcWorkload}
@@ -157,7 +167,17 @@
ltime = #{ltime},
product_id = #{productId},
branch_id = #{branchId},
- pg_class = #{pgClass}
+ pg_class = #{pgClass},
+ pgroup_id = #{pgroupId},
+ lvl = #{lvl},
+ pid_paths = #{pidPaths},
+ is_tpl = #{isTpl},
+ ass_userid = #{assUserid},
+ ass_username = #{assUsername},
+ children_cnt = #{childrenCnt},
+ user_cnt = #{userCnt},
+ qx_code = #{qxCode},
+ calc_workload = #{calcWorkload}
group_name = #{groupName},
@@ -171,6 +191,16 @@
product_id = #{productId},
branch_id = #{branchId},
pg_class = #{pgClass},
+ pgroup_id = #{pgroupId},
+ lvl = #{lvl},
+ pid_paths = #{pidPaths},
+ is_tpl = #{isTpl},
+ ass_userid = #{assUserid},
+ ass_username = #{assUsername},
+ children_cnt = #{childrenCnt},
+ user_cnt = #{userCnt},
+ qx_code = #{qxCode},
+ calc_workload = #{calcWorkload},
@@ -184,6 +214,16 @@
ltime = #{item.ltime},
product_id = #{item.productId},
branch_id = #{item.branchId},
- pg_class = #{item.pgClass}
+ pg_class = #{item.pgClass},
+ pgroup_id = #{item.pgroupId},
+ lvl = #{item.lvl},
+ pid_paths = #{item.pidPaths},
+ is_tpl = #{item.isTpl},
+ ass_userid = #{item.assUserid},
+ ass_username = #{item.assUsername},
+ children_cnt = #{item.childrenCnt},
+ user_cnt = #{item.userCnt},
+ qx_code = #{item.qxCode},
+ calc_workload = #{item.calcWorkload}
\ No newline at end of file
diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml
index ed86209e..01708631 100644
--- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml
+++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml
@@ -6,9 +6,9 @@
- and (res.id) in
-
- ( #{item})
+ and (res.group_id, res.userid) in
+
+ ( #{item.groupId}, #{item.userid})
@@ -59,14 +59,16 @@
-
-
+
+
insert into xm_project_group_user(
) values (
- #{joinTime},#{id},#{groupId},#{userid},#{username},#{isHead},#{outTime},#{status},#{bizProcInstId},#{bizFlowState},#{projectId}
+ #{joinTime},#{groupId},#{userid},#{username},#{outTime},#{status},#{obranchId},#{isPri},#{seqNo}
)
@@ -95,7 +97,7 @@
delete from xm_project_group_user
- where id = #{id}
+ where group_id = #{groupId} and userid = #{userid}
@@ -104,7 +106,7 @@
- where id = #{id}
+ where group_id = #{groupId} and userid = #{userid}
@@ -113,7 +115,7 @@
- where id = #{id}
+ where group_id = #{groupId} and userid = #{userid}
delete from xm_project_group_user
where
- (id) in
+ (group_id, userid) in
- ( #{item.id} )
+ ( #{item.groupId}, #{item.userid} )
- join_time,id,group_id,userid,username,is_head,out_time,status,biz_proc_inst_id,biz_flow_state,project_id
+ join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no
and date_format(res.join_time,'%Y-%m-%d') = date_format(#{joinTime},'%Y-%m-%d')
- and res.id = #{id}
and res.group_id = #{groupId}
and res.userid = #{userid}
and res.username = #{username}
- and res.is_head = #{isHead}
and date_format(res.out_time,'%Y-%m-%d') = date_format(#{outTime},'%Y-%m-%d')
and res.status = #{status}
- and res.biz_proc_inst_id = #{bizProcInstId}
- and res.biz_flow_state = #{bizFlowState}
- and res.project_id = #{projectId}
+ and res.obranch_id = #{obranchId}
+ and res.is_pri = #{isPri}
+ and res.seq_no = #{seqNo}
join_time = #{joinTime},
- group_id = #{groupId},
- userid = #{userid},
username = #{username},
- is_head = #{isHead},
out_time = #{outTime},
status = #{status},
- biz_proc_inst_id = #{bizProcInstId},
- biz_flow_state = #{bizFlowState},
- project_id = #{projectId}
+ obranch_id = #{obranchId},
+ is_pri = #{isPri},
+ seq_no = #{seqNo}
join_time = #{joinTime},
- group_id = #{groupId},
- userid = #{userid},
username = #{username},
- is_head = #{isHead},
out_time = #{outTime},
status = #{status},
- biz_proc_inst_id = #{bizProcInstId},
- biz_flow_state = #{bizFlowState},
- project_id = #{projectId},
+ obranch_id = #{obranchId},
+ is_pri = #{isPri},
+ seq_no = #{seqNo},
join_time = #{item.joinTime},
- group_id = #{item.groupId},
- userid = #{item.userid},
username = #{item.username},
- is_head = #{item.isHead},
out_time = #{item.outTime},
status = #{item.status},
- biz_proc_inst_id = #{item.bizProcInstId},
- biz_flow_state = #{item.bizFlowState},
- project_id = #{item.projectId}
+ obranch_id = #{item.obranchId},
+ is_pri = #{item.isPri},
+ seq_no = #{item.seqNo}
\ No newline at end of file