Explorar o código

修改客户系统接口

wanghui %!s(int64=8) %!d(string=hai) anos
pai
achega
10aa736a79

+ 1 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -126,7 +126,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
 		Pagination<CustomerOut> list = (Pagination<CustomerOut>)findPage("selectCustomer","selectCustomerCount",params, pageNumber, pageSize);
 		Subject subject = SecurityUtils.getSubject();
 		list.setList(setResult((List<CustomerOut>)list.getList()));
-		if(!subject.isPermitted("customer_view_all")||!subject.isPermitted(AFTConstants.SUPERADMIN)) {
+		if(!subject.isPermitted("customer_view_all")&&!subject.isPermitted(AFTConstants.SUPERADMIN)) {
 			list.setList(descResult((List<CustomerOut>)list.getList()));
 		}
 		return list;