|
@@ -8,6 +8,7 @@ import com.diagbot.dto.GetQuestionInfoDTO;
|
|
|
import com.diagbot.dto.ModuleInfoDTO;
|
|
|
import com.diagbot.dto.ModuleInfoListDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.entity.DictionaryInfo;
|
|
|
import com.diagbot.entity.ModuleDetail;
|
|
|
import com.diagbot.entity.ModuleInfo;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -47,6 +48,8 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
QuestionInfoFacade questionInfoFacade;
|
|
|
@Autowired
|
|
|
UserServiceClient userServiceClient;
|
|
|
+ @Autowired
|
|
|
+ DictionaryFacade dictionaryFacade;
|
|
|
|
|
|
/**
|
|
|
* 根据id删除标签模板
|
|
@@ -193,6 +196,17 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
for (ModuleInfoListDTO moduleInfoListDTO : moduleInfoDTOIPage.getRecords()) {
|
|
|
ids.add(moduleInfoListDTO.getModifier());
|
|
|
}
|
|
|
+ //获取模板类型名称
|
|
|
+ QueryWrapper<DictionaryInfo> dictionaryInfoQueryWrapper = new QueryWrapper<>();
|
|
|
+ dictionaryInfoQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
+ .eq("group_type",4)
|
|
|
+ .eq("return_type",1)
|
|
|
+ .orderByDesc("order_no");
|
|
|
+ List<DictionaryInfo> dictionaryInfoList = dictionaryFacade.list(dictionaryInfoQueryWrapper);
|
|
|
+ Map<String,DictionaryInfo> dictionaryInfoMap = new HashMap<>();
|
|
|
+ for (DictionaryInfo dictionaryInfo:dictionaryInfoList) {
|
|
|
+ dictionaryInfoMap.put(dictionaryInfo.getVal(),dictionaryInfo);
|
|
|
+ }
|
|
|
//获取用户信息
|
|
|
RespDTO<Map<String, String>> respDTO = userServiceClient.getUserInfoByIds(ids);
|
|
|
if (respDTO == null || !CommonErrorCode.OK.getCode().equals(respDTO.code)) {
|
|
@@ -202,6 +216,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
//将用户信息放入实体
|
|
|
for (ModuleInfoListDTO moduleInfoListDTO : moduleInfoDTOIPage.getRecords()) {
|
|
|
moduleInfoListDTO.setUserName(respDTO.data.get(moduleInfoListDTO.getModifier()));
|
|
|
+ moduleInfoListDTO.setAscriptionName(dictionaryInfoMap.get(String.valueOf(moduleInfoListDTO.getType().intValue())).getName());
|
|
|
}
|
|
|
return moduleInfoDTOIPage;
|
|
|
}
|