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
e17a44f3
Commit
e17a44f3
authored
Jul 14, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
417cbfe5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
17 deletions
+46
-17
brg-user-center/app/base/api/impl/action/statisticData.js
+31
-2
brg-user-center/app/base/service/impl/order/orderInfoSve.js
+3
-3
brg-user-center/app/base/service/impl/order/orderProductSve.js
+3
-3
brg-user-center/app/front/entry/public/apidoc/customer/order.md
+9
-9
No files found.
brg-user-center/app/base/api/impl/action/statisticData.js
View file @
e17a44f3
...
...
@@ -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
;
brg-user-center/app/base/service/impl/order/orderInfoSve.js
View file @
e17a44f3
...
...
@@ -610,10 +610,10 @@ class OrderInfoService extends ServiceBase {
}
//代理记账
if
(
pobj
.
actionBody
.
PathCode
==
"/ic/dljz/"
)
{
if
(
!
pobj
.
actionBody
.
priceNam
e
)
{
return
system
.
getResultFail
(
-
101
,
"
priceNam
e is empty"
);
if
(
!
pobj
.
actionBody
.
RegisteredTyp
e
)
{
return
system
.
getResultFail
(
-
101
,
"
RegisteredTyp
e is empty"
);
}
priceName
=
pobj
.
actionBody
.
priceNam
e
;
priceName
=
pobj
.
actionBody
.
RegisteredTyp
e
;
}
var
p
=
'%'
+
priceName
+
'%'
;
var
sqlobj
=
{
...
...
brg-user-center/app/base/service/impl/order/orderProductSve.js
View file @
e17a44f3
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
OderproductService
extends
ServiceBase
{
class
O
r
derproductService
extends
ServiceBase
{
constructor
()
{
super
(
"order"
,
ServiceBase
.
getDaoName
(
OderproductService
));
super
(
"order"
,
ServiceBase
.
getDaoName
(
O
r
derproductService
));
}
...
...
@@ -46,4 +46,4 @@ class OderproductService extends ServiceBase {
// }
}
module
.
exports
=
OderproductService
;
module
.
exports
=
O
r
derproductService
;
brg-user-center/app/front/entry/public/apidoc/customer/order.md
View file @
e17a44f3
...
...
@@ -150,7 +150,7 @@ DataCount->TotalCount,
[
/api/action/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:
Get
OrderDetail
#### 功能模块 Action:
Describe
OrderDetail
#### 参数说明
1、公司注册:
...
...
@@ -162,7 +162,7 @@ DataCount->TotalCount,
#### 参数示例
```
javascript
{
"Action"
:
"
Get
OrderDetail"
,
"Action"
:
"
Describe
OrderDetail"
,
"OrderNum"
:
"1111115"
}
```
...
...
@@ -268,7 +268,7 @@ DataCount->TotalCount,
[
/api/action/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:
Get
ApplyAndSolutionInfo
#### 功能模块 Action:
Describe
ApplyAndSolutionInfo
#### 参数说明
| 参数名 | 必填 | 类型 | 描述 |
...
...
@@ -280,7 +280,7 @@ DataCount->TotalCount,
#### 参数示例
```
javascript
{
"Action"
:
"
Get
ApplyAndSolutionInfo"
,
"Action"
:
"
Describe
ApplyAndSolutionInfo"
,
"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"
:
"
Get
OverviewInfoByUser"
,
"Action"
:
"
Describe
OverviewInfoByUser"
,
"ProductTypeOne"
:
"qcfw"
}
```
...
...
@@ -444,7 +444,7 @@ DataCount->TotalCount,
| RegionId | 是 | string | 地区代码 |
| RegionName | 是 | string | 地区拼音 |
| PathCode | 是 | string | 产品类型 |
|
PriceNam
e | 是 | string | 公司类型 |
|
RegisteredTyp
e | 是 | string | 公司类型 |
...
...
@@ -826,7 +826,7 @@ RefusalContent | Y | string | 100 | 备注信息
[
/api/action/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 功能模块 Action:
Get
QualificationCertificateDetail
#### 功能模块 Action:
Describe
QualificationCertificateDetail
#### 参数说明
...
...
@@ -839,7 +839,7 @@ RefusalContent | Y | string | 100 | 备注信息
#### 参数示例
```
javascript
{
"Action"
:
"
Get
QualificationCertificateDetail"
,
"Action"
:
"
Describe
QualificationCertificateDetail"
,
"CertificateNo"
:
"d"
}
...
...
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