|
|
@@ -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
|