使用oracle做的数据上传系统后台
kongdeqiang
2026-03-21 b63977ec7120e8d5f8e5b7d1ac9b85be76ad62a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.example.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
 
    @Select("SELECT * FROM sys_department WHERE deleted = 0 AND parent_code = #{parentCode} ORDER BY sort_order")
    List<Department> selectByParentCode(@Param("parentCode") String parentCode);
 
    @Select("SELECT * FROM sys_department WHERE deleted = 0 AND dept_code = #{deptCode}")
    Department selectByDeptCode(@Param("deptCode") String deptCode);
}