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
6f1c47c0
Commit
6f1c47c0
authored
Jul 04, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
b1c2d3ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
6 deletions
+36
-6
esign-admin/app/base/controller/impl/order/orderCtl.js
+22
-1
esign-admin/app/base/service/impl/fee/feeSve.js
+5
-2
esign-admin/app/base/service/impl/order/orderSve.js
+8
-2
esign-admin/app/base/system.js
+1
-1
No files found.
esign-admin/app/base/controller/impl/order/orderCtl.js
View file @
6f1c47c0
...
@@ -217,7 +217,7 @@ class OrderCtl extends CtlBase {
...
@@ -217,7 +217,7 @@ class OrderCtl extends CtlBase {
item
.
product_info
=
productMap
[
item
.
product_id
];
item
.
product_info
=
productMap
[
item
.
product_id
];
}
}
// 设置计费内容
// 设置计费内容
//
await this.feeSve.setRowsFee(res.data.rows, "engine_account_id");
await
this
.
feeSve
.
setRowsFee
(
res
.
data
.
rows
,
"engine_account_id"
);
return
res
;
return
res
;
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
...
@@ -248,6 +248,26 @@ class OrderCtl extends CtlBase {
...
@@ -248,6 +248,26 @@ class OrderCtl extends CtlBase {
}
}
}
}
/**
* fn:查询商户下可用订单的产品
* @param pobj
* @param pobj2
* @param req
* @param res
* @returns {Promise<void>}
*/
async
getMerchantLiveProduct
(
pobj
,
pobj2
,
req
,
res
){
if
(
!
pobj
.
merchant_id
){
return
system
.
getResult
(
null
,
`参数错误 商户ID不能为空`
);
}
try
{
return
await
this
.
orderSve
.
getMerchantLiveProduct
(
pobj
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
}
module
.
exports
=
OrderCtl
;
module
.
exports
=
OrderCtl
;
\ No newline at end of file
esign-admin/app/base/service/impl/fee/feeSve.js
View file @
6f1c47c0
...
@@ -123,9 +123,12 @@ class FeeService extends ServiceBase {
...
@@ -123,9 +123,12 @@ class FeeService extends ServiceBase {
}
}
ids
.
push
(
id
);
ids
.
push
(
id
);
}
}
let
map
=
await
this
.
accountBulk
({
ids
:
ids
}).
data
||
{};
let
map
=
await
this
.
accountBulk
({
ids
:
ids
});
map
=
map
.
data
||
{};
for
(
let
item
of
rows
)
{
for
(
let
item
of
rows
)
{
item
.
fee
=
map
[
Number
(
item
[
field
]
||
0
)]
||
{};
item
.
fee
=
map
[
Number
(
item
[
field
]
||
0
)]
||
{
balance
:
0
};
item
.
allowance
=
Number
(
item
.
product_specifications
)
-
Number
(
item
.
fee
.
balance
||
0
);
item
.
allowance
=
item
.
allowance
<
0
?
0
:
item
.
allowance
;
}
}
}
}
...
...
esign-admin/app/base/service/impl/order/orderSve.js
View file @
6f1c47c0
...
@@ -60,8 +60,14 @@ class UserService extends ServiceBase {
...
@@ -60,8 +60,14 @@ class UserService extends ServiceBase {
return
await
this
.
callms
(
"sve_order"
,
"updOrderSimple"
,
params
);
return
await
this
.
callms
(
"sve_order"
,
"updOrderSimple"
,
params
);
}
}
/**
* fn:查询商户下可用订单的产品
* @param params
* @returns {Promise<{msg: string, data, bizmsg: *|string, status: number}|any|undefined>}
*/
async
getMerchantLiveProduct
(
params
){
return
await
this
.
callms
(
"sve_order"
,
"getMerchantLiveProduct"
,
params
);
}
}
}
...
...
esign-admin/app/base/system.js
View file @
6f1c47c0
...
@@ -190,7 +190,7 @@ class System {
...
@@ -190,7 +190,7 @@ class System {
// 产品引擎
// 产品引擎
engine_product
:
local
+
":3571"
+
path
,
engine_product
:
local
+
":3571"
+
path
,
// 计费引擎
// 计费引擎
engine_fee
:
dev
+
":3572"
+
path
,
engine_fee
:
local
+
":3572"
+
path
,
// 认证引擎
// 认证引擎
engine_auth
:
local
+
":3573"
+
path
,
engine_auth
:
local
+
":3573"
+
path
,
// 签约引擎
// 签约引擎
...
...
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