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
f0c0e084
Commit
f0c0e084
authored
Jun 20, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修bug,3.3功能
parent
2233e632
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
2 deletions
+91
-2
fuHuaQi.ts
src/biz/admin/fuHuaQi/fuHuaQi.ts
+1
-0
remind.ts
src/biz/mobileFuHuaQi/fuHuaQi/remind.ts
+58
-0
fuHuaQi.ts
src/config/eccParam/fuHuaQi.ts
+2
-2
remind.ts
src/routers/mobileClient/remind.ts
+27
-0
router.ts
src/routers/router.ts
+3
-0
No files found.
src/biz/admin/fuHuaQi/fuHuaQi.ts
View file @
f0c0e084
...
@@ -98,6 +98,7 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
...
@@ -98,6 +98,7 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
changeData
.
institutionalNature
=
changeEnumValue
(
configEnum
.
INSTITUTIONALNATURE
,
changeData
.
institutionalNature
);
changeData
.
institutionalNature
=
changeEnumValue
(
configEnum
.
INSTITUTIONALNATURE
,
changeData
.
institutionalNature
);
changeData
.
operationModel
=
changeEnumValue
(
configEnum
.
OPERATIONMODEL
,
changeData
.
operationModel
);
changeData
.
operationModel
=
changeEnumValue
(
configEnum
.
OPERATIONMODEL
,
changeData
.
operationModel
);
changeData
.
foundingTeamStr
=
changeData
.
foundingTeamType
?
changeEnumValue
(
configEnum
.
TEAM
,
changeData
.
foundingTeamType
)
:
"无"
;
let
foundingTeam
=
[];
let
foundingTeam
=
[];
if
(
changeData
.
foundingTeam
&&
changeData
.
foundingTeam
.
length
)
{
if
(
changeData
.
foundingTeam
&&
changeData
.
foundingTeam
.
length
)
{
changeData
.
foundingTeam
.
forEach
(
item
=>
{
changeData
.
foundingTeam
.
forEach
(
item
=>
{
...
...
src/biz/mobileFuHuaQi/fuHuaQi/remind.ts
0 → 100644
View file @
f0c0e084
/**
* 小程序端 孵化器入口 提醒主要逻辑
* 作者:lxm
*/
import
{
findFuHuaQiByUSCC
}
from
"../../../data/fuHuaQi/fuhuaqi"
;
/**
* 数据提醒列表
* @param uscc 孵化器统一信用代码
*/
export
async
function
getDataImprovementList
(
uscc
:
string
)
{
let
fuhuaqiInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
/**校验我的数据 */
let
myData
=
[];
//我的数据
const
MyDataConfig
=
{
incubatedAcreage
:
"在孵面积"
,
acreageTotal
:
"孵化器总面积"
,
acreagePersonalUse
:
"孵化器自用面积"
,
hatchingGround
:
"经备案孵化场地"
,
};
for
(
let
key
in
MyDataConfig
)
{
if
(
key
==
"hatchingGround"
)
{
if
(
!
fuhuaqiInfo
[
key
]
||
!
fuhuaqiInfo
[
key
].
length
)
myData
.
push
(
MyDataConfig
[
key
]);
}
else
{
if
(
!
fuhuaqiInfo
[
key
])
myData
.
push
(
MyDataConfig
[
key
]);
}
}
/**校验 我的信息 */
let
myInformation
=
[];
const
MyInformationConfig
=
{
name
:
"名称"
,
logonTime
:
"注册时间"
,
lv
:
"孵化器级别"
,
identificationTime
:
"认定时间"
,
industry
:
"孵化领域"
,
institutionalNature
:
"机构性质"
,
operationModel
:
"运营模式"
,
foundingTeam
:
"创始团队"
,
liaison
:
"联系人"
,
liaisonPhone
:
"联系电话"
,
introduction
:
"孵化器"
};
for
(
let
key
in
MyInformationConfig
)
{
if
(
key
==
"industry"
||
key
==
"operationModel"
||
key
==
"foundingTeam"
)
{
if
(
!
fuhuaqiInfo
[
key
]
||
!
fuhuaqiInfo
[
key
].
length
)
myInformation
.
push
(
MyInformationConfig
[
key
]);
}
else
{
if
(
!
fuhuaqiInfo
[
key
])
myInformation
.
push
(
MyInformationConfig
[
key
]);
}
}
let
title
=
"数据完善提醒"
;
return
{
haveRemind
:
myData
.
length
>
0
||
myInformation
.
length
>
0
,
title
,
myData
,
myInformation
};
}
\ No newline at end of file
src/config/eccParam/fuHuaQi.ts
View file @
f0c0e084
...
@@ -22,8 +22,8 @@ export const BaseParamUpdateConfig = {
...
@@ -22,8 +22,8 @@ export const BaseParamUpdateConfig = {
// professionalTechnologyName:{type:"String", notMustHave:true},//专业技术平台名称
// professionalTechnologyName:{type:"String", notMustHave:true},//专业技术平台名称
// professionalTechnologyCreateTime:{type:"Number", notMustHave:true},//时间 年份 xxxx年01月01日 的时间戳
// professionalTechnologyCreateTime:{type:"Number", notMustHave:true},//时间 年份 xxxx年01月01日 的时间戳
// professionalTechnologyAmount:{type:"Number", notMustHave:true},//投资金额 万元
// professionalTechnologyAmount:{type:"Number", notMustHave:true},//投资金额 万元
cooperationInstitutions
:{
type
:
"String"
,
notMustHave
:
true
},
//合作机构名称
// cooperationInstitutions:{type:"String", notMustHave:true},//合作机构名称 --挪到了 机构资质里
isCooperation
:{
type
:
"Boolean"
,
notMustHave
:
true
},
//是否与第三方机构合作
// isCooperation:{type:"Boolean", notMustHave:true},//是否与第三方机构合作 --挪到了 机构资质里
};
};
...
...
src/routers/mobileClient/remind.ts
0 → 100644
View file @
f0c0e084
/**
* 小程序端 孵化器入口 提醒路由
*/
import
*
as
asyncHandler
from
'express-async-handler'
;
import
*
as
remindBiz
from
'../../biz/mobileFuHuaQi/fuHuaQi/remind'
;
import
{
checkFuHuaQiToken
}
from
'../../middleware/user'
;
export
function
setRouter
(
httpServer
)
{
/**我的数据展示 */
httpServer
.
post
(
'/fuhuaqi/remind/dataimprovement'
,
checkFuHuaQiToken
,
asyncHandler
(
dataImprovement
));
}
/**
* 数据完善提醒列表
* @param req
* @param res
*/
async
function
dataImprovement
(
req
,
res
)
{
const
Uscc
=
req
.
headers
.
uscc
;
let
monthInfo
=
await
remindBiz
.
getDataImprovementList
(
Uscc
);
res
.
success
(
monthInfo
);
}
\ No newline at end of file
src/routers/router.ts
View file @
f0c0e084
...
@@ -11,6 +11,7 @@ import * as mobileClientMonthRouters from './mobileClient/month';
...
@@ -11,6 +11,7 @@ import * as mobileClientMonthRouters from './mobileClient/month';
import
*
as
mobileClientUserRouters
from
'./mobileClient/user'
;
import
*
as
mobileClientUserRouters
from
'./mobileClient/user'
;
import
*
as
mobileClientBusinessRouters
from
'./mobileClient/business'
;
import
*
as
mobileClientBusinessRouters
from
'./mobileClient/business'
;
import
*
as
institutionalNatureRouters
from
'./mobileClient/institutionalNature'
;
import
*
as
institutionalNatureRouters
from
'./mobileClient/institutionalNature'
;
import
*
as
remindRouters
from
'./mobileClient/remind'
;
import
*
as
filesRouters
from
'./admin/files'
;
import
*
as
filesRouters
from
'./admin/files'
;
import
*
as
adminEnterpriseRouters
from
'./admin/enterprise'
;
import
*
as
adminEnterpriseRouters
from
'./admin/enterprise'
;
...
@@ -43,6 +44,8 @@ export function setRouter(httpServer){
...
@@ -43,6 +44,8 @@ export function setRouter(httpServer){
mobileClientBusinessRouters
.
setRouter
(
httpServer
);
mobileClientBusinessRouters
.
setRouter
(
httpServer
);
mobileClientUserRouters
.
setRouter
(
httpServer
);
mobileClientUserRouters
.
setRouter
(
httpServer
);
institutionalNatureRouters
.
setRouter
(
httpServer
);
institutionalNatureRouters
.
setRouter
(
httpServer
);
remindRouters
.
setRouter
(
httpServer
);
/**管理后台端 入口路由 */
/**管理后台端 入口路由 */
adminEnterpriseRouters
.
setRouter
(
httpServer
);
adminEnterpriseRouters
.
setRouter
(
httpServer
);
adminFuHuaQiRouters
.
setRouter
(
httpServer
);
adminFuHuaQiRouters
.
setRouter
(
httpServer
);
...
...
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