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
b2f4baa7
Commit
b2f4baa7
authored
Sep 17, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[1003597] 小程序第三方资源新增书刊埋点一期
parent
9bd56f2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
4 deletions
+44
-4
AppletThirdResourcesClick.java
.../pcloud/book/applet/entity/AppletThirdResourcesClick.java
+13
-0
AppletThirdResourcesFacade.java
...pcloud/book/applet/facade/AppletThirdResourcesFacade.java
+1
-2
AppletThirdResourcesClickMapper.xml
...sources/mapper/applet/AppletThirdResourcesClickMapper.xml
+30
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/entity/AppletThirdResourcesClick.java
View file @
b2f4baa7
...
@@ -16,4 +16,16 @@ public class AppletThirdResourcesClick extends BaseEntity {
...
@@ -16,4 +16,16 @@ public class AppletThirdResourcesClick extends BaseEntity {
private
String
link
;
private
String
link
;
@ApiModelProperty
(
"1:点击,2:浏览"
)
@ApiModelProperty
(
"1:点击,2:浏览"
)
private
Integer
recordType
;
private
Integer
recordType
;
@ApiModelProperty
(
"书籍id"
)
private
Long
bookId
;
@ApiModelProperty
(
"编辑id"
)
private
Long
adviserId
;
@ApiModelProperty
(
"渠道id"
)
private
Long
channelId
;
@ApiModelProperty
(
"来源页面"
)
private
String
page
;
@ApiModelProperty
(
"权益分类id"
)
private
Long
rightsSettingClassifyId
;
@ApiModelProperty
(
"权益分类id"
)
private
Long
newsId
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/applet/facade/AppletThirdResourcesFacade.java
View file @
b2f4baa7
...
@@ -39,10 +39,9 @@ public class AppletThirdResourcesFacade {
...
@@ -39,10 +39,9 @@ public class AppletThirdResourcesFacade {
public
ResponseDto
<?>
addClickRecord
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
public
ResponseDto
<?>
addClickRecord
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
@RequestBody
@ApiParam
AppletThirdResourcesClick
thirdResourcesClick
)
{
@RequestBody
@ApiParam
AppletThirdResourcesClick
thirdResourcesClick
)
{
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
if
(
null
==
thirdResourcesClick
||
null
==
thirdResourcesClick
.
getThirdResourcesId
())
{
if
(
null
==
thirdResourcesClick
||
null
==
thirdResourcesClick
.
getThirdResourcesId
()
||
null
==
thirdResourcesClick
.
getWechatUserId
()
)
{
throw
new
WechatUserException
(
WechatUserException
.
FIELD_IS_NULL
,
"缺失参数"
);
throw
new
WechatUserException
(
WechatUserException
.
FIELD_IS_NULL
,
"缺失参数"
);
}
}
thirdResourcesClick
.
setWechatUserId
(
wechatUserId
);
thirdResourcesBiz
.
addServiceRecord
(
thirdResourcesClick
);
thirdResourcesBiz
.
addServiceRecord
(
thirdResourcesClick
);
return
new
ResponseDto
<>();
return
new
ResponseDto
<>();
}
}
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletThirdResourcesClickMapper.xml
View file @
b2f4baa7
...
@@ -15,8 +15,36 @@
...
@@ -15,8 +15,36 @@
<!--新增所有列-->
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into applet_thirdresources_click_record(wechat_user_id, third_resources_id, third_resources_name, link,record_type, create_time, update_time)
insert into
values (#{wechatUserId}, #{thirdResourcesId}, #{thirdResourcesName}, #{link}, #{recordType}, now(), now())
applet_thirdresources_click_record(
wechat_user_id,
third_resources_id,
third_resources_name,
link,record_type,
create_time,
update_time,
book_id,
adviser_id,
channel_id,
page,
rights_setting_classify_id,
news_id
)
values (
#{wechatUserId},
#{thirdResourcesId},
#{thirdResourcesName},
#{link},
#{recordType},
now(),
now(),
#{bookId},
#{adviserId},
#{channelId},
#{page},
#{rightsSettingClassifyId},
#{newsId}
)
</insert>
</insert>
<select
id=
"mapPVUV"
parameterType=
"map"
resultType=
"com.pcloud.book.applet.dto.PvuvDTO"
>
<select
id=
"mapPVUV"
parameterType=
"map"
resultType=
"com.pcloud.book.applet.dto.PvuvDTO"
>
...
...
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