| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.common.annotation.DataScope; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.config.SysConfig; |
| | | import com.ycl.common.constant.Constants; |
| | | import com.ycl.common.core.domain.BaseEntity; |
| | | import com.ycl.common.enums.business.FileTypeEnum; |
| | | import com.ycl.common.enums.business.ImportanceTypeEnum; |
| | | import com.ycl.common.enums.business.ProjectCategoryEnum; |
| | |
| | | Long userId = SecurityUtils.getUserId(); |
| | | String ancestors = sysDeptMapper.selectAncestors(userId); |
| | | String[] ancestorArr = ancestors.split(","); |
| | | for (String ancestor : ancestorArr) { |
| | | if ("101".equals(ancestor)) { // 业主 |
| | | query.setCreateBy(userId); |
| | | query.setRole(0); |
| | | } else if ("102".equals(ancestor)) { // 审批 |
| | | query.setUsedStatus(1); |
| | | query.setRole(1); |
| | | } |
| | | } |
| | | // for (String ancestor : ancestorArr) { |
| | | // if ("101".equals(ancestor)) { // 业主 |
| | | // query.setCreateBy(userId); |
| | | // query.setRole(0); |
| | | // } else if ("102".equals(ancestor)) { // 审批 |
| | | // query.setUsedStatus(1); |
| | | // query.setRole(1); |
| | | // } |
| | | // } |
| | | |
| | | IPage<ProjectInfoVO> page = PageUtil.getPage(query, ProjectInfoVO.class); |
| | | baseMapper.getPage(page, query); |
| | | baseMapper.getPage(query, page); |
| | | List<ProjectInfoVO> records = page.getRecords(); |
| | | List<ProjectVO> list = new ArrayList<>(); |
| | | records.forEach(vo -> { |
| | |
| | | // {"type":"省重点项目","count":0,"amount":"0.00","text":"省"}]}} |
| | | IndexCountVO indexCountVO = new IndexCountVO(); |
| | | List<IndexProPhaseCountVO> proPhaseCountVO = new ArrayList<>(); |
| | | List<ProjectVO> projectVOS = baseMapper.homeCount(); |
| | | List<ProjectVO> projectVOS = baseMapper.homeCount(new BaseEntity()); |
| | | List<ProjectVO> reserve = new ArrayList<>(); |
| | | List<ProjectVO> previous = new ArrayList<>(); |
| | | List<ProjectVO> implement = new ArrayList<>(); |