فهرست منبع

oa员工管理查询

zouxuan 4 ماه پیش
والد
کامیت
35204b28ec
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/FinancialExpenditureMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/FinancialExpenditureMapper.xml

@@ -265,10 +265,10 @@
     <select id="queryEmployByDeptId" resultType="java.lang.Integer">
         SELECT user_id FROM oa_pro.sys_user
         <where>
-            <if test="deptIds != null">
+            <if test="deptId != null">
                 AND dept_id = #{deptId}
             </if>
-            <if test="deptIds != null">
+            <if test="deptIds != null and deptIds != ''">
                 AND JSON_CONTAINS(dept_ids, #{deptIds})
             </if>
         </where>