|
@ -25,6 +25,7 @@ import com.epmet.constant.DataSourceConstant; |
|
|
import com.epmet.dao.evaluationindex.screen.ScreenPartyUserRankDataDao; |
|
|
import com.epmet.dao.evaluationindex.screen.ScreenPartyUserRankDataDao; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenPartyUserRankDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenPartyUserRankDataEntity; |
|
|
import com.epmet.service.evaluationindex.screen.ScreenPartyUserRankDataService; |
|
|
import com.epmet.service.evaluationindex.screen.ScreenPartyUserRankDataService; |
|
|
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
@ -61,7 +62,7 @@ public class ScreenPartyUserRankDataServiceImpl extends BaseServiceImpl<ScreenPa |
|
|
do { |
|
|
do { |
|
|
affectedRows = baseDao.deletePartyUserRankData(customerId); |
|
|
affectedRows = baseDao.deletePartyUserRankData(customerId); |
|
|
} while (affectedRows > NumConstant.ZERO); |
|
|
} while (affectedRows > NumConstant.ZERO); |
|
|
baseDao.insertBatch(dataList); |
|
|
ListUtils.partition(dataList,NumConstant.ONE_THOUSAND).forEach(part->baseDao.insertBatch(part)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|