Przeglądaj źródła

三院知识库后台配置接口开发完成

wangzhinan 2 lat temu
rodzic
commit
3dd3d69199

+ 6 - 5
common/common-entity/src/main/java/com/yihu/jw/entity/knowledge/BaseKnowledgeFlowConfigurationRelation.java

@ -19,7 +19,8 @@ public class BaseKnowledgeFlowConfigurationRelation extends UuidIdentityEntityWi
    private String questionId;//问题id
    private String relationType;//关联类型(1常见问题、2字典中心、3问题集)
    private String relationCode;//关联code
    private Integer del;//0删除1正常
    private Integer sort;//排序
    private BaseKnowledgeQuestion question;//常见问题
@ -78,11 +79,11 @@ public class BaseKnowledgeFlowConfigurationRelation extends UuidIdentityEntityWi
        this.relationCode = relationCode;
    }
    public Integer getDel() {
        return del;
    public Integer getSort() {
        return sort;
    }
    public void setDel(Integer del) {
        this.del = del;
    public void setSort(Integer sort) {
        this.sort = sort;
    }
}

+ 8 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/knowledge/BaseKnowledgeQuestion.java

@ -28,6 +28,14 @@ public class BaseKnowledgeQuestion extends UuidIdentityEntityWithOperator {
	private Integer sort;//排序
	private Integer del;//0删除1正常
	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	public String getType() {
		return type;
	}

+ 1 - 1
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/knowledge/BaseKnowledgeQuestionController.java

@ -191,7 +191,7 @@ public class BaseKnowledgeQuestionController extends EnvelopRestEndpoint {
            JSONArray array = JSONArray.parseArray(json);
            List<BaseKnowledgeFlowConfigurationRelation> flowConfigurationRelations = new ArrayList<>();
            for (int i=0;i<array.size();i++){
                BaseKnowledgeFlowConfigurationRelation flowConfigurationRelation = toEntity(json,BaseKnowledgeFlowConfigurationRelation.class);
                BaseKnowledgeFlowConfigurationRelation flowConfigurationRelation = toEntity(array.getJSONObject(i).toJSONString(),BaseKnowledgeFlowConfigurationRelation.class);
                flowConfigurationRelations.add(flowConfigurationRelation);
            }
            return success(questionService.setQuestionConfigurationRelation(flowConfigurationRelations));