Commit c359b206 by xiongjiangtao

社群邀请明细

parent 779f5734
...@@ -42,6 +42,7 @@ public class GroupChatActivityInviteLogServiceImpl implements GroupChatActivityI ...@@ -42,6 +42,7 @@ public class GroupChatActivityInviteLogServiceImpl implements GroupChatActivityI
if (Objects.isNull(maxBatch)) { if (Objects.isNull(maxBatch)) {
return Lists.newArrayList(); return Lists.newArrayList();
} }
inviteLogQDTO.setBatchNumber(maxBatch);
List<TabGroupChatActivityInviteLog> logList = groupChatActivityInviteLogMapper.queryList(inviteLogQDTO); List<TabGroupChatActivityInviteLog> logList = groupChatActivityInviteLogMapper.queryList(inviteLogQDTO);
if(CollectionUtils.isEmpty(logList)){ if(CollectionUtils.isEmpty(logList)){
return Lists.newArrayList(); return Lists.newArrayList();
......
...@@ -191,17 +191,14 @@ ...@@ -191,17 +191,14 @@
<if test="addMemberType != null"> <if test="addMemberType != null">
and add_member_type = #{addMemberType} and add_member_type = #{addMemberType}
</if> </if>
<if test="inviteType != null">
and invite_type = #{inviteType}
</if>
<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>
<if test="sortFiled != null"> <if test="sortFiled != null">
order by #{sortFiled} #{sortType} order by #{sortFiled} #{sortType}
</if> </if>
</select> </select>
</mapper> </mapper>
...@@ -31,6 +31,8 @@ public class GroupChatInviteActivityTest { ...@@ -31,6 +31,8 @@ public class GroupChatInviteActivityTest {
inviteLogQDTO.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000"); inviteLogQDTO.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
inviteLogQDTO.setChatActivityId(716721754221821953L); inviteLogQDTO.setChatActivityId(716721754221821953L);
// inviteLogQDTO.setInviteType(1); // inviteLogQDTO.setInviteType(1);
inviteLogQDTO.setSortFiled("create_time");
inviteLogQDTO.setSortType("desc");
inviteLogQDTO.setInviterMemberId("ff808081906def5201907645bfc7005a"); 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());
......
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