Commit ffedc165 by lixinming

no message

parent e24ffb3c
...@@ -123,7 +123,6 @@ export async function getAddByName(name:string) { ...@@ -123,7 +123,6 @@ export async function getAddByName(name:string) {
* @param fuHuaQiUscc 孵化器统一信用代码 实际参数是所属孵化器 * @param fuHuaQiUscc 孵化器统一信用代码 实际参数是所属孵化器
* @param 行业领域 目前数据库没有该字段 * @param 行业领域 目前数据库没有该字段
* @param fuHuaQiInvestment 孵化器是否参与投资 * @param fuHuaQiInvestment 孵化器是否参与投资
* @param 实体孵化 目前数据库没有该字段
* @param page 页数 * @param page 页数
* @returns * @returns
*/ */
......
...@@ -22,6 +22,9 @@ const financingSchema = new Schema({ ...@@ -22,6 +22,9 @@ const financingSchema = new Schema({
fuHuaQiInvestmentStyle:Number,//孵化器投资方式 fuHuaQiInvestmentStyle:Number,//孵化器投资方式
draftLock:{type:Boolean, default:false},//草稿锁,true为提交之后,false为草稿 draftLock:{type:Boolean, default:false},//草稿锁,true为提交之后,false为草稿
createTime:Number,//录入时间 createTime:Number,//录入时间
year:String,//数据年份
month:String,//数据月份
industry:[Number],//领域
}); });
var financingModel; var financingModel;
...@@ -159,3 +162,17 @@ export async function findEnterpriseFinancingByUscc(uscc:string, taskId:string) ...@@ -159,3 +162,17 @@ export async function findEnterpriseFinancingByUscc(uscc:string, taskId:string)
export async function findFinancingCount(selectParam) { export async function findFinancingCount(selectParam) {
return await financingModel.find(selectParam).count(); return await financingModel.find(selectParam).count();
} }
export async function superSelect(selectParam) {
await financingModel.aggregate([
{
'$lookup':{
from:'enterprise',
localField:''
}
}
]);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment