wangqifan %!s(int64=4) %!d(string=hai) anos
pai
achega
6c99c67bbc

+ 8 - 8
src/main/java/com/izouma/zhumj/web/CustomerPaymentController.java

@@ -75,14 +75,14 @@ public class CustomerPaymentController extends BaseController {
                                 )
                         );
                     }
-                    if (SecurityUtils.getAuthenticatedUser()
-                            .getAuthorities()
-                            .contains(Authority.getInstance(Authority.NAME.ROLE_SALE))) {
-                        List<String> customerNames = customerRepo
-                                .findAllBySaleId(SecurityUtils.getAuthenticatedUser().getId())
-                                .stream().map(Customer::getCoFullName).collect(Collectors.toList());
-                        predicates.add(root.get("customerName").in(customerNames));
-                    }
+//                    if (SecurityUtils.getAuthenticatedUser()
+//                            .getAuthorities()
+//                            .contains(Authority.getInstance(Authority.NAME.ROLE_SALE))) {
+//                        List<String> customerNames = customerRepo
+//                                .findAllBySaleId(SecurityUtils.getAuthenticatedUser().getId())
+//                                .stream().map(Customer::getCoFullName).collect(Collectors.toList());
+//                        predicates.add(root.get("customerName").in(customerNames));
+//                    }
 
                     if (start != null && end != null) {
                         predicates