Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
3f2957583d
  1. 34
      xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java
  2. 16
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml

34
xm-core/src/main/java/com/xm/core/entity/XmProjectGroupUser.java

@ -7,9 +7,9 @@ import java.util.Date;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmProjectGroupUser所有属性名: <br> * 实体 XmProjectGroupUser所有属性名: <br>
* joinTime,groupId,userid,username,outTime,status,obranchId,isPri,seqNo;<br>
* joinTime,groupId,userid,username,outTime,status,obranchId,isPri,seqNo,projectId,productId;<br>
* xm_project_group_user xm_project_group_user的所有字段名: <br> * xm_project_group_user xm_project_group_user的所有字段名: <br>
* join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no;<br>
* join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no,project_id,product_id;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* group_id,userid;<br> * group_id,userid;<br>
*/ */
@ -46,6 +46,12 @@ public class XmProjectGroupUser implements java.io.Serializable {
@ApiModelProperty(notes="排序号--从1开始",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="排序号--从1开始",allowEmptyValue=true,example="",allowableValues="")
Integer seqNo; Integer seqNo;
@ApiModelProperty(notes="项目编号",allowEmptyValue=true,example="",allowableValues="")
String projectId;
@ApiModelProperty(notes="产品编号",allowEmptyValue=true,example="",allowableValues="")
String productId;
/**团队编号,团队成员编号**/ /**团队编号,团队成员编号**/
public XmProjectGroupUser(String groupId,String userid) { public XmProjectGroupUser(String groupId,String userid) {
this.groupId = groupId; this.groupId = groupId;
@ -110,6 +116,18 @@ public class XmProjectGroupUser implements java.io.Serializable {
public void setSeqNo(Integer seqNo) { public void setSeqNo(Integer seqNo) {
this.seqNo = seqNo; this.seqNo = seqNo;
} }
/**
* 项目编号
**/
public void setProjectId(String projectId) {
this.projectId = projectId;
}
/**
* 产品编号
**/
public void setProductId(String productId) {
this.productId = productId;
}
/** /**
* 加入时间 * 加入时间
@ -165,5 +183,17 @@ public class XmProjectGroupUser implements java.io.Serializable {
public Integer getSeqNo() { public Integer getSeqNo() {
return this.seqNo; return this.seqNo;
} }
/**
* 项目编号
**/
public String getProjectId() {
return this.projectId;
}
/**
* 产品编号
**/
public String getProductId() {
return this.productId;
}
} }

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

@ -88,7 +88,7 @@
insert into xm_project_group_user( insert into xm_project_group_user(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{joinTime},#{groupId},#{userid},#{username},#{outTime},#{status},#{obranchId},#{isPri},#{seqNo}
#{joinTime},#{groupId},#{userid},#{username},#{outTime},#{status},#{obranchId},#{isPri},#{seqNo},#{projectId},#{productId}
) )
</insert> </insert>
@ -151,7 +151,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no
join_time,group_id,userid,username,out_time,status,obranch_id,is_pri,seq_no,project_id,product_id
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -165,6 +165,8 @@
<if test="obranchId != null and obranchId != ''"> and res.obranch_id = #{obranchId} </if> <if test="obranchId != null and obranchId != ''"> and res.obranch_id = #{obranchId} </if>
<if test="isPri != null and isPri != ''"> and res.is_pri = #{isPri} </if> <if test="isPri != null and isPri != ''"> and res.is_pri = #{isPri} </if>
<if test="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if> <if test="seqNo != null and seqNo != ''"> and res.seq_no = #{seqNo} </if>
<if test="projectId != null and projectId != ''"> and res.project_id = #{projectId} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -174,7 +176,9 @@
status = #{status}, status = #{status},
obranch_id = #{obranchId}, obranch_id = #{obranchId},
is_pri = #{isPri}, is_pri = #{isPri},
seq_no = #{seqNo}
seq_no = #{seqNo},
project_id = #{projectId},
product_id = #{productId}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="joinTime != null"> join_time = #{joinTime}, </if> <if test="joinTime != null"> join_time = #{joinTime}, </if>
@ -184,6 +188,8 @@
<if test="obranchId != null and obranchId != ''"> obranch_id = #{obranchId}, </if> <if test="obranchId != null and obranchId != ''"> obranch_id = #{obranchId}, </if>
<if test="isPri != null and isPri != ''"> is_pri = #{isPri}, </if> <if test="isPri != null and isPri != ''"> is_pri = #{isPri}, </if>
<if test="seqNo != null and seqNo != ''"> seq_no = #{seqNo}, </if> <if test="seqNo != null and seqNo != ''"> seq_no = #{seqNo}, </if>
<if test="projectId != null and projectId != ''"> project_id = #{projectId}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -193,6 +199,8 @@
status = #{item.status}, status = #{item.status},
obranch_id = #{item.obranchId}, obranch_id = #{item.obranchId},
is_pri = #{item.isPri}, is_pri = #{item.isPri},
seq_no = #{item.seqNo}
seq_no = #{item.seqNo},
project_id = #{item.projectId},
product_id = #{item.productId}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save