Commit 36967e84 by lixinming

去除多余方法

parent 5cf3855f
...@@ -1590,7 +1590,7 @@ let list3 = [ ...@@ -1590,7 +1590,7 @@ let list3 = [
{name:"上海智矽半导体有限公司",time:"2024-06-27", uscc:"91310115MADQ9WK24L",add:"上海市浦东新区秀浦路2500弄6号106室"}, {name:"上海智矽半导体有限公司",time:"2024-06-27", uscc:"91310115MADQ9WK24L",add:"上海市浦东新区秀浦路2500弄6号106室"},
{name:"上海蜗翎教育科技有限公司",time:"2024-06-27", uscc:"91310115MADPN0A10U",add:"中国(上海)自由贸易试验区孙桥路999号1幢166-6室"} {name:"上海蜗翎教育科技有限公司",time:"2024-06-27", uscc:"91310115MADPN0A10U",add:"中国(上海)自由贸易试验区孙桥路999号1幢166-6室"}
] ]
// t();
export async function t() { export async function t() {
// let notList = []; // let notList = [];
// for (let i = 0; i < list3.length; i++) { // for (let i = 0; i < list3.length; i++) {
...@@ -1730,4 +1730,7 @@ export async function test111() { ...@@ -1730,4 +1730,7 @@ export async function test111() {
console.log(); console.log();
// return dataList; // return dataList;
} }
\ No newline at end of file
...@@ -93,7 +93,7 @@ export async function getValueStats(uscc) { ...@@ -93,7 +93,7 @@ export async function getValueStats(uscc) {
let selectYear = itemDate.year(); let selectYear = itemDate.year();
let itemData = 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(); let ms = moment().subtract(i, 'months').valueOf();
financingMap[key]={ms, key, data:{}, fuHuaQiSubmit:itemData.isSubmit==true}; financingMap[key]={ms, key, data:{}, fuHuaQiSubmit:itemData && itemData.isSubmit==true};
} }
financingData.forEach(info => { financingData.forEach(info => {
......
...@@ -214,7 +214,8 @@ function sleep() { ...@@ -214,7 +214,8 @@ function sleep() {
} }
/** /**
* 系统标签【被动标签】即:需要系统通过其他条件(时间条件)等判断的 * 系统标签【被动标签】 初始化
* 即:需要系统通过其他条件(时间条件)等判断的
*/ */
export async function systemLabel() { export async function systemLabel() {
/**在孵化企业 */ /**在孵化企业 */
...@@ -416,6 +417,10 @@ export async function initSystemLabelData() { ...@@ -416,6 +417,10 @@ export async function initSystemLabelData() {
*/ */
export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) { export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) {
switch (labelId) { switch (labelId) {
case ENTERPRISESYSTEMLABEL.在孵企业:
// /**在孵企业 */todo
// 进来之后需要去除其他的标签 改成在孵标签
break;
case ENTERPRISESYSTEMLABEL.上市企业: case ENTERPRISESYSTEMLABEL.上市企业:
if (enterpriseInfo.qualification && enterpriseInfo.qualification.isBeOnTheMarket) { if (enterpriseInfo.qualification && enterpriseInfo.qualification.isBeOnTheMarket) {
inLabelToEnterprise(enterpriseInfo, labelId, p1); inLabelToEnterprise(enterpriseInfo, labelId, p1);
...@@ -444,7 +449,7 @@ export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) { ...@@ -444,7 +449,7 @@ export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) {
outLabelToEnterprise(enterpriseInfo, labelId); outLabelToEnterprise(enterpriseInfo, labelId);
} }
break; break;
case ENTERPRISESYSTEMLABEL.虚拟企业: case ENTERPRISESYSTEMLABEL.虚拟企业:
if (enterpriseInfo.state == FUHUASTATE.虚拟孵化) { if (enterpriseInfo.state == FUHUASTATE.虚拟孵化) {
inLabelToEnterprise(enterpriseInfo, labelId, p1); inLabelToEnterprise(enterpriseInfo, labelId, p1);
} else { } else {
...@@ -452,7 +457,7 @@ export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) { ...@@ -452,7 +457,7 @@ export function enterpriseEventLabel(enterpriseInfo, labelId, p1?, p2?, p3?) {
} }
break; break;
case ENTERPRISESYSTEMLABEL.企业注销: case ENTERPRISESYSTEMLABEL.企业注销:
case ENTERPRISESYSTEMLABEL.毕业企业: case ENTERPRISESYSTEMLABEL.毕业企业:
case ENTERPRISESYSTEMLABEL.迁出企业: case ENTERPRISESYSTEMLABEL.迁出企业:
if (enterpriseInfo.state == FUHUASTATE.迁出) { if (enterpriseInfo.state == FUHUASTATE.迁出) {
if (enterpriseInfo.moveOutType == MOVEOUTTYPE.企业注销) { if (enterpriseInfo.moveOutType == MOVEOUTTYPE.企业注销) {
......
...@@ -31,8 +31,6 @@ const os = require('os'); ...@@ -31,8 +31,6 @@ const os = require('os');
export async function initSystemTask() { export async function initSystemTask() {
const platform = os.platform(); const platform = os.platform();
if (platform == "win32") return; if (platform == "win32") return;
// test111();
// return
/** /**
* 6.0版本后舍弃系统自动发放任务 * 6.0版本后舍弃系统自动发放任务
*/ */
......
import { jiaoyanshuju } from "./biz/admin/provide";
import { initPool } from "./biz/gpt/indicatorPool"; import { initPool } from "./biz/gpt/indicatorPool";
import { initOutline } from "./biz/gpt/report"; import { initOutline } from "./biz/gpt/report";
import { initSMS } from "./biz/sms"; import { initSMS } from "./biz/sms";
...@@ -24,8 +23,6 @@ async function lanuch() { ...@@ -24,8 +23,6 @@ async function lanuch() {
initOutline(); initOutline();
/**创建http服务 */ /**创建http服务 */
httpServer.createServer(systemConfig.port); httpServer.createServer(systemConfig.port);
// await jiaoyanshuju();
// await smsTask();
console.log('This indicates that the server is started successfully.'); console.log('This indicates that the server is started successfully.');
} }
......
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