| | |
| | | if (StringUtils.isEmpty(categoryNumberStart) || StringUtils.isEmpty(categoryNumberEnd)) { |
| | | lqw.like(!StringUtils.isEmpty(archiveRecords.getRecordId()), ArchiveRecords::getRecordId, archiveRecords.getRecordId()); |
| | | } |
| | | else { |
| | | // else { |
| | | lqw. |
| | | like(!StringUtils.isEmpty(archiveRecords.getInquiryNumber()), ArchiveRecords::getInquiryNumber, archiveRecords.getInquiryNumber()) |
| | | .like(!StringUtils.isEmpty(archiveRecords.getCaseTitle()), ArchiveRecords::getCaseTitle, archiveRecords.getCaseTitle()) |
| | | |
| | | .like(!StringUtils.isEmpty(archiveRecords.getPublicAttribute()), ArchiveRecords::getPublicAttribute, archiveRecords.getPublicAttribute()) |
| | | .like(!StringUtils.isEmpty(archiveRecords.getPreparationUnit()), ArchiveRecords::getPreparationUnit, archiveRecords.getPreparationUnit()) |
| | | .like(!StringUtils.isEmpty(archiveRecords.getRetentionPeriod()), ArchiveRecords::getRetentionPeriod, archiveRecords.getRetentionPeriod()) |
| | |
| | | .like(!StringUtils.isEmpty(archiveRecords.getEveryProjectName()), ArchiveRecords::getEveryProjectName, archiveRecords.getEveryProjectName()) |
| | | .like(!StringUtils.isEmpty(archiveRecords.getRemarks()), ArchiveRecords::getRemarks, archiveRecords.getRemarks()); |
| | | |
| | | } |
| | | // } |
| | | |
| | | if(archiveRecords.getIds()!=null) |
| | | lqw.in(ArchiveRecords::getId,new ArrayList<>(Arrays.asList(archiveRecords.getIds()))); |
| | |
| | | for (ArchiveRecords archiveRecords : dataList) { |
| | | // physcialService.mySave(physcial); |
| | | archiveRecords.setRecordStatus("未录入"); |
| | | System.out.println(archiveRecords.getProjectName()); |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | |
| | | String title = ""; |
| | | if(archiveRecords.getConstructionUnit()!=null) |
| | | title = title +archiveRecords.getConstructionUnit(); |
| | | if(archiveRecords.getConstructionAddress()!=null) |
| | | title = title + archiveRecords.getConstructionAddress(); |
| | | if(archiveRecords.getProjectName()!=null) |
| | | title = title + archiveRecords.getProjectName(); |
| | | archiveRecords.setCaseTitle(title); |
| | | Date date = Date.from(time.atZone(ZoneId.systemDefault()).toInstant()); |
| | | archiveRecords.setCreateTime(date); |
| | | this.mySave(archiveRecords); |
| | |
| | | // 获取当前用户ID |
| | | Long userId = SecurityUtils.getUserId(); |
| | | // 可以在这里使用userId进行授权操作 |
| | | if(operator.equals("退回管理员")) |
| | | if(operator.equals("退回管理员")||status.equals("录入完成")) |
| | | archiverecordstouserService.deleteArchiverecordstouserByRecordId(id, userId); |
| | | this.baseMapper.updateStatusById(status, id, date); |
| | | return 0; |