| | |
| | | List<CompanySolution> list = new ArrayList<>(); |
| | | int num =0; |
| | | for(CompanySolution s :company.getSolutionList()){ |
| | | if(s.getSolutionBaseId() == null){ |
| | | if(s.getSolution() == null || s.getSolution().getBaseId() == null ||s.getSolution().getId()==null){ |
| | | continue; |
| | | } |
| | | sIds.add(s.getSolutionBaseId()); |
| | | sIds.add(s.getSolution().getId() ); |
| | | s.setCompanyId(company.getId()); |
| | | s.setIsdeleted(Constants.ZERO); |
| | | s.setCanAdd(Constants.formatIntegerNum(s.getCanAdd())); |
| | |
| | | s.setCreateDate(company.getCreateDate()); |
| | | s.setCreator(company.getCreator()); |
| | | s.setSortnum(num++); |
| | | s.setSolutionBaseId( s.getSolution().getId() ); |
| | | s.setSolutionId( s.getSolution().getBaseId() ); |
| | | s.setStatus(Constants.ZERO); |
| | | list.add(s); |
| | | } |
| | |
| | | for(Company company :companyList){ |
| | | //查询企业签约状态 审核状态,0正在申请1通过2驳回 |
| | | int status = signService.organizationAuditStatus(company.getEmail()); |
| | | if(status == 0){ |
| | | continue; |
| | | } |
| | | if(status == 1){ |
| | | Company update = new Company(); |
| | | update.setId(company.getId()); |
| | |
| | | //更新认证状态 |
| | | companyMapper.updateById(update); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | // @Override |