瀏覽代碼

增加顶级机构

hym 4 年之前
父節點
當前提交
14cb10dcd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      user_center/src/main/resources/mapper/OrgMapper.xml

+ 1 - 1
user_center/src/main/resources/mapper/OrgMapper.xml

@@ -277,6 +277,6 @@
         select a.ORG_TYPE ,  b.ORG_TYPE parentType,c.ORG_TYPE childType
          from uims_org a left join uims_org b on a.PARENT_ORG_ID=b.ID
         left join uims_org c on a.id=c.PARENT_ORG_ID
-        where a.id=#{id}
+        where a.id=#{id} limit 1
     </select>
 </mapper>