Commit e17a44f3 by 宋毅

tj

parent 417cbfe5
...@@ -5,12 +5,41 @@ class icName extends APIBase { ...@@ -5,12 +5,41 @@ class icName extends APIBase {
constructor() { constructor() {
super(); super();
this.utilsIcNameSve = system.getObject("service.utilsSve.utilsIcNameSve"); this.utilsIcNameSve = system.getObject("service.utilsSve.utilsIcNameSve");
this.orderproductSve = system.getObject("service.order.orderproductSve");
} }
async getVat(pobj, qobj, req) { async getVat(pobj, qobj, req) {
return system.getResultSuccess(); if(!pobj){
return system.getConsoleResultFail(-100, "参数异常");
}
var userId = null;
userId=pobj.openId || pobj.uin;
if(!userId){
return system.getConsoleResultFail(-100, "用户id不能为空");
}
var count = await this.orderproductSve.dao.findCount({ where: {user_id: userId, product_type: { [this.db.Op.like]: "%/qcfw/%" } } });//增值电信产品数量
var resData = {
"nums": count, // 产品使用数量
"isOpen": 1, // 0未开通此产品;1已开通此产品
"unit": "次" // 产品使用数量单位
};
return system.getConsoleResultSuccess(resData);
} }
async getBusinessRegistration(pobj, qobj, req) { async getBusinessRegistration(pobj, qobj, req) {
return system.getResultSuccess(); if(!pobj){
return system.getConsoleResultFail(-100, "参数异常");
}
var userId = null;
userId=pobj.openId || pobj.uin;
if(!userId){
return system.getConsoleResultFail(-100, "用户id不能为空");
}
var count = await this.orderproductSve.dao.findCount({ where: {user_id: userId, product_type: { [this.db.Op.like]: "%/ic/%" } } });//增值电信产品数量
var resData = {
"nums": count, // 产品使用数量
"isOpen": 1, // 0未开通此产品;1已开通此产品
"unit": "次" // 产品使用数量单位
};
return system.getConsoleResultSuccess(resData);
} }
} }
module.exports = icName; module.exports = icName;
...@@ -610,10 +610,10 @@ class OrderInfoService extends ServiceBase { ...@@ -610,10 +610,10 @@ class OrderInfoService extends ServiceBase {
} }
//代理记账 //代理记账
if (pobj.actionBody.PathCode == "/ic/dljz/") { if (pobj.actionBody.PathCode == "/ic/dljz/") {
if (!pobj.actionBody.priceName) { if (!pobj.actionBody.RegisteredType) {
return system.getResultFail(-101, "priceName is empty"); return system.getResultFail(-101, "RegisteredType is empty");
} }
priceName = pobj.actionBody.priceName; priceName = pobj.actionBody.RegisteredType;
} }
var p = '%' + priceName + '%'; var p = '%' + priceName + '%';
var sqlobj = { var sqlobj = {
......
const system = require("../../../system"); const system = require("../../../system");
const ServiceBase = require("../../sve.base"); const ServiceBase = require("../../sve.base");
var settings = require("../../../../config/settings"); var settings = require("../../../../config/settings");
class OderproductService extends ServiceBase { class OrderproductService extends ServiceBase {
constructor() { constructor() {
super("order", ServiceBase.getDaoName(OderproductService)); super("order", ServiceBase.getDaoName(OrderproductService));
} }
...@@ -46,4 +46,4 @@ class OderproductService extends ServiceBase { ...@@ -46,4 +46,4 @@ class OderproductService extends ServiceBase {
// } // }
} }
module.exports = OderproductService; module.exports = OrderproductService;
...@@ -150,7 +150,7 @@ DataCount->TotalCount, ...@@ -150,7 +150,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard] [/api/action/order/springBoard]
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
#### 功能模块 Action:GetOrderDetail #### 功能模块 Action:DescribeOrderDetail
#### 参数说明 #### 参数说明
1、公司注册: 1、公司注册:
...@@ -162,7 +162,7 @@ DataCount->TotalCount, ...@@ -162,7 +162,7 @@ DataCount->TotalCount,
#### 参数示例 #### 参数示例
``` javascript ``` javascript
{ {
"Action": "GetOrderDetail", "Action": "DescribeOrderDetail",
"OrderNum":"1111115" "OrderNum":"1111115"
} }
``` ```
...@@ -268,7 +268,7 @@ DataCount->TotalCount, ...@@ -268,7 +268,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard] [/api/action/order/springBoard]
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
#### 功能模块 Action:GetApplyAndSolutionInfo #### 功能模块 Action:DescribeApplyAndSolutionInfo
#### 参数说明 #### 参数说明
| 参数名 | 必填 | 类型 | 描述 | | 参数名 | 必填 | 类型 | 描述 |
...@@ -280,7 +280,7 @@ DataCount->TotalCount, ...@@ -280,7 +280,7 @@ DataCount->TotalCount,
#### 参数示例 #### 参数示例
``` javascript ``` javascript
{ {
"Action": "GetApplyAndSolutionInfo", "Action": "DescribeApplyAndSolutionInfo",
"CreditCode":"1234349555556" "CreditCode":"1234349555556"
} }
``` ```
...@@ -306,7 +306,7 @@ DataCount->TotalCount, ...@@ -306,7 +306,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard] [/api/action/order/springBoard]
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
#### 功能模块 Action:GetApplyAndSolutionInfo #### 功能模块 Action:DescribeOverviewInfoByUser
#### 参数说明 #### 参数说明
1、公司注册: 1、公司注册:
...@@ -319,7 +319,7 @@ DataCount->TotalCount, ...@@ -319,7 +319,7 @@ DataCount->TotalCount,
#### 参数示例 #### 参数示例
``` javascript ``` javascript
{ {
"Action": "GetOverviewInfoByUser", "Action": "DescribeOverviewInfoByUser",
"ProductTypeOne":"qcfw" "ProductTypeOne":"qcfw"
} }
``` ```
...@@ -444,7 +444,7 @@ DataCount->TotalCount, ...@@ -444,7 +444,7 @@ DataCount->TotalCount,
| RegionId | 是 | string | 地区代码 | | RegionId | 是 | string | 地区代码 |
| RegionName | 是 | string | 地区拼音 | | RegionName | 是 | string | 地区拼音 |
| PathCode | 是 | string | 产品类型 | | PathCode | 是 | string | 产品类型 |
| PriceName | 是 | string | 公司类型 | | RegisteredType | 是 | string | 公司类型 |
...@@ -826,7 +826,7 @@ RefusalContent | Y | string | 100 | 备注信息 ...@@ -826,7 +826,7 @@ RefusalContent | Y | string | 100 | 备注信息
[/api/action/order/springBoard] [/api/action/order/springBoard]
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
#### 功能模块 Action:GetQualificationCertificateDetail #### 功能模块 Action:DescribeQualificationCertificateDetail
#### 参数说明 #### 参数说明
...@@ -839,7 +839,7 @@ RefusalContent | Y | string | 100 | 备注信息 ...@@ -839,7 +839,7 @@ RefusalContent | Y | string | 100 | 备注信息
#### 参数示例 #### 参数示例
``` javascript ``` javascript
{ {
"Action": "GetQualificationCertificateDetail", "Action": "DescribeQualificationCertificateDetail",
"CertificateNo":"d" "CertificateNo":"d"
} }
......
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