| | |
| | | // 其他行:直接使用pageNumber的值 |
| | | item.setPageNumberFormatted(pageNumber != null ? pageNumber.toString() : ""); |
| | | } |
| | | if(item.getSecurityLevel().equals("该页另存")) |
| | | item.setSecurityLevel("普通"); |
| | | } |
| | | return beanRecords; |
| | | } |
| | |
| | | @Override |
| | | public List<DocumentMaterialsVoLarge> selectDocumentMaterialsAllByRecordId(Long id) { |
| | | |
| | | return this.baseMapper.getDocumentMaterialsvoLarge(Math.toIntExact(id)); |
| | | List<DocumentMaterialsVoLarge> lists = this.baseMapper.getDocumentMaterialsvoLarge(Math.toIntExact(id)); |
| | | // 遍历所有条目,设置pageNumberFormatted |
| | | for (int i = 0; i < lists.size(); i++) { |
| | | DocumentMaterialsVoLarge item = lists.get(i); |
| | | Long pageNumber = item.getPageNumber(); |
| | | |
| | | |
| | | if(item.getSecurityLevel().equals("该页另存")) |
| | | item.setSecurityLevel("普通"); |
| | | } |
| | | return lists; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | List<DocumentMaterials> beanRecords = list(lambdaQueryWrapper); |
| | | // 遍历所有条目,设置pageNumberFormatted |
| | | for (int i = 0; i < beanRecords.size(); i++) { |
| | | DocumentMaterials item = beanRecords.get(i); |
| | | Long pageNumber = item.getPageNumber(); |
| | | |
| | | |
| | | if(item.getSecurityLevel().equals("该页另存")) |
| | | item.setSecurityLevel("普通"); |
| | | } |
| | | return beanRecords; |
| | | } |
| | | |
| | |
| | | if (StringUtils.isEmpty(documentMaterials.getIsCanceled())) { |
| | | throw new ErrorcodeExceptionextends(400, "是否注销不能为空"); |
| | | } |
| | | // 手动转换密级字段 |
| | | // if ("秘密".equals(documentMaterials.getSecurityLevel())) { |
| | | // documentMaterials.setSecurityLevel("该页另存"); |
| | | // } |
| | | // if ("内部用图".equals(documentMaterials.getSecurityLevel())) { |
| | | // documentMaterials.setSecurityLevel("该页另存"); |
| | | // } |
| | | // if ("内部用途".equals(documentMaterials.getSecurityLevel())) { |
| | | // documentMaterials.setSecurityLevel("该页另存"); |
| | | // } |
| | | this.insertDocumentMaterials(documentMaterials); |
| | | } |
| | | |