修改危险工作票创建逻辑

修复部分逻辑
This commit is contained in:
tangcy 2026-03-12 17:17:46 +08:00
parent ebaa5037a4
commit 6b464c0c1d
2 changed files with 27 additions and 0 deletions

View File

@ -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);
}

View File

@ -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>