lisai17@sina.com 2020-10-11 21:01:46 +08:00
parent 9776073731
commit 0aa18d753a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class PrepayService {
* @return * @return
*/ */
public Page<Record> find(PageParam pp, String name, Integer customer_id, String stm, String etm, Double start, Double end) { public Page<Record> find(PageParam pp, String name, Integer customer_id, String stm, String etm, Double start, Double end) {
String selectsql = " select p.*, c.name customer_name, c.address, c.texpayer_name, c.texpayer_num, c.memo, pc.surplus, s.name supermarket_name \n"; String selectsql = " select p.*, c.name customer_name, c.address, c.texpayer_name, c.texpayer_num, c.memo, pc.surplus, s.name supermarket_name, pc.threshold \n";
String fromsql = " from ( \n" + String fromsql = " from ( \n" +
" select t.customer_id, t.supermarket_id, max(t.create_time) maxtm, max(t.id) maxid from prepay_detail t \n" + " select t.customer_id, t.supermarket_id, max(t.create_time) maxtm, max(t.id) maxid from prepay_detail t \n" +
" where t.state = 2 \n" + " where t.state = 2 \n" +