Browse Source

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

zhengqiang 5 years ago
parent
commit
c949548e48
1 changed files with 2 additions and 2 deletions
  1. 2 2
      common/src/main/resources/mapper/base/CompanyInfo.xml

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

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