Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
cda82422
Commit
cda82422
authored
Feb 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
policy
parent
d7f3d857
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
3 deletions
+72
-3
center-channel/app/base/api/impl/action/policy.js
+3
-0
center-channel/app/base/service/impl/policy/policySve.js
+6
-0
center-channel/app/config/routes/api.js
+1
-1
center-channel/app/front/entry/public/apidoc/platform/policy.md
+62
-2
No files found.
center-channel/app/base/api/impl/action/policy.js
View file @
cda82422
...
@@ -34,6 +34,9 @@ class PolicyAPI extends APIBase {
...
@@ -34,6 +34,9 @@ class PolicyAPI extends APIBase {
case
"submitPolicyNeed"
:
//政策申请提报
case
"submitPolicyNeed"
:
//政策申请提报
opResult
=
this
.
policySve
.
submitPolicyNeed
(
pobj
);
opResult
=
this
.
policySve
.
submitPolicyNeed
(
pobj
);
break
;
break
;
case
"getPolicyNeedList"
:
//政策需求列表
opResult
=
this
.
policySve
.
getPolicyNeedList
(
pobj
);
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/policy/policySve.js
View file @
cda82422
...
@@ -17,5 +17,11 @@ class PolicyService{
...
@@ -17,5 +17,11 @@ class PolicyService{
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
return
data
;
}
}
async
getPolicyNeedList
(
pobj
){
var
url
=
this
.
centerOrderUrl
+
"action/policy/springBoard"
;
var
rtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
}
}
}
module
.
exports
=
PolicyService
;
module
.
exports
=
PolicyService
;
center-channel/app/config/routes/api.js
View file @
cda82422
...
@@ -45,7 +45,7 @@ module.exports = function (app) {
...
@@ -45,7 +45,7 @@ module.exports = function (app) {
"tmConfirm"
,
"updateTmInfo"
,
"tmConfirm"
,
"updateTmInfo"
,
"updateNclInfo"
,
"updateContacts"
,
"updateNclInfo"
,
"updateContacts"
,
"updateCustomerInfo"
,
"addOrderAndDelivery"
,
"updateCustomerInfo"
,
"addOrderAndDelivery"
,
"updateOrderPayStatus"
"updateOrderPayStatus"
,
"getPolicyNeedList"
];
];
if
(
lst
.
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
if
(
lst
.
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
var
userpin
=
req
.
headers
[
"userpin"
]
||
""
;
var
userpin
=
req
.
headers
[
"userpin"
]
||
""
;
...
...
center-channel/app/front/entry/public/apidoc/platform/policy.md
View file @
cda82422
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
1.
[
政策检索
](
#policyQuery
)
1.
[
政策检索
](
#policyQuery
)
1.
[
政策申请提报
](
#submitPolicyNeed
)
1.
[
政策申请提报
](
#submitPolicyNeed
)
1.
[
政策需求列表
](
#getPolicyNeedList
)
## **<a name="policyQuery"> 政策检索</a>**
## **<a name="policyQuery"> 政策检索</a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -91,4 +92,64 @@
...
@@ -91,4 +92,64 @@
"data"
:
null
,
"data"
:
null
,
"requestId"
:
"6afebe73d2fa47dbb2dd451468b4e3ac"
"requestId"
:
"6afebe73d2fa47dbb2dd451468b4e3ac"
}
}
```
```
\ No newline at end of file
## **<a name="getPolicyNeedList"> 政策需求列表</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/policy/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:getPolicyNeedList
```
javascript
{
"actionType"
:
"getPolicyNeedList"
,
"actionBody"
:
{
"policyName"
:
"北京"
,
"policyProvince"
:
"北京市"
,
"policyCity"
:
"北京市"
,
"policyType"
:
"rlzy"
,
"customerIntention"
:
"dgj"
,
"pageSize"
:
"20"
,
"pageIndex"
:
"1"
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:[
{
"id"
:
1
,
"uapp_id"
:
30
,
"contacts"
:
"联系人"
,
"customerIntention"
:
"dgj"
,
"customerIntentionName"
:
null
,
"company"
:
"公司名称"
,
"industry"
:
"行业名称"
,
"region"
:
"行业名称"
,
"mobile"
:
"13075556693"
,
"policy_id"
:
1
,
"applyDate"
:
"2020-02-11T06:28:35.000Z"
,
"opNotes"
:
null
,
"popularizeUserCode"
:
"13075556693"
,
"policyNo"
:
"bj001"
,
"policyName"
:
"北京市人民政府办公厅关于应对新型冠状病毒感染的肺炎疫情影响促进中小微企业持续健康发展的若干措施
北京市人民政府办公厅关于应对新型冠状病毒感染的肺炎疫情影响促进中小微企业持续健康发展的若干措施"
,
"policyType"
:
"rlzy"
,
"policyTypeName"
:
"人力资源"
,
"policySource"
:
"京政办发〔2020〕7号"
,
"policyLinkUrl"
:
"http://www.beijing.gov.cn/zhengce/zhengcefagui/202002/t20200206_1625493.html"
,
"policyDate"
:
"2020-02-05T14:14:24.000Z"
,
"policyProvince"
:
"北京市"
,
"policyCity"
:
"北京市"
,
"policyContent"
:
null
}
],
"dataCount"
:
1
,
"requestId"
:
"de04d31de8114cc78b5257c59ea31355"
}
```
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