| | |
| | | @Resource |
| | | private SystemStorageAttachmentService systemStorageAttachmentService; |
| | | |
| | | @Resource |
| | | private cn.iocoder.yudao.module.system.dal.mysql.storage.SystemStorageAttachmentMapper attachmentMapper; |
| | | |
| | | @Override |
| | | @org.springframework.transaction.annotation.Transactional(rollbackFor = Exception.class) |
| | | public void removeReference(String application, String recordType, Long recordId, Long blobId) { |
| | | attachmentMapper.delete(new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<cn.iocoder.yudao.module.system.dal.dataobject.storage.SystemStorageAttachmentDO>() |
| | | .eq(cn.iocoder.yudao.module.system.dal.dataobject.storage.SystemStorageAttachmentDO::getApplication, application) |
| | | .eq(cn.iocoder.yudao.module.system.dal.dataobject.storage.SystemStorageAttachmentDO::getRecordType, recordType) |
| | | .eq(cn.iocoder.yudao.module.system.dal.dataobject.storage.SystemStorageAttachmentDO::getRecordId, recordId) |
| | | .eq(cn.iocoder.yudao.module.system.dal.dataobject.storage.SystemStorageAttachmentDO::getStorageBlobId, blobId)); |
| | | } |
| | | |
| | | @Override |
| | | public void bindAttachments(String application, String recordType, Long recordId, List<Long> blobIds) { |
| | | if (blobIds == null || blobIds.isEmpty()) { |