mirror of
https://github.com/1Panel-dev/CordysCRM.git
synced 2026-05-24 03:38:42 +08:00
refactor: add notice refactor
This commit is contained in:
@@ -4,10 +4,12 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class Receiver {
|
||||
public class Receiver implements Serializable {
|
||||
private String userId;
|
||||
private String type;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ public class PersonalCenterService {
|
||||
|
||||
public List<CustomerRepeatResponse> getRepeatCustomer(RepeatCustomerPageRequest request, List<String> permissions, String organizationId, String userId) {
|
||||
//1.查询当前用户权限
|
||||
if (!permissions.contains(PermissionConstants.CUSTOMER_MANAGEMENT_READ) && !StringUtils.equalsIgnoreCase(userId, InternalUser.ADMIN.getValue())) {
|
||||
if (!permissions.contains(PermissionConstants.CUSTOMER_MANAGEMENT_READ) || !StringUtils.equalsIgnoreCase(userId, InternalUser.ADMIN.getValue())) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<CustomerRepeatResponse> customers = extCustomerMapper.checkRepeatCustomerByName(request.getName(), organizationId);
|
||||
|
||||
Reference in New Issue
Block a user