dev
parent
4cc2dba94a
commit
b554bb35b9
|
|
@ -47,7 +47,7 @@ public class PrepayService {
|
||||||
" where t.state = 2 \n" +
|
" where t.state = 2 \n" +
|
||||||
" group by t.customer_id, t.supermarket_id\n" +
|
" group by t.customer_id, t.supermarket_id\n" +
|
||||||
" ) a \n" +
|
" ) a \n" +
|
||||||
" left join prepay_detail p on p.id = a.maxid \n" +
|
" left join prepay_detail p on p.create_time = a.maxtm and p.customer_id = a.customer_id \n" +
|
||||||
" left join customer c on c.id = p.customer_id \n" +
|
" left join customer c on c.id = p.customer_id \n" +
|
||||||
" left join prepay_customer pc on pc.customer_id = p.customer_id \n" +
|
" left join prepay_customer pc on pc.customer_id = p.customer_id \n" +
|
||||||
" left join supermarket s on s.id = a.supermarket_id\n" +
|
" left join supermarket s on s.id = a.supermarket_id\n" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue