| | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.assess.common.api.CommonPage; |
| | | import com.gkhy.assess.common.constant.SuperAccountConstant; |
| | | import com.gkhy.assess.common.enums.UserIdentityEnum; |
| | | import com.gkhy.assess.common.exception.ApiException; |
| | | import com.gkhy.assess.common.utils.PageUtil; |
| | |
| | | throw new ApiException("用户机构id为空"); |
| | | } |
| | | projectSupplement.setAgencyId(user.getAgencyId()); |
| | | }else { |
| | | if (SuperAccountConstant.ADMINISTRATOR.equals(user.getUsername()) || SuperAccountConstant.SUPER_ADMIN.equals(user.getUsername())){ |
| | | PageUtil.startPage(); |
| | | List<AssProjectSupplement> projects=baseMapper.projectList(projectSupplement); |
| | | return CommonPage.restPage(projects); |
| | | }else { |
| | | return CommonPage.restPage(new ArrayList<>()); |
| | | } |
| | | } |
| | | PageUtil.startPage(); |
| | | List<AssProjectSupplement> projects=baseMapper.projectList(projectSupplement); |