|
@@ -4,7 +4,9 @@ import com.simuwang.base.common.conts.FileSourceType;
|
|
|
import com.simuwang.base.common.support.MybatisPage;
|
|
|
import com.simuwang.base.common.util.DateUtils;
|
|
|
import com.simuwang.base.mapper.daq.FileManageMapper;
|
|
|
+import com.simuwang.base.mapper.daq.FundInfoMapper;
|
|
|
import com.simuwang.base.pojo.dos.FileManageDO;
|
|
|
+import com.simuwang.base.pojo.dos.FundInfoDO;
|
|
|
import com.simuwang.base.pojo.dto.query.FileManagePageQuery;
|
|
|
import com.simuwang.base.pojo.vo.FileManageVO;
|
|
|
import com.simuwang.base.pojo.vo.SourceTypeVO;
|
|
@@ -38,6 +40,9 @@ public class FileMangeServiceImpl implements FileMangeService {
|
|
|
@Autowired
|
|
|
private FileManageMapper fileManageMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FundInfoMapper fundInfoMapper;
|
|
|
+
|
|
|
@Value("${email.file.path}")
|
|
|
private String path;
|
|
|
@Override
|
|
@@ -101,4 +106,16 @@ public class FileMangeServiceImpl implements FileMangeService {
|
|
|
Integer userId = UserUtils.getLoginUser().getUserId();
|
|
|
fileManageMapper.changeFileSourceType(fileIdList,fileType,userId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void changeFileFundMappingInfo(List<Integer> fileIdList, String fundId) {
|
|
|
+ try{
|
|
|
+ FundInfoDO fundInfoDO = fundInfoMapper.searchFundDetail(fundId);
|
|
|
+ Integer userId = UserUtils.getLoginUser().getUserId();
|
|
|
+ fileManageMapper.batchUpdateFileManageInfo(fileIdList,fundInfoDO.getFundId(),fundInfoDO.getFundName(),fundInfoDO.getRegisterNumber(),userId);
|
|
|
+ }catch (Exception e){
|
|
|
+ logger.error(e.getMessage(),e);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|