|
|
@ -293,6 +293,7 @@ class SqfliteApi { |
|
|
limit: 4, |
|
|
limit: 4, |
|
|
where: 'categoryid = ?', |
|
|
where: 'categoryid = ?', |
|
|
whereArgs: [element['id']], |
|
|
whereArgs: [element['id']], |
|
|
|
|
|
orderBy: 'id ${element['name'] == '自定义' ? 'DESC' : 'ASC'}', |
|
|
); |
|
|
); |
|
|
element['template'] = templateList |
|
|
element['template'] = templateList |
|
|
.map((item) => { |
|
|
.map((item) => { |
|
|
@ -305,12 +306,13 @@ class SqfliteApi { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 获取商务会议助手模版列表 |
|
|
// 获取商务会议助手模版列表 |
|
|
static Future getMeetingTemplateList(int id) async { |
|
|
static Future getMeetingTemplateList(int id, {bool isCustom = false}) async { |
|
|
final db = await DatabaseHelper().database; |
|
|
final db = await DatabaseHelper().database; |
|
|
return await db.query( |
|
|
return await db.query( |
|
|
'meetingtemplate', |
|
|
'meetingtemplate', |
|
|
where: 'categoryid = ?', |
|
|
where: 'categoryid = ?', |
|
|
whereArgs: [id], |
|
|
whereArgs: [id], |
|
|
|
|
|
orderBy: 'id ${isCustom ? 'DESC' : 'ASC'}', |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|