lisai17@sina.com 2020-12-01 21:54:28 +08:00
parent 4cc2dba94a
commit b554bb35b9
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class PrepayService {
" where t.state = 2 \n" +
" group by t.customer_id, t.supermarket_id\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 prepay_customer pc on pc.customer_id = p.customer_id \n" +
" left join supermarket s on s.id = a.supermarket_id\n" +