dev
parent
a9bb7003a2
commit
68a4bb3175
|
|
@ -82,7 +82,7 @@ public class OrderclusterTruckService extends BaseService {
|
|||
findSql += " " + Const.ORDER_BY_DESC;
|
||||
}
|
||||
} else {
|
||||
findSql += " order by c.cutoff_time desc";
|
||||
findSql += " order by c.cutoff_time desc, t.id";
|
||||
}
|
||||
|
||||
return Db.paginateByFullSql(pp.getPage(), pp.getSize(), totalRowSql, findSql, paraList.toArray());
|
||||
|
|
|
|||
|
|
@ -130,8 +130,6 @@ public class InvoiceUseService {
|
|||
if (invoice_type != null && invoice_type == 1) {
|
||||
list = Db.find(logsql + " order by t.create_time", paramlog.toArray());
|
||||
} else {
|
||||
paramlog.addAll(paramord);
|
||||
|
||||
if (invoice_type != null && invoice_type == 2) {
|
||||
logsql += " and t.invoice_type = ? \n";
|
||||
ordsql += " and t.invoice_type = ? \n";
|
||||
|
|
@ -140,6 +138,8 @@ public class InvoiceUseService {
|
|||
paramord.add(invoice_type);
|
||||
}
|
||||
|
||||
paramlog.addAll(paramord);
|
||||
|
||||
list = Db.find("select * from (" + logsql + "\n union \n " + ordsql + ") a order by a.create_time ", paramlog.toArray());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue