|
@@ -1,5 +1,6 @@
|
|
|
package cn.ezhizao.project.business.controller;
|
|
|
|
|
|
+import cn.ezhizao.common.utils.SecurityUtils;
|
|
|
import cn.ezhizao.common.utils.poi.ExcelUtil;
|
|
|
import cn.ezhizao.framework.aspectj.lang.annotation.Log;
|
|
|
import cn.ezhizao.framework.aspectj.lang.enums.BusinessType;
|
|
@@ -70,9 +71,9 @@ public class BizProductionPlanDetailSubDetailController extends BaseController {
|
|
|
@Transactional
|
|
|
@GetMapping("/getDept")
|
|
|
public AjaxResult getDept() throws NoSuchFieldException, IllegalAccessException {
|
|
|
- // Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
|
|
|
+ Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
|
|
|
String tenantId = request.getHeader("tenantId");
|
|
|
- Long userId = 265L;
|
|
|
+// Long userId = 265L;
|
|
|
List<SysDeptUser> deptUserList = deptUserService.query().eq("user_id", userId).eq("tenant_id",Long.valueOf(tenantId)).list();
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
for (SysDeptUser item : deptUserList
|