|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
package com.supervision.vo.manage;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
@ -20,6 +22,9 @@ public class AskQuestionLibraryResVo {
|
|
|
|
|
@ApiModelProperty("问题类目id")
|
|
|
|
|
private String dictId;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "问题类目父级id")
|
|
|
|
|
private String parentDictId;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("由用户传入的问题生成的问题列表")
|
|
|
|
|
private List<String> question;
|
|
|
|
|
|
|
|
|
@ -34,4 +39,17 @@ public class AskQuestionLibraryResVo {
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("类目名")
|
|
|
|
|
private String nameZh;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<Integer> dicIdPath;
|
|
|
|
|
public void generateDicIdPath(){
|
|
|
|
|
|
|
|
|
|
dicIdPath = new ArrayList<>();
|
|
|
|
|
if (StrUtil.isNotEmpty(parentDictId)){
|
|
|
|
|
dicIdPath.add(Integer.parseInt(parentDictId));
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(dictId)){
|
|
|
|
|
dicIdPath.add(Integer.parseInt(dictId));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|