Commit 7cdf762d by lixinming

no message

parent a6045363
...@@ -144,8 +144,13 @@ export async function getFuHuaQiEnterpriseForSelect(uscc:string) { ...@@ -144,8 +144,13 @@ export async function getFuHuaQiEnterpriseForSelect(uscc:string) {
* @returns * @returns
*/ */
export async function financingList(monthData:string, fuHuaQiName:string, industry, fuHuaQiInvestment:boolean, page:number) { export async function financingList(monthData:string, fuHuaQiName:string, industry, fuHuaQiInvestment:boolean, page:number) {
let fuHuaQiUscc = "";
if (fuHuaQiName.length > 0) {
let fuHuaQiInfo = await findFuHuaQiByName(fuHuaQiName); let fuHuaQiInfo = await findFuHuaQiByName(fuHuaQiName);
if (!fuHuaQiInfo) throw new BizError(ERRORENUM.未找到数据, `库中不存在${fuHuaQiName}这个孵化器`); if(fuHuaQiInfo) fuHuaQiUscc = fuHuaQiInfo.uscc;
}
let selectParam:any = {}; let selectParam:any = {};
if ( monthData.length > 0 ) { if ( monthData.length > 0 ) {
...@@ -153,8 +158,8 @@ export async function financingList(monthData:string, fuHuaQiName:string, indust ...@@ -153,8 +158,8 @@ export async function financingList(monthData:string, fuHuaQiName:string, indust
let endT = moment(monthData).endOf('month').valueOf(); let endT = moment(monthData).endOf('month').valueOf();
selectParam.createTime = {'$gt':startT, '$lt':endT}; selectParam.createTime = {'$gt':startT, '$lt':endT};
} }
if (fuHuaQiName.length > 0 ) selectParam.fuHuaQiUscc = fuHuaQiInfo.uscc;
if (industry.length >0 ) selectParam.industry = industry; if (industry.length >0 ) selectParam.industry = industry;
if (fuHuaQiUscc.length > 0) selectParam.fuHuaQiUscc = fuHuaQiUscc;
selectParam.fuHuaQiInvestment = fuHuaQiInvestment; selectParam.fuHuaQiInvestment = fuHuaQiInvestment;
let dataBaseList = await findFinancingList(selectParam, (page-1)*10 ); let dataBaseList = await findFinancingList(selectParam, (page-1)*10 );
......
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