展连设备数据解析策略

This commit is contained in:
mi9688
2024-11-21 17:48:58 +08:00
parent db13870ffe
commit 148800d58f
26 changed files with 515 additions and 196 deletions

View File

@ -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;
}
/**