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
8cdadb3d
Commit
8cdadb3d
authored
Dec 10, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [none] fixbook
parent
f93433be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
AppletRecordBizImpl.java
.../com/pcloud/book/applet/biz/impl/AppletRecordBizImpl.java
+4
-0
AppletUserBookcaseBizImpl.java
...cloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
+5
-0
BookGroupFacadeImpl.java
...om/pcloud/book/group/facade/impl/BookGroupFacadeImpl.java
+3
-1
AppletRecordDayServe.Mapper.xml
...n/resources/mapper/applet/AppletRecordDayServe.Mapper.xml
+0
-2
AppletRecordServe.Mapper.xml
...main/resources/mapper/applet/AppletRecordServe.Mapper.xml
+0
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletRecordBizImpl.java
View file @
8cdadb3d
...
...
@@ -162,6 +162,10 @@ public class AppletRecordBizImpl implements AppletRecordBiz {
if
(
null
==
appletRecord
.
getFromId
()
||
StringUtil
.
isEmpty
(
appletRecord
.
getFromName
()))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"fromId或fromName为空"
);
}
if
(
AppletRecordTypeEnum
.
BOOK
.
value
.
equals
(
appletRecord
.
getRecordType
())
&&
null
!=
appletRecord
.
getFromId
()
&&
(
null
==
appletRecord
.
getChannelId
()
||
null
==
appletRecord
.
getAdviserId
()))
{
return
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
View file @
8cdadb3d
...
...
@@ -16,6 +16,7 @@ import com.pcloud.book.applet.entity.AppletThirdResources;
import
com.pcloud.book.applet.entity.AppletUserBookcase
;
import
com.pcloud.book.applet.entity.AppletUserClickRecord
;
import
com.pcloud.book.applet.enums.AppletNewsServeTypeEnum
;
import
com.pcloud.book.applet.enums.AppletRecordTypeEnum
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.book.biz.BookAdviserBiz
;
import
com.pcloud.book.book.biz.BookBiz
;
...
...
@@ -132,6 +133,10 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
if
(
BookConstant
.
visitorWechatUserId
.
equals
(
wechatUserId
))
{
return
;
}
if
(
null
!=
appletUserBookcase
.
getBookId
()
&&
(
null
==
appletUserBookcase
.
getChannelId
()
||
null
==
appletUserBookcase
.
getAdviserId
()))
{
return
;
}
if
(
null
==
appletUserBookcase
.
getRightsSettingId
())
{
//书刊对应的权益
RightsSettingDto
rightsSettingDto
=
rightsSettingBiz
.
getReadType4Book
(
wechatUserId
,
appletUserBookcase
.
getBookId
(),
appletUserBookcase
.
getChannelId
(),
appletUserBookcase
.
getAdviserId
());
appletUserBookcase
.
setRightsSettingId
(
rightsSettingDto
==
null
?
null
:
rightsSettingDto
.
getId
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/BookGroupFacadeImpl.java
View file @
8cdadb3d
...
...
@@ -1201,7 +1201,9 @@ public class BookGroupFacadeImpl implements BookGroupFacade {
@Override
@GetMapping
(
"getBookBaseInfo4Applet"
)
public
ResponseDto
<?>
getBookBaseInfo4Applet
(
@RequestParam
(
"adviserId"
)
Long
adviserId
,
@RequestParam
(
"bookId"
)
Long
bookId
,
@RequestParam
(
"channelId"
)
Long
channelId
)
{
@RequestParam
(
value
=
"adviserId"
,
required
=
false
)
Long
adviserId
,
@RequestParam
(
"bookId"
)
Long
bookId
,
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
)
{
if
(
null
==
adviserId
||
null
==
bookId
||
null
==
channelId
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数缺失!"
);
}
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletRecordDayServe.Mapper.xml
View file @
8cdadb3d
...
...
@@ -198,8 +198,6 @@
AND d.IS_DELETE = 0
LEFT JOIN rights_setting r ON c.rights_setting_id = r.id AND d.join_group_type=4 and r.show_state = 1 and r.rights_setting_type = 2
WHERE
a.IS_DELETE = 0
and
c.is_delete = 0
and
c.id in
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletRecordServe.Mapper.xml
View file @
8cdadb3d
...
...
@@ -199,8 +199,6 @@
AND d.IS_DELETE = 0
LEFT JOIN rights_setting r ON c.rights_setting_id = r.id AND d.join_group_type=4 and r.show_state = 1 and r.rights_setting_type = 2
WHERE
a.IS_DELETE = 0
and
c.is_delete = 0
and
c.id in
...
...
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