src/main/resources/mapper/DepartmentMapper.xml
@@ -14,8 +14,8 @@ </sql> <insert id="add" parameterType="com.mindskip.xzs.domain.Department" useGeneratedKeys="true" keyProperty="id"> insert into t_department (name, deleted) values (#{name,jdbcType=VARCHAR}, #{deleted,jdbcType=VARCHAR}) insert into t_department (name, deleted, parent_id) values (#{name,jdbcType=VARCHAR}, #{deleted,jdbcType=VARCHAR}, #{parentId}) </insert> <update id="update" parameterType="com.mindskip.xzs.domain.Department">