Pārlūkot izejas kodu

单位列表增加上级单位查询。

zhengqiang 5 gadi atpakaļ
vecāks
revīzija
c949548e48

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

@@ -127,10 +127,10 @@
                 and a.name_ like #{searchParams.name}
             </if>
             <if test="searchParams.parentCode != null">
-                and b.code_ like #{searchParams.parentCode}
+                and a.code_ like #{searchParams.parentCode}
             </if>
             <if test="searchParams.bindCompanyCode != null">
-                and b.code_ like #{searchParams.bindCompanyCode}
+                and a.code_ like #{searchParams.bindCompanyCode}
             </if>
         </where>
         <foreach item="sort" collection="sortList" open="order by" separator=",">