| | |
| | | //审批计划书 |
| | | item.setApprovalPlan(file.getOriginalName()); |
| | | } |
| | | }else if(FileTypeEnum.DOCUMENT_INFO.equals(file.getType())){ |
| | | } else if (FileTypeEnum.DOCUMENT_INFO.equals(file.getType())) { |
| | | if (file.getBusId().equals(item.getId())) { |
| | | //相关文书 |
| | | item.setDocuments(file.getOriginalName()); |
| | | } |
| | | }else if(FileTypeEnum.INVEST_POLICY.equals(file.getType())){ |
| | | } else if (FileTypeEnum.INVEST_POLICY.equals(file.getType())) { |
| | | if (file.getBusId().equals(item.getPolicyId())) { |
| | | //符合产业政策附件 |
| | | item.setPolicyComplianceAttachment(file.getOriginalName()); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Result updateUsedStatus(Integer id, Integer usedStatus) { |
| | | ProjectInfo entity = baseMapper.selectById(id); |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | entity.setUsedStatus(usedStatus); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | } |