使用oracle做的数据上传系统后台
kongdeqiang
2026-03-23 0d3f0dc4931e2a8cd379c5b7e9a9c70276ebc1cf
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);
}