|
|
|
@ -10,8 +10,18 @@ public class MaxKbModel {
|
|
|
|
|
* @param dataSetName 数据集名称
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Record> getDataSetList(String dataSetName) {
|
|
|
|
|
public List<Record> getDataSetList(String dataSetName) {
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|