Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae336c9e
authored
Nov 23, 2018
by
chongli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'f-6.7.0' of 192.168.10.6:caosy/fun-golf-service into f-6.7.0
parents
9fd327d8
4a298647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
src/main/java/com/ctrip/fun/golf/dao/user/UserExtDao.java
src/main/java/com/ctrip/fun/golf/dao/user/UserExtDao.java
View file @
ae336c9e
...
...
@@ -1248,6 +1248,11 @@ public class UserExtDao extends GenericHibernateDao<UserExt, Integer> {
return
rankingBeanList
;
}
/**
* 11月19日开始的续费送券活动
* 送 旭宝 150*2 协和 110*2 博尔地 100*2, 另外到期时间小于2018年的再送300元旭宝券一张
* @return
*/
public
List
<
RecommendRankBean
>
getRanking980
()
{
StringBuffer
sql
=
new
StringBuffer
(
""
);
sql
.
append
(
" SELECT DISTINCT q.uid inviterUid,q.username inviterUserName,"
);
...
...
@@ -1255,17 +1260,17 @@ public class UserExtDao extends GenericHibernateDao<UserExt, Integer> {
sql
.
append
(
" COUNT(CASE WHEN p.productName='360.00' THEN p.customerMobile END) AS myNum2"
);
sql
.
append
(
" FROM("
);
sql
.
append
(
" SELECT a.saleMobile,a.customerMobile ,CONCAT(a.productName,'.00') AS productName"
);
sql
.
append
(
" FROM active_customer a"
);
sql
.
append
(
" FROM active_customer a
WHERE a.createTime>'2018-11-19 12:59:59'
"
);
sql
.
append
(
" UNION "
);
sql
.
append
(
" SELECT d.bindedMobilePhone AS
customerMobile,c.bindedMobilePhone AS sale
Mobile,CONCAT(a.amount) AS productName"
);
sql
.
append
(
" SELECT d.bindedMobilePhone AS
saleMobile ,c.bindedMobilePhone AS customer
Mobile,CONCAT(a.amount) AS productName"
);
sql
.
append
(
" FROM ord_order a LEFT JOIN ord_communeitem b ON a.orderId = b.orderId"
);
sql
.
append
(
" LEFT JOIN bsc_userext c ON a.uid = c.uid"
);
sql
.
append
(
" LEFT JOIN bsc_userext d ON b.recommendUid = d.uid"
);
sql
.
append
(
" WHERE a.orderDate >'2018-1
0-10 23
:59:59' AND OrderCategory = 13 AND ProcessStatus & 16=16 AND platform = 'MP'"
);
sql
.
append
(
" WHERE a.orderDate >'2018-1
1-19 12
:59:59' AND OrderCategory = 13 AND ProcessStatus & 16=16 AND platform = 'MP'"
);
sql
.
append
(
" ) p "
);
sql
.
append
(
" LEFT JOIN bsc_userext q ON p.saleMobile = q.bindedMobilePhone"
);
sql
.
append
(
" GROUP BY p.saleMobile"
);
sql
.
append
(
" ORDER BY myNum
1
DESC"
);
sql
.
append
(
" ORDER BY myNum
2
DESC"
);
sql
.
append
(
" "
);
...
...
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