Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
ea3914d4
Commit
ea3914d4
authored
Jul 06, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [10024256] 上下五千年这本书匹配的群展示空白
parent
e163c205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
13 deletions
+26
-13
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+25
-12
RightNowItem.xml
.../src/main/resources/mapper/rightssetting/RightNowItem.xml
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
ea3914d4
...
@@ -60,6 +60,7 @@ import com.pcloud.usercenter.party.agent.service.AgentService;
...
@@ -60,6 +60,7 @@ import com.pcloud.usercenter.party.agent.service.AgentService;
import
com.sdk.wxgroup.RobotProcessTypeEnum
;
import
com.sdk.wxgroup.RobotProcessTypeEnum
;
import
com.sdk.wxgroup.SendGroupInviteVO
;
import
com.sdk.wxgroup.SendGroupInviteVO
;
import
com.sdk.wxgroup.SendPicMessageVO
;
import
com.sdk.wxgroup.SendPicMessageVO
;
import
java.util.Iterator
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -438,14 +439,29 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -438,14 +439,29 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(
ListUtils
.
isEmpty
(
ids
))
{
if
(
ListUtils
.
isEmpty
(
ids
))
{
return
new
HashMap
<>();
return
new
HashMap
<>();
}
}
List
<
Long
>
activityGroupIds
=
new
ArrayList
<>();
List
<
Long
>
adviserGroupIds
=
rightsSettingItemDetailDao
.
getAdviserGroupIds
(
ids
);
List
<
Long
>
adviserGroupIds
=
rightsSettingItemDetailDao
.
getAdviserGroupIds
(
ids
);
List
<
Long
>
adviserGroupIds4Save
=
Lists
.
newArrayList
(
adviserGroupIds
);
List
<
Long
>
activityGroupIds
=
getActivityGroupIds
(
ids
,
adviserGroupIds
);
// 合并
return
getGroupMap
(
adviserGroupIds4Save
,
activityGroupIds
);
}
private
List
<
Long
>
getActivityGroupIds
(
List
<
Long
>
ids
,
List
<
Long
>
adviserGroupIds
)
{
if
(!
ListUtils
.
isEmpty
(
adviserGroupIds
))
{
if
(!
ListUtils
.
isEmpty
(
adviserGroupIds
))
{
ids
.
removeAll
(
adviserGroupIds
);
Iterator
<
Long
>
it4Ids
=
ids
.
iterator
();
while
(
it4Ids
.
hasNext
())
{
Long
serverId
=
it4Ids
.
next
();
Iterator
<
Long
>
it4Group
=
adviserGroupIds
.
iterator
();
while
(
it4Group
.
hasNext
())
{
Long
serverId4Group
=
it4Group
.
next
();
if
(
serverId
.
equals
(
serverId4Group
))
{
it4Group
.
remove
();
it4Ids
.
remove
();
}
}
}
}
}
activityGroupIds
=
ids
;
return
ids
;
// 合并
return
getGroupMap
(
adviserGroupIds
,
activityGroupIds
);
}
}
private
Map
<
Long
,
GroupActivity4AppletDTO
>
getGroupMap
(
List
<
Long
>
adviserGroupIds
,
List
<
Long
>
activityGroupIds
)
{
private
Map
<
Long
,
GroupActivity4AppletDTO
>
getGroupMap
(
List
<
Long
>
adviserGroupIds
,
List
<
Long
>
activityGroupIds
)
{
...
@@ -569,16 +585,13 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -569,16 +585,13 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
@Override
@Override
public
Map
<
Long
,
GroupActivity4AppletDTO
>
getByIds4Now
(
List
<
Long
>
ids
)
{
public
Map
<
Long
,
GroupActivity4AppletDTO
>
getByIds4Now
(
List
<
Long
>
ids
)
{
if
(
ListUtils
.
isEmpty
(
ids
))
{
if
(
ListUtils
.
isEmpty
(
ids
))
{
return
new
HashMap
<>();
return
new
HashMap
<>();
}
}
List
<
Long
>
adviserGroupIds
=
rightsNowItemDao
.
getAdviserGroupIds
(
ids
);
List
<
Long
>
adviserGroupIds
=
rightsNowItemDao
.
getAdviserGroupIds
(
ids
);
List
<
Long
>
activityGroupIds
=
new
ArrayList
<>();
List
<
Long
>
adviserGroupIds4Save
=
Lists
.
newArrayList
(
adviserGroupIds
);
if
(!
ListUtils
.
isEmpty
(
adviserGroupIds
))
{
List
<
Long
>
activityGroupIds
=
getActivityGroupIds
(
ids
,
adviserGroupIds
);
ids
.
removeAll
(
adviserGroupIds
);
return
getGroupMap
(
adviserGroupIds4Save
,
activityGroupIds
);
}
activityGroupIds
=
ids
;
return
getGroupMap
(
adviserGroupIds
,
activityGroupIds
);
}
}
@Override
@Override
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightNowItem.xml
View file @
ea3914d4
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
<select
id=
"getAdviserGroupIds"
parameterType=
"list"
resultType=
"long"
>
<select
id=
"getAdviserGroupIds"
parameterType=
"list"
resultType=
"long"
>
select
select
serve_id
DISTINCT(serve_id)
from
from
rights_now_item
rights_now_item
where
where
...
...
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