Browse Source

better-xlsx

release_0.0.4
巴林闲侠 2 years ago
parent
commit
f80d868998
  1. 204
      api/app/lib/controllers/data/index.js
  2. 98
      api/app/lib/models/bridge.js
  3. 53
      api/app/lib/models/bus_car.js
  4. 24
      api/app/lib/models/bus_line.js
  5. 30
      api/app/lib/models/municipal_business.js
  6. 41
      api/app/lib/models/municipal_vehicle.js
  7. 19
      api/app/lib/models/overspeed.js
  8. 6
      api/app/lib/routes/data/index.js
  9. 645
      api/log/development.log
  10. 7
      api/package.json
  11. 4
      api/utils/xlsxDownload.js
  12. 60
      api/yarn.lock

204
api/app/lib/controllers/data/index.js

@ -1,106 +1,122 @@
'use strict'; 'use strict';
const fs = require('fs');
// const { simpleExcelDown } = require('../../../../utils/xlsxDownload'); const xlsxDownload = require('../../../../utils/xlsxDownload.js');
const moment = require('moment');
async function dataExport (ctx) { async function dataExport (ctx) {
try { try {
// const models = ctx.fs.dc.models; const models = ctx.fs.dc.models;
// const { userId } = ctx.fs.api const { userId } = ctx.fs.api
// const { ids } = ctx.query; const { ids } = ctx.query;
// const fileList = [ const fileList = [
// { {
// n: '道路', n: '道路',
// tableName: 'road', tableName: 'road',
// defaultKey: ['level'], defaultKey: ['level'],
// defaultValue: ['村'], defaultValue: ['村'],
// }, },
// { {
// n: '道路', n: '道路',
// tableName: 'road', tableName: 'road',
// defaultKey: ['level'], defaultKey: ['level'],
// defaultValue: ['县'], defaultValue: ['县'],
// }, },
// { {
// n: '道路', n: '道路',
// tableName: 'road', tableName: 'road',
// defaultKey: ['level'], defaultKey: ['level'],
// defaultValue: ['乡'], defaultValue: ['乡'],
// }, },
// { {
// n: '桥梁', n: '桥梁',
// tableName: 'bridge' tableName: 'bridge'
// }, },
// { {
// n: '运政车辆', n: '运政车辆',
// tableName: 'municipal_vehicle', tableName: 'municipal_vehicle',
// defaultKey: ['type'], defaultKey: ['type'],
// defaultValue: ['出租车'], defaultValue: ['出租车'],
// }, },
// { {
// n: '运政车辆', n: '运政车辆',
// tableName: 'municipal_vehicle', tableName: 'municipal_vehicle',
// defaultKey: ['type'], defaultKey: ['type'],
// defaultValue: ['危货'], defaultValue: ['危货'],
// }, },
// { {
// n: '运政业户', n: '运政业户',
// tableName: 'municipal_business', tableName: 'municipal_business',
// defaultKey: ['type'], defaultKey: ['type'],
// defaultValue: ['出租车'], defaultValue: ['出租车'],
// }, },
// { {
// n: '运政业户', n: '运政业户',
// tableName: 'municipal_business', tableName: 'municipal_business',
// defaultKey: ['type'], defaultKey: ['type'],
// defaultValue: ['危货'], defaultValue: ['危货'],
// }, },
// { {
// n: '工程一览', n: '工程一览',
// tableName: 'project', tableName: 'project',
// defaultKey: ['done', 'type'], defaultKey: ['done', 'type'],
// defaultValue: [false, 'road'], defaultValue: [false, 'road'],
// }, },
// { {
// n: '工程一览', n: '工程一览',
// tableName: 'project', tableName: 'project',
// defaultKey: ['done', 'type'], defaultKey: ['done', 'type'],
// defaultValue: [false, 'bridge'], defaultValue: [false, 'bridge'],
// }, },
// { {
// n: '治超', n: '治超',
// tableName: 'overspeed', tableName: 'overspeed',
// }, },
// { {
// n: '公交线路', n: '公交线路',
// tableName: 'bus_line', tableName: 'bus_line',
// }, },
// { {
// n: '公交车辆', n: '公交车辆',
// tableName: 'bus_car', tableName: 'bus_car',
// }, },
// ] ]
// const exportData = await models.BusCar.destroy({ let findOption = {
// where: { where: {}
// id: { $in: ids.split(',') } }
// } if (ids) {
// }) findOption.where.id = { $in: ids.split(',') }
}
// const fileName = `摄像头信息列表_${moment().format('YYYYMMDDHHmmss')}` + '.csv' const exportData = await models.BusCar.findAll(findOption)
// const filePath = await simpleExcelDown({ data: exportData, header, fileName: fileName }) const tableAttributes = models.BusCar.tableAttributes
// const fileData = fs.readFileSync(filePath); let header = []
for (let k in tableAttributes) {
if (k != 'id') {
header.push({
title: tableAttributes[k].comment || '-',
key: k,
index: tableAttributes[k].index,
})
}
}
header.sort((a, b) => { return a.index - b.index })
const fileName = `摄像头信息列表_${moment().format('YYYYMMDDHHmmss')}` + '.csv'
const filePath = await xlsxDownload.simpleExcelDown({ data: exportData, header, fileName: fileName })
const fileData = fs.readFileSync(filePath);
// ctx.status = 200; ctx.status = 200;
// ctx.set('Content-Type', 'application/x-xls'); ctx.set('Content-Type', 'application/x-xls');
// ctx.set('Content-disposition', 'attachment; filename=' + encodeURI(fileName)); ctx.set('Content-disposition', 'attachment; filename=' + encodeURI(fileName));
// ctx.body = fileData; ctx.body = fileData;
} catch (error) { } catch (error) {
// ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
// ctx.status = 400; ctx.status = 400;
// ctx.body = { ctx.body = {
// message: typeof error == 'string' ? error : undefined message: typeof error == 'string' ? error : undefined
// } }
} }
} }

98
api/app/lib/models/bridge.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const Bridge = sequelize.define("bridge", { const Bridge = sequelize.define("bridge", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "bridge_id_uindex" unique: "bridge_id_uindex"
}, },
bridgeCode: { bridgeCode: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeName: { bridgeName: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
centralStation: { centralStation: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
crossingFigureType: { crossingFigureType: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
crossingFigureName: { crossingFigureName: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfCharges: { natureOfCharges: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
rampCode: { rampCode: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
sectionType: { sectionType: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
crossingFigureType1: { crossingFigureType1: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
crossingFigureName1: { crossingFigureName1: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
originalBridgeCode: { originalBridgeCode: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
whetherWideRoadAndNarrowBridge: { whetherWideRoadAndNarrowBridge: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
isItInTheDirectoryOfLongAndLongBridges: { isItInTheDirectoryOfLongAndLongBridges: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
whetherItIsACrossProvincialBridge: { whetherItIsACrossProvincialBridge: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
interworkingType: { interworkingType: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
interworkingForm: { interworkingForm: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
interworkingAndCrossoverMode: { interworkingAndCrossoverMode: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeClassification: { bridgeClassification: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -178,6 +197,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalLengthOfBridge: { totalLengthOfBridge: {
index: 20,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -187,6 +207,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalSpanLength: { totalSpanLength: {
index: 21,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -196,6 +217,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
mainSpanOfMainBridge: { mainSpanOfMainBridge: {
index: 22,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -205,6 +227,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfMainBridgeHoles: { numberOfMainBridgeHoles: {
index: 23,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -214,6 +237,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination: { spanCombination: {
index: 24,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -223,6 +247,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeProperties: { bridgeProperties: {
index: 25,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -232,6 +257,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
designLoadClass: { designLoadClass: {
index: 26,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -241,6 +267,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
superstructure: { superstructure: {
index: 27,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -250,6 +277,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
superstructureMaterials: { superstructureMaterials: {
index: 28,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -259,6 +287,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeDeckPavementType: { bridgeDeckPavementType: {
index: 29,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -268,6 +297,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeDeckWidth: { bridgeDeckWidth: {
index: 30,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -277,6 +307,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
clearWidthOfBridgeDeck: { clearWidthOfBridgeDeck: {
index: 31,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -286,6 +317,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
clearanceUnderBridge: { clearanceUnderBridge: {
index: 32,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -295,6 +327,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
seismicGrade: { seismicGrade: {
index: 33,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -304,6 +337,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
navigationClass: { navigationClass: {
index: 34,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -313,6 +347,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
abutmentType: { abutmentType: {
index: 35,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -322,6 +357,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
pierType: { pierType: {
index: 36,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -331,6 +367,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
typesOfPierAndAbutmentAntiCollisionFacilities: { typesOfPierAndAbutmentAntiCollisionFacilities: {
index: 37,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -340,6 +377,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
expansionJointType: { expansionJointType: {
index: 38,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -349,6 +387,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
supportType: { supportType: {
index: 39,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -358,6 +397,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
characteristicsOfCurvedSlope: { characteristicsOfCurvedSlope: {
index: 40,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -367,6 +407,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
bridgeHeight: { bridgeHeight: {
index: 41,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -376,6 +417,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
sidewalkWidth: { sidewalkWidth: {
index: 42,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -385,6 +427,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
constructionUnit: { constructionUnit: {
index: 43,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -394,6 +437,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
completionTime: { completionTime: {
index: 44,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -403,6 +447,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
openingDate: { openingDate: {
index: 45,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -412,6 +457,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
reconstructionTime: { reconstructionTime: {
index: 46,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -421,6 +467,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalCost: { totalCost: {
index: 47,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -430,6 +477,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfDesignUnit: { nameOfDesignUnit: {
index: 48,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -439,6 +487,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfConstructionUnit: { nameOfConstructionUnit: {
index: 49,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -448,6 +497,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfSupervisionUnit: { nameOfSupervisionUnit: {
index: 50,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -457,6 +507,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfConstruction: { natureOfConstruction: {
index: 51,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -466,6 +517,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
evaluationDate: { evaluationDate: {
index: 52,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -475,6 +527,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
technicalConditionEvaluation: { technicalConditionEvaluation: {
index: 53,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -484,6 +537,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
assessmentUnit: { assessmentUnit: {
index: 54,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -493,6 +547,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
locationOfMajorDiseases: { locationOfMajorDiseases: {
index: 55,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -502,6 +557,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
diseaseDescription: { diseaseDescription: {
index: 56,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -511,6 +567,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
takeControlMeasures: { takeControlMeasures: {
index: 57,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -520,6 +577,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfLastPeriodicInspection: { dateOfLastPeriodicInspection: {
index: 58,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -529,6 +587,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfManagementAndMaintenanceUnit: { natureOfManagementAndMaintenanceUnit: {
index: 59,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -538,6 +597,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
managementAndMaintenanceUnit: { managementAndMaintenanceUnit: {
index: 60,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -547,6 +607,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
supervisionUnit: { supervisionUnit: {
index: 61,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -556,6 +617,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
reconstructionConstructionUnit: { reconstructionConstructionUnit: {
index: 62,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -565,6 +627,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
whetherItIsASubsidyProjectOfTheMinistry: { whetherItIsASubsidyProjectOfTheMinistry: {
index: 63,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -574,6 +637,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
engineeringProperties: { engineeringProperties: {
index: 64,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -583,6 +647,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
reconstructionPart: { reconstructionPart: {
index: 65,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -592,6 +657,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
modificationCompletionDate: { modificationCompletionDate: {
index: 66,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -601,6 +667,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
year1: { year1: {
index: 67,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -610,6 +677,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination1: { spanCombination1: {
index: 68,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -619,6 +687,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
investment1: { investment1: {
index: 69,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -628,6 +697,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
year2: { year2: {
index: 70,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -637,6 +707,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination2: { spanCombination2: {
index: 71,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -646,6 +717,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
investment2: { investment2: {
index: 72,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -655,6 +727,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
year3: { year3: {
index: 73,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -664,6 +737,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination3: { spanCombination3: {
index: 74,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -673,6 +747,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
investment3: { investment3: {
index: 75,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -682,6 +757,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
year4: { year4: {
index: 76,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -691,6 +767,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination4: { spanCombination4: {
index: 77,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -700,6 +777,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
investment4: { investment4: {
index: 78,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -709,6 +787,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
year5: { year5: {
index: 79,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -718,6 +797,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
spanCombination5: { spanCombination5: {
index: 80,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -727,6 +807,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
investment5: { investment5: {
index: 81,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -736,6 +817,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
plannedFundCategory: { plannedFundCategory: {
index: 82,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -745,6 +827,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
plannedYear: { plannedYear: {
index: 83,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -754,6 +837,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
planDocumentNo: { planDocumentNo: {
index: 84,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -763,6 +847,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
planItemUniqueCode: { planItemUniqueCode: {
index: 85,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -772,6 +857,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
plannedProjectType: { plannedProjectType: {
index: 86,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -781,6 +867,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
planProjectName: { planProjectName: {
index: 87,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -790,6 +877,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
completionStatus: { completionStatus: {
index: 88,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -799,6 +887,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
yearOfCompletion: { yearOfCompletion: {
index: 89,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -808,6 +897,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
reasonForChange: { reasonForChange: {
index: 90,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -817,6 +907,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
changeTime: { changeTime: {
index: 91,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -826,6 +917,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
reportingUnit: { reportingUnit: {
index: 92,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -835,6 +927,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
remarks: { remarks: {
index: 93,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -844,6 +937,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
whetherOverpassBridge: { whetherOverpassBridge: {
index: 94,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -853,6 +947,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
offLineBridgeOrNot: { offLineBridgeOrNot: {
index: 95,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -862,6 +957,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
whetherDangerousBridgeReconstruction: { whetherDangerousBridgeReconstruction: {
index: 96,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -871,6 +967,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
districtcounty: { districtcounty: {
index: 97,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -880,6 +977,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
locationCity: { locationCity: {
index: 98,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,

53
api/app/lib/models/bus_car.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const BusCar = sequelize.define("busCar", { const BusCar = sequelize.define("busCar", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "bus_car_id_uindex" unique: "bus_car_id_uindex"
}, },
company: { company: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fleet: { fleet: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
line: { line: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleNumber: { vehicleNumber: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleLicensePlateNumber: { vehicleLicensePlateNumber: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
operationCategory: { operationCategory: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
serviceLife: { serviceLife: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
engineModel: { engineModel: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleModel: { vehicleModel: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleCategory: { vehicleCategory: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleStatus: { vehicleStatus: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfEntry: { dateOfEntry: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
purchaseDate: { purchaseDate: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
energyConsumptionType: { energyConsumptionType: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfStandardUnits: { numberOfStandardUnits: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
maintenanceUnit: { maintenanceUnit: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleType: { vehicleType: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
brandAndModel: { brandAndModel: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -178,6 +197,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
manufacturer: { manufacturer: {
index: 20,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -187,6 +207,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
drivingLicenseNo: { drivingLicenseNo: {
index: 21,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -196,6 +217,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
engineNumber: { engineNumber: {
index: 22,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -205,6 +227,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
mainEnergyConsumption: { mainEnergyConsumption: {
index: 23,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -214,6 +237,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
secondaryEnergyConsumption: { secondaryEnergyConsumption: {
index: 24,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -223,6 +247,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
emissionStandard: { emissionStandard: {
index: 25,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -232,6 +257,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
startDate: { startDate: {
index: 26,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -241,6 +267,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
lastTransferDate: { lastTransferDate: {
index: 27,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -250,6 +277,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
conductor: { conductor: {
index: 28,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -259,6 +287,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleWidth: { vehicleWidth: {
index: 29,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -268,6 +297,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
carHeight: { carHeight: {
index: 30,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -277,6 +307,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
approvedPassengerCapacity: { approvedPassengerCapacity: {
index: 31,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -286,6 +317,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleIdentificationNumber: { vehicleIdentificationNumber: {
index: 32,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -295,6 +327,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
gearboxBrand: { gearboxBrand: {
index: 33,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -304,6 +337,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
manualCarWashingFee: { manualCarWashingFee: {
index: 34,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -313,6 +347,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
laborCost: { laborCost: {
index: 35,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -322,6 +357,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
curbWeight: { curbWeight: {
index: 36,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -331,6 +367,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalMass: { totalMass: {
index: 37,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -340,6 +377,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
airConditioningTemperature: { airConditioningTemperature: {
index: 38,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -349,6 +387,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
airConditionedCarOrNot: { airConditionedCarOrNot: {
index: 39,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -358,6 +397,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
turnOnTheAirConditioningTemperature: { turnOnTheAirConditioningTemperature: {
index: 40,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -367,6 +407,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
power: { power: {
index: 41,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -376,6 +417,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
transmission: { transmission: {
index: 42,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -385,6 +427,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
seatingCapacity: { seatingCapacity: {
index: 43,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -394,6 +437,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
airConditioningBrand: { airConditioningBrand: {
index: 44,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -403,6 +447,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
seatType: { seatType: {
index: 45,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -412,6 +457,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
tireSpecifications: { tireSpecifications: {
index: 46,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -421,6 +467,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
roadTransportCertificateNo: { roadTransportCertificateNo: {
index: 47,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -430,6 +477,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
parkingPoint: { parkingPoint: {
index: 48,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -439,6 +487,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
carWashingType: { carWashingType: {
index: 49,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -448,6 +497,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
maintenanceFreeWheelEnd: { maintenanceFreeWheelEnd: {
index: 50,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -457,6 +507,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
firstGuaranteeDate: { firstGuaranteeDate: {
index: 51,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -466,6 +517,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfRenovation: { dateOfRenovation: {
index: 52,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -475,6 +527,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
motorVehicleOwner: { motorVehicleOwner: {
index: 53,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,

24
api/app/lib/models/bus_line.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const BusLine = sequelize.define("busLine", { const BusLine = sequelize.define("busLine", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "bus_line_id_uindex" unique: "bus_line_id_uindex"
}, },
company: { company: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fleet: { fleet: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
carCaptain: { carCaptain: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
assistantCarCaptain: { assistantCarCaptain: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
officeLocation: { officeLocation: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
lineName: { lineName: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
lineType: { lineType: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
lineDivision: { lineDivision: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
gpsNumber: { gpsNumber: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
startingPointEndPoint: { startingPointEndPoint: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfVehicles: { numberOfVehicles: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalKilometers: { totalKilometers: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
ticketPrice: { ticketPrice: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
openingTime: { openingTime: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
runningTime: { runningTime: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
openingTimeSummer: { openingTimeSummer: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
shiftClosingTimeSummer: { shiftClosingTimeSummer: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
openingTimeWinter: { openingTimeWinter: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -178,6 +197,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
shiftClosingTimeWinter: { shiftClosingTimeWinter: {
index: 20,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -187,6 +207,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
uplinkOfStationsAlongTheWay: { uplinkOfStationsAlongTheWay: {
index: 21,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -196,6 +217,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
downlinkOfStationsAlongTheWay: { downlinkOfStationsAlongTheWay: {
index: 22,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -205,6 +227,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
area: { area: {
index: 23,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -214,6 +237,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
remarks: { remarks: {
index: 24,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,

30
api/app/lib/models/municipal_business.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const MunicipalBusiness = sequelize.define("municipalBusiness", { const MunicipalBusiness = sequelize.define("municipalBusiness", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "municipal_business_id_uindex" unique: "municipal_business_id_uindex"
}, },
nameOfBusinessOwner: { nameOfBusinessOwner: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
productName: { productName: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
creditSocialCode: { creditSocialCode: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
administrativeDivision: { administrativeDivision: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
economicNature: { economicNature: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
address: { address: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
contactNumber: { contactNumber: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
email: { email: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
legalRepresentative: { legalRepresentative: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
typeOfLegalPersonCertificate: { typeOfLegalPersonCertificate: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfTransportation: { natureOfTransportation: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
legalPersonCertificateNumber: { legalPersonCertificateNumber: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
telephoneNumberOfLegalRepresentative: { telephoneNumberOfLegalRepresentative: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfThePersonInChargeOfTheBusiness: { nameOfThePersonInChargeOfTheBusiness: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
telephoneNumberOfThePersonInChargeOfTheBusiness: { telephoneNumberOfThePersonInChargeOfTheBusiness: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
handledBy: { handledBy: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
phoneNumberOfHandler: { phoneNumberOfHandler: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfBusiness: { natureOfBusiness: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -178,6 +197,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
businessStatus: { businessStatus: {
index: 20,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -187,6 +207,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
businessLicenseNo: { businessLicenseNo: {
index: 21,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -196,6 +217,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fromTheExpiryDate: { fromTheExpiryDate: {
index: 22,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -205,6 +227,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
expiryDate: { expiryDate: {
index: 23,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -214,6 +237,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
issuingAuthority: { issuingAuthority: {
index: 24,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -223,6 +247,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfIssuance: { dateOfIssuance: {
index: 25,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -232,6 +257,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
licenseCategory: { licenseCategory: {
index: 26,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -241,6 +267,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
licenseIssuanceType: { licenseIssuanceType: {
index: 27,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -250,6 +277,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfSharedVehicles: { numberOfSharedVehicles: {
index: 28,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -259,6 +287,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
creationDate: { creationDate: {
index: 29,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -268,6 +297,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
type: { type: {
index: 30,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,

41
api/app/lib/models/municipal_vehicle.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const MunicipalVehicle = sequelize.define("municipalVehicle", { const MunicipalVehicle = sequelize.define("municipalVehicle", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "municipal_vehicle_id_uindex" unique: "municipal_vehicle_id_uindex"
}, },
nameOfBusinessOwner: { nameOfBusinessOwner: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
productName: { productName: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleRegistry: { vehicleRegistry: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
licensePlateNumber: { licensePlateNumber: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fuelType: { fuelType: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
address: { address: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
economicNature: { economicNature: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
approvedPassengerCapacity: { approvedPassengerCapacity: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
approvedLoadMass: { approvedLoadMass: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfVehicleAxles: { numberOfVehicleAxles: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleBrand: { vehicleBrand: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
natureOfBusiness: { natureOfBusiness: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleOperationStatus: { vehicleOperationStatus: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
busTypeAndClass: { busTypeAndClass: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
annualReviewResults: { annualReviewResults: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfThisAnnualReview: { dateOfThisAnnualReview: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfNextAnnualReview: { dateOfNextAnnualReview: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
dateOfRegistration: { dateOfRegistration: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -178,6 +197,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
sourceOfTransportationCapacity: { sourceOfTransportationCapacity: {
index: 20,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -187,6 +207,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fromTheExpiryDate: { fromTheExpiryDate: {
index: 21,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -196,6 +217,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
expiryDate: { expiryDate: {
index: 22,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -205,6 +227,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
engineDisplacement: { engineDisplacement: {
index: 23,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -214,6 +237,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
engineNumber: { engineNumber: {
index: 24,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -223,6 +247,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleEnginePower: { vehicleEnginePower: {
index: 25,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -232,6 +257,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
businessLicenseNo: { businessLicenseNo: {
index: 26,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -241,6 +267,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
licensePlateColor: { licensePlateColor: {
index: 27,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -250,6 +277,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalVehicleMass: { totalVehicleMass: {
index: 28,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -259,6 +287,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
totalQuasiTractionMassOfVehicle: { totalQuasiTractionMassOfVehicle: {
index: 29,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -268,6 +297,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
roadTransportCertificateNo: { roadTransportCertificateNo: {
index: 30,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -277,6 +307,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleHeight: { vehicleHeight: {
index: 31,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -286,6 +317,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleConductor: { vehicleConductor: {
index: 32,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -295,6 +327,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleWidth: { vehicleWidth: {
index: 33,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -304,6 +337,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleType: { vehicleType: {
index: 34,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -313,6 +347,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleTypeWithDrivingLicense: { vehicleTypeWithDrivingLicense: {
index: 35,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -322,6 +357,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleWheelbase: { vehicleWheelbase: {
index: 36,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -331,6 +367,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
ratingDate: { ratingDate: {
index: 37,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -340,6 +377,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
technicalEvaluationGrade: { technicalEvaluationGrade: {
index: 38,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -349,6 +387,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nextRatingDate: { nextRatingDate: {
index: 39,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -358,6 +397,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
creationDate: { creationDate: {
index: 40,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -367,6 +407,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
type: { type: {
index: 41,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,

19
api/app/lib/models/overspeed.js

@ -6,6 +6,7 @@ module.exports = dc => {
const sequelize = dc.orm; const sequelize = dc.orm;
const Overspeed = sequelize.define("overspeed", { const Overspeed = sequelize.define("overspeed", {
id: { id: {
index: 1,
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
@ -16,6 +17,7 @@ module.exports = dc => {
unique: "overspeed_id_uindex" unique: "overspeed_id_uindex"
}, },
districtcounty: { districtcounty: {
index: 2,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -25,6 +27,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfInspectionPoint: { nameOfInspectionPoint: {
index: 3,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -34,6 +37,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
licensePlate: { licensePlate: {
index: 4,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -43,6 +47,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
numberOfAxles: { numberOfAxles: {
index: 5,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -52,6 +57,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
overrunRate: { overrunRate: {
index: 6,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -61,6 +67,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
overrunWeight: { overrunWeight: {
index: 7,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -70,6 +77,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
grossVehicleWeight: { grossVehicleWeight: {
index: 8,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -79,6 +87,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
vehicleCargoWeightLimit: { vehicleCargoWeightLimit: {
index: 9,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -88,6 +97,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
testTime: { testTime: {
index: 10,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -97,6 +107,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
nameOfBusinessOwner: { nameOfBusinessOwner: {
index: 11,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -106,6 +117,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
businessAddress: { businessAddress: {
index: 12,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -115,6 +127,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
notifier: { notifier: {
index: 13,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -124,6 +137,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
notificationMethod: { notificationMethod: {
index: 14,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -133,6 +147,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
notificationResults: { notificationResults: {
index: 15,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -142,6 +157,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
processingTime: { processingTime: {
index: 16,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -151,6 +167,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
deductPoints: { deductPoints: {
index: 17,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -160,6 +177,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
fine: { fine: {
index: 18,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
@ -169,6 +187,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
remarks: { remarks: {
index: 19,
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,

6
api/app/lib/routes/data/index.js

@ -7,13 +7,13 @@ const project = require('../../controllers/data/project');
const overspeed = require('../../controllers/data/overspeed'); const overspeed = require('../../controllers/data/overspeed');
const bus = require('../../controllers/data/bus'); const bus = require('../../controllers/data/bus');
const publicity = require('../../controllers/data/publicity'); const publicity = require('../../controllers/data/publicity');
const data = require('../../controllers/data'); const dataIndex = require('../../controllers/data/index');
module.exports = function (app, router, opts) { module.exports = function (app, router, opts) {
// 数据导出 // 数据导出
// app.fs.api.logAttr['GET/data/export'] = { content: '导出数据', visible: true }; app.fs.api.logAttr['GET/data/export'] = { content: '导出数据', visible: true };
// router.get('/data/export', data.dataExport); router.get('/data/export', dataIndex.dataExport);
// 运政 // 运政
//客运车 //客运车

645
api/log/development.log

@ -9354,3 +9354,648 @@
2022-07-27 13:41:39.301 - debug: [FS-LOGGER] Init. 2022-07-27 13:41:39.301 - debug: [FS-LOGGER] Init.
2022-07-27 13:41:39.426 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-07-27 13:41:39.426 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:41:39.426 - info: [FS-AUTH] Inject auth and api mv into router. 2022-07-27 13:41:39.426 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:55:17.708 - debug: [FS-LOGGER] Init.
2022-07-27 13:55:17.844 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:55:17.845 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:57:58.186 - debug: [FS-LOGGER] Init.
2022-07-27 13:57:58.316 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:57:58.316 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:57:58.416 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:29)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 13:58:18.771 - debug: [FS-LOGGER] Init.
2022-07-27 13:58:18.904 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:58:18.905 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:58:19.015 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:29)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 13:58:35.745 - debug: [FS-LOGGER] Init.
2022-07-27 13:58:35.875 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:58:35.875 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:58:35.975 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:29)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 13:58:51.419 - debug: [FS-LOGGER] Init.
2022-07-27 13:58:51.544 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:58:51.545 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:59:30.681 - debug: [FS-LOGGER] Init.
2022-07-27 13:59:30.808 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:59:30.809 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 13:59:30.911 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:29)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 13:59:46.066 - debug: [FS-LOGGER] Init.
2022-07-27 13:59:46.189 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 13:59:46.189 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:00:44.183 - debug: [FS-LOGGER] Init.
2022-07-27 14:00:44.311 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:00:44.311 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:00:44.419 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:29)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:00:58.080 - debug: [FS-LOGGER] Init.
2022-07-27 14:00:58.209 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:00:58.209 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:01:56.663 - debug: [FS-LOGGER] Init.
2022-07-27 14:01:56.789 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:01:56.790 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:01:56.895 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:22)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:02:21.369 - debug: [FS-LOGGER] Init.
2022-07-27 14:02:21.495 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:02:21.495 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:03:33.768 - debug: [FS-LOGGER] Init.
2022-07-27 14:03:33.897 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:03:33.898 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:03:34.002 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:22)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:04:12.945 - debug: [FS-LOGGER] Init.
2022-07-27 14:04:13.091 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:04:13.091 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:06:11.749 - debug: [FS-LOGGER] Init.
2022-07-27 14:06:11.877 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:06:11.878 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:06:11.983 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:22)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:06:30.287 - debug: [FS-LOGGER] Init.
2022-07-27 14:06:30.417 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:06:30.417 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:07:42.820 - debug: [FS-LOGGER] Init.
2022-07-27 14:07:42.947 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:07:42.948 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:07:43.050 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:22)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:08:03.772 - debug: [FS-LOGGER] Init.
2022-07-27 14:08:03.905 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:08:03.905 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:10:17.266 - debug: [FS-LOGGER] Init.
2022-07-27 14:10:17.408 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:10:17.409 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:10:17.527 - error: [app]
{
message: "Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js',
stack: "Error: Cannot find module 'better-xlsx'\n" +
'Require stack:\n' +
'- c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\app\\index.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\config.js\n' +
'- c:\\_WorkCode\\四好公路\\api\\server.js\n' +
' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:667:27)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js:3:14)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js:3:22)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)\n' +
' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' +
' at Module.require (internal/modules/cjs/loader.js:887:19)\n' +
' at require (internal/modules/cjs/helpers.js:74:18)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' +
' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' +
' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' +
' at Module.load (internal/modules/cjs/loader.js:863:32)',
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\_WorkCode\\四好公路\\api\\utils\\xlsxDownload.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\lib\\index.js',
'c:\\_WorkCode\\四好公路\\api\\app\\index.js',
'c:\\_WorkCode\\四好公路\\api\\config.js',
'c:\\_WorkCode\\四好公路\\api\\server.js'
]
}
2022-07-27 14:10:37.875 - debug: [FS-LOGGER] Init.
2022-07-27 14:10:38.002 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:10:38.003 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:12:23.299 - debug: [FS-LOGGER] Init.
2022-07-27 14:12:23.430 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:12:23.430 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:14:27.299 - debug: [FS-LOGGER] Init.
2022-07-27 14:14:27.428 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:14:27.428 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:14:57.566 - debug: [FS-LOGGER] Init.
2022-07-27 14:14:57.693 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:14:57.693 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:16:29.316 - debug: [FS-LOGGER] Init.
2022-07-27 14:16:29.444 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:16:29.444 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:16:45.000 - error: path: /data/export, error: ReferenceError: moment is not defined
2022-07-27 14:16:57.856 - debug: [FS-LOGGER] Init.
2022-07-27 14:16:57.994 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:16:57.994 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:18:39.984 - debug: [FS-LOGGER] Init.
2022-07-27 14:18:40.112 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:18:40.112 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:18:50.588 - error: path: /data/export, error: ReferenceError: header is not defined
2022-07-27 14:20:01.935 - error: path: /data/export, error: ReferenceError: header is not defined
2022-07-27 14:37:49.813 - debug: [FS-LOGGER] Init.
2022-07-27 14:37:49.964 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:37:49.964 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:42:45.417 - debug: [FS-LOGGER] Init.
2022-07-27 14:42:45.566 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-27 14:42:45.566 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-27 14:42:48.376 - error: path: /data/export, error: ReferenceError: fs is not defined

7
api/package.json

@ -17,6 +17,7 @@
"archiver": "3.0.0", "archiver": "3.0.0",
"args": "^3.0.7", "args": "^3.0.7",
"async-busboy": "^0.7.0", "async-busboy": "^0.7.0",
"better-xlsx": "^0.7.6",
"crypto-js": "^4.0.0", "crypto-js": "^4.0.0",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"fs-web-server-scaffold": "^2.0.2", "fs-web-server-scaffold": "^2.0.2",
@ -24,6 +25,7 @@
"kafka-node": "^2.2.3", "kafka-node": "^2.2.3",
"koa-convert": "^1.2.0", "koa-convert": "^1.2.0",
"koa-proxy": "^0.9.0", "koa-proxy": "^0.9.0",
"koa2-swagger-ui": "^5.3.0",
"md5-node": "^1.0.1", "md5-node": "^1.0.1",
"moment": "^2.24.0", "moment": "^2.24.0",
"path": "^0.12.7", "path": "^0.12.7",
@ -33,10 +35,9 @@
"request": "^2.88.2", "request": "^2.88.2",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"superagent": "^3.5.2", "superagent": "^3.5.2",
"swagger-jsdoc": "^6.1.0",
"uuid": "^3.3.2", "uuid": "^3.3.2",
"xlsx": "^0.16.9", "xlsx": "^0.16.9"
"koa2-swagger-ui": "^5.3.0",
"swagger-jsdoc": "^6.1.0"
}, },
"devDependencies": { "devDependencies": {
"mocha": "^6.0.2" "mocha": "^6.0.2"

4
api/utils/xlsxDownload.js

@ -71,7 +71,7 @@ async function simpleExcelDown ({ data = [], header = [], fileName = moment().fo
}) })
return savePath return savePath
} }
module.exports = { module.exports = {
simpleExcelDown, simpleExcelDown
makeDir
} }

60
api/yarn.lock

@ -55,6 +55,13 @@
chalk "^2.0.0" chalk "^2.0.0"
js-tokens "^4.0.0" js-tokens "^4.0.0"
"@babel/runtime@^7.8.4":
version "7.18.9"
resolved "http://10.8.30.22:7000/@babel%2fruntime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a"
integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==
dependencies:
regenerator-runtime "^0.13.4"
"@fs/attachment@^1.0.0": "@fs/attachment@^1.0.0":
version "1.0.2" version "1.0.2"
resolved "http://10.8.30.22:7000/@fs%2fattachment/-/attachment-1.0.2.tgz#5ea035b79defb08f86119cb873912747a6a1570d" resolved "http://10.8.30.22:7000/@fs%2fattachment/-/attachment-1.0.2.tgz#5ea035b79defb08f86119cb873912747a6a1570d"
@ -528,6 +535,15 @@ better-assert@~1.0.0:
dependencies: dependencies:
callsite "1.0.0" callsite "1.0.0"
better-xlsx@^0.7.6:
version "0.7.6"
resolved "http://10.8.30.22:7000/better-xlsx/-/better-xlsx-0.7.6.tgz#dc9bdbc303ecdb74823f9582c608d9f6879f4b51"
integrity sha1-3JvbwwPs23SCP5WCxgjZ9oefS1E=
dependencies:
"@babel/runtime" "^7.8.4"
jszip "^3.2.2"
kind-of "^6.0.3"
binary@~0.3.0: binary@~0.3.0:
version "0.3.0" version "0.3.0"
resolved "http://10.8.30.22:7000/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79" resolved "http://10.8.30.22:7000/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79"
@ -1928,6 +1944,11 @@ ieee754@^1.1.13:
resolved "http://10.8.30.22:7000/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" resolved "http://10.8.30.22:7000/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I=
immediate@~3.0.5:
version "3.0.6"
resolved "http://10.8.30.22:7000/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=
indexof@0.0.1: indexof@0.0.1:
version "0.0.1" version "0.0.1"
resolved "http://10.8.30.22:7000/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" resolved "http://10.8.30.22:7000/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"
@ -2241,6 +2262,16 @@ jsprim@^1.2.2:
json-schema "0.4.0" json-schema "0.4.0"
verror "1.10.0" verror "1.10.0"
jszip@^3.2.2:
version "3.10.0"
resolved "http://10.8.30.22:7000/jszip/-/jszip-3.10.0.tgz#faf3db2b4b8515425e34effcdbb086750a346061"
integrity sha512-LDfVtOLtOxb9RXkYOwPyNBTQDL4eUbqahtoY6x07GiDJHwSYvn8sHHIw8wINImV3MqbMNve2gSuM1DDqEKk09Q==
dependencies:
lie "~3.3.0"
pako "~1.0.2"
readable-stream "~2.3.6"
setimmediate "^1.0.5"
kafka-node@^2.2.3: kafka-node@^2.2.3:
version "2.6.1" version "2.6.1"
resolved "http://10.8.30.22:7000/kafka-node/-/kafka-node-2.6.1.tgz#e8aee3b642105574fabaa718dc4e90d24767a64d" resolved "http://10.8.30.22:7000/kafka-node/-/kafka-node-2.6.1.tgz#e8aee3b642105574fabaa718dc4e90d24767a64d"
@ -2269,6 +2300,11 @@ keygrip@~1.1.0:
dependencies: dependencies:
tsscmp "1.0.6" tsscmp "1.0.6"
kind-of@^6.0.3:
version "6.0.3"
resolved "http://10.8.30.22:7000/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
integrity sha1-B8BQNKbDSfoG4k+jWqdttFgM5N0=
klaw@^1.0.0: klaw@^1.0.0:
version "1.3.1" version "1.3.1"
resolved "http://10.8.30.22:7000/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" resolved "http://10.8.30.22:7000/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
@ -2440,6 +2476,13 @@ levn@~0.3.0:
prelude-ls "~1.1.2" prelude-ls "~1.1.2"
type-check "~0.3.2" type-check "~0.3.2"
lie@~3.3.0:
version "3.3.0"
resolved "http://10.8.30.22:7000/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a"
integrity sha1-3Pgt7lRfRgdNryAMfBxaCOD0D2o=
dependencies:
immediate "~3.0.5"
lines-and-columns@^1.1.6: lines-and-columns@^1.1.6:
version "1.2.4" version "1.2.4"
resolved "http://10.8.30.22:7000/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" resolved "http://10.8.30.22:7000/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
@ -2975,6 +3018,11 @@ packet-reader@1.0.0:
resolved "http://10.8.30.22:7000/packet-reader/-/packet-reader-1.0.0.tgz#9238e5480dedabacfe1fe3f2771063f164157d74" resolved "http://10.8.30.22:7000/packet-reader/-/packet-reader-1.0.0.tgz#9238e5480dedabacfe1fe3f2771063f164157d74"
integrity sha1-kjjlSA3tq6z+H+PydxBj8WQVfXQ= integrity sha1-kjjlSA3tq6z+H+PydxBj8WQVfXQ=
pako@~1.0.2:
version "1.0.11"
resolved "http://10.8.30.22:7000/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
integrity sha1-bJWZ00DVTf05RjgCUqNXBaa5kr8=
parse-json@^5.0.0: parse-json@^5.0.0:
version "5.2.0" version "5.2.0"
resolved "http://10.8.30.22:7000/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" resolved "http://10.8.30.22:7000/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
@ -3346,7 +3394,7 @@ readable-stream@1.1.x:
isarray "0.0.1" isarray "0.0.1"
string_decoder "~0.10.x" string_decoder "~0.10.x"
readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.3.0, readable-stream@^2.3.5, readable-stream@^2.3.6: readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.3.0, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6:
version "2.3.7" version "2.3.7"
resolved "http://10.8.30.22:7000/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" resolved "http://10.8.30.22:7000/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
integrity sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c= integrity sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=
@ -3395,6 +3443,11 @@ redis@^3.1.2:
redis-errors "^1.2.0" redis-errors "^1.2.0"
redis-parser "^3.0.0" redis-parser "^3.0.0"
regenerator-runtime@^0.13.4:
version "0.13.9"
resolved "http://10.8.30.22:7000/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
integrity sha1-iSV0Kpj/2QgUmI11Zq0wyjsmO1I=
regexp.prototype.flags@^1.4.3: regexp.prototype.flags@^1.4.3:
version "1.4.3" version "1.4.3"
resolved "http://10.8.30.22:7000/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" resolved "http://10.8.30.22:7000/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac"
@ -3549,6 +3602,11 @@ set-blocking@^2.0.0, set-blocking@~2.0.0:
resolved "http://10.8.30.22:7000/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" resolved "http://10.8.30.22:7000/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
setimmediate@^1.0.5:
version "1.0.5"
resolved "http://10.8.30.22:7000/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=
setprototypeof@1.1.0: setprototypeof@1.1.0:
version "1.1.0" version "1.1.0"
resolved "http://10.8.30.22:7000/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" resolved "http://10.8.30.22:7000/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656"

Loading…
Cancel
Save