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
12a80cfb
Commit
12a80cfb
authored
Jun 07, 2022
by
郑勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1007338] 【优化】扫码量头部书刊 RAYS码落地页 样式优化
parent
ba5167f2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
0 deletions
+78
-0
ResourcePageBiz.java
.../main/java/com/pcloud/book/group/biz/ResourcePageBiz.java
+5
-0
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+39
-0
ResourcePageNavigationDao.java
.../com/pcloud/book/group/dao/ResourcePageNavigationDao.java
+4
-0
ResourcePageNavigationDaoImpl.java
...ud/book/group/dao/impl/ResourcePageNavigationDaoImpl.java
+7
-0
ResourcePageFacade.java
...com/pcloud/book/group/facade/impl/ResourcePageFacade.java
+16
-0
ResourcePageNavigationDao.xml
...main/resources/mapper/group/ResourcePageNavigationDao.xml
+7
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/ResourcePageBiz.java
View file @
12a80cfb
...
@@ -593,4 +593,9 @@ public interface ResourcePageBiz {
...
@@ -593,4 +593,9 @@ public interface ResourcePageBiz {
* @Date 15:59 2022/3/24
* @Date 15:59 2022/3/24
**/
**/
List
<
MessagServeDTO
>
getServeListBySceneId4QrUpdate
(
Long
sceneId
);
List
<
MessagServeDTO
>
getServeListBySceneId4QrUpdate
(
Long
sceneId
);
/**
* 根据rays码id查资源页菜单栏数量
*/
Integer
getNavigationCount
(
Long
bookGroupId
,
Long
wechatUserId
,
Long
sceneId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
12a80cfb
...
@@ -4633,4 +4633,43 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -4633,4 +4633,43 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
return
resourcePageItemDao
.
mapQrServeCount
(
sceneIds
);
return
resourcePageItemDao
.
mapQrServeCount
(
sceneIds
);
}
}
@Override
public
Integer
getNavigationCount
(
Long
bookGroupId
,
Long
wechatUserId
,
Long
sceneId
)
{
if
(
null
==
bookGroupId
&&
null
==
sceneId
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"参数缺失"
);
}
Long
bookId
=
null
;
if
(
null
!=
bookGroupId
)
{
bookId
=
resourcePageDao
.
getBookIdByBookGroupId
(
bookGroupId
);
}
else
if
(
null
!=
sceneId
)
{
bookId
=
resourcePageDao
.
getBookIdBySceneId
(
sceneId
);
}
//上邮临时处理方案
if
(
null
!=
bookId
&&
null
!=
JedisClusterUtils
.
hget
(
nftReleaseLockKey
,
bookId
.
toString
()))
{
if
(
null
!=
bookGroupId
)
{
bookGroupId
=
JedisClusterUtils
.
hgetJson2Class
(
nftReleaseLockKey
,
bookId
.
toString
(),
NftBookState
.
class
).
getNftBookGroupId
();
}
else
if
(
null
!=
sceneId
)
{
sceneId
=
JedisClusterUtils
.
hgetJson2Class
(
nftReleaseLockKey
,
bookId
.
toString
(),
NftBookState
.
class
).
getNftSceneId
();;
}
}
ResourcePage
resourcePage
=
new
ResourcePage
();
if
(
null
!=
bookGroupId
)
{
resourcePage
=
resourcePageDao
.
getByBookGroupId
(
bookGroupId
);
}
else
if
(
null
!=
sceneId
)
{
resourcePage
=
resourcePageDao
.
getBySceneId
(
sceneId
);
}
if
(
resourcePage
==
null
||
resourcePage
.
getId
()
==
null
){
return
0
;
}
Long
resourcePageId
=
resourcePage
.
getId
();
//进本书服务页 查导航
Integer
count
=
0
;
if
(
PageLandingPageTypeEnum
.
RESOURCE
.
getCode
().
equals
(
resourcePage
.
getLandingPageType
()))
{
count
=
resourcePageNavigationDao
.
countByPageId
(
resourcePageId
);
if
(
null
==
count
||
count
<
1
)
{
count
=
1
;
}
}
return
count
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/ResourcePageNavigationDao.java
View file @
12a80cfb
package
com
.
pcloud
.
book
.
group
.
dao
;
package
com
.
pcloud
.
book
.
group
.
dao
;
import
com.pcloud.book.applet.enums.IntroduceTypeEnum
;
import
com.pcloud.book.group.entity.ResourcePageNavigation
;
import
com.pcloud.book.group.entity.ResourcePageNavigation
;
import
com.pcloud.common.core.dao.BaseDao
;
import
com.pcloud.common.core.dao.BaseDao
;
...
@@ -32,4 +33,6 @@ public interface ResourcePageNavigationDao extends BaseDao<ResourcePageNavigatio
...
@@ -32,4 +33,6 @@ public interface ResourcePageNavigationDao extends BaseDao<ResourcePageNavigatio
ResourcePageNavigation
getNavigationByMoveType
(
String
moveType
,
Long
resourcePageId
,
Integer
navigationSeq
);
ResourcePageNavigation
getNavigationByMoveType
(
String
moveType
,
Long
resourcePageId
,
Integer
navigationSeq
);
void
updateNavigationSeqNum
(
Long
navigationId
,
Integer
navigationSeq
);
void
updateNavigationSeqNum
(
Long
navigationId
,
Integer
navigationSeq
);
Integer
countByPageId
(
Long
resourcePageId
);
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/impl/ResourcePageNavigationDaoImpl.java
View file @
12a80cfb
...
@@ -81,4 +81,11 @@ public class ResourcePageNavigationDaoImpl extends BaseDaoImpl<ResourcePageNavig
...
@@ -81,4 +81,11 @@ public class ResourcePageNavigationDaoImpl extends BaseDaoImpl<ResourcePageNavig
map
.
put
(
"navigationSeq"
,
navigationSeq
);
map
.
put
(
"navigationSeq"
,
navigationSeq
);
getSessionTemplate
().
update
(
getStatement
(
"updateNavigationSeqNum"
),
map
);
getSessionTemplate
().
update
(
getStatement
(
"updateNavigationSeqNum"
),
map
);
}
}
@Override
public
Integer
countByPageId
(
Long
resourcePageId
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"resourcePageId"
,
resourcePageId
);
return
getSessionTemplate
().
selectOne
(
getStatement
(
"countByPageId"
),
map
);
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/ResourcePageFacade.java
View file @
12a80cfb
...
@@ -493,4 +493,20 @@ public class ResourcePageFacade {
...
@@ -493,4 +493,20 @@ public class ResourcePageFacade {
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
return
new
ResponseDto
<>(
resourcePageBiz
.
listQrOneResourceByBook
(
sceneId
,
wechatUserId
));
return
new
ResponseDto
<>(
resourcePageBiz
.
listQrOneResourceByBook
(
sceneId
,
wechatUserId
));
}
}
@ApiOperation
(
"客户端-根据rays码id查资源页菜单栏数量"
)
@GetMapping
(
"getNavigationCount"
)
public
ResponseDto
<?>
getNavigationCount
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
@RequestParam
(
value
=
"bookGroupId"
,
required
=
false
)
Long
bookGroupId
,
@RequestParam
(
value
=
"sceneId"
,
required
=
false
)
String
sceneId
){
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
if
(
StringUtils
.
isBlank
(
sceneId
))
{
return
new
ResponseDto
<>(
resourcePageBiz
.
getNavigationCount
(
bookGroupId
,
wechatUserId
,
null
));
}
else
if
(
NumberUtils
.
isDigits
(
sceneId
))
{
return
new
ResponseDto
<>(
resourcePageBiz
.
getNavigationCount
(
bookGroupId
,
wechatUserId
,
Long
.
parseLong
(
sceneId
)));
}
else
{
return
new
ResponseDto
<>(
resourcePageBiz
.
getNavigationCount
(
bookGroupId
,
wechatUserId
,
AESUtil
.
fixedLongDecrypt
(
sceneId
)));
}
}
}
}
pcloud-service-book/src/main/resources/mapper/group/ResourcePageNavigationDao.xml
View file @
12a80cfb
...
@@ -176,4 +176,11 @@
...
@@ -176,4 +176,11 @@
update_time = now()
update_time = now()
where id = #{id}
where id = #{id}
</update>
</update>
<select
id=
"countByPageId"
parameterType=
"map"
resultType=
"Integer"
>
select
ifnull(count(1),0)
from book.resource_page_navigation
where resource_page_id = #{resourcePageId}
</select>
</mapper>
</mapper>
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