|
@@ -13,12 +13,13 @@ const sectionTemplateModel = mongoose.model('complementary_ration_section_templa
|
|
|
class SectionTreeDao {
|
|
|
//从补充定额章节树模板中拷贝数据到用户的补充定额章节树中
|
|
|
async copyDataFromTemplate(userId, compilationId){
|
|
|
+ const srcCompilationID = '5b52b027fd3bb0000b257cf8';
|
|
|
// 如果已经有数据则不再生成
|
|
|
const count = await compleRationSectionTreeModel.count({userId, compilationId});
|
|
|
if (count) {
|
|
|
return;
|
|
|
}
|
|
|
- let templateData = await sectionTemplateModel.find({compilationId: compilationId});
|
|
|
+ let templateData = await sectionTemplateModel.find({compilationId: srcCompilationID});
|
|
|
if (templateData.length > 0) {
|
|
|
let insertDatas = [],
|
|
|
uuidMapping = {};
|