parent
ebaa5037a4
commit
6b464c0c1d
|
|
@ -0,0 +1,19 @@
|
|||
package com.admin.contractor.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 部门表查询(用于根据用户部门取施工单位名称等)
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface SysDeptMapper {
|
||||
|
||||
/**
|
||||
* 根据部门ID查询部门名称
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @return 部门名称,不存在返回 null
|
||||
*/
|
||||
String selectDeptNameById(@Param("deptId") Long deptId);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.admin.contractor.mapper.SysDeptMapper">
|
||||
|
||||
<select id="selectDeptNameById" resultType="java.lang.String">
|
||||
select dept_name from sys_dept where dept_id = #{deptId} and (del_flag = '0' or del_flag is null) limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue