Commit 0a956982 by lixinming

no message

parent e3b2bb56
......@@ -85,6 +85,7 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
changeData.zaiFuEnterpriseNum = changeData.shiTiEnterpriseNum + changeData.virtualEnterpriseNum;//在孵
let outEnterpriseNum = changeData.enterpriseTotal - changeData.zaiFuEnterpriseNum;
changeData.outEnterpriseNum = outEnterpriseNum < 0 ? 0 : outEnterpriseNum;//迁出
/**备案地址转换 */
......@@ -106,7 +107,9 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
changeData.industry = changeEnumValue(configEnum.FUHUAINDUSTRY, changeData.industry);
changeData.institutionalNature = changeEnumValue(configEnum.INSTITUTIONALNATURE, changeData.institutionalNature);
changeData.operationModel = changeEnumValue(configEnum.OPERATIONMODEL, changeData.operationModel);
changeData.fuHuaLianXiDiZhi = changeAddToString(info.fuHuaLianXiDiZhi);
changeData.fuHuazhuCeDiZhi = changeAddToString(info.fuHuazhuCeDiZhi);
changeData.foundingTeamStr = changeData.foundingTeamType ? changeEnumValue(configEnum.TEAM, changeData.foundingTeamType) : "无";
let foundingTeam = [];
if (changeData.foundingTeam && changeData.foundingTeam.length) {
......@@ -123,6 +126,9 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
changeData.foundingTeam = foundingTeam;
}
changeData.ruZhuFeiFuHuaQiYe = 0;//入住非孵化企业
changeData.caiLiHuGuanDiZhi = "-";//财力互管地址
dataList.push(changeData);
});
......
......@@ -9,7 +9,7 @@ import * as enterpriseData from "../../data/enterprise/enterprise";
import * as scoreBiz from "../mobileFuHuaQi/fuHuaQi/score";
import * as fuhuaqiData from "../../data/fuHuaQi/fuhuaqi";
import * as financingData from "../../data/fuHuaQi/monthTask/financing";
import { CHANGEMODE, FUHUASTATE, INDUSTRY, LISTINGSITUATION, SCOREWAYS, TASKTYPEENUM } from "../../config/enum";
import { CHANGEMODE, FUHUASTATE, INDUSTRY, LISTINGSITUATION, MOVEOUTCAUSE, MOVEOUTTRACE, MOVEOUTTYPE, SCOREWAYS, TASKTYPEENUM } from "../../config/enum";
import { ERRORENUM } from "../../config/errorEnum";
import { findAllNotDisabledFuHuaQi, findFuHuaQiList } from "../../data/fuHuaQi/fuhuaqi";
import { BizError } from "../../util/bizError";
......@@ -27,6 +27,8 @@ import { findI18nRegisterListByParam, findOneI18nRegister } from "../../data/fuH
import * as icrData from "../../data/fuHuaQi/instituQualify/icr";
import * as startupTeacherData from "../../data/fuHuaQi/instituQualify/startupTeacher";
import * as zjBeyondLayoutData from "../../data/fuHuaQi/instituQualify/zjBeyondLayout";
import { replenishMyEnterpriseInPutInfo, updateMoveOutInfo } from "../mobileFuHuaQi/enterprise/myEnterprise";
import { findEnterpriseInitialTeamsByParam } from "../../data/enterprise/initialTeam";
const xlsx = require('node-xlsx');
const path = require('path');
......@@ -929,4 +931,157 @@ export async function correctFuHuaQiMyEnterpriseScoreData() {
console.log("我的企业分数修复成功");
}
export async function enterpriseOutAnIn() {
let fuHuaQiUscc = "91310000080089147T";
let oldEnterpriseList = await enterpriseData.findEnterpriseList({fuHuaQiUscc:fuHuaQiUscc});
let oldFuHuaQiInfo = await fuhuaqiData.findFuHuaQiByUSCC(fuHuaQiUscc);
oldFuHuaQiInfo.fuHuaEnterpriseTotal = oldEnterpriseList.length;
await oldFuHuaQiInfo.save();
let newFuHuaQiUscc = "91310115MA1K4CG620";
for (let i = 0; i < oldEnterpriseList.length; i++ ) {
let info = oldEnterpriseList[i];
if (info.uscc == "91310115MA1H8W6M37" || info.uscc == "91310115MACRM01T7F" || info.uscc == "91310115MA1HBMUQ8M") {
continue;
}
await updateMoveOutInfo(fuHuaQiUscc, info.uscc, MOVEOUTTYPE.非毕业迁出, MOVEOUTTRACE.迁出孵化器_仍在张江, [MOVEOUTCAUSE.其他] );
let itemData:any = {
name:info.name,
uscc:info.uscc,
logonTime:info.logonTime,
isNaturalPersonHolding:info.isNaturalPersonHolding,
leasedArea:info.leasedArea,
timeOfImmigration:new Date().valueOf()
}
if (info.industry && info.industry.length) {
itemData.industry = [];
info.industry.forEach(subItem => {
itemData.industry.push(subItem)
})
} else {
itemData.industry = [INDUSTRY.综合];
}
if (info.mainBusiness) {
itemData.mainBusiness = info.mainBusiness;
} else {
itemData.mainBusiness = "-";
}
if (info.firstIncubationTime) {
itemData.firstIncubationTime = info.firstIncubationTime;
} else {
itemData.firstIncubationTime = new Date().valueOf();
}
if (info.logonAddress[0] != "") {
itemData.logonAddress = [info.logonAddress[0], info.logonAddress[1], info.logonAddress[2],info.logonAddress[3]];
itemData.oldLogonAddress = [info.logonAddress[0], info.logonAddress[1], info.logonAddress[2],info.logonAddress[3]];
} else {
itemData.logonAddress = ["上海市", "上海市", "浦东新区", "盛荣路88弄"]
itemData.oldLogonAddress = ["上海市", "上海市", "浦东新区", "盛荣路88弄"]
}
if (info.operatingAddress[0] != "") {
itemData.operatingAddress = [info.operatingAddress[0], info.operatingAddress[1], info.operatingAddress[2], info.operatingAddress[3]];
} else {
itemData.operatingAddress = ["上海市", "上海市", "浦东新区", "盛荣路88弄"]
}
await replenishMyEnterpriseInPutInfo(newFuHuaQiUscc, itemData);
console.log(info.uscc, "更新成功");
}
return {isSuccess:true}
}
export async function enterpriseOutAndInMoverOut() {
let changeList = [
{uscc:"91310107MA1G03JC01", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682581601081},
{uscc:"91310115MA1K4DHM2C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682581635490},
{uscc:"91310115MA1K4RB106", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682489345033},
{uscc:"91310115MA1K4KW74X", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682581666692},
{uscc:"91310114580594174C", state:4, moveOutType:1, moveOutTrace:0, moveOutCause:[], moveOutTime:1682493625633},
{uscc:"91310115MA1K3UF6XJ", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682490204904},
{uscc:"91310115MA1K3TCU4J", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682581717220},
{uscc:"91310115332407042L", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[6], moveOutTime:1682581801827},
{uscc:"91310115MA1K46M054", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1682581847519},
{uscc:"91310115787835043H", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[6], moveOutTime:1682582011770},
{uscc:"91310115MA1K464U6J", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682581928164},
{uscc:"91310115MA1K3KLW3B", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682490897888},
{uscc:"91310120MA1HP2CD93", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1682581883451},
{uscc:"91310115324572718T", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682581973779},
{uscc:"91310115093486846M", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682585240969},
{uscc:"91310104MA1FR4XU6C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682585292604},
{uscc:"91310115MA1HA97AX8", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682585337416},
{uscc:"91310115MA1K3M7X8G", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[11], moveOutTime:1682497119206},
{uscc:"91310115MA1K3M0971", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1682585388144},
{uscc:"91310110552932869C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:168258542922},
{uscc:"91310117MA1J15099E", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[8], moveOutTime:1682485522736},
{uscc:"91310115MA1K3W8E63", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682585495658},
{uscc:"91310115MA1K3RL6XG", state:4, moveOutType:3, moveOutTrace:3, moveOutCause:[8], moveOutTime:1682490173126},
{uscc:"91310115MA1K4F0L16", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682585529101},
{uscc:"91310115MA1K3LJQ46", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1682585601768},
{uscc:"91310230MA1K2RQFXL", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682585647682},
{uscc:"91310115MA1K4LKT09", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[10], moveOutTime:1682585682836},
{uscc:"91310115MA1K4FDJ8K", state:4, moveOutType:3, moveOutTrace:3, moveOutCause:[8], moveOutTime:1682497079382},
{uscc:"91310120MA1HR26EXF", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1682489670911},
{uscc:"91310115MA1K4K5U0K", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682585704050},
{uscc:"91310115MA1H8EFK59", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1682585874838},
{uscc:"91310115MA1K4GYW0W", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1682585926865},
{uscc:"91310115MA1K4DWQ0P", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[8], moveOutTime:1682497148951},
{uscc:"91310230MA1JT9A10G", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1690795581180},
{uscc:"91310115MA1K3EP51A", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[11], moveOutTime:1682496860528},
{uscc:"91310115MA7BUMWB7C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[2], moveOutTime:1690795713974},
{uscc:"91310112MA1GCDMK8E", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[1], moveOutTime:1690870871550},
{uscc:"91310115MA1K4JDJ9C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682490257084},
{uscc:"91310115MA1K4PEN4T", state:4, moveOutType:2, moveOutTrace:2, moveOutCause:[3], moveOutTime:1682586130235},
{uscc:"91310115MA1K4NP00K", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682586160618},
{uscc:"91310115MA1K4LT43K", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1690870986478},
{uscc:"91310115MA1K44L62W", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[8], moveOutTime:1682496967197},
{uscc:"91310115MA1K4FQ649", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[2], moveOutTime:1690871109622},
{uscc:"91310115MA1K4U7PXE", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682586238748},
{uscc:"91310115MA1K3XJE9C", state:4, moveOutType:3, moveOutTrace:1, moveOutCause:[10], moveOutTime:1682589237793},
{uscc:"91310115MA1K3Y9R4C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682589152059},
{uscc:"91310120MA1J0TKL4G", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[1], moveOutTime:1690871225076},
{uscc:"91310000MA1H379QXG", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[7], moveOutTime:1682589550895},
{uscc:"91310115MA1K4HEA69", state:4, moveOutType:3, moveOutTrace:3, moveOutCause:[11], moveOutTime:1682497591076},
{uscc:"91310115MA1K4JG37P", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682588966244},
{uscc:"91310115MA1K3G7E6N", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[3], moveOutTime:1682589207448},
{uscc:"91310110MA1G8R1G8L", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682589400881},
{uscc:"913101153245129428", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1682589344316},
{uscc:"91310115MA1K4NJH1U", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[4], moveOutTime:1682589000664},
{uscc:"91310115MA1K4CU53G", state:4, moveOutType:3, moveOutTrace:2, moveOutCause:[9], moveOutTime:1682497003624},
{uscc:"91310115MA1K4LAP4F", state:4, moveOutType:1, moveOutTrace:0, moveOutCause:[], moveOutTime:1682496580775},
{uscc:"91310115MA1HA2U13D", state:4, moveOutType:1, moveOutTrace:0, moveOutCause:[], moveOutTime:1690871378964},
{uscc:"91310115MA1K4T9Y39", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682589482853},
{uscc:"91310115MA1K4T1B4B", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[5], moveOutTime:1690871457954},
{uscc:"91310115MA1HAPWW2K", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[3], moveOutTime:1682589695091},
{uscc:"91310115MA1K3UM56C", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[1], moveOutTime:1690871523129},
{uscc:"91310115MA1K46216C", state:4, moveOutType:2, moveOutTrace:3, moveOutCause:[5], moveOutTime:1690871584270},
{uscc:"91310115MABTG59019", state:4, moveOutType:2, moveOutTrace:1, moveOutCause:[7], moveOutTime:1682589274328}
];
let fuHuaQiUscc = "91310000080089147T";
for (let i = 0; i <changeList.length; i++) {
let info = changeList[i];
let item = await enterpriseData.findEnterpriseByUscc(info.uscc);
item.state = info.state;
item.moveOutType = info.moveOutType;
item.moveOutTrace = info.moveOutTrace;
item.moveOutCause = info.moveOutCause;
item.moveOutTime = info.moveOutTime;
item.fuHuaQiUscc = fuHuaQiUscc;
await item.save();
console.log(info.uscc, "更新成功");
}
return {isSuccess:true}
}
\ No newline at end of file
......@@ -44,11 +44,11 @@ export async function fuHuaQiOperateStats(uscc:string, year:number) {
czlbhqs.dataList.push(occupancyRate);
});
// let zfqyqs = await getFuHuaQiOwnEnterpriseCountStats(uscc, year);
let zfqyqs = await newGetFuHuaQiEnterpriseCountStats(uscc, year); //todo 测试代码
let zfqyqs = await getFuHuaQiOwnEnterpriseCountStats(uscc, year);
// let zfqyqs = await newGetFuHuaQiEnterpriseCountStats(uscc, year); //todo 测试代码
// let byqyslbhqs = await getFuHuaQiOwnEnterpriseGraduateCountStats(uscc, year);
let byqyslbhqs = await newGetFuHuaQiEnterpriseGraduateCountStats(uscc, year);//todo 测试代码
let byqyslbhqs = await getFuHuaQiOwnEnterpriseGraduateCountStats(uscc, year);
// let byqyslbhqs = await newGetFuHuaQiEnterpriseGraduateCountStats(uscc, year);//todo 测试代码
let enterpriseIndustryList = await getEnterpriseIndustry(uscc, year);
......@@ -121,6 +121,7 @@ async function getFuHuaQiOwnEnterpriseCountStats(uscc:string, year:number) {
/**按时间从小到大 */
dataList.sort((a,b) => {return a.ct - b.ct});
let xnData = [];
let stData = [];
let monthData = [];
......@@ -215,7 +216,6 @@ async function newGetFuHuaQiEnterpriseGraduateCountStats(uscc:string, year:numbe
let dataList = [];
for (let i = 12; i >=1; i--) {
if (i>=thisMonth) continue;
dataList.push({
nby:0,
by:outMap[i] || 0,
......
......@@ -89,11 +89,11 @@ export async function getValueStats(uscc) {
for (let i = 1; i <= 6; i++) {
let itemDate = moment().subtract(i, 'months');
let key = itemDate.format("YYYY-MM");
let selectMonth = itemDate.month();
let selectMonth = itemDate.month()+1;
let selectYear = itemDate.year();
let {isSubmit} = await findOneFuHuaQiMonthTaskData({fuHuaQiUscc:uscc, type:TASKTYPEENUM.融资企业填报,month:selectMonth, year:selectYear});
let itemData = await findOneFuHuaQiMonthTaskData({fuHuaQiUscc:uscc, type:TASKTYPEENUM.融资企业填报,month:selectMonth, year:selectYear});
let ms = moment().subtract(i, 'months').valueOf();
financingMap[key]={ms, key, data:{}, fuHuaQiSubmit:isSubmit==true};
financingMap[key]={ms, key, data:{}, fuHuaQiSubmit:itemData.isSubmit==true};
}
financingData.forEach(info => {
......
......@@ -212,10 +212,10 @@ export async function initPool() {
/**企业资质 */
let enterpriseQualificationInfo:any = await statsEnterpriseQualification();
indicatiorPoolQuerery[TARGET.企业资质占比] = {type:"Map", value:{
"高新技术企业":enterpriseQualificationInfo.isHighTechMap,
"专精特新企业":enterpriseQualificationInfo.isZjtxMap,
"小巨人培育企业":enterpriseQualificationInfo.isXjrpyMap,
"小巨人企业":enterpriseQualificationInfo.isXjrMap
"高新技术企业":enterpriseQualificationInfo.isHighTech,
"专精特新企业":enterpriseQualificationInfo.isZjtx,
"小巨人培育企业":enterpriseQualificationInfo.isXjrpy,
"小巨人企业":enterpriseQualificationInfo.isXjr
}};
let enterpriseIntellectualInfo = await statsEnterpriseIntellectualPropertyInfo();
indicatiorPoolQuerery[TARGET.企业专利占比] = {type:"Map", value:enterpriseIntellectualInfo};
......
......@@ -31,7 +31,7 @@ export async function initOutline() {
*/
export async function generateReport() {
return {fileName:"2023年采集数据分析.docx", size:'17kb', url:'/doc/2023年采集数据分析.docx'};
// return {fileName:"2023年采集数据分析.docx", size:'17kb', url:'/doc/2023年采集数据分析.docx'};
let docx = officegen('docx');
let pObj = docx.createP();
......@@ -57,7 +57,7 @@ export async function generateReport() {
context = context || [];
let chartStr:any = await checkMsg(msg, context);
if (removeParagraph) {
if (removeParagraph && chartStr) {
let rmvList = chartStr.split('\n');
let rmvStr = ``;
rmvList.forEach(itemStr => {rmvStr += itemStr});
......@@ -132,4 +132,3 @@ function enterpriseCombinationMessage() {
return str;
}
......@@ -8,8 +8,6 @@ import { addEnterprisePoint } from "../point";
import { ENTERPRISENODEENUM, POINTTYPEENUM } from "../../config/pointConfig";
/**
* 获取资讯列表
*
......
......@@ -236,8 +236,8 @@ export async function updateMoveOutInfo(fuHuaQiUscc:string, uscc:string, moveOu
//选择了 非企业注销时 moveOutTrace 和 moveOutCause 为必选项
await eccReqParamater({moveOutTrace:"Number", moveOutCause:"[Number]" }, {moveOutTrace, moveOutCause} );
/**校验moveOutCause 和 moveOutTrace 是否符合规则*/
verificationEnumTools.eccEnumValue('修改企业孵化状态', '修改为迁出', configEnum.MOVEOUTTRACE, moveOutTrace);
verificationEnumTools.eccEnumValue('修改企业孵化状态', '修改为迁出', configEnum.MOVEOUTCAUSE, moveOutCause);
verificationEnumTools.eccEnumValue('修改企业孵化状态', '迁出去向', configEnum.MOVEOUTTRACE, moveOutTrace);
verificationEnumTools.eccEnumValue('修改企业孵化状态', '迁出原因', configEnum.MOVEOUTCAUSE, moveOutCause);
/**根据 不同的迁出类型 校验不同的迁出原因枚举 */
if (moveOutType == configEnum.MOVEOUTTYPE.毕业迁出) {
moveOutCause = [moveOutCause[0]];//非毕业迁出是单选
......
......@@ -65,6 +65,8 @@ export async function selectFuHuaQiBaseData(uscc:string) {
data.fuHuaEnterpriseTotal = dataBaseInfo.fuHuaEnterpriseTotal ? dataBaseInfo.fuHuaEnterpriseTotal : 0;
data.fuHuaEnterpriseTotal += await enterpriseData.findEnterpriseTotalByFuHuaQiUscc(uscc);
data.ruZhuFeiFuHuaQiYe = 0;
return data;
}
......@@ -141,7 +143,7 @@ export async function updateFuHuaQiBaseData(uscc:string, param) {
for (let i = 0; i < changeList.length; i++) {
let key = changeList[i];
if (key == "virtualEnterpriseNum") continue;
//加埋点
switch (key) {
case "acreageTotal":
if (param[key] != baseDataInfo[key]) {
......
......@@ -32,16 +32,16 @@ export function initSystemTask() {
}, 3600 * 1000);
/**孵化器季度任务 */
fuHuaQiQuarterTask();
setInterval(async function () {
await fuHuaQiQuarterTask();
}, 3600 * 1000 * 2);
// fuHuaQiQuarterTask();
// setInterval(async function () {
// await fuHuaQiQuarterTask();
// }, 3600 * 1000 * 2);
/**企业季度任务 */
enterpriseQuarterTask();
setInterval(async function () {
await enterpriseQuarterTask();
}, 3600 * 1000 * 2);
// enterpriseQuarterTask();
// setInterval(async function () {
// await enterpriseQuarterTask();
// }, 3600 * 1000 * 2);
/**初始化短信任务 */
......
......@@ -18,6 +18,8 @@ export const BaseParamUpdateConfig = {
acreageTotal:{type:"Number", notMustHave:true},//孵化器总面积(㎡)
acreagePersonalUse:{type:"Number", notMustHave:true},//孵化器自用面积(㎡)
hatchingGround:{type:"[Object]", notMustHave:true},//经备案孵化场地
fuHuaLianXiDiZhi:{type:"Address", notMustHave:true},//孵化联系地址
fuHuazhuCeDiZhi:{type:"Address", notMustHave:true},//孵化注册地址
// isProfessionalTechnology:{type:"Boolean", notMustHave:true},//是否专业技术平台
// professionalTechnologyName:{type:"String", notMustHave:true},//专业技术平台名称
// professionalTechnologyCreateTime:{type:"Number", notMustHave:true},//时间 年份 xxxx年01月01日 的时间戳
......
......@@ -238,7 +238,9 @@ export const FuHuaQiBaseDataConfig = {
// professionalTechnologyAmount:{key:"专业技术平台投资金额"},
// isCooperation:{key:"是否与第三方机构合作"},
// cooperationInstitutions:{key:"合作机构名称"},
enterpriseTotal:{key:"累计企业"}
enterpriseTotal:{key:"累计企业"},
fuHuazhuCeDiZhi:{key:"孵化注册地址"},
fuHuaLianXiDiZhi:{key:"孵化联系地址"}
}
......
......@@ -46,7 +46,7 @@ const enterpriseSchema = new Schema({
name: {type:String, index: true},//企业名称
taskId:{type:String, index:true},//绑定的任务id
uscc:{type:String, index: true},//统一信用代码
fuHuaQiUscc:{type:String, index:true},//孵化器统一信用代码
fuHuaQiUscc:{type:String, index:true},//孵化器统一信用代码[-p---------------------------------------------]
industry:[Number],//领域
logonTime:Number,//注册时间
firstIncubationTime:Number,//首次入孵时间
......
......@@ -9,6 +9,7 @@
import {Schema} from 'mongoose';
import { baseDB } from '../../db/mongo/dbInit';
import { deflate } from 'zlib';
const foundingTeamSchema = new Schema({
memberName:String,//成员姓名
......@@ -77,6 +78,10 @@ const fuHuaQiSchema = new Schema({
professionalTechnologyAmount:Number,//投资金额 万元
isCooperation:{type:Boolean, default:false},//是否与第三方合作
cooperationInstitutions:{type:String, default:""},//合作机构名称
/**2024年04月23日字段 */
fuHuazhuCeDiZhi:{type:[String], default:[]},//孵化注册地址
fuHuaLianXiDiZhi:{type:[String], default:[]},//孵化联系地址
});
var fuHuaQiModel;
......
......@@ -99,4 +99,4 @@ export async function findZjBeyondLayoutListByParamToPage(param, skipCount:numbe
*/
export async function getZjBeyondLayoutCountByParam(param) {
return await zjBeyondLayoutModel.find(param).countDocuments();
}
\ No newline at end of file
}
......@@ -9,6 +9,7 @@ var baseDB;
export async function initDB() {
//如果配置了mongoServerConstVal 才会连接mongo
if (systemConfig.mongodbStr) {
console.log(systemConfig.mongodbStr);
baseDB = await createDbConnect(systemConfig.mongodbStr).catch(err => {
throw err
});
......
......@@ -30,5 +30,4 @@ async function lanuch() {
lanuch();
\ No newline at end of file
......@@ -42,6 +42,10 @@ export function setRouter(httpServer) {
/**修复任务分数 */
httpServer.post('/admin/provide/fuhuaqi/scort/correcttask', checkInterior, asyncHandler(correctFuHuaQiScore) );
httpServer.post('/admin/provide/fuhuaqi/scort/correctmyenterprise', checkInterior, asyncHandler(correctFuHuaQiMyEnterpriseScore) );
//批量操作
httpServer.post('/admin/provide/fuhuaqi/scort/enterpriseoutanin', checkInterior, asyncHandler(enterpriseOutAnInRot) );
httpServer.post('/admin/provide/fuhuaqi/scort/enterpriseoutandinmoverout', checkInterior, asyncHandler(enterpriseOutAndInMoverOutRot) );
}
......@@ -170,3 +174,14 @@ async function correctFuHuaQiMyEnterpriseScore(req, res) {
await provideBiz.correctFuHuaQiMyEnterpriseScoreData();
res.success({isUsccess:true});
}
async function enterpriseOutAnInRot(req, res) {
await provideBiz.enterpriseOutAnIn();
res.success({isUsccess:true});
}
async function enterpriseOutAndInMoverOutRot(req, res) {
await provideBiz.enterpriseOutAndInMoverOut();
res.success({isUsccess:true});
}
......@@ -13,6 +13,7 @@ import * as taskTool from "./taskTool";
const xlsx = require('node-xlsx');
const path = require('path');
const md5 = require("md5");
const fs = require('fs');
const OldTypeChangeConfig = {
"文化创意":INDUSTRY.文化创意,
......
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