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
dedd3028
Commit
dedd3028
authored
Jul 31, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/1024701' into 'master'
bug: [1024701] 点击已经被删除的群提示报错 See merge request rays/pcloud-book!857
parents
180ba1d0
74940dd1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
20 deletions
+33
-20
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+3
-0
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+6
-1
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+9
-7
PcloudGroupActivityDao.xml
...rc/main/resources/mapper/skill/PcloudGroupActivityDao.xml
+15
-12
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
dedd3028
...
@@ -990,6 +990,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
...
@@ -990,6 +990,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
@Override
@Override
public
ClassifyQrcodeVO
getGroupQrcodeInfo
(
String
groupQrCode
,
Long
classifyId
)
{
public
ClassifyQrcodeVO
getGroupQrcodeInfo
(
String
groupQrCode
,
Long
classifyId
)
{
List
<
ClassifyQrcodeVO
>
qrcodeVOS
=
groupQrcodeDao
.
getQrcodeByClassifyId
(
classifyId
);
List
<
ClassifyQrcodeVO
>
qrcodeVOS
=
groupQrcodeDao
.
getQrcodeByClassifyId
(
classifyId
);
if
(
ListUtils
.
isEmpty
(
qrcodeVOS
)){
return
null
;
}
for
(
ClassifyQrcodeVO
qrcodeVO
:
qrcodeVOS
)
{
for
(
ClassifyQrcodeVO
qrcodeVO
:
qrcodeVOS
)
{
if
(!
StringUtil
.
isEmpty
(
groupQrCode
)
&&
qrcodeVO
.
getQrcodeUrl
().
equals
(
groupQrCode
)){
if
(!
StringUtil
.
isEmpty
(
groupQrCode
)
&&
qrcodeVO
.
getQrcodeUrl
().
equals
(
groupQrCode
)){
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
dedd3028
...
@@ -807,7 +807,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -807,7 +807,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if
(!
MapUtils
.
isEmpty
(
nowItemMap
))
{
if
(!
MapUtils
.
isEmpty
(
nowItemMap
))
{
// 填充应用、作品、社群、资讯
// 填充应用、作品、社群、资讯
for
(
RightsSettingTitle
rightsSettingTitle
:
rightsSettingTitles
)
{
for
(
RightsSettingTitle
rightsSettingTitle
:
rightsSettingTitles
)
{
rightsSettingTitle
.
setRightsSettingItemList
(
nowItemMap
.
get
(
rightsSettingTitle
.
getId
()));
if
(!
ListUtils
.
isEmpty
(
nowItemMap
.
get
(
rightsSettingTitle
.
getId
()))){
//add py pansy 删除的群不显示
rightsSettingTitle
.
setRightsSettingItemList
(
nowItemMap
.
get
(
rightsSettingTitle
.
getId
()));
}
}
}
}
}
fillProductAndApp
(
nowItems
);
fillProductAndApp
(
nowItems
);
...
@@ -1978,6 +1980,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -1978,6 +1980,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
}
//移除不能购买的应用或作品
//移除不能购买的应用或作品
removeCanNotBuy
(
nowItems
);
removeCanNotBuy
(
nowItems
);
fillProductAndApp
(
nowItems
);
for
(
RightsNowItem
nowItem
:
nowItems
)
{
for
(
RightsNowItem
nowItem
:
nowItems
)
{
if
(
itemType
.
value
.
equals
(
nowItem
.
getType
()))
{
if
(
itemType
.
value
.
equals
(
nowItem
.
getType
()))
{
items
.
add
(
nowItem
);
items
.
add
(
nowItem
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
dedd3028
...
@@ -573,17 +573,19 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -573,17 +573,19 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
activity4AppletDTO
.
getClassifyId
());
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
activity4AppletDTO
.
getClassifyId
());
// 通过群二维码链接反查群ID
// 通过群二维码链接反查群ID
if
(
activity4AppletDTO
.
get
ClassifyId
()
!=
null
&&
activity4AppletDTO
.
getClassifyId
()
!=
0
){
if
(
activity4AppletDTO
.
get
GroupType
()
==
null
||
activity4AppletDTO
.
getGroupType
()!=
1
){
ClassifyQrcodeVO
groupQrcodeInfo
=
groupQrcodeBiz
ClassifyQrcodeVO
groupQrcodeInfo
=
groupQrcodeBiz
.
getGroupQrcodeInfo
(
groupQrCode
,
activity4AppletDTO
.
getClassifyId
());
.
getGroupQrcodeInfo
(
groupQrCode
,
activity4AppletDTO
.
getClassifyId
());
//头像、对话
//头像、对话
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
if
(
groupQrcodeInfo
!=
null
&&
groupQrcodeInfo
.
getId
()!=
null
){
.
getHeadUrlList
(
groupQrcodeInfo
.
getUserNumber
(),
groupQrcodeInfo
.
getId
());
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
activity4AppletDTO
.
setHeadUrlList
(
headUrlList
);
.
getHeadUrlList
(
groupQrcodeInfo
.
getUserNumber
(),
groupQrcodeInfo
.
getId
());
List
<
AppletGroupStatementDTO
>
statementDTOS
=
appletGroupSearchRecordBiz
activity4AppletDTO
.
setHeadUrlList
(
headUrlList
);
.
getStatementList
(
groupQrcodeInfo
.
getUserNumber
(),
headUrlList
,
groupQrcodeInfo
.
getId
());
List
<
AppletGroupStatementDTO
>
statementDTOS
=
appletGroupSearchRecordBiz
activity4AppletDTO
.
setStatementDTOList
(
statementDTOS
);
.
getStatementList
(
groupQrcodeInfo
.
getUserNumber
(),
headUrlList
,
groupQrcodeInfo
.
getId
());
activity4AppletDTO
.
setStatementDTOList
(
statementDTOS
);
}
}
else
{
}
else
{
//头像、对话
//头像、对话
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
...
...
pcloud-service-book/src/main/resources/mapper/skill/PcloudGroupActivityDao.xml
View file @
dedd3028
...
@@ -227,10 +227,11 @@
...
@@ -227,10 +227,11 @@
FROM
FROM
pcloud_group_activity a
pcloud_group_activity a
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_qrcode b ON b.classify_id = c.id
AND b.is_delete = 0
LEFT JOIN book_group_qrcode b ON b.classify_id = c.id
LEFT JOIN book_group d ON c.book_group_id = d.id
LEFT JOIN book_group d ON c.book_group_id = d.id
WHERE
WHERE
a.is_delete = 0 AND a.is_show = 1
a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
and !(c.id is null and a.group_type!=1)
<if
test=
"firstClassify != null"
>
<if
test=
"firstClassify != null"
>
and a.first_classify = #{firstClassify}
and a.first_classify = #{firstClassify}
</if>
</if>
...
@@ -301,7 +302,7 @@
...
@@ -301,7 +302,7 @@
LEFT JOIN pcloud_group_activity a ON a.book_group_classify_id = c.id
LEFT JOIN pcloud_group_activity a ON a.book_group_classify_id = c.id
LEFT JOIN book_group_qrcode b on b.classify_id = c.id
LEFT JOIN book_group_qrcode b on b.classify_id = c.id
where
where
b.is_delete
= 0
IFNULL(b.is_delete,0)
= 0
and
and
c.id IN
c.id IN
<foreach
collection=
"list"
item=
"item"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
open=
"("
close=
")"
separator=
","
>
...
@@ -333,11 +334,12 @@
...
@@ -333,11 +334,12 @@
'GROUP' as serveType
'GROUP' as serveType
FROM
FROM
pcloud_group_activity a
pcloud_group_activity a
left JOIN book_group_classify c ON a.book_group_classify_id = c.id
AND c.is_delete = 0
left JOIN book_group_classify c ON a.book_group_classify_id = c.id
left JOIN book_group_qrcode b on b.classify_id = c.id
AND b.is_delete = 0
left JOIN book_group_qrcode b on b.classify_id = c.id
left JOIN book_group d ON c.book_group_id = d.id
left JOIN book_group d ON c.book_group_id = d.id
WHERE
WHERE
a.is_delete = 0
a.is_delete = 0 AND IFNULL(b.is_delete,0) = 0
AND IFNULL(c.is_delete, 0) = 0
<if
test=
"isShow != null"
>
<if
test=
"isShow != null"
>
AND a.is_show = #{isShow}
AND a.is_show = #{isShow}
</if>
</if>
...
@@ -401,9 +403,9 @@
...
@@ -401,9 +403,9 @@
FROM
FROM
pcloud_group_activity a
pcloud_group_activity a
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id
AND b.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id
WHERE
WHERE
a.is_delete = 0 AND a.is_show = 1
a.is_delete = 0 AND a.is_show = 1
AND IFNULL(b.is_delete,0) = 0
<if
test=
"firstClassify != null"
>
<if
test=
"firstClassify != null"
>
and a.first_classify = #{firstClassify}
and a.first_classify = #{firstClassify}
</if>
</if>
...
@@ -557,10 +559,11 @@
...
@@ -557,10 +559,11 @@
FROM
FROM
pcloud_group_activity a
pcloud_group_activity a
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_qrcode b on c.id = b.classify_id
AND b.is_delete = 0
LEFT JOIN book_group_qrcode b on c.id = b.classify_id
LEFT JOIN book_group g ON g.id = c.book_group_id
LEFT JOIN book_group g ON g.id = c.book_group_id
WHERE
WHERE
a.is_delete = 0 AND a.is_show = 1
a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
and !(c.id is null and a.group_type!=1)
<if
test=
"firstClassify != null"
>
<if
test=
"firstClassify != null"
>
and a.first_classify = #{firstClassify}
and a.first_classify = #{firstClassify}
</if>
</if>
...
@@ -600,10 +603,10 @@
...
@@ -600,10 +603,10 @@
FROM
FROM
pcloud_group_activity a
pcloud_group_activity a
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id
AND b.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id
LEFT JOIN book_group g ON g.id = c.book_group_id
LEFT JOIN book_group g ON g.id = c.book_group_id
WHERE
WHERE
a.is_delete = 0 AND a.is_show = 1
a.is_delete = 0 AND a.is_show = 1
AND IFNULL(b.is_delete,0) = 0
and c.city_code = #{cityCode}
and c.city_code = #{cityCode}
and a.group_type != 1
and a.group_type != 1
GROUP BY a.id
GROUP BY a.id
...
...
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