| | |
| | | import com.ycl.mapper.*; |
| | | import com.ycl.service.FileService; |
| | | import com.ycl.service.ProjectInfoService; |
| | | import com.ycl.system.mapper.SysDeptMapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.commons.codec.Charsets; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private final ProjectInvestmentFundingServiceImpl projectInvestmentFundingServiceImpl; |
| | | private final ProjectInvestmentPolicyComplianceServiceImpl projectInvestmentPolicyComplianceServiceImpl; |
| | | private final ProjectUnitRegistrationInfoServiceImpl projectUnitRegistrationInfoServiceImpl; |
| | | private final SysDeptMapper sysDeptMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | |
| | | return Result.ok().data(list).total(0); |
| | | } |
| | | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | IPage<ProjectInfoVO> page = PageUtil.getPage(query, ProjectInfoVO.class); |
| | | baseMapper.getPage(page, query); |
| | | List<ProjectInfoVO> records = page.getRecords(); |