Commit 13f67369 by chenjinjing

no message

parent c8ee483b
<config> <config>
<port>40003</port> <port>40003</port>
<db> <db>
<url>http://192.168.0.105:40002</url> <url>http://127.0.0.1:40002</url>
<sign>xxx90909082fsdahfjosadjfpoiwausjorip2hjklrhn1ioud0u124rx0qwejfokasjfolksaujfoas</sign> <sign>xxx90909082fsdahfjosadjfpoiwausjorip2hjklrhn1ioud0u124rx0qwejfokasjfolksaujfoas</sign>
</db> </db>
<imgUrl>http://123.207.147.179:40003/</imgUrl> <imgUrl>http://123.207.147.179:40003/</imgUrl>
......
import { initConfig, systemConfig} from "./config/systemConfig"; import { initConfig, systemConfig} from "./config/systemConfig";
import { httpServer } from "./net/http_server"; import { httpServer } from "./net/http_server";
import { initBasicData } from "./tools/dataInit";
import { md5PwdStr } from "./tools/system"; import { md5PwdStr } from "./tools/system";
async function lanuch() { async function lanuch() {
/**初始化配置解析 */ /**初始化配置解析 */
await initConfig(); await initConfig();
/**初始化底表数据 */ /**初始化底表数据 */
// await initBasicData(); await initBasicData();
/**创建http服务 */ /**创建http服务 */
httpServer.createServer(systemConfig.port); httpServer.createServer(systemConfig.port);
console.log('This indicates that the server is started successfully.'); console.log('This indicates that the server is started successfully.');
......
...@@ -8,15 +8,15 @@ import * as clientConfigEnum from "../config/clientEnum"; ...@@ -8,15 +8,15 @@ import * as clientConfigEnum from "../config/clientEnum";
import moment = require('moment'); import moment = require('moment');
export function setRouter(httpServer) { export function setRouter(httpServer) {
httpServer.post('/public/partypositions', asyncHandler(partyPositions)); httpServer.post('/yfs/applet/public/partypositions', asyncHandler(partyPositions));
httpServer.post('/public/type', asyncHandler(type)); httpServer.post('/yfs/applet/public/type', asyncHandler(type));
httpServer.post('/public/entrytype', asyncHandler(entryType)); httpServer.post('/yfs/applet/public/entrytype', asyncHandler(entryType));
httpServer.post('/public/sex', asyncHandler(sexType)); httpServer.post('/yfs/applet/public/sex', asyncHandler(sexType));
httpServer.post('/public/degree', asyncHandler(degreeType)); httpServer.post('/yfs/applet/public/degree', asyncHandler(degreeType));
httpServer.post('/public/administrativeposition', asyncHandler(administrativePosition)); httpServer.post('/yfs/applet/public/administrativeposition', asyncHandler(administrativePosition));
httpServer.post('/public/department', asyncHandler(department)); httpServer.post('/yfs/applet/public/department', asyncHandler(department));
httpServer.post('/public/degreetype', asyncHandler(degreeType)); httpServer.post('/yfs/applet/public/degreetype', asyncHandler(degreeType));
httpServer.post('/public/honortype', asyncHandler(honorType)); httpServer.post('/yfs/applet/public/honortype', asyncHandler(honorType));
httpServer.post('/yfs/applet/public/themetype', asyncHandler(themeType)); httpServer.post('/yfs/applet/public/themetype', asyncHandler(themeType));
httpServer.post('/yfs/applet/public/paytype', asyncHandler(payType)); httpServer.post('/yfs/applet/public/paytype', asyncHandler(payType));
httpServer.post('/yfs/applet/public/paytime', asyncHandler(getPayTime)); httpServer.post('/yfs/applet/public/paytime', asyncHandler(getPayTime));
......
...@@ -69,9 +69,9 @@ const DepartmentConfig = { ...@@ -69,9 +69,9 @@ const DepartmentConfig = {
} }
export async function initBasicData() { export async function initBasicData() {
// await initPartyMember(); await initPartyMember();
// await initLearningPower(); await initLearningPower();
await initOrganizationalLife(); // await initOrganizationalLife();
// await initPartyVanguard(); // await initPartyVanguard();
// await initBranchSystem(); // await initBranchSystem();
// await initInforMation(); // await initInforMation();
...@@ -248,10 +248,10 @@ async function initLearningPower() { ...@@ -248,10 +248,10 @@ async function initLearningPower() {
bId: null, bId: null,
dayIntegral: null, dayIntegral: null,
totalIntegral: null, totalIntegral: null,
dataTime: null, dataYear: null,
fileName: "学习强国时长排名1693526400000.xlsx", dataMonth: null,
fileType: 6, dataDay: null,
uploadTime: moment(new Date()).format("YYYY-MM-DD HH:mm:ss") dataTime: null
} }
for (let i = 0; i <= 3; i++) { for (let i = 0; i <= 3; i++) {
...@@ -270,6 +270,9 @@ async function initLearningPower() { ...@@ -270,6 +270,9 @@ async function initLearningPower() {
} }
if (value || value == 0) addDataInfo[key] = value; if (value || value == 0) addDataInfo[key] = value;
} }
addDataInfo["dataYear"] = 2023;
addDataInfo["dataMonth"] = moment("2023." + sheepKey).month() + 1;
addDataInfo["dataDay"] = moment("2023." + sheepKey).date();
addDataInfo["dataTime"] = moment("2023." + sheepKey).format("YYYY-MM-DD HH:mm:ss"); addDataInfo["dataTime"] = moment("2023." + sheepKey).format("YYYY-MM-DD HH:mm:ss");
if (addDataInfo.pmId) addList.push(addDataInfo); if (addDataInfo.pmId) addList.push(addDataInfo);
id++; id++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment