|
@@ -50,20 +50,30 @@ module.exports = app => {
|
|
|
const billsId = valuation[valuationField.std_bills]
|
|
|
? this._.map(valuation[valuationField.std_bills].split(','), this._.toInteger)
|
|
|
: [-1];
|
|
|
- const chaptersId = valuation[valuationField.std_xmj]
|
|
|
- ? this._.map(valuation[valuationField.std_xmj].split(','), this._.toInteger)
|
|
|
- : [-1];
|
|
|
const sql = 'SELECT `id`, `name`' +
|
|
|
' From ?? ' +
|
|
|
' WHERE `id` in ( ? ) ORDER BY FIELD(`id`, ?)';
|
|
|
const sqlParam = ['zh_std_gcl_list', billsId, billsId];
|
|
|
const billsList = await this.db.query(sql, sqlParam);
|
|
|
+
|
|
|
+ const chaptersId = valuation[valuationField.std_xmj]
|
|
|
+ ? this._.map(valuation[valuationField.std_xmj].split(','), this._.toInteger)
|
|
|
+ : [-1];
|
|
|
const sql2 = 'SELECT `id`, `name`' +
|
|
|
' From ?? ' +
|
|
|
' WHERE `id` in ( ? ) ORDER BY FIELD(`id`, ?)';
|
|
|
const sqlParam2 = ['zh_std_xmj_list', chaptersId, chaptersId];
|
|
|
const chapterList = await this.db.query(sql2, sqlParam2);
|
|
|
- return [billsList, chapterList];
|
|
|
+
|
|
|
+ const gljId = valuation[valuationField.glj_lib]
|
|
|
+ ? this._.map(valuation[valuationField.glj_lib].split(','), this._.toInteger)
|
|
|
+ : [-1];
|
|
|
+ const sql3 = 'SELECT `id`, `name`' +
|
|
|
+ ' From ?? ' +
|
|
|
+ ' WHERE `id` in ( ? ) ORDER BY FIELD(`id`, ?)';
|
|
|
+ const sqlParam3 = ['zh_glj_lib_list', gljId, gljId];
|
|
|
+ const gljList = await this.db.query(sql3, sqlParam3);
|
|
|
+ return [billsList, chapterList, gljList];
|
|
|
}
|
|
|
|
|
|
}
|