|
@@ -171,7 +171,7 @@ public class DistributionServiceImpl implements DistributionService {
|
|
|
if((StringUtil.isEmpty(excelData.getFundName()) && StringUtil.isEmpty(excelData.getFundId()))
|
|
|
|| StringUtil.isEmpty(excelData.getPriceDate()) || StringUtil.isEmpty(excelData.getNav())
|
|
|
|| StringUtil.isEmpty(excelData.getDistributeType()) || StringUtil.isEmpty(excelData.getDistribution())
|
|
|
- || StringUtil.isEmpty(excelData.getCumulativeNavWithdrawal())){
|
|
|
+ || StringUtil.isEmpty(excelData.getCumulativeNavWithdrawal()) || StringUtil.isEmpty(excelData.getChannelId())){
|
|
|
ExcelFailDataVO failDataVO = toExcelFailDataVO(excelData,ExcelConst.REQUIRE_FIELD,dataIdx+startRow);
|
|
|
excelFailDataVOList.add(failDataVO);
|
|
|
continue;
|
|
@@ -209,9 +209,18 @@ public class DistributionServiceImpl implements DistributionService {
|
|
|
excelData.setFundId(fundId);
|
|
|
}
|
|
|
}
|
|
|
+ Integer channelId = null;
|
|
|
+ try{
|
|
|
+ channelId = Integer.parseInt(excelData.getChannelId());
|
|
|
+ }catch (Exception e){
|
|
|
+ ExcelFailDataVO failDataVO = toExcelFailDataVO(excelData,ExcelConst.CHANNEL_ID_ERROR,dataIdx+startRow);
|
|
|
+ excelFailDataVOList.add(failDataVO);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
//开始处理成功数据
|
|
|
DistributionVO distributionVO = new DistributionVO();
|
|
|
distributionVO.setFundId(excelData.getFundId());
|
|
|
+ distributionVO.setChannelId(channelId);
|
|
|
distributionVO.setDistributeDate(excelData.getPriceDate());
|
|
|
distributionVO.setDistributeType(DistributeType.getDistributeTypeByInfo(excelData.getDistributeType()).getCode());
|
|
|
distributionVO.setDistribution(BigDecimal.valueOf(Double.valueOf(excelData.getDistribution())));
|