Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yfsxcx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
yfsxcx
Commits
5962551f
Commit
5962551f
authored
Aug 07, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
137dd952
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
44 additions
and
18 deletions
+44
-18
.gitignore
.gitignore
+1
-0
牙防所基础数据收集.xlsx
res/牙防所基础数据收集.xlsx
+0
-0
organizationalLife.ts
src/biz/applet/partyMember/organizationalLife.ts
+8
-8
partyVanguard.ts
src/biz/applet/partyMember/partyVanguard.ts
+8
-1
eccFormParamConfig.ts
src/config/eccFormParamConfig.ts
+1
-0
main.ts
src/main.ts
+21
-5
http_server.ts
src/net/http_server.ts
+1
-0
dataInit.ts
src/tools/dataInit.ts
+4
-4
No files found.
.gitignore
View file @
5962551f
...
...
@@ -5,5 +5,6 @@
/public
/logs
/video
/files
*test*
*.logs
res/牙防所基础数据收集.xlsx
View file @
5962551f
No preview for this file type
src/biz/applet/partyMember/organizationalLife.ts
View file @
5962551f
...
...
@@ -226,14 +226,14 @@ function getActivityStatus(activityStartTime:number, activityEndTime:number) {
let
status
;
if
(
underway
)
{
status
=
"正在进行"
;
}
if
(
nowTime
<
activityStartTime
)
{
status
=
"即将开展"
;
}
if
(
nowTime
>
activityStartTime
)
{
status
=
"已经开展"
;
}
else
{
if
(
nowTime
<
activityStartTime
)
{
status
=
"即将开展"
;
}
if
(
nowTime
>
activityStartTime
)
{
status
=
"已经开展"
;
}
}
return
status
;
...
...
src/biz/applet/partyMember/partyVanguard.ts
View file @
5962551f
...
...
@@ -24,7 +24,14 @@ import { BizError } from '../../../util/bizError';
*/
export
async
function
getPartyVanguard
(
honorName
:
string
,
branchName
)
{
let
selectParam
=
{};
if
(
honorName
)
selectParam
[
"honorName"
]
=
honorName
;
// selectParam["honorName"] = honorName;
if
(
honorName
)
{
selectParam
[
"honorName"
]
=
{
$in
:
honorName
};
let
modelType
=
verificationEnumTools
.
changeEnumValue
(
configEnum
.
MODELTYPE
,
honorName
);
selectParam
[
"modelType"
]
=
{
$in
:
modelType
};
}
selectParam
[
"branchName"
]
=
{
$in
:
branchName
};
let
partyVanguardInfo
=
await
partyVanguardData
.
findPartyVanguardeList
(
selectParam
);
let
vanguardList
=
[];
...
...
src/config/eccFormParamConfig.ts
View file @
5962551f
...
...
@@ -101,6 +101,7 @@ export const UpdateActivityFormConfig = {
administrativePosition
:{
type
:
"Number"
,
notMustHave
:
true
},
//行政职务
partyPositions
:{
type
:
"[Number]"
,
notMustHave
:
true
},
//党内职务
department
:{
type
:
"[Number]"
,
notMustHave
:
true
},
//所属科室 2.0
askForTime
:
{
type
:
"Number"
,
notMustHave
:
true
},
//申请入党时间
talkTime
:{
type
:
"Number"
,
notMustHave
:
true
},
//谈话时间
remarks
:{
type
:
"String"
,
notMustHave
:
true
},
//备注
loginId
:{
type
:
"String"
,
notMustHave
:
true
},
//登录账号
...
...
src/main.ts
View file @
5962551f
...
...
@@ -6,7 +6,6 @@ import { initBasicData } from "./tools/dataInit";
import
{
getPwdMd5
,
getToken
,
md5PwdStr
}
from
"./tools/system"
;
async
function
lanuch
()
{
// test();
/**初始化配置解析 */
await
initConfig
();
/**初始化数据库 */
...
...
@@ -16,17 +15,34 @@ async function lanuch() {
/**创建http服务 */
httpServer
.
createServer
(
systemConfig
.
port
);
console
.
log
(
'This indicates that the server is started successfully.'
);
await
test
();
}
const
fs
=
require
(
"fs"
);
// const url = path.join(__dirname.substring(0,__dirname.indexOf("out")), "files/docx/党建资讯");
function
test
()
{
let
time
=
moment
(
560016000000
).
format
(
"YYYY-MM-DD"
);
let
p
=
md5PwdStr
(
"946885"
);
let
pwd
=
getPwdMd5
(
"15821946885"
,
"bdcb05781f14e7bf275a7b51d554f045"
);
let
token
=
getToken
(
"946885"
);
// let time = moment(560016000000).format("YYYY-MM-DD");
// let p = md5PwdStr("946885");
// let pwd = getPwdMd5("15821946885", "bdcb05781f14e7bf275a7b51d554f045");
// let token = getToken("946885");
fs
.
readdir
(
'./files/docx/党建资讯'
,(
err
,
files
)
=>
{
if
(
err
)
{
console
.
log
(
err
);
}
else
{
// console.log(files); //返回的文件是个数组,可以用forEach循环输出文件名
files
.
forEach
((
file
)
=>
{
console
.
log
(
'http://123.207.147.179:7079/docx/党建资讯/'
+
file
);
})
}
})
console
.
log
();
}
lanuch
();
let
a
=
[
// "36dea1f3c44ab89798d3b3f7fb14667d",
// "f7be11973c1671079e702ae0adb661f1",
...
...
src/net/http_server.ts
View file @
5962551f
...
...
@@ -28,6 +28,7 @@ export class httpServer {
});
httpServer
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"../../img"
))
);
httpServer
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"../../files"
))
);
const
root
=
path
.
join
(
__dirname
,
"../../public"
);
httpServer
.
use
(
express
.
static
(
root
));
httpServer
.
use
(
fallback
(
'index.html'
,
{
root
}));
...
...
src/tools/dataInit.ts
View file @
5962551f
...
...
@@ -211,7 +211,7 @@ const HonorLevelConfig = {
*/
async
function
initPartyVanguard
()
{
let
count
=
await
groupFindPartyVanguardCount
({});
if
(
count
>
1
)
{
if
(
count
>
=
1
)
{
console
.
log
(
"***** 党建先锋数据 无需初始化 *****"
);
return
;
}
...
...
@@ -293,7 +293,7 @@ async function initPartyVanguard() {
*/
async
function
initOrganizationalLife
()
{
let
count
=
await
groupFindActivityCount
({});
if
(
count
>
1
)
{
if
(
count
>
=
1
)
{
console
.
log
(
"***** 组织生活数据 无需初始化 *****"
);
return
;
}
...
...
@@ -399,7 +399,7 @@ async function initOrganizationalLife() {
*/
async
function
initBranchSystem
()
{
let
count
=
await
groupFindBranchSystemCount
({});
if
(
count
>
1
)
{
if
(
count
>
=
1
)
{
console
.
log
(
"***** 支部制度数据 无需初始化 *****"
);
return
;
}
...
...
@@ -458,7 +458,7 @@ async function initBranchSystem() {
*/
async
function
initInforMation
()
{
let
count
=
await
groupFindpartyInformationCount
({});
if
(
count
>
1
)
{
if
(
count
>
=
1
)
{
console
.
log
(
"***** 党建资讯数据 无需初始化 *****"
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment