|
|
@@ -159,10 +159,10 @@ class CompleRatoinDao {
|
|
|
}
|
|
|
}
|
|
|
if(stdGljIds.length > 0) {
|
|
|
- stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}});
|
|
|
+ stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}}).lean();
|
|
|
}
|
|
|
if(comGljIds.length > 0) {
|
|
|
- comGljs = await complementaryGljModel.find({userId: userId, ID: {$in: comGljIds}});
|
|
|
+ comGljs = await complementaryGljModel.find({userId: userId, ID: {$in: comGljIds}}).lean();
|
|
|
}
|
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs.concat(comGljs),true);
|
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|
|
|
@@ -240,7 +240,10 @@ class CompleRatoinDao {
|
|
|
stdGljIds.push(rationGlj.gljId);
|
|
|
}
|
|
|
if(stdGljIds.length > 0) {
|
|
|
- stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}});
|
|
|
+ stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}}).lean();
|
|
|
+ /*stdGljs.forEach(function (glj) {
|
|
|
+ glj.type = glj.gljType;
|
|
|
+ });*/
|
|
|
}
|
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs,true);
|
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|