Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
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
zjxcxServer
Commits
49792b7c
Commit
49792b7c
authored
Jul 08, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a340ab0e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
16 deletions
+24
-16
visit.ts
src/biz/mobileFuHuaQi/visit.ts
+9
-4
tableInit.ts
src/db/mongo/tableInit.ts
+3
-0
visit.ts
src/routers/enterpriseMobileClient/visit.ts
+3
-3
activity.ts
src/routers/mobileClient/activity.ts
+3
-3
visit.ts
src/routers/mobileClient/visit.ts
+6
-6
No files found.
src/biz/mobileFuHuaQi/visit.ts
View file @
49792b7c
...
@@ -322,7 +322,8 @@ export async function visitDemandList(fuHuaQiUscc, demand) {
...
@@ -322,7 +322,8 @@ export async function visitDemandList(fuHuaQiUscc, demand) {
dataList
.
push
({
dataList
.
push
({
enterpriseName
:
item
.
enterpriseName
,
enterpriseName
:
item
.
enterpriseName
,
id
:
item
.
id
,
id
:
item
.
id
,
demand
demand
,
uscc
:
item
.
uscc
});
});
})
})
...
@@ -362,22 +363,26 @@ export async function visitDemandAdd(fuHuaQiUscc, uscc, demand, demandDesc) {
...
@@ -362,22 +363,26 @@ export async function visitDemandAdd(fuHuaQiUscc, uscc, demand, demandDesc) {
return
{
isSuccess
:
true
};
return
{
isSuccess
:
true
};
}
}
export
async
function
visitDemandEnterpriseInfo
(
id
)
{
export
async
function
visitDemandEnterpriseInfo
(
uscc
)
{
let
dbList
=
await
demandData
.
findByParam
({
id
});
let
dbList
=
await
demandData
.
findByParam
({
uscc
});
let
enterpriseName
=
""
;
let
dataList
=
[];
let
dataList
=
[];
dbList
.
forEach
(
item
=>
{
dbList
.
forEach
(
item
=>
{
let
demand
=
changeEnumManyValue
(
VISITDEMAND
,
item
.
demand
)
let
demand
=
changeEnumManyValue
(
VISITDEMAND
,
item
.
demand
)
enterpriseName
=
item
.
enterpriseName
;
uscc
=
item
.
uscc
;
dataList
.
push
({
dataList
.
push
({
id
:
item
.
id
,
id
:
item
.
id
,
uscc
:
item
.
uscc
,
demand
,
demand
,
time
:
moment
(
item
.
createTime
).
format
(
"YYYY.MM.DD"
),
time
:
moment
(
item
.
createTime
).
format
(
"YYYY.MM.DD"
),
demandDesc
:
item
.
demandDesc
demandDesc
:
item
.
demandDesc
});
});
})
})
return
{
dataList
};
return
{
dataList
,
uscc
,
enterpriseName
};
}
}
export
async
function
visitDemandDelete
(
id
)
{
export
async
function
visitDemandDelete
(
id
)
{
...
...
src/db/mongo/tableInit.ts
View file @
49792b7c
...
@@ -43,6 +43,7 @@ import * as leaseModel from "../../data/lease";
...
@@ -43,6 +43,7 @@ import * as leaseModel from "../../data/lease";
import
*
as
visitModel
from
"../../data/fuHuaQi/visit"
;
import
*
as
visitModel
from
"../../data/fuHuaQi/visit"
;
import
*
as
demandModel
from
"../../data/fuHuaQi/demand"
;
import
*
as
demandModel
from
"../../data/fuHuaQi/demand"
;
import
*
as
trackModel
from
"../../data/fuHuaQi/track"
;
import
*
as
trackModel
from
"../../data/fuHuaQi/track"
;
import
*
as
activityModel
from
"../../data/activity"
;
...
@@ -90,4 +91,5 @@ export async function initTable() {
...
@@ -90,4 +91,5 @@ export async function initTable() {
visitModel
.
initModel
();
visitModel
.
initModel
();
demandModel
.
initModel
();
demandModel
.
initModel
();
trackModel
.
initModel
();
trackModel
.
initModel
();
activityModel
.
initModel
();
}
}
\ No newline at end of file
src/routers/enterpriseMobileClient/visit.ts
View file @
49792b7c
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
import
*
as
asyncHandler
from
'express-async-handler'
;
import
*
as
asyncHandler
from
'express-async-handler'
;
import
{
eccReqParamater
}
from
'../../util/verificationParam'
;
import
{
eccReqParamater
}
from
'../../util/verificationParam'
;
import
{
check
FuHuaQi
Token
}
from
'../../middleware/user'
;
import
{
check
Enterprise
Token
}
from
'../../middleware/user'
;
import
*
as
visitBiz
from
'../../biz/mobileFuHuaQi/visit'
;
import
*
as
visitBiz
from
'../../biz/mobileFuHuaQi/visit'
;
export
function
setRouter
(
httpServer
)
{
export
function
setRouter
(
httpServer
)
{
httpServer
.
post
(
'/enterprise/visit/demand/list'
,
check
FuHuaQi
Token
,
asyncHandler
(
visit_demand_list
));
//诉求列表
httpServer
.
post
(
'/enterprise/visit/demand/list'
,
check
Enterprise
Token
,
asyncHandler
(
visit_demand_list
));
//诉求列表
httpServer
.
post
(
'/enterprise/visit/demand/add'
,
check
FuHuaQi
Token
,
asyncHandler
(
visit_demand_add
));
//添加诉求
httpServer
.
post
(
'/enterprise/visit/demand/add'
,
check
Enterprise
Token
,
asyncHandler
(
visit_demand_add
));
//添加诉求
}
}
...
...
src/routers/mobileClient/activity.ts
View file @
49792b7c
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
*/
*/
import
*
as
asyncHandler
from
'express-async-handler'
;
import
*
as
asyncHandler
from
'express-async-handler'
;
import
{
check
Enterprise
Token
}
from
'../../middleware/user'
;
import
{
check
FuHuaQi
Token
}
from
'../../middleware/user'
;
import
*
as
activityBiz
from
'../../biz/mobileEnterprise/activity'
;
import
*
as
activityBiz
from
'../../biz/mobileEnterprise/activity'
;
import
{
eccReqParamater
}
from
'../../util/verificationParam'
;
import
{
eccReqParamater
}
from
'../../util/verificationParam'
;
export
function
setRouter
(
httpServer
)
{
export
function
setRouter
(
httpServer
)
{
httpServer
.
post
(
'/fuhuaqi/activity/list'
,
check
Enterprise
Token
,
asyncHandler
(
activity_list
));
//活动列表
httpServer
.
post
(
'/fuhuaqi/activity/list'
,
check
FuHuaQi
Token
,
asyncHandler
(
activity_list
));
//活动列表
httpServer
.
post
(
'/fuhuaqi/activity/info'
,
check
Enterprise
Token
,
asyncHandler
(
activity_info
));
//活动详情
httpServer
.
post
(
'/fuhuaqi/activity/info'
,
check
FuHuaQi
Token
,
asyncHandler
(
activity_info
));
//活动详情
}
}
async
function
activity_list
(
req
,
res
)
{
async
function
activity_list
(
req
,
res
)
{
...
...
src/routers/mobileClient/visit.ts
View file @
49792b7c
...
@@ -68,11 +68,11 @@ async function visit_demand_add(req, res) {
...
@@ -68,11 +68,11 @@ async function visit_demand_add(req, res) {
}
}
async
function
visit_demand_enterpriseinfo
(
req
,
res
)
{
async
function
visit_demand_enterpriseinfo
(
req
,
res
)
{
let
reqConf
=
{
id
:
'String'
,
};
let
reqConf
=
{
uscc
:
'String'
,
};
let
{
id
}
=
eccReqParamater
(
reqConf
,
req
.
body
);
let
{
uscc
}
=
eccReqParamater
(
reqConf
,
req
.
body
);
const
FHQUscc
=
req
.
headers
.
uscc
;
const
FHQUscc
=
req
.
headers
.
uscc
;
let
userInfo
=
await
visitBiz
.
visitDemandEnterpriseInfo
(
id
);
let
userInfo
=
await
visitBiz
.
visitDemandEnterpriseInfo
(
uscc
);
res
.
success
(
userInfo
);
res
.
success
(
userInfo
);
}
}
...
@@ -146,11 +146,11 @@ async function visit_track_add(req, res) {
...
@@ -146,11 +146,11 @@ async function visit_track_add(req, res) {
}
}
async
function
visit_track_list
(
req
,
res
)
{
async
function
visit_track_list
(
req
,
res
)
{
let
reqConf
=
{
id
:
'String'
,
};
let
reqConf
=
{
uscc
:
'String'
,
};
let
{
id
}
=
eccReqParamater
(
reqConf
,
req
.
body
);
let
{
uscc
}
=
eccReqParamater
(
reqConf
,
req
.
body
);
const
FHQUscc
=
req
.
headers
.
uscc
;
const
FHQUscc
=
req
.
headers
.
uscc
;
let
userInfo
=
await
visitBiz
.
visitDemandEnterpriseInfo
(
id
);
let
userInfo
=
await
visitBiz
.
visitDemandEnterpriseInfo
(
uscc
);
res
.
success
(
userInfo
);
res
.
success
(
userInfo
);
}
}
...
...
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