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
ed54627d
Commit
ed54627d
authored
Dec 14, 2019
by
赵庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
35ccb9a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletions
+27
-1
bpo-stat/app/base/controller/impl/all/merchantCtl.js
+11
-1
bpo-stat/app/base/service/impl/all/merchantSve.js
+16
-0
No files found.
bpo-stat/app/base/controller/impl/all/merchantCtl.js
View file @
ed54627d
...
...
@@ -77,7 +77,7 @@ class MerchantCtl extends CtlBase {
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
);
}
}
//统计报表 个人 图表
async
commercialCountToChares
(
qobj
){
var
params
=
qobj
||
{};
try
{
...
...
@@ -89,6 +89,16 @@ class MerchantCtl extends CtlBase {
}
}
async
tenantSel
(
qobj
){
var
params
=
qobj
||
{};
try
{
var
page
=
await
this
.
service
.
tenantSel
(
params
);
return
system
.
getResult2
(
page
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
);
}
}
...
...
bpo-stat/app/base/service/impl/all/merchantSve.js
View file @
ed54627d
...
...
@@ -357,6 +357,22 @@ class MerchantService extends ServiceBase {
return
page
;
}
async
tenantSel
(
params
){
var
sql
=
" SELECT company_name FROM merchant_info WHERE 1=1 "
;
if
(
params
.
sign_body
)
{
sql
=
sql
+
"AND sign_body = '"
+
params
.
sign_body
+
"'"
;
}
var
page
=
await
this
.
customQuery
(
sql
);
var
result
=
[];
for
(
let
i
=
0
;
i
<
page
.
length
;
i
++
){
var
data
=
{};
data
.
value
=
page
[
i
].
company_name
;
data
.
label
=
page
[
i
].
company_name
;
result
.
push
(
data
)
}
return
result
;
}
}
...
...
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