dao xml文件
<update id="edit" parameterType="com.itheima.pojo.CheckGroup">
update t_checkgroup
<set>
<if test="code != null">
code=#{code},
</if>
<if test="name != null">
name = #{name},
</if>
<if test="helpCode != null">
helpCode=#{helpCode},
</if>
<if test="sex != null">
sex=#{sex},
</if>
<if test="remark != null">
remark=#{remark},
</if>
<if test="attention != null">
attention=#{attention},
</if>
</set>
where id=#{id}
</update>
之前if里面的语句没有加逗号
报了如下错