| | |
| | | ; |
| | | IPage<Notice> noticeIPage = noticeMapper.selectPage(page, queryWrapper); |
| | | List<NoticeCardDTO> noticeCardDTOs = new ArrayList<>(); |
| | | if (CollectionUtils.isEmpty(noticeIPage.getRecords())){ |
| | | if (com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(noticeIPage.getRecords())){ |
| | | noticeCardDTOs = noticeIPage.getRecords().stream().map(s -> { |
| | | NoticeCardDTO noticeCardDTO = new NoticeCardDTO(); |
| | | BeanUtils.copyProperties(s, noticeCardDTO); |
| | | return noticeCardDTO; |
| | | |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | PageData<NoticeCardDTO> pageData = new PageData<>(); |
| | |
| | | * @param memberId 用户主键/商户主键 |
| | | * @param integral 变动积分/现金值 |
| | | * @param objId 关联对象主键 - 积分流水变动记录主键 |
| | | * @param param1 param2 |
| | | */ |
| | | @Override |
| | | public void saveMemberIntegralNotice(Constants.IntegralObjType integralObjType,Integer type, |
| | | Integer memberId, |
| | | BigDecimal integral, |
| | | Integer objId,String param1){ |
| | | Integer objId,String info){ |
| | | String title = integralObjType.getName(); |
| | | String info = integralObjType.getNoteinfo(); |
| | | info = info.replace("${param}",integral.toString()).replace("${param1}",param1); |
| | | this.saveNoticeInfo( |
| | | type, |
| | | Constants.ONE, |