瀏覽代碼

优化代码

java110 5 年之前
父節點
當前提交
03d7671d4b
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml

+ 1 - 3
java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml

@@ -84,13 +84,11 @@
         <if test="statusCd ==null or statusCd != '1'">
         <if test="statusCd ==null or statusCd != '1'">
             and uu.status_cd = '0'
             and uu.status_cd = '0'
             and uo.status_cd = '0'
             and uo.status_cd = '0'
+            and t.status_cd= '0'
         </if>
         </if>
         <if test="relId !=null and relId != ''">
         <if test="relId !=null and relId != ''">
             and t.rel_id= #{relId}
             and t.rel_id= #{relId}
         </if>
         </if>
-        <if test="statusCd !=null and statusCd != ''">
-            and t.status_cd= #{statusCd}
-        </if>
         <if test="storeId !=null and storeId != ''">
         <if test="storeId !=null and storeId != ''">
             and t.store_id= #{storeId}
             and t.store_id= #{storeId}
         </if>
         </if>