ソースを参照

修复单元查询没有判断状态

吴学文 7 年 前
親
コミット
fcf03f0053
共有1 個のファイルを変更した、3 個の追加 と 0 個の削除を含む
  1. 3 0
      java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml

+ 3 - 0
java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml

@@ -120,6 +120,9 @@
         <if test="statusCd !=null and statusCd != ''">
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
             and t.status_cd= #{statusCd}
         </if>
         </if>
+        <if test="statusCd ==null or statusCd == ''">
+            and t.status_cd= '0'
+        </if>
         <if test="remark !=null and remark != ''">
         <if test="remark !=null and remark != ''">
             and t.remark= #{remark}
             and t.remark= #{remark}
         </if>
         </if>