Browse Source

部门新增字段显示标识

anderx 3 years ago
parent
commit
b16e42e48d

+ 1 - 1
src/main/java/com/goafanti/common/dao/DepartmentMapper.java

@@ -22,7 +22,7 @@ public interface DepartmentMapper {
 
     int updateByPrimaryKey(Department record);
 
-    List<OrganizationListOut> selectSuperId(@Param("hideSign")int hideSign);
+    List<OrganizationListOut> selectSuperId(@Param("hideSign")Integer hideSign);
     /**
      * 根据组织名称查组织编号
      */

+ 2 - 0
src/main/java/com/goafanti/common/mapper/DepartmentMapper.xml

@@ -293,7 +293,9 @@
     from department
     where
     status ='0'
+      <if test="hideSign != null ">
     and hide_sign= #{hideSign}
+      </if>
     order by CONVERT (name USING gbk)
 
   </select>