Commit fed40e4f by chenjinjing

no message

parent 7d4bc847
...@@ -21,7 +21,7 @@ export async function getJxgljsc() { ...@@ -21,7 +21,7 @@ export async function getJxgljsc() {
在孵企业总营收: { dataList: [], titleList: ['key', 'value'] },//在孵企业总营收 在孵企业总营收: { dataList: [], titleList: ['key', 'value'] },//在孵企业总营收
在孵企业融资情况: { dataList: [], titleList: ['key', 'value'] },//在孵企业融资情况 在孵企业融资情况: { dataList: [], titleList: ['key', 'value'] },//在孵企业融资情况
企业孵化数: { dataList: [], titleList: ['key', 'value'] },//企业孵化数 企业孵化数: { dataList: [], titleList: ['key', 'value'] },//企业孵化数
} };
// 获取当前时间 // 获取当前时间
let nowTime = moment().format('YYYY-MM-DD HH:mm:ss'); let nowTime = moment().format('YYYY-MM-DD HH:mm:ss');
...@@ -33,7 +33,7 @@ export async function getJxgljsc() { ...@@ -33,7 +33,7 @@ export async function getJxgljsc() {
//获取在孵企业租赁信息 //获取在孵企业租赁信息
let 租赁Column = ["eId", "year", "alienPatent", "classIPatent", "secondClassPatent", "thirdPentent"]; let 租赁Column = ["eId", "year", "alienPatent", "classIPatent", "secondClassPatent", "thirdPentent"];
let 在孵租赁联查includeConf = {}; let 在孵租赁联查includeConf = {};
在孵租赁联查includeConf[TABLENAME.企业孵化信息] = {cloum:fhColumn, where:{"endTime": { "%gt%": nowTime }}} 在孵租赁联查includeConf[TABLENAME.企业孵化信息] = {cloum:fhColumn, where:{"endTime": { "%gt%": nowTime }}};
在孵租赁联查includeConf[TABLENAME.租赁信息] = {cloum:租赁Column, where:{}} 在孵租赁联查includeConf[TABLENAME.租赁信息] = {cloum:租赁Column, where:{}}
let 在孵租赁联查dbList = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, {}, ["enterpriseName"], 在孵租赁联查includeConf); let 在孵租赁联查dbList = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, {}, ["enterpriseName"], 在孵租赁联查includeConf);
......
...@@ -41,7 +41,7 @@ export function getMonthList() { ...@@ -41,7 +41,7 @@ export function getMonthList() {
const firstDayOfMonth = currentMonth.clone().date(1); const firstDayOfMonth = currentMonth.clone().date(1);
// 将月份添加到数组中 // 将月份添加到数组中
monthsArray.push(moment(firstDayOfMonth.clone().toDate()).format("YYYY-MM")); // 如果你需要Date对象 monthsArray.push(moment(firstDayOfMonth.clone().toDate()).format("YY/MM")); // 如果你需要Date对象
// monthsArray.push(firstDayOfMonth.format('YYYY-MM-DD')); // 如果你需要格式化字符串 // monthsArray.push(firstDayOfMonth.format('YYYY-MM-DD')); // 如果你需要格式化字符串
// 移动到下一个月 // 移动到下一个月
......
...@@ -377,7 +377,7 @@ async function getByrzqy(企业融资dbList){ ...@@ -377,7 +377,7 @@ async function getByrzqy(企业融资dbList){
let 企业count = 0; let 企业count = 0;
let 金额count = 0; let 金额count = 0;
企业融资dbList.forEach( info => { 企业融资dbList.forEach( info => {
let parsedTime = moment(info.investmentDate).format("YYYY-MM"); //获取融资时间 let parsedTime = moment(info.investmentDate).format("YY/MM"); //获取融资时间
if (parsedTime === month[i]) { if (parsedTime === month[i]) {
企业count += 1; 企业count += 1;
金额count += parseFloat(info.financingAmount); 金额count += parseFloat(info.financingAmount);
......
...@@ -39,7 +39,7 @@ export async function getZhyy() { ...@@ -39,7 +39,7 @@ export async function getZhyy() {
if (!startTime) return; if (!startTime) return;
let startTimeMs = new Date(startTime).valueOf(); let startTimeMs = new Date(startTime).valueOf();
if (startTimeMs >= checlTimeMs) { if (startTimeMs >= checlTimeMs) {
let timeStr = moment(startTime).format("YYYYMM"); let timeStr = moment(startTime).format("YY/MM");
if (!ruZhuMap[timeStr]) ruZhuMap[timeStr] = 0; if (!ruZhuMap[timeStr]) ruZhuMap[timeStr] = 0;
ruZhuMap[timeStr] += 1; ruZhuMap[timeStr] += 1;
ruZhuCount += 1; ruZhuCount += 1;
...@@ -144,7 +144,6 @@ export async function getZhyy() { ...@@ -144,7 +144,6 @@ export async function getZhyy() {
企业服务类型:{dataList:fuWuQiYeTypeList, titleList:['key', 'value']}, 企业服务类型:{dataList:fuWuQiYeTypeList, titleList:['key', 'value']},
} }
return zhyy; return zhyy;
} }
......
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