Explorar el Código

提交推荐人名称显示bug修复

hxl13994548489 hace 1 año
padre
commit
9219aa0672
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/main/resources/mapper/modules/admin/SysUserMapper.xml

+ 5 - 1
src/main/resources/mapper/modules/admin/SysUserMapper.xml

@@ -1446,7 +1446,11 @@
     <select id="findByReferrerId" resultType="com.ydtech.modules.admin.model.vo.SysUserVO">
         SELECT u.id, u.name
         FROM sys_user u
-        where u.dept_id = #{deptId}
+        <where>
+            <if test="deptId != null and deptId != ''">
+                and u.dept_id = #{deptId}
+            </if>
+        </where>
     </select>