liaijie hace 3 años
padre
commit
58a65a6f28
Se han modificado 1 ficheros con 6 adiciones y 10 borrados
  1. 6 10
      src/main/java/com/izouma/nineth/service/AssetService.java

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

@@ -461,20 +461,16 @@ public class AssetService {
                     userHistory.setDescription("赠送");
                     break;
             }
-            Object operation1 = query.get("operation");
-            if (operation1!=null){
-                String operation = (String) operation1;
-                if (!userHistory.getOperation().equals(operation)) {
-                    return null;
-                }
-            }
+
             return userHistory;
         });
 
-        List<UserHistory> content = map.getContent();
-        if (content!=null&&content.size()>0){
+        Object operation1 = query.get("operation");
+        if (operation1!=null){
+            String operation = (String) operation1;
+            List<UserHistory> content = map.getContent();
             for (int i = 0; i < content.size(); i++) {
-                if (content.get(i)==null) {
+                if (!content.get(i).getDescription().equals(operation)){
                     content.remove(i);
                     i--;
                 }