Browse Source

导出总数,所有基础数据相加

master
HAHA 3 years ago
parent
commit
58e2572244
  1. 4
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partymember/service/impl/IcPartyMemberPointServiceImpl.java

4
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partymember/service/impl/IcPartyMemberPointServiceImpl.java

@ -170,7 +170,9 @@ public class IcPartyMemberPointServiceImpl extends BaseServiceImpl<IcPartyMember
public PageData<PartyMemberPointExportResultDTO> getExport(PartyMemberExportFormDTO form,String customerId) {
PageHelper.startPage(form.getPageNo(), form.getPageSize(), form.getIsPage());
List<PartyMemberPointExportResultDTO> dto = baseDao.getExport(form,customerId);
dto.forEach(item -> {
item.setTotalScore(item.getBasePoint() + item.getInspirePoint() + item.getReviewPoint() + item.getWarnPoint());
});
PageInfo<PartyMemberPointExportResultDTO> pageInfo = new PageInfo<>(dto);
return new PageData<>(dto, pageInfo.getTotal());
}

Loading…
Cancel
Save