|
|
|
@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.hutool.core.util.RandomUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.crypto.digest.MD5;
|
|
|
|
|
import com.supervision.exception.BusinessException;
|
|
|
|
|
import com.supervision.model.*;
|
|
|
|
|
import com.supervision.model.Process;
|
|
|
|
@ -172,7 +173,8 @@ public class AskServiceImpl implements AskService {
|
|
|
|
|
talkResultResVO.setItemName(configPhysicalTool.getToolName());
|
|
|
|
|
talkResultResVO.setItemImage(configPhysicalTool.getIconBase64());
|
|
|
|
|
talkResultResVO.setRequireLocation(configPhysicalTool.getRequireLocation());
|
|
|
|
|
talkResultResVO.setActionType(configPhysicalTool.getType());
|
|
|
|
|
// 生成树的时候,没有ID字段,所以用名称生成md5作为ID
|
|
|
|
|
talkResultResVO.setActionType(new MD5().digestHex16(configPhysicalTool.getType()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -181,7 +183,8 @@ public class AskServiceImpl implements AskService {
|
|
|
|
|
ConfigAncillaryItem configAncillaryItem = configAncillaryItemService.getById(actionId);
|
|
|
|
|
if (null != configAncillaryItem) {
|
|
|
|
|
talkResultResVO.setItemName(configAncillaryItem.getItemName());
|
|
|
|
|
talkResultResVO.setActionType(configAncillaryItem.getType());
|
|
|
|
|
// 生成树的时候,没有ID字段,所以用名称生成md5作为ID
|
|
|
|
|
talkResultResVO.setActionType(new MD5().digestHex16(configAncillaryItem.getType()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|