王先生 2 gadi atpakaļ
vecāks
revīzija
9891e8aaa3

+ 1 - 1
eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/CardRecordTask.java

@@ -229,7 +229,7 @@ public class CardRecordTask {
                 Long seq = attendance.getLong("seq");
                 List<Map<String, Object>> list = dmOrderRecordRepository.selectOrderRecordBySeq(seq);
 
-                if(list.size() == 0) {
+                if(ObjectUtils.isEmpty(list)) {
                     DmSettlement dmSettlement = new DmSettlement();
                     dmSettlement.setCardCode(attendance.getString("card"));
                     dmSettlement.setOrderTime(attendance.getTimestamp("createTime"));