|
@@ -179,9 +179,6 @@ public class DeletionServiceImpl implements DeletionService {
|
|
|
|
|
|
@Override
|
|
|
public void computeDeletionTypeNum(List<FundDeletionTypeDO> fundDeletionTypeList) {
|
|
|
- //清空deletion_type_statistics
|
|
|
- deletionTypeStatisticsMapper.truncateTable();
|
|
|
- List<DeletionTypeStatisticsDO> deletionTypeStatisticsDOList = new ArrayList<>();
|
|
|
for (FundDeletionTypeDO fundDeletionType : fundDeletionTypeList) {
|
|
|
try{
|
|
|
String fundId = fundDeletionType.getFundId();
|
|
@@ -190,6 +187,10 @@ public class DeletionServiceImpl implements DeletionService {
|
|
|
Integer processedNum = deletionInfoMapper.countFundDeletion(fundId,deletionType,0);
|
|
|
String lastDeletionDate = deletionInfoMapper.getLastDeletionDate(fundId,deletionType);
|
|
|
DeletionTypeStatisticsDO deletionTypeStatisticsDO = new DeletionTypeStatisticsDO();
|
|
|
+ DeletionTypeStatisticsDO oldDeletionTypeStatisticsDO = deletionTypeStatisticsMapper.getDeletionTypeStatistics(fundId,deletionType);
|
|
|
+ if(oldDeletionTypeStatisticsDO != null){
|
|
|
+ deletionTypeStatisticsDO.setId(oldDeletionTypeStatisticsDO.getId());
|
|
|
+ }
|
|
|
deletionTypeStatisticsDO.setFundId(fundId);
|
|
|
deletionTypeStatisticsDO.setIsvalid(1);
|
|
|
deletionTypeStatisticsDO.setCreateTime(new Date());
|