|
@@ -57,14 +57,19 @@ class ProductService extends CrudService {
|
|
|
// product,limit=>6;status=>2;type=>0/1/2
|
|
|
// 科技需求
|
|
|
const require = await this.getSample('model', 6, { type: '0', status: '2' });
|
|
|
+ console.log('in function:1');
|
|
|
// 技术成果
|
|
|
const achieve = await this.getSample('model', 6, { type: '1', status: '2' });
|
|
|
+ console.log('in function:2');
|
|
|
// 商务服务
|
|
|
const serve = await this.getSample('model', 5, { type: '2', status: '2' });
|
|
|
+ console.log('in function:3');
|
|
|
// 专利:patent limit=>6
|
|
|
const patent = await this.getSample('patent');
|
|
|
+ console.log('in function:4');
|
|
|
// 专家:expert:limit=>8
|
|
|
const expert = await this.getSample('expert', 8);
|
|
|
+ console.log('in function:6');
|
|
|
// 专家需要姓名
|
|
|
const ids = expert.map(i => i.user_id);
|
|
|
const personal = await this.personal.find({ _id: ids }, 'name');
|