|
|
|
@ -14,4 +14,14 @@ public class MaxKbModel {
|
|
|
|
|
String sql = "select * from dataset where name=?";
|
|
|
|
|
return Db.find(sql, dataSetName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据数据集id获取文档列表
|
|
|
|
|
* @param dataset_id 数据集id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Record> getDocumentListByDataSetId(String dataset_id) {
|
|
|
|
|
String sql = "select * from document where dataset_id=? order by create_time desc";
|
|
|
|
|
return Db.find(sql, dataset_id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|