From 31cba27f3f8ef2cdb02f1fa0d3df7b41605a3ba5 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 24 二月 2025 14:26:46 +0800 Subject: [PATCH] 编辑项目其它信息项目id为空bug --- system/src/main/resources/mapper/system/SysDeptMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDeptMapper.xml b/system/src/main/resources/mapper/system/SysDeptMapper.xml index b21db8d..8de6205 100644 --- a/system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -135,9 +135,9 @@ <update id="updateDept" parameterType="SysDept"> update sys_dept <set> - <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> + <if test="parentId != null">parent_id = #{parentId},</if> <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> - <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> + <if test="ancestors != null">ancestors = #{ancestors},</if> <if test="orderNum != null">order_num = #{orderNum},</if> <if test="leader != null">leader = #{leader},</if> <if test="phone != null">phone = #{phone},</if> -- Gitblit v1.8.0