diff --git a/api/app/lib/controllers/data/index.js b/api/app/lib/controllers/data/index.js index 0a14e7a7..1b779c26 100644 --- a/api/app/lib/controllers/data/index.js +++ b/api/app/lib/controllers/data/index.js @@ -1,6 +1,6 @@ 'use strict'; -const { simpleExcelDown } = require('../../../../utils/xlsxDownload'); +// const { simpleExcelDown } = require('../../../../utils/xlsxDownload'); async function dataExport (ctx) { try { @@ -8,13 +8,86 @@ async function dataExport (ctx) { // const { userId } = ctx.fs.api // const { ids } = ctx.query; + // const fileList = [ + // { + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['村'], + // }, + // { + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['县'], + // }, + // { + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['乡'], + // }, + // { + // n: '桥梁', + // tableName: 'bridge' + // }, + // { + // n: '运政车辆', + // tableName: 'municipal_vehicle', + // defaultKey: ['type'], + // defaultValue: ['出租车'], + // }, + // { + // n: '运政车辆', + // tableName: 'municipal_vehicle', + // defaultKey: ['type'], + // defaultValue: ['危货'], + // }, + // { + // n: '运政业户', + // tableName: 'municipal_business', + // defaultKey: ['type'], + // defaultValue: ['出租车'], + // }, + // { + // n: '运政业户', + // tableName: 'municipal_business', + // defaultKey: ['type'], + // defaultValue: ['危货'], + // }, + // { + // n: '工程一览', + // tableName: 'project', + // defaultKey: ['done', 'type'], + // defaultValue: [false, 'road'], + // }, + // { + // n: '工程一览', + // tableName: 'project', + // defaultKey: ['done', 'type'], + // defaultValue: [false, 'bridge'], + // }, + // { + // n: '治超', + // tableName: 'overspeed', + // }, + // { + // n: '公交线路', + // tableName: 'bus_line', + // }, + // { + // n: '公交车辆', + // tableName: 'bus_car', + // }, + // ] + // const exportData = await models.BusCar.destroy({ // where: { // id: { $in: ids.split(',') } // } // }) - // const fileName = `摄像头信息列表_${userId}_${moment().format('YYYYMMDDHHmmss')}` + '.csv' + // const fileName = `摄像头信息列表_${moment().format('YYYYMMDDHHmmss')}` + '.csv' // const filePath = await simpleExcelDown({ data: exportData, header, fileName: fileName }) // const fileData = fs.readFileSync(filePath); @@ -23,11 +96,11 @@ async function dataExport (ctx) { // ctx.set('Content-disposition', 'attachment; filename=' + encodeURI(fileName)); // ctx.body = fileData; } catch (error) { - ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); - ctx.status = 400; - ctx.body = { - message: typeof error == 'string' ? error : undefined - } + // ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); + // ctx.status = 400; + // ctx.body = { + // message: typeof error == 'string' ? error : undefined + // } } } diff --git a/api/app/lib/controllers/data/road.js b/api/app/lib/controllers/data/road.js index e457d1ff..71ece58e 100644 --- a/api/app/lib/controllers/data/road.js +++ b/api/app/lib/controllers/data/road.js @@ -48,9 +48,8 @@ async function get (ctx) { if (road || sectionStart || sectionEnd) { findOption.where['$or'] = {} if (road) { - findOption.where['$or'].push = { - routeName: { $like: `%${road}%` } - } + findOption.where['$or']. + routeName = { $like: `%${road}%` } } if (sectionStart) { findOption.where['$or']. diff --git a/api/app/lib/controllers/organization/department.js b/api/app/lib/controllers/organization/department.js index 640a80b7..9f85b83d 100644 --- a/api/app/lib/controllers/organization/department.js +++ b/api/app/lib/controllers/organization/department.js @@ -59,14 +59,20 @@ async function editDep (ctx) { }, }) if (!dep) { - ctx.status = 400; - ctx.body = { - "message": "上级部门不存在" - } - return + throw "上级部门不存在" } } if (depId) { + const repeatNameCount = await models.Department.count({ + where: { + dependence: dependence || null, + name: name, + id: { $ne: depId }, + } + }) + if (repeatNameCount) { + throw "部门名称重复" + } await models.Department.update({ name: name, dependence: dependence || null, @@ -76,6 +82,15 @@ async function editDep (ctx) { } }) } else { + const repeatNameCount = await models.Department.count({ + where: { + dependence: dependence || null, + name: name, + } + }) + if (repeatNameCount) { + throw '部门名称重复' + } await models.Department.create({ name: name, delete: false, @@ -86,7 +101,9 @@ async function editDep (ctx) { } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.status = 400; - ctx.body = {} + ctx.body = { + message: typeof error == 'string' ? error : undefined + } } } diff --git a/api/app/lib/controllers/overview/management.js b/api/app/lib/controllers/overview/management.js index 3d5098b1..fdece6e6 100644 --- a/api/app/lib/controllers/overview/management.js +++ b/api/app/lib/controllers/overview/management.js @@ -10,6 +10,11 @@ async function overSpeedList (ctx) { attributes: ['id', 'licensePlate', 'overrunRate', 'deductPoints', 'fine', 'processingTime', 'testTime'], order: [['testTime', 'DESC']], limit: limit || 120, + where: { + processingTime: { $ne: null }, + testTime: { $ne: null }, + }, + order: [['testTime', 'DESC']], }) const overSpeedProcessedCount = await models.Overspeed.count({ diff --git a/api/app/lib/controllers/overview/operation.js b/api/app/lib/controllers/overview/operation.js index 4d6e84b8..975760d3 100644 --- a/api/app/lib/controllers/overview/operation.js +++ b/api/app/lib/controllers/overview/operation.js @@ -7,10 +7,10 @@ async function busCarLevelList (ctx) { let data = [] const busCarRes = await models.BusCar.findAll({ - attributes: ['id', 'company', 'fleet', 'vehicleLicensePlateNumber'], + attributes: ['id', 'company', 'fleet', 'vehicleLicensePlateNumber', 'line'], }) for (let c of busCarRes) { - const { company, fleet } = c + const { company, fleet, line } = c const corCompany = data.find(d => d.name === company) if (!corCompany) { data.push({ diff --git a/api/app/lib/routes/data/index.js b/api/app/lib/routes/data/index.js index 7b761592..18dd37c5 100644 --- a/api/app/lib/routes/data/index.js +++ b/api/app/lib/routes/data/index.js @@ -12,8 +12,8 @@ const data = require('../../controllers/data'); module.exports = function (app, router, opts) { // 数据导出 - app.fs.api.logAttr['GET/data/export'] = { content: '导出数据', visible: true }; - router.get('/data/export', data.dataExport); + // app.fs.api.logAttr['GET/data/export'] = { content: '导出数据', visible: true }; + // router.get('/data/export', data.dataExport); // 运政 //客运车 diff --git a/api/log/development.log b/api/log/development.log index e84a8c6b..ebee9c65 100644 --- a/api/log/development.log +++ b/api/log/development.log @@ -8602,3 +8602,755 @@ 2022-07-26 17:14:08.171 - debug: [FS-LOGGER] Init. 2022-07-26 17:14:08.304 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-07-26 17:14:08.305 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:03:30.770 - debug: [FS-LOGGER] Init. +2022-07-27 11:03:30.964 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:03:30.964 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:03:31.045 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:06:03.813 - debug: [FS-LOGGER] Init. +2022-07-27 11:06:03.950 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:06:03.950 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:06:04.044 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:07:30.786 - debug: [FS-LOGGER] Init. +2022-07-27 11:07:30.928 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:07:30.928 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:07:31.069 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:08:10.903 - debug: [FS-LOGGER] Init. +2022-07-27 11:08:11.039 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:08:11.039 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:08:11.137 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:15:06.439 - debug: [FS-LOGGER] Init. +2022-07-27 11:15:06.592 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:15:06.593 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:15:06.702 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:15:24.296 - debug: [FS-LOGGER] Init. +2022-07-27 11:15:24.430 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:15:24.430 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:15:24.525 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:15:55.135 - debug: [FS-LOGGER] Init. +2022-07-27 11:15:55.272 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:15:55.272 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:15:55.363 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:18:01.476 - debug: [FS-LOGGER] Init. +2022-07-27 11:18:01.620 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:18:01.620 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:18:01.717 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:22:16.529 - debug: [FS-LOGGER] Init. +2022-07-27 11:22:16.685 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:22:16.686 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:22:16.790 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:22:32.744 - debug: [FS-LOGGER] Init. +2022-07-27 11:22:32.882 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:22:32.882 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:22:32.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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:22:48.461 - debug: [FS-LOGGER] Init. +2022-07-27 11:22:48.595 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:22:48.595 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:22:48.694 - 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. (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. (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. (c:\\_WorkCode\\四好公路\\api\\app\\lib\\routes\\data\\index.js:10: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)', + 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 11:23:33.711 - debug: [FS-LOGGER] Init. +2022-07-27 11:23:33.856 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:23:33.857 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:24:50.408 - debug: [FS-LOGGER] Init. +2022-07-27 11:24:50.546 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:24:50.547 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:25:15.593 - debug: [FS-LOGGER] Init. +2022-07-27 11:25:15.729 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:25:15.729 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:25:32.631 - debug: [FS-LOGGER] Init. +2022-07-27 11:25:32.762 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:25:32.762 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:25:43.695 - debug: [FS-LOGGER] Init. +2022-07-27 11:25:43.838 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:25:43.838 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:27:28.054 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.736 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.909 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.915 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.915 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.918 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:27:28.921 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:07.124 - error: path: /road, error: Error: Invalid value { route_name: { [Symbol(like)]: '%不能%' } } +2022-07-27 11:29:11.157 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.325 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.325 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.340 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.340 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.340 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:29:12.351 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:30:21.764 - error: path: /road, error: Error: Invalid value { route_name: { [Symbol(like)]: '%123%' } } +2022-07-27 11:30:34.723 - error: path: /road, error: Error: Invalid value { route_name: { [Symbol(like)]: '%123%' } } +2022-07-27 11:32:15.295 - error: path: /road, error: Error: Invalid value { route_name: { [Symbol(like)]: '%123%' } } +2022-07-27 11:33:21.340 - debug: [FS-LOGGER] Init. +2022-07-27 11:33:21.478 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:33:21.479 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:33:42.032 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:42.955 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:42.958 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:43.128 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:43.131 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:43.137 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:33:43.137 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:41:18.403 - debug: [FS-LOGGER] Init. +2022-07-27 11:41:18.538 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 11:41:18.538 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-27 11:42:01.496 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:02.413 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:03.254 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:03.261 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:03.261 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:03.265 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:42:03.662 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:18.264 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:18.311 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:21.085 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:21.102 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:21.115 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:21.115 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:21.135 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:23.449 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:51.489 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:54.899 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:54.899 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:54.909 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:54.909 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:54.909 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 11:44:55.780 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:33:56.170 - error: [FS-ERRHD] +{ + message: 'Unexpected token } in JSON at position 144', + stack: 'SyntaxError: Unexpected token } in JSON at position 144\n' + + ' at JSON.parse ()\n' + + ' at parse (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-bodyparser\\node_modules\\co-body\\lib\\json.js:62:17)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-bodyparser\\node_modules\\co-body\\lib\\json.js:45:22\n' + + ' at runMicrotasks ()\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)', + status: 400, + body: '{\r\n' + + ' "name": "价化指农决团",\r\n' + + ' "video": [\r\n' + + ' "70",\r\n' + + ' "1",\r\n' + + ' "12",\r\n' + + ' "6",\r\n' + + ' "26"\r\n' + + ' ],\r\n' + + ' "enable": false,\r\n' + + '}' +} +2022-07-27 13:37:34.816 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:51.150 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:51.151 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:52.518 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:52.519 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:52.519 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:37:52.519 - error: path: /publicity, error: SequelizeValidationError: notNull Violation: publicity.name cannot be null +2022-07-27 13:40:55.569 - debug: [FS-LOGGER] Init. +2022-07-27 13:40:55.726 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-27 13:40:55.726 - info: [FS-AUTH] Inject auth and api mv into router. +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-AUTH] Inject auth and api mv into router. diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/治超/非现场处罚总台账更新至2022.7.5(最新).xlsx b/scripts/0.0.1/data/工具脚本(无需执行)/data/治超/非现场处罚总台账更新至2022.7.5(最新).xlsx index c2cc10cf..3c0fe04b 100644 Binary files a/scripts/0.0.1/data/工具脚本(无需执行)/data/治超/非现场处罚总台账更新至2022.7.5(最新).xlsx and b/scripts/0.0.1/data/工具脚本(无需执行)/data/治超/非现场处罚总台账更新至2022.7.5(最新).xlsx differ