Commit e17a44f3 by 宋毅

tj

parent 417cbfe5
......@@ -5,12 +5,41 @@ class icName extends APIBase {
constructor() {
super();
this.utilsIcNameSve = system.getObject("service.utilsSve.utilsIcNameSve");
this.orderproductSve = system.getObject("service.order.orderproductSve");
}
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) {
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;
......@@ -610,10 +610,10 @@ class OrderInfoService extends ServiceBase {
}
//代理记账
if (pobj.actionBody.PathCode == "/ic/dljz/") {
if (!pobj.actionBody.priceName) {
return system.getResultFail(-101, "priceName is empty");
if (!pobj.actionBody.RegisteredType) {
return system.getResultFail(-101, "RegisteredType is empty");
}
priceName = pobj.actionBody.priceName;
priceName = pobj.actionBody.RegisteredType;
}
var p = '%' + priceName + '%';
var sqlobj = {
......
const system = require("../../../system");
const ServiceBase = require("../../sve.base");
var settings = require("../../../../config/settings");
class OderproductService extends ServiceBase {
class OrderproductService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OderproductService));
super("order", ServiceBase.getDaoName(OrderproductService));
}
......@@ -46,4 +46,4 @@ class OderproductService extends ServiceBase {
// }
}
module.exports = OderproductService;
module.exports = OrderproductService;
......@@ -150,7 +150,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:GetOrderDetail
#### 功能模块 Action:DescribeOrderDetail
#### 参数说明
1、公司注册:
......@@ -162,7 +162,7 @@ DataCount->TotalCount,
#### 参数示例
``` javascript
{
"Action": "GetOrderDetail",
"Action": "DescribeOrderDetail",
"OrderNum":"1111115"
}
```
......@@ -268,7 +268,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:GetApplyAndSolutionInfo
#### 功能模块 Action:DescribeApplyAndSolutionInfo
#### 参数说明
| 参数名 | 必填 | 类型 | 描述 |
......@@ -280,7 +280,7 @@ DataCount->TotalCount,
#### 参数示例
``` javascript
{
"Action": "GetApplyAndSolutionInfo",
"Action": "DescribeApplyAndSolutionInfo",
"CreditCode":"1234349555556"
}
```
......@@ -306,7 +306,7 @@ DataCount->TotalCount,
[/api/action/order/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:GetApplyAndSolutionInfo
#### 功能模块 Action:DescribeOverviewInfoByUser
#### 参数说明
1、公司注册:
......@@ -319,7 +319,7 @@ DataCount->TotalCount,
#### 参数示例
``` javascript
{
"Action": "GetOverviewInfoByUser",
"Action": "DescribeOverviewInfoByUser",
"ProductTypeOne":"qcfw"
}
```
......@@ -444,7 +444,7 @@ DataCount->TotalCount,
| RegionId | 是 | string | 地区代码 |
| RegionName | 是 | string | 地区拼音 |
| PathCode | 是 | string | 产品类型 |
| PriceName | 是 | string | 公司类型 |
| RegisteredType | 是 | string | 公司类型 |
......@@ -826,7 +826,7 @@ RefusalContent | Y | string | 100 | 备注信息
[/api/action/order/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:GetQualificationCertificateDetail
#### 功能模块 Action:DescribeQualificationCertificateDetail
#### 参数说明
......@@ -839,7 +839,7 @@ RefusalContent | Y | string | 100 | 备注信息
#### 参数示例
``` javascript
{
"Action": "GetQualificationCertificateDetail",
"Action": "DescribeQualificationCertificateDetail",
"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