refactor: add notice refactor

This commit is contained in:
guoyuqi
2025-03-31 17:27:05 +08:00
committed by Craftsman
parent 574d222465
commit 514a32d540
2 changed files with 4 additions and 2 deletions

View File

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

View File

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