dcs 1 år sedan
förälder
incheckning
2c47c1a82a

+ 10 - 0
virgo.core/src/main/java/com/bosshand/virgo/core/model/MgrRole.java

@@ -12,6 +12,8 @@ public class MgrRole {
 
     private String responsibility;
 
+    private String remark;
+
     private long organizationId;
 
     private long projectId;
@@ -93,4 +95,12 @@ public class MgrRole {
     public void setUsers(List<MgrUser> users) {
         this.users = users;
     }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
 }

+ 3 - 1
virgo.core/src/main/resources/mapper/MgrRoleMapper.xml

@@ -10,6 +10,7 @@
         <result column="projectId" property="projectId"/>
         <result column="organizationId" property="organizationId"/>
         <result column="parentId" property="parentId"/>
+        <result column="remark" property="remark"/>
     </resultMap>
 
     <select id="getList" resultMap="mgrRoleResult">
@@ -21,7 +22,7 @@
     </select>
 
     <insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrRole" useGeneratedKeys="true" keyProperty="id">
-        INSERT INTO mgr_role(responsible, name, responsibility, projectId, organizationId, parentId) VALUES (#{responsible}, #{name}, #{responsibility}, #{projectId}, #{organizationId}, #{parentId})
+        INSERT INTO mgr_role(responsible, name, responsibility, projectId, organizationId, parentId, remark) VALUES (#{responsible}, #{name}, #{responsibility}, #{projectId}, #{organizationId}, #{parentId}, #{remark})
     </insert>
 
     <delete id="delete">
@@ -34,6 +35,7 @@
             <if test="name!=null">name=#{name},</if>
             <if test="responsible!=null">responsible=#{responsible},</if>
             <if test="responsibility!=null">responsibility=#{responsibility},</if>
+            <if test="remark!=null">remark=#{remark},</if>
         </trim>
         WHERE id = #{id}
     </update>