| | |
| | | AttachmentInfo attachmentInfo = new AttachmentInfo(); |
| | | attachmentInfo.setId(id); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | //attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setDelFlag(1); |
| | | attachmentInfoMapper.updateById(attachmentInfo); |
| | | } |
| | |
| | | public void deleteByBusinessId(Long businessId) { |
| | | attachmentInfoMapper.deleteByBusinessId(businessId); |
| | | } |
| | | |
| | | @Override |
| | | public List<AttachmentInfo> findByKeys(List<String> keys) { |
| | | return attachmentInfoMapper.selectList(new LambdaQueryWrapper<AttachmentInfo>() |
| | | .in(AttachmentInfo::getFileKey,keys) |
| | | .eq(AttachmentInfo::getDelFlag,0)); |
| | | } |
| | | } |
| | | |