|
|
@ -123,7 +123,9 @@ public class VolunteerRankServiceImpl extends BaseServiceImpl<VolunteerRankDao, |
|
|
|
@Override |
|
|
|
public Result generateRankingList(List<EpdcGetVolunteerRankDTO> list){ |
|
|
|
if(list != null && list.size() > 0){ |
|
|
|
baseDao.clearGenerateRankingList(); |
|
|
|
for(int i = 0 ; i < list.size(); i++ ){ |
|
|
|
//插入前先清空数据
|
|
|
|
EpdcGetVolunteerRankDTO epdcGetVolunteerRankDTO = list.get(i); |
|
|
|
VolunteerRankEntity entity = ConvertUtils.sourceToTarget(epdcGetVolunteerRankDTO, VolunteerRankEntity.class); |
|
|
|
insert(entity); |
|
|
|