Commit 13f67369 by chenjinjing

no message

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