Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
cc1aa27a
Commit
cc1aa27a
authored
Mar 14, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2e7b5974
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AccountBalance.php
application/api/controller/AccountBalance.php
+2
-2
UAccountBalance.php
application/model/UAccountBalance.php
+2
-2
No files found.
application/api/controller/AccountBalance.php
View file @
cc1aa27a
...
@@ -83,8 +83,8 @@ class AccountBalance extends Basic
...
@@ -83,8 +83,8 @@ class AccountBalance extends Basic
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$user_id
=
$params
[
"user_id"
];
$user_id
=
$params
[
"user_id"
];
$user_phone
=
$params
[
"
money
"
];
$user_phone
=
$params
[
"
user_phone
"
];
$money
=
$params
[
"
user_phone
"
];
$money
=
$params
[
"
money
"
];
$user_name
=
$params
[
"user_name"
];
$user_name
=
$params
[
"user_name"
];
if
(
$money
<
30
)
{
if
(
$money
<
30
)
{
return
$this
->
response
(
"101"
,
"提现金额不能小于30"
);
return
$this
->
response
(
"101"
,
"提现金额不能小于30"
);
...
...
application/model/UAccountBalance.php
View file @
cc1aa27a
...
@@ -45,10 +45,10 @@ class UAccountBalance extends Model
...
@@ -45,10 +45,10 @@ class UAccountBalance extends Model
$where_str
.=
" and a.user_id =
{
$params
[
'user_id'
]
}
"
;
$where_str
.=
" and a.user_id =
{
$params
[
'user_id'
]
}
"
;
}
}
$sql
=
"SELECT * FROM (
$sql
=
"SELECT * FROM (
( SELECT a.id, a.user_id, a.source_id, a.money,a.user_name, a.create_time, 1 AS is_essay,a.status,c.title
( SELECT a.id, a.user_id, a.source_id, a.money,a.user_name, a.create_time, 1 AS is_essay,a.status,c.title
,a.user_phone
FROM `u_account_balance` a left join c_coupon b on a.source_id=b.id
FROM `u_account_balance` a left join c_coupon b on a.source_id=b.id
left join c_activity c on b.activity_id=c.id WHERE a.status = 0 and a.source_type = 0
$where_str
) UNION
left join c_activity c on b.activity_id=c.id WHERE a.status = 0 and a.source_type = 0
$where_str
) UNION
( SELECT a.id, a.user_id,0 as source_id , a.money, a.user_name, a.create_time, 2 AS is_essay,a.status,0 as title FROM `u_account_check` a
( SELECT a.id, a.user_id,0 as source_id , a.money, a.user_name, a.create_time, 2 AS is_essay,a.status,0 as title
,a.user_phone
FROM `u_account_check` a
WHERE a.status IN ( 0, 1, 2 )
$where_str
)
WHERE a.status IN ( 0, 1, 2 )
$where_str
)
) AS aaa ORDER BY `create_time` DESC LIMIT
{
$indexStart
}
,
{
$pageSize
}
"
;
) AS aaa ORDER BY `create_time` DESC LIMIT
{
$indexStart
}
,
{
$pageSize
}
"
;
$result
=
$this
->
query
(
$sql
);
$result
=
$this
->
query
(
$sql
);
...
...
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