Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
6347e6c8
Commit
6347e6c8
authored
Oct 12, 2024
by
xiongjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群邀请明细
parent
baaf90a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
GroupChatActivityRewardLogServiceImpl.java
...vice/chat/impl/GroupChatActivityRewardLogServiceImpl.java
+4
-2
GroupChatActivityRewardLogMapper.xml
...esources/mapper/chat/GroupChatActivityRewardLogMapper.xml
+2
-2
GroupChatInviteActivityTest.java
...e3-service/src/test/java/GroupChatInviteActivityTest.java
+10
-10
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatActivityRewardLogServiceImpl.java
View file @
6347e6c8
...
@@ -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
;
}
}
}
}
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatActivityRewardLogMapper.xml
View file @
6347e6c8
...
@@ -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=
"
inviteTyp
e != null"
>
<if
test=
"
endTim
e != null"
>
and create_time lt #{endTime}
and create_time lt #{endTime}
</if>
</if>
order by create_time desc
order by create_time desc
...
...
haoban-manage3-service/src/test/java/GroupChatInviteActivityTest.java
View file @
6347e6c8
...
@@ -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
(
1
L
);
inviteLogQDTO
.
setChatActivityId
(
716721754221821953
L
);
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
(
1
L
);
inviteLogQDTO
.
setChatActivityId
(
716721754221821953
L
);
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
(
1
L
);
inviteLogQDTO
.
setChatActivityId
(
716721754221821953
L
);
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
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment