Commit b3f19756 by zhangzhencai

no message

parent 19338dd5
<config> <config>
<port>9098</port> <port>9098</port>
<sign>xxx90909082fsdahfjosadjfpoiwausjorip2hjklrhn1ioud0u124rx0qwejfokasjfolksaujfoas</sign> <sign>xxx90909082fsdahfjosadjfpoiwausjorip2hjklrhn1ioud0u124rx0qwejfokasjfolksaujfoas</sign>
<dbServer>http://192.168.0.105:40012</dbServer> <dbServer>http://127.0.0.1:9096</dbServer>
<imgUrl>http://127.0.0.1:9098</imgUrl>
<imgFileUrl>http://192.168.0.189:9097</imgFileUrl>
</config> </config>
\ No newline at end of file
...@@ -338,8 +338,11 @@ export async function getWorthDate() { ...@@ -338,8 +338,11 @@ export async function getWorthDate() {
if (userInfo && userInfo.uId) throw new BizError(ERRORENUM.手机号码重复); if (userInfo && userInfo.uId) throw new BizError(ERRORENUM.手机号码重复);
let filesList = ["eId"]; // let filesList = ["eId"];
let filesList = ["eId", "uscc"];
let enterpriseUserInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业基础信息表, {uscc:param.uscc}, filesList); let enterpriseUserInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业基础信息表, {uscc:param.uscc}, filesList);
// console.log("查询结果:", enterpriseUserInfo); // 添加日志
if (enterpriseUserInfo && enterpriseUserInfo.eId) { if (enterpriseUserInfo && enterpriseUserInfo.eId) {
throw new BizError(ERRORENUM.企业已存在); throw new BizError(ERRORENUM.企业已存在);
} }
......
...@@ -25,7 +25,7 @@ export async function settleInEnterpriseList(page:number, entepriseName:string) ...@@ -25,7 +25,7 @@ export async function settleInEnterpriseList(page:number, entepriseName:string)
let filesList = ["eId", "enterpriseName", "uscc", "logonTime", "logonAddress"]; let filesList = ["eId", "enterpriseName", "uscc", "logonTime", "logonAddress"];
let manyTableInfo:any = {} let manyTableInfo:any = {}
manyTableInfo[TABLENAME.租赁信息] = {column:["area", "unitPrice", "roomNumber", "rent"], where:{} }; manyTableInfo[TABLENAME.租赁信息] = {column:["area", "unitPrice", "roomNumber", "rent", "totalPrice"], where:{} };
manyTableInfo[TABLENAME.企业孵化信息] = {column:["state", "startTime", "endTime"], where:{} }; manyTableInfo[TABLENAME.企业孵化信息] = {column:["state", "startTime", "endTime"], where:{} };
manyTableInfo[TABLENAME.企业用户表] = {column:["userName", "pwd", "phone", "uId"], where:{} }; manyTableInfo[TABLENAME.企业用户表] = {column:["userName", "pwd", "phone", "uId"], where:{} };
let resList = await selectManyTableData(OPERATIONALDATATYPE.多表分页, TABLENAME.企业基础信息表, selectParam, filesList, manyTableInfo, page ); let resList = await selectManyTableData(OPERATIONALDATATYPE.多表分页, TABLENAME.企业基础信息表, selectParam, filesList, manyTableInfo, page );
...@@ -52,6 +52,7 @@ export async function settleInEnterpriseList(page:number, entepriseName:string) ...@@ -52,6 +52,7 @@ export async function settleInEnterpriseList(page:number, entepriseName:string)
pwd:info.enterprise_users[0].pwd, pwd:info.enterprise_users[0].pwd,
phone:info.enterprise_users[0].phone, phone:info.enterprise_users[0].phone,
uId:info.enterprise_users[0].uId, uId:info.enterprise_users[0].uId,
totalPrice: info.enterprise_leases[0].totalPrice // 添加年总价字段
}); });
}); });
...@@ -107,8 +108,11 @@ export async function settleInEnterpriseUpdate(eId:string, param) { ...@@ -107,8 +108,11 @@ export async function settleInEnterpriseUpdate(eId:string, param) {
let leaseInfo = { let leaseInfo = {
area:param.area, area:param.area,
unitPrice:param.unitPrice, // unitPrice:param.unitPrice,
roomNumber:param.roomNumber, // unitPrice:param.rent / param.area,// 计算单价
//如果 param.rent 和 param.area 都存在且不为零,则计算 unitPrice 为 param.rent 除以 param.area;否则,直接使用 param.unitPrice。
unitPrice: param.rent && param.area ? param.rent / param.area : param.unitPrice,
rent:param.rent, rent:param.rent,
} }
await operationalData(OPERATIONALDATATYPE.修改, TABLENAME.租赁信息, leaseInfo, {eId}); await operationalData(OPERATIONALDATATYPE.修改, TABLENAME.租赁信息, leaseInfo, {eId});
...@@ -229,7 +233,8 @@ export async function enterpriseRegister(param) { ...@@ -229,7 +233,8 @@ export async function enterpriseRegister(param) {
uscc:param.uscc, uscc:param.uscc,
logonTime:getMySqlMs(param.logonTime), logonTime:getMySqlMs(param.logonTime),
state:0, state:0,
register:0 register:0,
rent: param.rent
}; };
await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.企业基础信息表, addEInfo, {}); await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.企业基础信息表, addEInfo, {});
...@@ -245,6 +250,7 @@ export async function enterpriseRegister(param) { ...@@ -245,6 +250,7 @@ export async function enterpriseRegister(param) {
startTime:getMySqlMs(param.leaseTimeStart), startTime:getMySqlMs(param.leaseTimeStart),
endTime:getMySqlMs(param.leaseTimeEnd), endTime:getMySqlMs(param.leaseTimeEnd),
area:param.area area:param.area
} }
await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.租赁信息, leaseInfo, {}); await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.租赁信息, leaseInfo, {});
......
...@@ -15,19 +15,41 @@ import { PolicyUpdateConfig } from "../config/eccParam/enterprise"; ...@@ -15,19 +15,41 @@ import { PolicyUpdateConfig } from "../config/eccParam/enterprise";
export async function enterprisePolicyList(keywords:string, page:number) { export async function enterprisePolicyList(keywords:string, page:number) {
let selectParam:any = {}; let selectParam:any = {};
if (keywords) selectParam.desc = {"%like%":keywords}; if (keywords) selectParam.desc = {"%like%":keywords};
let filesList = ["poId", "title", "source", "createTimeMs", "closeTimeMs", "isPermanent"]; let filesList = ["poId", "title", "source", "createTimeMs", "closeTimeMs", "isPermanent","coverImg"];
let resList = await selectData(OPERATIONALDATATYPE.分页查询, TABLENAME.政策表, selectParam, filesList, page); let resList = await selectData(OPERATIONALDATATYPE.分页查询, TABLENAME.政策表, selectParam, filesList, page);
let dataCount = await selectData(OPERATIONALDATATYPE.查询数据量, TABLENAME.政策表, selectParam, null); let dataCount = await selectData(OPERATIONALDATATYPE.查询数据量, TABLENAME.政策表, selectParam, null);
let dataList = []; let dataList = [];
const now = moment().valueOf(); // 获取当前时间戳
resList.forEach(info => { resList.forEach(info => {
let closeTimeMs = info.closeTimeMs;
if (info.isPermanent == 1) closeTimeMs = '永久有效';
if (!info.closeTimeMs) closeTimeMs = "-";
// 格式化日期前检查closeTimeMs是否为'永久有效'或'-'
let formattedCloseTimeMs = closeTimeMs === '永久有效' || closeTimeMs === '-' ? closeTimeMs : moment(closeTimeMs).format("YYYY-MM-DD");
// 判断政策是进行中还是往期
let status = '';
if (info.isPermanent == 1) {
status = '进行中';
} else if (closeTimeMs === '-') {
status = '进行中';
} else {
const policyEndTime = moment(closeTimeMs).valueOf();
status = policyEndTime >= now ? '进行中' : '往期';
}
dataList.push({ dataList.push({
poId:info.poId, poId:info.poId,
title:info.title, title:info.title,
source:info.source, source:info.source,
createTimeMs:info.createTimeMs, createTimeMs:info.createTimeMs,
closeTimeMs:info.closeTimeMs ? info.closeTimeMs : "-", closeTimeMs:formattedCloseTimeMs,
isPermanent:info.isPermanent isPermanent: info.isPermanent,
//图片
coverImg:JSON.parse(info.coverImg),
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
}); });
}); });
...@@ -74,8 +96,8 @@ export async function enterprisePolicyAdd( param) { ...@@ -74,8 +96,8 @@ export async function enterprisePolicyAdd( param) {
eccFormParam(FuncName, PolicyUpdateConfig, param ); eccFormParam(FuncName, PolicyUpdateConfig, param );
if (param.closeTimeMs) param.closeTimeMs = getMySqlMs(param.closeTimeMs); if (param.closeTimeMs) param.closeTimeMs = getMySqlMs(param.closeTimeMs);
param.createTimeMs = getMySqlMs(); // param.createTimeMs = getMySqlMs(); //没有传时间不能调用格式转换方法,会默认时间1970-01-01
if (!param.coverImg) param.coverImg = '[]'; if (!param.coverImg.length) param.coverImg = "[\"/yuyi/files/默认图片.png\"]";
else param.coverImg = JSON.stringify(param.coverImg); else param.coverImg = JSON.stringify(param.coverImg);
param.poId = randomId(TABLEID.政策表); param.poId = randomId(TABLEID.政策表);
await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.政策表, param, {}); await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.政策表, param, {});
......
...@@ -40,9 +40,10 @@ export const SettleInForUpdateConfig = { ...@@ -40,9 +40,10 @@ export const SettleInForUpdateConfig = {
fuHuaTimeStart:{type:"Number"},//孵化开始时间 fuHuaTimeStart:{type:"Number"},//孵化开始时间
fuHuaTimeEndTime:{type:"Number"},//孵化结束时间 fuHuaTimeEndTime:{type:"Number"},//孵化结束时间
area:{type:"Number"},//面积 area:{type:"Number"},//面积
unitPrice:{type:"Number"},//单价 // unitPrice:{type:"Number"},//单价
roomNumber:{type:"String"},//室号 roomNumber:{type:"String"},//室号
rent:{type:"Number"},//总价 rent:{type:"Number"},//每月租金
// totalPrice:{type:"Number"},//总价
pwd:{type:"String"}, pwd:{type:"String"},
phone:{type:"String"}, phone:{type:"String"},
userName:{type:"String"}, userName:{type:"String"},
...@@ -74,9 +75,10 @@ export const AdminRegisterAddConfig = { ...@@ -74,9 +75,10 @@ export const AdminRegisterAddConfig = {
fuHuaTimeStart:{type:"Number"},//孵化开始时间 fuHuaTimeStart:{type:"Number"},//孵化开始时间
fuHuaTimeEndTime:{type:"Number"},//孵化结束时间 fuHuaTimeEndTime:{type:"Number"},//孵化结束时间
area:{type:"Number"},//面积 area:{type:"Number"},//面积
unitPrice:{type:"Number"},//单价 // unitPrice:{type:"Number"},//单价
roomNumber:{type:"String"},//室号 roomNumber:{type:"String"},//室号
rent:{type:"Number"},//总价 rent:{type:"Number"},//每月租金
// totalPrice:{type:"Number"},//总价
pwd:{type:"String"}, pwd:{type:"String"},
phone:{type:"String"}, phone:{type:"String"},
userName:{type:"String"} userName:{type:"String"}
......
...@@ -118,7 +118,9 @@ export enum FOLLOWUPSTATUS { ...@@ -118,7 +118,9 @@ export enum FOLLOWUPSTATUS {
* 服务类别 * 服务类别
*/ */
export enum NEEDCATEGORY { export enum NEEDCATEGORY {
物业服务 = 1, // 物业服务 = 1,
工商税务 = 1,
代理记账,
贷款服务, 贷款服务,
法律服务, 法律服务,
知识产权, 知识产权,
...@@ -153,4 +155,51 @@ export enum FINANCINGROUNDS { ...@@ -153,4 +155,51 @@ export enum FINANCINGROUNDS {
export enum STATE { export enum STATE {
= 0, = 0,
} }
\ No newline at end of file
export enum QUARTER {
第一季度 = 1,
第二季度,
第三季度,
第四季度
}
/**
* 知识产权类型
*/
export enum INTELLECTUALPROPERTYRIGHT {
软件著作 = 1,
发明专利,
海外专利,
植物新品种,
集成电路布图,
}
/**
* 知识产权及专利
*/
export enum IPROPERTYTYPE {
软件著作个数 = 1,
发明专利个数,
海外专利个数,
植物新品种个数,
集成电路布图个数
}
/**
* 前端用
*/
export enum INTELLECTUALPROPERTYRIGHT {
softwareCopyright = 1,
inventionPatent,
overseasPatent,
plantVariety,
icLayout
}
...@@ -18,8 +18,8 @@ export enum ENTERPRISEMANAGE { ...@@ -18,8 +18,8 @@ export enum ENTERPRISEMANAGE {
"营收(万元)" = "BI", "营收(万元)" = "BI",
"纳税(万元)" = "TXP", "纳税(万元)" = "TXP",
"研发投入(万元)" = "RD", "研发投入(万元)" = "RD",
= "annual", = "annual",
状态 = "state" // 状态 = "state"
} }
export enum ENTERPRISEFINANCING { export enum ENTERPRISEFINANCING {
...@@ -39,3 +39,15 @@ export enum ENTERPRISETALENT { ...@@ -39,3 +39,15 @@ export enum ENTERPRISETALENT {
毕业学校 = "graduationSchool", 毕业学校 = "graduationSchool",
企业名称 = "enterpriseName" 企业名称 = "enterpriseName"
} }
/**企业服务 */
export enum ENTERPRISESERVICE {
企业名称="enterpriseName",
需求类别="needCategory",
申请时间="applyTime",
跟进状态="followUpStatus",
解决时间="resolveTime",
需求内容="needContent"
}
...@@ -16,11 +16,14 @@ export async function initConfig() { ...@@ -16,11 +16,14 @@ export async function initConfig() {
if (!configInfo || !configInfo.config) throw new BizError('xml中无配置'); if (!configInfo || !configInfo.config) throw new BizError('xml中无配置');
else { else {
let {port, sign, dbServer } = configInfo.config; let {port, sign, dbServer, imgUrl, imgFileUrl } = configInfo.config;
systemConfig.port = parseInt(port[0]); systemConfig.port = parseInt(port[0]);
systemConfig.dbSign = sign[0] systemConfig.dbSign = sign[0];
systemConfig.dbPath = dbServer[0] systemConfig.dbPath = dbServer[0];
systemConfig.imgUrl = imgUrl[0];
systemConfig.imgFileUrl = imgFileUrl[0];
} }
......
...@@ -8,4 +8,6 @@ export class ServerConfig { ...@@ -8,4 +8,6 @@ export class ServerConfig {
port:number; port:number;
dbSign:String; dbSign:String;
dbPath:String; dbPath:String;
imgUrl:String;
imgFileUrl:String;
} }
\ No newline at end of file
...@@ -32,6 +32,7 @@ export class httpServer { ...@@ -32,6 +32,7 @@ export class httpServer {
httpServer.use(express.static("./static") ); httpServer.use(express.static("./static") );
httpServer.use(express.static("./files") ); httpServer.use(express.static("./files") );
httpServer.use(express.static("./img") );
const root = path.join(__dirname, "../../public"); const root = path.join(__dirname, "../../public");
httpServer.use(express.static(root)); httpServer.use(express.static(root));
httpServer.use(fallback('index.html', { root })); httpServer.use(fallback('index.html', { root }));
......
...@@ -11,6 +11,8 @@ import * as zhengCeBiz from '../biz/zhengCe'; ...@@ -11,6 +11,8 @@ import * as zhengCeBiz from '../biz/zhengCe';
import * as fuWuBiz from '../biz/fuWu'; import * as fuWuBiz from '../biz/fuWu';
import * as ruFuBiz from '../biz/ruFu'; import * as ruFuBiz from '../biz/ruFu';
import { checkEnterpriseUser, checkUser } from '../middleware/user'; import { checkEnterpriseUser, checkUser } from '../middleware/user';
import { ERRORENUM } from '../config/enum/errorEnum';
import { BizError } from '../util/bizError';
export function setRouter(httpServer) { export function setRouter(httpServer) {
//管理员登录登出 //管理员登录登出
...@@ -48,7 +50,11 @@ export function setRouter(httpServer) { ...@@ -48,7 +50,11 @@ export function setRouter(httpServer) {
// httpServer.post('/admin/library/financing/details', checkUser, asyncHandler(financingById)); // httpServer.post('/admin/library/financing/details', checkUser, asyncHandler(financingById));
// httpServer.post('/admin/library/talent/details', checkUser, asyncHandler(talentById)); // httpServer.post('/admin/library/talent/details', checkUser, asyncHandler(talentById));
// httpServer.post('/admin/library/service/details', checkUser, asyncHandler(serviceById)); // httpServer.post('/admin/library/service/details', checkUser, asyncHandler(serviceById));
httpServer.post('/admin/library/dw/enterprise/list', checkUser, asyncHandler(dwEnterpriseList)); httpServer.post('/admin/library/dw/enterprise/list', checkUser, asyncHandler(dwEnterpriseList));//下载
httpServer.post('/admin/library/dw/alloutput/list', checkUser, asyncHandler(getAllDwOutPutData));//在孵企业单企业下载
httpServer.post('/admin/library/dw/businessdata/list', checkUser, asyncHandler(dwBusinessDataList));//单企业经营数据下载
httpServer.post('/admin/library/dw/financingsituatione/list', checkUser, asyncHandler(dwFinancingSituationeList));//单企业融资情况下载
httpServer.post('/admin/library/manage/list', checkUser, asyncHandler(manageList)); httpServer.post('/admin/library/manage/list', checkUser, asyncHandler(manageList));
httpServer.post('/admin/library/dw/manage/list', checkUser, asyncHandler(outPutManageList)); httpServer.post('/admin/library/dw/manage/list', checkUser, asyncHandler(outPutManageList));
...@@ -86,6 +92,8 @@ export function setRouter(httpServer) { ...@@ -86,6 +92,8 @@ export function setRouter(httpServer) {
httpServer.post('/admin/enterprise/register', asyncHandler(enterpriseLogon)); httpServer.post('/admin/enterprise/register', asyncHandler(enterpriseLogon));
httpServer.post('/admin/library/ipr/list', checkUser, asyncHandler(iprList)); httpServer.post('/admin/library/ipr/list', checkUser, asyncHandler(iprList));
httpServer.post('/admin/library/ipr/details', checkUser, asyncHandler(iprDetails));
httpServer.post('/admin/library/qualification/list', checkUser, asyncHandler(qualificationList)); httpServer.post('/admin/library/qualification/list', checkUser, asyncHandler(qualificationList));
httpServer.post('/admin/library/honor/list', checkUser, asyncHandler(enterpriseHonor)); httpServer.post('/admin/library/honor/list', checkUser, asyncHandler(enterpriseHonor));
...@@ -99,6 +107,17 @@ async function iprList(req, res) { ...@@ -99,6 +107,17 @@ async function iprList(req, res) {
res.success(result); res.success(result);
} }
async function iprDetails(req, res) {
const UserInfo = req.userInfo;
let { eId } = req.body
let result = await enterpriseInfoBiz.getiprDetails(eId);
res.success(result);
}
async function qualificationList(req, res) { async function qualificationList(req, res) {
const UserInfo = req.userInfo; const UserInfo = req.userInfo;
let { entepriseName, page } = req.body let { entepriseName, page } = req.body
...@@ -378,7 +397,7 @@ async function enterpriseDetails(req, res) { ...@@ -378,7 +397,7 @@ async function enterpriseDetails(req, res) {
/** /**
* * 下载
* @param req * @param req
* @param res * @param res
*/ */
...@@ -391,6 +410,57 @@ async function dwEnterpriseList(req, res) { ...@@ -391,6 +410,57 @@ async function dwEnterpriseList(req, res) {
/** /**
* 在孵企业下载
* @param req
* @param res
*/
async function getAllDwOutPutData(req, res) {
let {eId} = req.body
let result = await zaiFuBiz.getAllDwOutPut(eId);
res.success(result);
}
// /**
// * 单企业基本信息下载
// * @param req
// * @param res
// */
// async function dwBasicInformationList(req, res) {
// let {eId} = req.body
// let result = await zaiFuBiz.dwBasicInformation(eId);//基本信息下载
// res.success(result);
// }
/**
* 单企业经营数据下载
* @param req
* @param res
*/
async function dwBusinessDataList(req, res) {
let {eId} = req.body
let result = await zaiFuBiz.dwBusinessData(eId);
res.success(result);
}
/**
* 单企业融资情况下载
* @param req
* @param res
*/
async function dwFinancingSituationeList(req, res) {
let {eId} = req.body
let result = await zaiFuBiz.dwFinancingSituatione(eId);
res.success(result);
}
/**
* *
* @param req * @param req
* @param res * @param res
...@@ -405,8 +475,8 @@ async function manageList(req, res) { ...@@ -405,8 +475,8 @@ async function manageList(req, res) {
async function outPutManageList(req, res) { async function outPutManageList(req, res) {
const UserInfo = req.userInfo; const UserInfo = req.userInfo;
let {entepriseName, year, type, state, files } = req.body let {entepriseName, year, type, files } = req.body
let result = await enterpriseInfoBiz.outPutEnterpriseManageList(entepriseName, year, state, type, files); let result = await enterpriseInfoBiz.outPutEnterpriseManageList(entepriseName, year, type, files);
res.success(result); res.success(result);
} }
...@@ -417,9 +487,9 @@ async function outPutManageList(req, res) { ...@@ -417,9 +487,9 @@ async function outPutManageList(req, res) {
async function managePass(req, res) { async function managePass(req, res) {
const UserInfo = req.userInfo; const UserInfo = req.userInfo;
let {mId } = req.body let {mId } = req.body
let result = await enterpriseInfoBiz.enterpriseManagePass(mId); // let result = await enterpriseInfoBiz.enterpriseManagePass(mId);
res.success(result); // res.success(result);
} }
...@@ -430,8 +500,8 @@ async function managePass(req, res) { ...@@ -430,8 +500,8 @@ async function managePass(req, res) {
*/ */
async function financingList(req, res) { async function financingList(req, res) {
const UserInfo = req.userInfo; const UserInfo = req.userInfo;
let {entepriseName, page } = req.body let {entepriseName, year, page} = req.body
let result = await enterpriseInfoBiz.enterpriseFinancingList(entepriseName, page); let result = await enterpriseInfoBiz.enterpriseFinancingList(entepriseName, year, page);
res.success(result); res.success(result);
} }
...@@ -457,8 +527,8 @@ async function financingAllYear(req, res) { ...@@ -457,8 +527,8 @@ async function financingAllYear(req, res) {
*/ */
async function outPutFinancingList(req, res) { async function outPutFinancingList(req, res) {
const UserInfo = req.userInfo; const UserInfo = req.userInfo;
let {entepriseName, type, files } = req.body let {entepriseName, year, type, files } = req.body
let result = await enterpriseInfoBiz.outPutEnterpriseFinancingList(entepriseName, type, files); let result = await enterpriseInfoBiz.outPutEnterpriseFinancingList(entepriseName, year, type, files);
res.success(result); res.success(result);
} }
...@@ -485,11 +555,11 @@ async function examineList(req, res) { ...@@ -485,11 +555,11 @@ async function examineList(req, res) {
* @param res * @param res
*/ */
async function examineSub(req, res) { async function examineSub(req, res) {
const UserInfo = req.userInfo; // const UserInfo = req.userInfo;
let { mId } = req.body // let { mId } = req.body
let result = await enterpriseInfoBiz.enterpriseExaminePass(mId); // let result = await enterpriseInfoBiz.enterpriseExaminePass(mId);
res.success(result); // res.success(result);
} }
......
...@@ -21,6 +21,14 @@ const config = { ...@@ -21,6 +21,14 @@ const config = {
"/public/output/enterprisemanage":outputEnumConfig.ENTERPRISEMANAGE, "/public/output/enterprisemanage":outputEnumConfig.ENTERPRISEMANAGE,
"/public/output/enterprisefinancing":outputEnumConfig.ENTERPRISEFINANCING, "/public/output/enterprisefinancing":outputEnumConfig.ENTERPRISEFINANCING,
"/public/output/enterprisetalent":outputEnumConfig.ENTERPRISETALENT, "/public/output/enterprisetalent":outputEnumConfig.ENTERPRISETALENT,
"/public/output/enterpriseservice":outputEnumConfig.ENTERPRISESERVICE,
"/public/output/ipropertytype":enumConfig.IPROPERTYTYPE,//知识产权及专利类型
// "/public/output/basedata":outputEnumConfig.BASEDATA,
// "/public/output/opreatdata":outputEnumConfig.OPERATIONDATA,
// "/public/output/financingdata":outputEnumConfig.FINANCINGDATA,
} }
export function setRouter(httpServer) { export function setRouter(httpServer) {
......
...@@ -72,6 +72,7 @@ export function randomId(tableName:string) { ...@@ -72,6 +72,7 @@ export function randomId(tableName:string) {
export function getMySqlMs(time?) { export function getMySqlMs(time?) {
time = time || new Date().valueOf(); time = time || new Date().valueOf();
return moment(time).format("YYYY-MM-DD HH:mm:ss"); return moment(time).format("YYYY-MM-DD HH:mm:ss");
// return moment(time).format("YYYY");
} }
export function randomCode() { export function randomCode() {
......
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