Ver Fonte

优化交易记录

liaijie há 3 anos atrás
pai
commit
bca171caa9

+ 6 - 1
src/main/java/com/izouma/nineth/service/AssetService.java

@@ -468,9 +468,11 @@ public class AssetService {
         Object operation1 = query.get("operation");
         if (ObjectUtils.isNotEmpty(operation1)){
             String operation =  operation1.toString();
-            log.debug("传过来的值为:"+operation);
             List<UserHistory> content = map.getContent();
             for (int i = 0; i < content.size(); i++) {
+                log.debug("传过来的值为:"+operation);
+                log.debug("原来的的值为:"+content.get(i).getDescription());
+                log.debug("=================");
                 if (!content.get(i).getDescription().equals(operation)){
                     content.remove(i);
                     i--;
@@ -479,6 +481,9 @@ public class AssetService {
             Pageable pageable = PageRequest.of(pageQuery.getPage(), pageQuery.getSize());
             map = PageUtil.createPageFromList(content, pageable);
         }
+        log.debug("++++++++++++++++++++++++++++");
+        log.debug("传过来的值为:"+operation1.toString());
+        log.debug("++++++++++++++++++++++++++++");
         return map;
     }