@@ -22,7 +22,7 @@ public interface DepartmentMapper {
int updateByPrimaryKey(Department record);
- List<OrganizationListOut> selectSuperId(@Param("sort")int sort);
+ List<OrganizationListOut> selectSuperId(@Param("hideSign")int hideSign);
/**
* 根据组织名称查组织编号
*/
@@ -293,10 +293,9 @@
from department
where
status ='0'
+ and hide_sign= #{hideSign}
order by CONVERT (name USING gbk)
- <if test="sort ==1" >
- limit 10
- </if>
+
</select>
<insert id="insert1" parameterType="com.goafanti.organization.bo.OrganizationListOut">
insert into department(
@@ -32,9 +32,9 @@ public class AdminOrganizationController extends BaseApiController{
}
/**部门组织管理上级组织查询 **/
@RequestMapping(value = "/selectSuperId" , method = RequestMethod.GET)
- public Result selectsuperId(){
+ public Result selectsuperId(Integer hideSign){
Result res = new Result();
- res.setData(organizationService.selectSuperId(0));
+ res.setData(organizationService.selectSuperId(hideSign));
return res;
@@ -17,7 +17,7 @@ public interface OrganizationService {
Pagination<OrganizationListOut>
listOrganizationManagement(OrganizationListOut olo,Integer pageNo, Integer pageSize);
/**组织名称查上级组织*/
- List<OrganizationListOut> selectSuperId(Integer i);
+ List<OrganizationListOut> selectSuperId(Integer hideSign);
*
* @param name 组织名称
@@ -52,8 +52,8 @@ public class OrganizationServiceImpl extends BaseMybatisDao<DepartmentMapper> im
return params;
@Override
- public List<OrganizationListOut> selectSuperId(Integer i) {
- List<OrganizationListOut> depList=departmentMapper.selectSuperId(i);
+ public List<OrganizationListOut> selectSuperId(Integer hideSign) {
+ List<OrganizationListOut> depList=departmentMapper.selectSuperId(hideSign);
return depList;