lisai17@sina.com 2020-09-14 21:31:24 +08:00
parent 0bf6476f25
commit 5ee74e8b9b
1 changed files with 4 additions and 2 deletions

View File

@ -68,8 +68,10 @@ public class InvoiceReceiveService extends BaseService {
}
public Page<Record> find(PageParam pp) {
String selectsql = "select * ";
String fromsql = "from invoice_receive t where 1=1 ";
String selectsql = "select t.*, s.name supermarket_name, s.name2 supermarket_name2 ";
String fromsql = "from invoice_receive t \n" +
" left join supermarket s on s.id = t.supermarket_id" +
" where 1=1 ";
List<Object> paraList = new ArrayList<>();
String totalRowSql = "select count(*) " + fromsql;