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
4fce08a5
Commit
4fce08a5
authored
Jul 06, 2020
by
pansy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug [1024245] Configuration blank
parent
c7c9c246
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
25 deletions
+33
-25
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+24
-19
RightsSettingFacede.java
...pcloud/book/rightsSetting/facade/RightsSettingFacede.java
+4
-2
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+4
-3
PcloudGroupActivityDao.xml
...rc/main/resources/mapper/skill/PcloudGroupActivityDao.xml
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
4fce08a5
...
@@ -867,26 +867,29 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -867,26 +867,29 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
groupActivity4AppletDTO
.
setCutDesc
(
subStr
);
groupActivity4AppletDTO
.
setCutDesc
(
subStr
);
// 通过群分类ID获取群二维码
// 通过群分类ID获取群二维码
Long
classifyId
=
groupActivity4AppletDTO
.
getClassifyId
();
Long
classifyId
=
groupActivity4AppletDTO
.
getClassifyId
();
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
classifyId
);
if
(
classifyId
!=
null
&&
classifyId
!=
0
)
{
// 通过群二维码链接反查群ID 并补充信息
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
classifyId
);
if
(!
StringUtil
.
isEmpty
(
groupQrCode
)){
//2020/06/30 add by pansy 第三方群为空
// 通过群二维码链接反查群ID 并补充信息
ClassifyQrcodeVO
groupQrcodeInfo
=
groupQrcodeBiz
.
getGroupQrcodeInfo
(
groupQrCode
,
classifyId
);
if
(!
StringUtil
.
isEmpty
(
groupQrCode
)){
//2020/06/30 add by pansy 第三方群为空
groupActivity4AppletDTO
.
setBookGroupQrcodeId
(
groupQrcodeInfo
.
getId
());
ClassifyQrcodeVO
groupQrcodeInfo
=
groupQrcodeBiz
.
getGroupQrcodeInfo
(
groupQrCode
,
classifyId
);
groupActivity4AppletDTO
.
setGroupName
(
groupQrcodeInfo
.
getGroupName
());
groupActivity4AppletDTO
.
setBookGroupQrcodeId
(
groupQrcodeInfo
.
getId
());
groupActivity4AppletDTO
.
setGroupPic
(
groupQrcodeInfo
.
getQrcodeUrl
());
groupActivity4AppletDTO
.
setGroupName
(
groupQrcodeInfo
.
getGroupName
());
groupActivity4AppletDTO
.
setUserNumber
(
groupQrcodeInfo
.
getUserNumber
());
groupActivity4AppletDTO
.
setGroupPic
(
groupQrcodeInfo
.
getQrcodeUrl
());
groupActivity4AppletDTO
.
setUserNumber
(
groupQrcodeInfo
.
getUserNumber
());
//头像列表从缓存里取
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
//头像列表从缓存里取
.
getHeadUrlList
(
groupActivity4AppletDTO
.
getUserNumber
(),
groupActivity4AppletDTO
.
getBookGroupQrcodeId
());
List
<
String
>
headUrlList
=
appletGroupSearchRecordBiz
.
getHeadUrlList
(
groupActivity4AppletDTO
.
getUserNumber
(),
groupActivity4AppletDTO
.
getBookGroupQrcodeId
());
groupActivity4AppletDTO
.
setHeadUrlList
(
headUrlList
);
groupActivity4AppletDTO
.
setHeadUrlList
(
headUrlList
);
List
<
AppletGroupStatementDTO
>
statementDTOS
=
appletGroupSearchRecordBiz
.
getStatementList
(
groupActivity4AppletDTO
.
getUserNumber
(),
headUrlList
,
List
<
AppletGroupStatementDTO
>
statementDTOS
=
appletGroupSearchRecordBiz
groupActivity4AppletDTO
.
getBookGroupQrcodeId
());
.
getStatementList
(
groupActivity4AppletDTO
.
getUserNumber
(),
headUrlList
,
groupActivity4AppletDTO
.
setStatementDTOList
(
statementDTOS
);
groupActivity4AppletDTO
.
getBookGroupQrcodeId
());
groupActivity4AppletDTO
.
setStatementDTOList
(
statementDTOS
);
}
}
}
}
}
}
}
}
}
...
@@ -1201,6 +1204,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -1201,6 +1204,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if
(
groupActivity4AppletDTO
!=
null
)
{
if
(
groupActivity4AppletDTO
!=
null
)
{
item
.
setGroupName
(
groupActivity4AppletDTO
.
getName
());
item
.
setGroupName
(
groupActivity4AppletDTO
.
getName
());
item
.
setGroupDesc
(
groupActivity4AppletDTO
.
getCutDesc
());
item
.
setGroupDesc
(
groupActivity4AppletDTO
.
getCutDesc
());
item
.
setGroupType
(
groupActivity4AppletDTO
.
getGroupType
()
==
null
?
null
:
groupActivity4AppletDTO
.
getGroupType
().
toString
());
item
.
setLinkUrl
(
groupActivity4AppletDTO
.
getGroupLink
());
// 填充头像
// 填充头像
fillGroupActivityHead
(
Collections
.
singletonList
(
groupActivity4AppletDTO
));
fillGroupActivityHead
(
Collections
.
singletonList
(
groupActivity4AppletDTO
));
item
.
setGroupQrCode
(
groupActivity4AppletDTO
.
getGroupPic
());
item
.
setGroupQrCode
(
groupActivity4AppletDTO
.
getGroupPic
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/facade/RightsSettingFacede.java
View file @
4fce08a5
...
@@ -64,8 +64,10 @@ public class RightsSettingFacede {
...
@@ -64,8 +64,10 @@ public class RightsSettingFacede {
}
}
@GetMapping
(
"getRightsSetting"
)
@GetMapping
(
"getRightsSetting"
)
public
ResponseDto
<
RightsSetting
>
getRightsSetting
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
"id"
)
Long
id
)
throws
PermissionException
{
public
ResponseDto
<
RightsSetting
>
getRightsSetting
(
SessionUtil
.
getToken4Redis
(
token
);
// @RequestHeader("token") String token,
@RequestParam
(
"id"
)
Long
id
)
throws
PermissionException
{
// SessionUtil.getToken4Redis(token);
return
new
ResponseDto
<
RightsSetting
>(
rightsSettingBiz
.
getRightsSetting
(
id
));
return
new
ResponseDto
<
RightsSetting
>(
rightsSettingBiz
.
getRightsSetting
(
id
));
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
4fce08a5
...
@@ -438,7 +438,6 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -438,7 +438,6 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(
ListUtils
.
isEmpty
(
ids
))
{
if
(
ListUtils
.
isEmpty
(
ids
))
{
return
new
HashMap
<>();
return
new
HashMap
<>();
}
}
Map
<
Long
,
GroupActivity4AppletDTO
>
mapDto
=
pcloudGroupActivityDao
.
getByIds
(
ids
,
1
);
List
<
Long
>
activityGroupIds
=
new
ArrayList
<>();
List
<
Long
>
activityGroupIds
=
new
ArrayList
<>();
List
<
Long
>
adviserGroupIds
=
rightsSettingItemDetailDao
.
getAdviserGroupIds
(
ids
);
List
<
Long
>
adviserGroupIds
=
rightsSettingItemDetailDao
.
getAdviserGroupIds
(
ids
);
if
(!
ListUtils
.
isEmpty
(
adviserGroupIds
))
{
if
(!
ListUtils
.
isEmpty
(
adviserGroupIds
))
{
...
@@ -458,7 +457,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -458,7 +457,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
editDtoThree
=
pcloudGroupActivityDao
.
getGroupClassifyByIds
(
adviserGroupIds
);
//查询第编辑端群
editDtoThree
=
pcloudGroupActivityDao
.
getGroupClassifyByIds
(
adviserGroupIds
);
//查询第编辑端群
}
}
if
(!
ListUtils
.
isEmpty
(
activityGroupIds
))
{
if
(!
ListUtils
.
isEmpty
(
activityGroupIds
))
{
localMap
=
pcloudGroupActivityDao
.
getByIds
(
activityGroupIds
,
1
);
localMap
=
pcloudGroupActivityDao
.
getByIds
(
activityGroupIds
,
null
);
}
}
if
(
MapUtils
.
isNotEmpty
(
localMap
))
{
if
(
MapUtils
.
isNotEmpty
(
localMap
))
{
mapDto
.
putAll
(
localMap
);
mapDto
.
putAll
(
localMap
);
...
@@ -501,7 +500,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -501,7 +500,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
for
(
AppletGroupManageDTO
activity4AppletDTO
:
list
.
getRecordList
())
{
for
(
AppletGroupManageDTO
activity4AppletDTO
:
list
.
getRecordList
())
{
activity4AppletDTO
.
setStatus
(
0
);
activity4AppletDTO
.
setStatus
(
0
);
// 付费群 查询用户是否已经购买过该群分类
// 付费群 查询用户是否已经购买过该群分类
if
(
activity4AppletDTO
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
activity4AppletDTO
.
getPrice
()
!=
null
&&
activity4AppletDTO
.
getPrice
()
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
bookClassifyBuyRecordDao
.
checkUserBuy
(
wechatUserId
,
activity4AppletDTO
.
getClassifyId
()))
{
if
(
bookClassifyBuyRecordDao
.
checkUserBuy
(
wechatUserId
,
activity4AppletDTO
.
getClassifyId
()))
{
activity4AppletDTO
.
setStatus
(
1
);
activity4AppletDTO
.
setStatus
(
1
);
}
}
...
@@ -541,6 +540,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -541,6 +540,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(!
ListUtils
.
isEmpty
(
list
))
{
if
(!
ListUtils
.
isEmpty
(
list
))
{
for
(
GroupActivity4AppletDTO
dto
:
list
)
{
for
(
GroupActivity4AppletDTO
dto
:
list
)
{
Long
classifyId
=
dto
.
getClassifyId
();
Long
classifyId
=
dto
.
getClassifyId
();
if
(
null
!=
classifyId
&&
0
!=
classifyId
){
// 通过 classifyId 获取群二维码链接
// 通过 classifyId 获取群二维码链接
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
classifyId
);
String
groupQrCode
=
groupQrcodeBiz
.
getChangeGroupQrCode
(
classifyId
);
// 通过群二维码链接反查群ID
// 通过群二维码链接反查群ID
...
@@ -551,6 +551,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -551,6 +551,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
dto
.
setGroupPic
(
groupQrcodeInfo
.
getQrcodeUrl
());
dto
.
setGroupPic
(
groupQrcodeInfo
.
getQrcodeUrl
());
dto
.
setUserNumber
(
groupQrcodeInfo
.
getUserNumber
());
dto
.
setUserNumber
(
groupQrcodeInfo
.
getUserNumber
());
}
}
}
}
}
}
}
return
list
;
return
list
;
...
...
pcloud-service-book/src/main/resources/mapper/skill/PcloudGroupActivityDao.xml
View file @
4fce08a5
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
SELECT
SELECT
c.id,
c.id,
a.id groupActivityId,
a.id groupActivityId,
a.
`name`,
c.classify as
`name`,
c.classify_introduce AS `desc`,
c.classify_introduce AS `desc`,
a.join_type AS joinType,
a.join_type AS joinType,
c.classify AS groupName,
c.classify AS groupName,
...
...
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