Commit cda82422 by 庄冰

policy

parent d7f3d857
...@@ -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;
......
...@@ -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;
...@@ -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"] || "";
......
...@@ -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"
}
```
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