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