Browse Source

fix: 导入增加基金名称的返回

chenjianhua 7 months ago
parent
commit
697a6534ac

+ 3 - 0
service-manage/src/main/java/com/simuwang/manage/service/impl/DistributionServiceImpl.java

@@ -189,6 +189,9 @@ public class DistributionServiceImpl implements DistributionService {
                 }
                 if(StringUtil.isNotEmpty(excelData.getFundId())){
                     String fundName = fundInfoMapper.getFundNameByFundId(excelData.getFundId());
+                    if(StringUtil.isEmpty(excelData.getFundName())){
+                        excelData.setFundName(fundName);
+                    }
                     if(StringUtil.isEmpty(fundName)){
                         ExcelFailDataVO failDataVO = toExcelFailDataVO(excelData,ExcelConst.NOT_MAPPING_FUND,dataIdx+startRow);
                         excelFailDataVOList.add(failDataVO);

+ 3 - 0
service-manage/src/main/java/com/simuwang/manage/service/impl/FundNavAssetServiceImpl.java

@@ -170,6 +170,9 @@ public class FundNavAssetServiceImpl implements FundNavAssetService {
                 }
                 if(StringUtil.isNotEmpty(excelData.getFundId())){
                     String fundName = fundInfoMapper.getFundNameByFundId(excelData.getFundId());
+                    if(StringUtil.isEmpty(excelData.getFundName())){
+                        excelData.setFundName(fundName);
+                    }
                     if(StringUtil.isEmpty(fundName)){
                         ExcelNavAssetFailDataVO failDataVO = toExcelFailDataVO(excelData,ExcelConst.NOT_MAPPING_FUND,dataIdx+startRow);
                         excelFailDataVOList.add(failDataVO);