anderx преди 2 години
родител
ревизия
afc0440f18
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

+ 1 - 0
src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

@@ -451,6 +451,7 @@
       left join t_order_mid tm on a.order_no =tm.order_no
       WHERE a.status=2
       and a.aid= #{aid} and a.type= #{type} and a.pay_dep= #{depId}
+        order by a.create_time desc
     </select>
   <select id="selectStatistics" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccountStatistics">
     select a.aid,a.aname ,if(a.`type` &lt;4 ,1,0)bx,if(a.`type`=4 ,1,0)jz,if(a.`type`=5 ,1,0)dk,a.debit_id debitId ,a.target_type targetType ,