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
4d51b19e
Commit
4d51b19e
authored
Sep 24, 2021
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[1005508] 手机号第三期
parent
86f2474b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
0 deletions
+60
-0
BookAdviserBiz.java
...rc/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
+11
-0
BookAdviserBizImpl.java
...ava/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
+26
-0
BookAdviserFacadeImpl.java
...m/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
+13
-0
ReaderConsr.java
...ain/java/com/pcloud/book/consumer/reader/ReaderConsr.java
+10
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
View file @
4d51b19e
...
@@ -14,6 +14,8 @@ import com.pcloud.book.group.dto.BookServeDTO;
...
@@ -14,6 +14,8 @@ import com.pcloud.book.group.dto.BookServeDTO;
import
com.pcloud.channelcenter.qrcode.vo.BookQrcodeVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookQrcodeVO
;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.page.PageBeanNew
;
import
com.pcloud.common.page.PageBeanNew
;
import
com.pcloud.labelcenter.label.dto.LabelDto
;
import
com.pcloud.readercenter.userlabel.dto.UserGradeLabelIdDTO
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -441,4 +443,13 @@ public interface BookAdviserBiz {
...
@@ -441,4 +443,13 @@ public interface BookAdviserBiz {
void
updateBookWechatAuth
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Integer
isWechatAuth
);
void
updateBookWechatAuth
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Integer
isWechatAuth
);
Integer
getBookWechatAuth
(
Long
sceneId
,
Long
bookId
,
Long
adviserId
,
Long
channelId
);
Integer
getBookWechatAuth
(
Long
sceneId
,
Long
bookId
,
Long
adviserId
,
Long
channelId
);
/**
* 获取书刊的年级标签
* @param bookId
* @param adviserId
* @param channelId
* @return
*/
UserGradeLabelIdDTO
getBookGradeLabel
(
Long
bookId
,
Long
adviserId
,
Long
channelId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
View file @
4d51b19e
...
@@ -33,6 +33,7 @@ import com.pcloud.book.consumer.label.LabelConsr;
...
@@ -33,6 +33,7 @@ import com.pcloud.book.consumer.label.LabelConsr;
import
com.pcloud.book.consumer.message.MessageConsr
;
import
com.pcloud.book.consumer.message.MessageConsr
;
import
com.pcloud.book.consumer.message.TemplateConsr
;
import
com.pcloud.book.consumer.message.TemplateConsr
;
import
com.pcloud.book.consumer.raystask.MainLineConsr
;
import
com.pcloud.book.consumer.raystask.MainLineConsr
;
import
com.pcloud.book.consumer.reader.ReaderConsr
;
import
com.pcloud.book.consumer.resource.ProductConsr
;
import
com.pcloud.book.consumer.resource.ProductConsr
;
import
com.pcloud.book.consumer.settlement.BookConsr
;
import
com.pcloud.book.consumer.settlement.BookConsr
;
import
com.pcloud.book.consumer.trade.TradeConsr
;
import
com.pcloud.book.consumer.trade.TradeConsr
;
...
@@ -91,8 +92,10 @@ import com.pcloud.common.utils.ServeLinkUtils;
...
@@ -91,8 +92,10 @@ import com.pcloud.common.utils.ServeLinkUtils;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.facade.tradecenter.dto.Amount4BookAdviserDto
;
import
com.pcloud.facade.tradecenter.dto.Amount4BookAdviserDto
;
import
com.pcloud.labelcenter.label.dto.LabelDto
;
import
com.pcloud.raystask.entity.AdviserDefault
;
import
com.pcloud.raystask.entity.AdviserDefault
;
import
com.pcloud.readercenter.common.enums.YesOrNoNumEnum
;
import
com.pcloud.readercenter.common.enums.YesOrNoNumEnum
;
import
com.pcloud.readercenter.userlabel.dto.UserGradeLabelIdDTO
;
import
com.pcloud.resourcecenter.product.dto.ProductDto
;
import
com.pcloud.resourcecenter.product.dto.ProductDto
;
import
com.pcloud.resourcecenter.product.dto.ProductLabelDto
;
import
com.pcloud.resourcecenter.product.dto.ProductLabelDto
;
import
com.pcloud.resourcecenter.product.dto.ProductTypeDto
;
import
com.pcloud.resourcecenter.product.dto.ProductTypeDto
;
...
@@ -214,6 +217,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -214,6 +217,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
private
UpdateSuperSearchProducer
searchProducer
;
private
UpdateSuperSearchProducer
searchProducer
;
@Autowired
@Autowired
private
ResourcePageItemDao
resourcePageItemDao
;
private
ResourcePageItemDao
resourcePageItemDao
;
@Autowired
private
ReaderConsr
readerConsr
;
@Override
@Override
public
List
<
BookDto
>
listByAdviserId
(
Long
adviserId
)
{
public
List
<
BookDto
>
listByAdviserId
(
Long
adviserId
)
{
...
@@ -3300,4 +3305,25 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -3300,4 +3305,25 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
return
isWechatAuth
;
return
isWechatAuth
;
}
}
@Override
public
UserGradeLabelIdDTO
getBookGradeLabel
(
Long
bookId
,
Long
adviserId
,
Long
channelId
)
{
BookAdviserDto
base
=
this
.
getBase
(
bookId
,
channelId
,
adviserId
);
if
(
null
==
base
)
{
return
new
UserGradeLabelIdDTO
();
}
Long
gradeId
=
null
;
if
(
null
!=
base
.
getGraLabelId
())
{
gradeId
=
resourcePageBiz
.
getGradeByGradeLabelId
(
base
.
getGraLabelId
());
}
if
(
null
!=
base
.
getDepLabelId
())
{
gradeId
=
resourcePageBiz
.
getGradeByDepLabelId
(
base
.
getDepLabelId
());
}
//书刊匹配不到且用户当前没有标签,取已工作年龄段
if
(
null
==
gradeId
)
{
gradeId
=
29L
;
}
UserGradeLabelIdDTO
userGradeLabelIdDTO
=
readerConsr
.
getUserParentGradeId
(
gradeId
);
return
null
!=
userGradeLabelIdDTO
?
userGradeLabelIdDTO
:
new
UserGradeLabelIdDTO
();
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
View file @
4d51b19e
...
@@ -34,6 +34,8 @@ import com.pcloud.common.permission.PermissionException;
...
@@ -34,6 +34,8 @@ import com.pcloud.common.permission.PermissionException;
import
com.pcloud.common.utils.ParamChecker
;
import
com.pcloud.common.utils.ParamChecker
;
import
com.pcloud.common.utils.SessionUtil
;
import
com.pcloud.common.utils.SessionUtil
;
import
com.pcloud.common.utils.cookie.Cookie
;
import
com.pcloud.common.utils.cookie.Cookie
;
import
com.pcloud.labelcenter.label.dto.LabelDto
;
import
com.pcloud.readercenter.userlabel.dto.UserGradeLabelIdDTO
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -493,4 +495,15 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
...
@@ -493,4 +495,15 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
)
throws
PermissionException
{
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
)
throws
PermissionException
{
return
new
ResponseDto
<
Integer
>(
bookAdviserBiz
.
getBookWechatAuth
(
sceneId
,
bookId
,
adviserId
,
channelId
));
return
new
ResponseDto
<
Integer
>(
bookAdviserBiz
.
getBookWechatAuth
(
sceneId
,
bookId
,
adviserId
,
channelId
));
}
}
/**
* 获取书刊二维码进入是否需要授权用户信息
*/
@RequestMapping
(
value
=
"getBookGradeLabel"
,
method
=
RequestMethod
.
GET
)
public
ResponseDto
<?>
getBookGradeLabel
(
@RequestParam
(
value
=
"bookId"
)
Long
bookId
,
@RequestParam
(
value
=
"adviserId"
)
Long
adviserId
,
@RequestParam
(
value
=
"channelId"
)
Long
channelId
)
throws
PermissionException
{
return
new
ResponseDto
<
UserGradeLabelIdDTO
>(
bookAdviserBiz
.
getBookGradeLabel
(
bookId
,
adviserId
,
channelId
));
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/consumer/reader/ReaderConsr.java
View file @
4d51b19e
...
@@ -517,6 +517,16 @@ public class ReaderConsr {
...
@@ -517,6 +517,16 @@ public class ReaderConsr {
LOGGER
.
info
(
"【微信用户(消)】批量获取用户公众号,<END>"
);
LOGGER
.
info
(
"【微信用户(消)】批量获取用户公众号,<END>"
);
return
wechatUserOfficialAccountsMap
;
return
wechatUserOfficialAccountsMap
;
}
}
public
UserGradeLabelIdDTO
getUserParentGradeId
(
Long
gradeId
)
{
UserGradeLabelIdDTO
userGradeLabelIdDTO
=
new
UserGradeLabelIdDTO
();
try
{
userGradeLabelIdDTO
=
ResponseHandleUtil
.
parseResponse
(
userLabelService
.
getUserParentGradeId
(
gradeId
),
UserGradeLabelIdDTO
.
class
);
}
catch
(
Exception
e
)
{
LOGGER
.
warn
(
"调用readercenter.getUserParentGradeId失败"
);
}
return
userGradeLabelIdDTO
;
}
}
}
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