Przeglądaj źródła

增加判断code为null时处理。

zhengqiang 5 lat temu
rodzic
commit
8543676f17

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

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