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
0365ada4
Commit
0365ada4
authored
Mar 14, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aaf9a498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UAccountBalance.php
application/model/UAccountBalance.php
+2
-2
No files found.
application/model/UAccountBalance.php
View file @
0365ada4
...
...
@@ -43,9 +43,9 @@ class UAccountBalance extends Model
$where_str
.=
" and a.user_id =
{
$params
[
'user_id'
]
}
"
;
}
$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.staus,c.title
( SELECT a.id, a.user_id, a.source_id, a.money,a.user_name, a.create_time, 1 AS is_essay,a.sta
t
us,c.title
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.staus = 0 and a.source_type = 0
$where_str
) UNION
left join c_activity c on b.activity_id=c.id WHERE a.sta
t
us = 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
WHERE a.status IN ( 0, 1, 2 )
$where_str
)
) AS aaa ORDER BY `create_time` DESC LIMIT
{
$pageNo
}
,
{
$pageSize
}
"
;
...
...
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