展连设备数据解析策略
This commit is contained in:
@ -3,6 +3,7 @@ package com.fastbee.system.service.impl;
|
||||
import cn.hutool.json.JSONArray;
|
||||
import cn.hutool.json.JSONException;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.fastbee.common.annotation.DataScope;
|
||||
import com.fastbee.common.constant.UserConstants;
|
||||
import com.fastbee.common.core.domain.TreeSelect;
|
||||
@ -133,7 +134,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
||||
* @param roleId 角色ID
|
||||
* @return 选中部门列表
|
||||
*/
|
||||
@Cacheable(value = "dept", key = "#root.methodName + '_' + #roleId", unless = "#result == null")
|
||||
// @Cacheable(value = "dept", key = "#root.methodName + '_' + #roleId", unless = "#result == null")
|
||||
@Override
|
||||
public List<Long> selectDeptListByRoleId(Long roleId)
|
||||
{
|
||||
@ -151,7 +152,13 @@ public class SysDeptServiceImpl implements ISysDeptService
|
||||
@Override
|
||||
public SysDept selectDeptById(Long deptId)
|
||||
{
|
||||
return deptMapper.selectDeptById(deptId);
|
||||
// return deptMapper.selectDeptById(deptId);
|
||||
SysDept sysDept = new LambdaQueryChainWrapper<>(deptMapper)
|
||||
.select(SysDept::getDeptUserId)
|
||||
.eq(SysDept::getDeptId, deptId)
|
||||
.one();
|
||||
System.err.println(sysDept);
|
||||
return sysDept;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user