Browse Source

fix: 自定义遥控指令type修改

zhongwei
haungxing 2 months ago
parent
commit
bafa53fce2
  1. 3
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java
  2. 2
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java

3
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java

@ -17,8 +17,8 @@ import com.hnac.gglm.bigmodel.interactive.vo.AuthDataVO;
import com.hnac.gglm.bigmodel.interactive.vo.ExtraVO;
import com.hnac.gglm.bigmodel.interactive.vo.SessionContentVO;
import com.hnac.gglm.bigmodel.manager.SessionRedisManager;
import groovy.util.logging.Slf4j;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.Func;
@ -97,6 +97,7 @@ public class HznlmInteractiveServiceImpl implements IHznlmInteractiveService {
}
String levelAuth = ParamCache.getValue(ParamKeyConstants.LIBRARY_AUTH_LEVEL);
result.put("levelAuth",Optional.ofNullable(levelAuth).map(Integer::valueOf).orElse(0));
log.info("知识库鉴权:{}",result);
return result;
}

2
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java

@ -58,7 +58,7 @@ public class DataInstructService extends BaseServiceImpl<DataInstructMapper, Dat
List<DataInstructEntity> list = baseMapper.selectList(null);
List<DeviceFuncDTO> deviceFuncDTOS = BeanUtil.copyProperties(list, DeviceFuncDTO.class);
if(Func.isNotEmpty(deviceFuncDTOS)) {
deviceFuncDTOS.forEach(deviceFuncDTO -> deviceFuncDTO.setType("业务"));
deviceFuncDTOS.forEach(deviceFuncDTO -> deviceFuncDTO.setType("数据中心"));
result.addAll(deviceFuncDTOS);
}
List<DeviceFuncInfoDTO> deviceFuncList = vectorDataService.getDeviceFunc();

Loading…
Cancel
Save