From 2f1714b4da22b0c3771e3e34b8ae8e39c557f4f4 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 27 Feb 2025 18:45:35 +0800 Subject: [PATCH] dept --- .../java/com/bonus/system/service/impl/SysDeptServiceImpl.java | 1 - .../src/main/resources/mapper/system/SysDeptMapper.xml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bonus-modules/bonus-system/src/main/java/com/bonus/system/service/impl/SysDeptServiceImpl.java b/bonus-modules/bonus-system/src/main/java/com/bonus/system/service/impl/SysDeptServiceImpl.java index a1d909b..cb57737 100644 --- a/bonus-modules/bonus-system/src/main/java/com/bonus/system/service/impl/SysDeptServiceImpl.java +++ b/bonus-modules/bonus-system/src/main/java/com/bonus/system/service/impl/SysDeptServiceImpl.java @@ -308,7 +308,6 @@ public class SysDeptServiceImpl implements ISysDeptService @Transactional(rollbackFor = Exception.class) public int insertDept(SysDept dept) { - dept.setDeptId(Id.next()); //增加根公司的处理 if (dept.getParentId() == null){ dept.setParentId(0L); diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml index 2b14636..17e27cc 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -188,7 +188,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 - + insert into sys_dept( dept_id, parent_id,