使用oracle做的数据上传系统后台
kongdeqiang
2026-03-24 f2cbc818993dab5646c99886810b17c6c79668ee
src/main/java/com/example/controller/DepartmentController.java
@@ -3,6 +3,7 @@
import com.example.common.Result;
import com.example.entity.Department;
import com.example.security.UserContext;
import com.example.service.DataExcelService;
import com.example.service.DepartmentService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -17,6 +18,9 @@
    @Autowired
    private DepartmentService departmentService;
    @Autowired
    private DataExcelService dataExcelService;
    @GetMapping("/list")
    public Result<List<Department>> list() {
        String currentDeptCode = UserContext.getCurrentDeptCode();
@@ -25,8 +29,7 @@
    @GetMapping("/tree")
    public Result<List<Department>> tree() {
        String currentDeptCode = UserContext.getCurrentDeptCode();
        return Result.success(departmentService.getDepartmentTreeWithPermission(currentDeptCode));
        return Result.success(dataExcelService.getDepartmentTree());
    }
    @GetMapping("/{id}")