Commit 6347e6c8 by xiongjiangtao

社群邀请明细

parent baaf90a7
...@@ -51,6 +51,8 @@ public class GroupChatActivityRewardLogServiceImpl implements GroupChatActivityR ...@@ -51,6 +51,8 @@ public class GroupChatActivityRewardLogServiceImpl implements GroupChatActivityR
if (CollectionUtils.isEmpty(rewardLogList)) { if (CollectionUtils.isEmpty(rewardLogList)) {
return PageHelperUtils.changePageHelperToCurrentPage(rewardLogList, GroupChatActivityRewardLogDTO.class); return PageHelperUtils.changePageHelperToCurrentPage(rewardLogList, GroupChatActivityRewardLogDTO.class);
} }
Page<GroupChatActivityRewardLogDTO> page = PageHelperUtils.changePageHelperToCurrentPage(rewardLogList, GroupChatActivityRewardLogDTO.class);
List<Long> rewardLogIdList = rewardLogList.stream() List<Long> rewardLogIdList = rewardLogList.stream()
.map(TabGroupChatActivityRewardLog::getChatActivityRewardLogId).collect(Collectors.toList()); .map(TabGroupChatActivityRewardLog::getChatActivityRewardLogId).collect(Collectors.toList());
GroupChatActivityRewardDetailLogQDTO rewardDetailLogQDTO = new GroupChatActivityRewardDetailLogQDTO(); GroupChatActivityRewardDetailLogQDTO rewardDetailLogQDTO = new GroupChatActivityRewardDetailLogQDTO();
...@@ -69,7 +71,7 @@ public class GroupChatActivityRewardLogServiceImpl implements GroupChatActivityR ...@@ -69,7 +71,7 @@ public class GroupChatActivityRewardLogServiceImpl implements GroupChatActivityR
return rewardLogDTO; return rewardLogDTO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
page.setResult(rewardLogDTOList);
return PageHelperUtils.changePageHelperToCurrentPage(rewardLogDTOList, GroupChatActivityRewardLogDTO.class); return page;
} }
} }
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
chat_activity_reward_id chat_activity_reward_log_id
, chat_activity_id, , chat_activity_id,
member_id, reward_invite, invite_level, member_id, reward_invite, invite_level,
enterprise_id, wx_enterprise_id, enterprise_id, wx_enterprise_id,
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<if test="beginTime != null"> <if test="beginTime != null">
and create_time gt #{beginTime} and create_time gt #{beginTime}
</if> </if>
<if test="inviteType != null"> <if test="endTime != null">
and create_time lt #{endTime} and create_time lt #{endTime}
</if> </if>
order by create_time desc order by create_time desc
......
...@@ -28,10 +28,10 @@ public class GroupChatInviteActivityTest { ...@@ -28,10 +28,10 @@ public class GroupChatInviteActivityTest {
@Test @Test
public void queryMaxBatchInviteLog(){ public void queryMaxBatchInviteLog(){
GroupChatActivityInviteLogQDTO inviteLogQDTO = new GroupChatActivityInviteLogQDTO(); GroupChatActivityInviteLogQDTO inviteLogQDTO = new GroupChatActivityInviteLogQDTO();
inviteLogQDTO.setEnterpriseId("111"); inviteLogQDTO.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
inviteLogQDTO.setChatActivityId(1L); inviteLogQDTO.setChatActivityId(716721754221821953L);
inviteLogQDTO.setInviteType(1); // inviteLogQDTO.setInviteType(1);
inviteLogQDTO.setInviterMemberId("111"); inviteLogQDTO.setInviterMemberId("ff808081906def5201907645bfc7005a");
ServiceResponse<List<GroupChatActivityInviteLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryMaxBatchInviteLog(inviteLogQDTO); ServiceResponse<List<GroupChatActivityInviteLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryMaxBatchInviteLog(inviteLogQDTO);
System.out.println(listServiceResponse.getResult()); System.out.println(listServiceResponse.getResult());
} }
...@@ -39,9 +39,9 @@ public class GroupChatInviteActivityTest { ...@@ -39,9 +39,9 @@ public class GroupChatInviteActivityTest {
@Test @Test
public void queryInviteLogDetails(){ public void queryInviteLogDetails(){
GroupChatActivityInviteLogQDTO inviteLogQDTO = new GroupChatActivityInviteLogQDTO(); GroupChatActivityInviteLogQDTO inviteLogQDTO = new GroupChatActivityInviteLogQDTO();
inviteLogQDTO.setEnterpriseId("111"); inviteLogQDTO.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
inviteLogQDTO.setChatActivityId(1L); inviteLogQDTO.setChatActivityId(716721754221821953L);
inviteLogQDTO.setInviterMemberId("111"); inviteLogQDTO.setInviterMemberId("ff808081906def5201907645bfc7005a");
inviteLogQDTO.setSortFiled("create_time"); inviteLogQDTO.setSortFiled("create_time");
inviteLogQDTO.setSortType("desc"); inviteLogQDTO.setSortType("desc");
ServiceResponse<Page<GroupChatActivityInviteLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryInviteLogDetails(inviteLogQDTO); ServiceResponse<Page<GroupChatActivityInviteLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryInviteLogDetails(inviteLogQDTO);
...@@ -51,9 +51,9 @@ public class GroupChatInviteActivityTest { ...@@ -51,9 +51,9 @@ public class GroupChatInviteActivityTest {
@Test @Test
public void queryRewardLogDetails(){ public void queryRewardLogDetails(){
GroupChatActivityRewardLogQDTO inviteLogQDTO = new GroupChatActivityRewardLogQDTO(); GroupChatActivityRewardLogQDTO inviteLogQDTO = new GroupChatActivityRewardLogQDTO();
inviteLogQDTO.setEnterpriseId("111"); inviteLogQDTO.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
inviteLogQDTO.setChatActivityId(1L); inviteLogQDTO.setChatActivityId(716721754221821953L);
inviteLogQDTO.setMemberId("111"); inviteLogQDTO.setMemberId("ff808081906def5201907645bfc7005a");
ServiceResponse<Page<GroupChatActivityRewardLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryRewardLogDetails(inviteLogQDTO); ServiceResponse<Page<GroupChatActivityRewardLogDTO>> listServiceResponse = groupChatActivityLogApiService.queryRewardLogDetails(inviteLogQDTO);
System.out.println(listServiceResponse.getResult()); System.out.println(listServiceResponse.getResult());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment