40 lines
1.2 KiB
Java
40 lines
1.2 KiB
Java
|
|
package com.gunshi.project.ss.service;
|
||
|
|
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||
|
|
import com.gunshi.project.ss.mapper.HiddenInfoMapper;
|
||
|
|
import com.gunshi.project.ss.model.FileAssociations;
|
||
|
|
import com.gunshi.project.ss.model.HiddenInfo;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.stereotype.Service;
|
||
|
|
import org.springframework.transaction.annotation.Transactional;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
@Service
|
||
|
|
@Slf4j
|
||
|
|
@Transactional(rollbackFor = Exception.class)
|
||
|
|
public class HiddenInfoService extends ServiceImpl<HiddenInfoMapper, HiddenInfo> {
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private FileAssociationsService fileService;
|
||
|
|
|
||
|
|
public String getGroupId(){
|
||
|
|
return "hiddenInfo";
|
||
|
|
}
|
||
|
|
|
||
|
|
public void saveFile(List<FileAssociations> files, String businessId) {
|
||
|
|
fileService.saveFile(files,getGroupId(),businessId);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void deleteFile(String businessId) {
|
||
|
|
fileService.deleteFile(getGroupId(),businessId);
|
||
|
|
}
|
||
|
|
|
||
|
|
public List<FileAssociations> getFiles(String businessId) {
|
||
|
|
List<FileAssociations> files = fileService.getFiles(getGroupId(), businessId);
|
||
|
|
return files;
|
||
|
|
}
|
||
|
|
}
|