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
4de96ecc
Commit
4de96ecc
authored
Jul 06, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
417f5379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
esign-admin/app/base/controller/impl/merchant/merchantuserCtl.js
+15
-1
esign-admin/app/base/service/impl/merchant/merchantSve.js
+8
-0
No files found.
esign-admin/app/base/controller/impl/merchant/merchantuserCtl.js
View file @
4de96ecc
...
@@ -59,11 +59,25 @@ class MerchantUserCtl extends CtlBase {
...
@@ -59,11 +59,25 @@ class MerchantUserCtl extends CtlBase {
params
.
utype
=
2
;
params
.
utype
=
2
;
params
.
uctype_id
=
this
.
trim
(
params
.
merchant_id
);
params
.
uctype_id
=
this
.
trim
(
params
.
merchant_id
);
let
res
=
await
this
.
userSve
.
page
(
params
);
let
res
=
await
this
.
userSve
.
page
(
params
);
let
merchant_ids
=
new
Set
();
if
(
res
.
status
===
0
&&
res
.
data
&&
res
.
data
.
rows
)
{
if
(
res
.
status
===
0
&&
res
.
data
&&
res
.
data
.
rows
)
{
for
(
let
item
of
res
.
data
.
rows
)
{
for
(
let
item
of
res
.
data
.
rows
)
{
item
.
merchant
=
{
id
:
"todo"
,
name
:
"todo"
};
// item.merchant = {id:"todo", name: "todo"};
merchant_ids
.
add
(
item
.
uctype_id
);
}
}
}
}
if
(
merchant_ids
.
size
==
0
){
return
res
;
}
let
merchantDist
=
await
this
.
merchantSve
.
merchantMapByIds
({
ids
:
Array
.
from
(
merchant_ids
)});
if
(
merchantDist
.
status
!=
0
||
!
merchantDist
.
data
){
return
res
;
}
merchantDist
=
merchantDist
.
data
;
for
(
let
item
of
res
.
data
.
rows
)
{
item
.
merchant_name
=
merchantDist
[
item
.
uctype_id
]
||
""
;
}
return
res
;
return
res
;
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
...
...
esign-admin/app/base/service/impl/merchant/merchantSve.js
View file @
4de96ecc
...
@@ -45,6 +45,14 @@ class MerchantService extends ServiceBase {
...
@@ -45,6 +45,14 @@ class MerchantService extends ServiceBase {
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
/**
* fn:根据商户ID查询商户信息MAP
* @returns {Promise<void>}
*/
async
merchantMapByIds
(
params
){
return
await
this
.
callms
(
"sve_merchant"
,
"merchantMapByIds"
,
params
);
}
}
}
module
.
exports
=
MerchantService
;
module
.
exports
=
MerchantService
;
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