|
@@ -263,8 +263,16 @@ public class SocialServiceImpl implements SocialServiceI {
|
263
|
263
|
Map<String, Object> parameter = Maps.newHashMap();
|
264
|
264
|
ResponseBean responseBean= new ResponseBean();
|
265
|
265
|
Page<TpTransaction> pageList=PageHelper.startPage(pageNum, paeSize);
|
266
|
|
- List<TpTransaction> List= tpTransactionMapper.findAllTransaction(communityId, transactionTitle,type);
|
267
|
|
- parameter.put("list",List);
|
|
266
|
+ List<TpTransaction> tpTransactions= tpTransactionMapper.findAllTransaction(communityId, transactionTitle,type);
|
|
267
|
+
|
|
268
|
+ tpTransactions.stream().forEach(e->{
|
|
269
|
+ // 角色
|
|
270
|
+ TaSysRole taSysRole = taSysRoleMapper.findRoleByUserId(e.getTaUserId());
|
|
271
|
+ e.setRoleId(taSysRole.getId());
|
|
272
|
+ e.setRoleName(taSysRole.getRoleName());
|
|
273
|
+ });
|
|
274
|
+
|
|
275
|
+ parameter.put("list",tpTransactions);
|
268
|
276
|
parameter.put("total",pageList.getTotal());
|
269
|
277
|
responseBean.addSuccess(parameter);
|
270
|
278
|
return responseBean;
|
|
@@ -373,6 +381,14 @@ public class SocialServiceImpl implements SocialServiceI {
|
373
|
381
|
Map<String, Object> parameter = Maps.newHashMap();
|
374
|
382
|
Page<TpTransaction> pageLsit=PageHelper.startPage(pageNum, paeSize);
|
375
|
383
|
List<TpTransaction> tpTransactions=tpTransactionMapper.selectTransaction(userId,communityId,type);
|
|
384
|
+
|
|
385
|
+ tpTransactions.stream().forEach(e->{
|
|
386
|
+ // 角色
|
|
387
|
+ TaSysRole taSysRole = taSysRoleMapper.findRoleByUserId(user.getId());
|
|
388
|
+ e.setRoleId(taSysRole.getId());
|
|
389
|
+ e.setRoleName(taSysRole.getRoleName());
|
|
390
|
+ });
|
|
391
|
+
|
376
|
392
|
parameter.put("list",tpTransactions);
|
377
|
393
|
parameter.put("total",pageLsit.getTotal());
|
378
|
394
|
responseBean.addSuccess(parameter);
|