一、SysAclModuleMapper
int updateByPrimaryKeySelective(SysAclModule record);
二、SysAclModuleMapper.xml
<update id="updateByPrimaryKeySelective" parameterType="com.it.shanmai.model.SysAclModule" >
update sys_acl_module
<set >
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="parentId != null" >
parent_id = #{parentId,jdbcType=INTEGER},
</if>
<if test="level != null" >
level = #{level,jdbcType=VARCHAR},
</if>
<if test="seq != null" >
seq = #{seq,jdbcType=INTEGER},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="operator != null" >
operator = #{operator,jdbcType=VARCHAR},
</if>
<if test="operateTime != null" >
operate_time = #{operateTime,jdbcType=TIMESTAMP},
</if>
<if test="operateIp != null" >
operate_ip = #{operateIp,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>