Merge remote-tracking branch 'remotes/origin/fix/240101-福利台账列表分权问题修复' into release/2.10.1.2401.01

This commit is contained in:
sy 2024-02-23 14:08:09 +08:00
commit eae730e305
1 changed files with 4 additions and 2 deletions

View File

@ -241,8 +241,10 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
if (CollectionUtils.isEmpty(taxAgents)) {
//防止普通用户查询
queryParam.setTaxAgents(Collections.singletonList(-1L));
} else if (paymentOrganizationIds != null && paymentOrganizationIds.size() > 0){
taxAgents.retainAll(paymentOrganizationIds);
} else {
if (paymentOrganizationIds != null && paymentOrganizationIds.size() > 0) {
taxAgents.retainAll(paymentOrganizationIds);
}
queryParam.setTaxAgents(taxAgents);
}
}