|
|
@ -48,10 +48,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.*; |
|
|
|
import java.util.function.Function; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
@ -110,8 +107,13 @@ public class VaccinationInfoServiceImpl extends BaseVimCurdServiceImpl<Vaccinati |
|
|
|
if (user == null) { |
|
|
|
throw new RenException("用户未登录"); |
|
|
|
} |
|
|
|
Map<String, Object> authParams = vaccinationUserRoleService.getVaccinationAuthParams(user.getId()); |
|
|
|
params.putAll(authParams); |
|
|
|
// Map<String, Object> authParams = vaccinationUserRoleService.getVaccinationAuthParams(user.getId());
|
|
|
|
// params.putAll(authParams);
|
|
|
|
String companyId = params.get("companyId") == null ? null : params.get("companyId").toString(); |
|
|
|
if (StringUtils.isNotBlank(companyId)) { |
|
|
|
params.put("companyIds", Arrays.asList(companyId.split(","))); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 街道和超管有权查看所有数据
|
|
|
|
if (NumConstant.ZERO == user.getSuperAdmin() && !user.getTypeKey().equals(OrganizationTypeConstant.ORG_TYPE_STREET_PARTY)) { |
|
|
@ -621,4 +623,4 @@ public class VaccinationInfoServiceImpl extends BaseVimCurdServiceImpl<Vaccinati |
|
|
|
public EpdcAppVimInfoResultDTO getUserVimInfo(String userName, String idCard) { |
|
|
|
return baseDao.getUserVimInfo(userName, idCard.toUpperCase()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|