lisai17@sina.com 2020-12-02 10:00:29 +08:00
parent b554bb35b9
commit 460b0b8395
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public class PrepayService {
*/ */
public List<Record> flow(Integer customer_id, String stm, String etm) { public List<Record> flow(Integer customer_id, String stm, String etm) {
String sql = "select * from ( \n" + String sql = "select * from ( \n" +
" select a.sn id, p.arrive_time tm, 0 - a.total_price amount, '扣费' type, \n" + " select a.sn id, a.create_time tm, 0 - a.total_price amount, '扣费' type, \n" +
" case when a.paid > 0 then concat('补差额', a.paid) else '' end memo, a.customer_id, a.customer_name \n" + " case when a.paid > 0 then concat('补差额', a.paid) else '' end memo, a.customer_id, a.customer_name \n" +
" from ( \n" + " from ( \n" +
" select t.sn, t.total_price, t.paid, t.customer_id, t.customer_name, t.create_time \n" + " select t.sn, t.total_price, t.paid, t.customer_id, t.customer_name, t.create_time \n" +