package io.dataease.ext;
import io.dataease.ext.query.GridExample;
import io.dataease.controller.request.BaseTreeRequest;
import io.dataease.controller.sys.request.SimpleTreeNode;
import io.dataease.dto.SysDeptDTO;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface ExtDeptMapper {
@Update(" update sys_dept set sub_count = sub_count+1 where dept_id = #{deptId} ")
int incrementalSubcount(@Param("deptId") Long deptId);
@Update(" update sys_dept set sub_count = sub_count-1 where dept_id = #{deptId} and sub_count > 0")
int decreasingSubcount(@Param("deptId") Long deptId);
@Delete("")
int batchDelete(@Param("ids") List ids);
List allNodes();
List nodesByExample(GridExample example);
List searchTree(BaseTreeRequest request);
}