|
|
|
|
@ -3,9 +3,9 @@ package com.da.dangan.controller;
|
|
|
|
|
import com.da.common.annotation.Log;
|
|
|
|
|
import com.da.common.core.controller.BaseController;
|
|
|
|
|
import com.da.common.core.domain.AjaxResult;
|
|
|
|
|
import com.da.common.core.domain.entity.DaCatalog;
|
|
|
|
|
import com.da.common.enums.BusinessType;
|
|
|
|
|
import com.da.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.da.dangan.domain.DaCatalog;
|
|
|
|
|
import com.da.dangan.service.IDaCatalogService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
@ -38,6 +38,29 @@ public class DaCatalogController extends BaseController
|
|
|
|
|
return success(catalogs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取目录下拉树列表
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/treeselect")
|
|
|
|
|
public AjaxResult treeselect(DaCatalog daCatalog)
|
|
|
|
|
{
|
|
|
|
|
List<DaCatalog> daCatalogs = daCatalogService.selectAllDaCatalogList(daCatalog, getUserId());
|
|
|
|
|
return success(daCatalogService.buildCatalogTreeSelect(daCatalogs));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 加载对应用户勾选目录列表树
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping(value = "/userMenuTreeselect/{userId}")
|
|
|
|
|
public AjaxResult roleMenuTreeselect(@PathVariable("userId") Long userId)
|
|
|
|
|
{
|
|
|
|
|
List<DaCatalog> catalogs = daCatalogService.selectCatalogList(getUserId());
|
|
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
|
|
ajax.put("checkedKeys", daCatalogService.selectCatalogListByUserId(userId));
|
|
|
|
|
ajax.put("catalogs", daCatalogService.buildCatalogTreeSelect(catalogs));
|
|
|
|
|
return ajax;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出档案目录列表
|
|
|
|
|
*/
|
|
|
|
|
|