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
e09d4ddb
Commit
e09d4ddb
authored
Jul 07, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
c2e348f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
32 deletions
+7
-32
esign-admin/app/base/controller/impl/merchant/merchanttradeCtl.js
+7
-32
No files found.
esign-admin/app/base/controller/impl/merchant/merchanttradeCtl.js
View file @
e09d4ddb
...
@@ -14,25 +14,14 @@ class MerchantUserCtl extends CtlBase {
...
@@ -14,25 +14,14 @@ class MerchantUserCtl extends CtlBase {
async
merchanttradesOfList
(
params
,
pobj2
,
req
)
{
async
merchanttradesOfList
(
params
,
pobj2
,
req
)
{
try
{
try
{
<<<<<<<
HEAD
let
res
=
await
this
.
merchanttradeSve
.
merchanttradesOfList
(
params
);
let
resule
=
await
this
.
merchanttradeSve
.
merchanttradesOfList
(
params
);
if
(
res
.
status
!=
0
)
{
if
(
resule
.
data
.
rows
){
for
(
let
item
of
resule
.
data
.
rows
){
item
.
amount
=
(
item
.
amount
/
100
).
toFixed
(
2
)
}
}
return
resule
;
=======
let
res
=
await
this
.
merchanttradeSve
.
merchanttradesOfList
(
params
);
if
(
res
.
status
!=
0
){
return
res
;
return
res
;
}
}
for
(
let
item
of
res
.
data
.
rows
)
{
for
(
let
item
of
res
.
data
.
rows
)
{
item
.
amount
=
system
.
f2y
(
item
.
amount
);
item
.
amount
=
system
.
f2y
(
item
.
amount
);
}
}
return
res
;
return
res
;
>>>>>>>
65
c1c1c1aab23279813d43a8a0fcaf5cd9edaaa5
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
...
@@ -41,7 +30,7 @@ class MerchantUserCtl extends CtlBase {
...
@@ -41,7 +30,7 @@ class MerchantUserCtl extends CtlBase {
//调账添加
//调账添加
async
addMerchanttrades
(
params
,
pobj2
,
req
)
{
async
addMerchanttrades
(
params
,
pobj2
,
req
)
{
try
{
try
{
if
(
params
.
amount
)
{
if
(
params
.
amount
)
{
params
.
amount
*
100
;
params
.
amount
*
100
;
}
}
return
await
this
.
merchanttradeSve
.
addMerchanttrades
(
params
);
return
await
this
.
merchanttradeSve
.
addMerchanttrades
(
params
);
...
@@ -62,27 +51,16 @@ class MerchantUserCtl extends CtlBase {
...
@@ -62,27 +51,16 @@ class MerchantUserCtl extends CtlBase {
//资金流水
//资金流水
async
merchanttradesOfListAll
(
params
,
pobj2
,
req
)
{
async
merchanttradesOfListAll
(
params
,
pobj2
,
req
)
{
try
{
try
{
<<<<<<<
HEAD
let
res
=
await
this
.
merchanttradeSve
.
merchanttradesOfListAll
(
params
);
let
result
=
await
this
.
merchanttradeSve
.
merchanttradesOfListAll
(
params
);
if
(
res
.
status
!=
0
)
{
if
(
result
.
data
.
rows
){
for
(
let
item
of
result
.
data
.
rows
){
item
.
balance_amount
=
(
item
.
balance_amount
/
100
).
toFixed
(
2
);
item
.
available_amount
=
(
item
.
available_amount
/
100
).
toFixed
(
2
)
}
}
return
result
;
=======
let
res
=
await
this
.
merchanttradeSve
.
merchanttradesOfListAll
(
params
);
if
(
res
.
status
!=
0
){
return
res
;
return
res
;
}
}
for
(
let
item
of
res
.
data
.
rows
)
{
for
(
let
item
of
res
.
data
.
rows
)
{
item
.
amount
=
system
.
f2y
(
item
.
amount
);
item
.
amount
=
system
.
f2y
(
item
.
amount
);
item
.
available_amount
=
system
.
f2y
(
item
.
available_amount
);
item
.
available_amount
=
system
.
f2y
(
item
.
available_amount
);
item
.
balance_amount
=
system
.
f2y
(
item
.
balance_amount
);
item
.
balance_amount
=
system
.
f2y
(
item
.
balance_amount
);
}
}
return
res
;
return
res
;
>>>>>>>
65
c1c1c1aab23279813d43a8a0fcaf5cd9edaaa5
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
...
@@ -98,9 +76,6 @@ class MerchantUserCtl extends CtlBase {
...
@@ -98,9 +76,6 @@ class MerchantUserCtl extends CtlBase {
}
}
}
}
module
.
exports
=
MerchantUserCtl
;
module
.
exports
=
MerchantUserCtl
;
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