zouyu
4 天以前 066998bc883a4a5e6f7c894c8a440d7554e2e10c
src/main/resources/mapper/system/SysDeptMapper.xml
@@ -99,6 +99,7 @@
          <if test="phone != null and phone != ''">phone,</if>
          <if test="email != null and email != ''">email,</if>
          <if test="deptNick != null and deptNick != ''">dept_nick,</if>
          <if test="tenantId != null and tenantId != ''">tenant_id,</if>
          <if test="status != null">status,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
          create_time
@@ -112,6 +113,7 @@
          <if test="phone != null and phone != ''">#{phone},</if>
          <if test="email != null and email != ''">#{email},</if>
          <if test="deptNick != null and deptNick != '' ">#{deptNick},</if>
          <if test="tenantId != null and tenantId != '' ">#{tenantId},</if>
          <if test="status != null">#{status},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          sysdate()
@@ -178,5 +180,10 @@
      FROM DepartmentHierarchy
      WHERE parent_id = 100;
   </select>
    <select id="selectDeptByDeptName" resultType="com.ruoyi.project.system.domain.SysDept">
        <include refid="selectDeptVo"/>
        WHERE d.dept_name = #{deptName}
        LIMIT 1
    </select>
</mapper>