|
@@ -22,6 +22,7 @@ const engLibModel = mongoose.model('engineering_lib');
|
|
|
const compilationModel = mongoose.model('compilation');
|
|
|
const _ = require('lodash');
|
|
|
const zhLibID = 'cf851660-3534-11ec-9641-2da8021b8e4e';
|
|
|
+const cqLibID = '90c51220-a740-11e8-a354-ab5db7d42428';
|
|
|
module.exports = {
|
|
|
handleCopyItems,
|
|
|
getComBillsLibInfo,
|
|
@@ -176,8 +177,8 @@ async function getComBillsLibInfo() {
|
|
|
|
|
|
async function getBillsGuideLibs(findData, isTemporary) {
|
|
|
if (isTemporary) {
|
|
|
- const zhLib = await billsGuideLibModel.findOne({ ID: zhLibID }).lean();
|
|
|
- return zhLib ? [zhLib] : [];
|
|
|
+ const libs = await billsGuideLibModel.find({ ID: { $in: [zhLibID, cqLibID] } }).lean();
|
|
|
+ return libs;
|
|
|
}
|
|
|
return await billsGuideLibModel.find(findData);
|
|
|
}
|