浏览代码

增加判断code为null时处理。

zhengqiang 5 年之前
父节点
当前提交
8543676f17
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      common/src/main/resources/mapper/base/CompanyInfo.xml

+ 3 - 0
common/src/main/resources/mapper/base/CompanyInfo.xml

@@ -147,6 +147,9 @@
             <if test="code!=null">
             <if test="code!=null">
                 a.code_ like #{code}
                 a.code_ like #{code}
             </if>
             </if>
+            <if test="code==null">
+                a.code_='-1'
+            </if>
             <if test="personId!=null">
             <if test="personId!=null">
                 or a.id_ in (
                 or a.id_ in (
                     select c.company_id from base_person_company c where c.person_id = #{personId}
                     select c.company_id from base_person_company c where c.person_id = #{personId}