linwei
2023-12-29 791e2b1e7e0c7242251c0a9bd35546c951e5c149
物业查询维修基金的,用户没有小区id 则返回空
2 files modified
5 ■■■■■ changed files
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.xml patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/impl/PropertyCapitalApplyServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.xml
src/main/java/org/springblade/modules/property/service/impl/PropertyCapitalApplyServiceImpl.java
@@ -53,6 +53,7 @@
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
/**
@@ -79,7 +80,11 @@
        if (userRole.contains("wygly")) {
            IPropertyDistrictUserService bean = SpringUtils.getBean(IPropertyDistrictUserService.class);
            List<String> strings = bean.selectPropertyDistrictByUserId(AuthUtil.getUserId());
            if (strings.size() > 0) {
            propertyCapitalApply.setDistrictIdList(strings);
            } else {
                return page.setRecords(new ArrayList<PropertyCapitalApplyVO>());
            }
        }
        return page.setRecords(baseMapper.selectPropertyCapitalApplyPage(page, propertyCapitalApply));
    }