Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f3320628
Commit
f3320628
authored
Oct 13, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号订阅
parent
baee6e33
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
343 additions
and
9 deletions
+343
-9
ch-dao/src/main/java/com/wwdz/ch/db/impl/OfficialAccountSubscribeRecordDaoImpl.java
...wdz/ch/db/impl/OfficialAccountSubscribeRecordDaoImpl.java
+0
-1
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/OfficialAccountSubscribeRecordMapper.xml
...wdz/ch/db/mapper/OfficialAccountSubscribeRecordMapper.xml
+338
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
...com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
+5
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
...ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
+0
-2
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/impl/OfficialAccountSubscribeRecordDaoImpl.java
View file @
f3320628
...
...
@@ -8,7 +8,6 @@ import com.wwdz.ch.db.mapper.OfficialAccountSubscribeRecordMapper;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
@Repository
public
class
OfficialAccountSubscribeRecordDaoImpl
implements
OfficialAccountSubscribeRecordDao
{
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/OfficialAccountSubscribeRecordMapper.xml
0 → 100644
View file @
f3320628
This diff is collapsed.
Click to expand it.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
View file @
f3320628
...
...
@@ -92,14 +92,14 @@ public class OfficialAccountCallbackController {
//新增或更新订阅记录
OfficialAccountSubscribeRecord
officialAccountSubscribeRecord
=
new
OfficialAccountSubscribeRecord
();
officialAccountSubscribeRecord
.
setOpenid
(
userOpenId
);
if
(
SUBSCRIBE_EVENT
.
equals
(
event
))
{
officialAccountSubscribeRecord
.
setEnabled
(
1
);
}
else
{
officialAccountSubscribeRecord
.
setEnabled
(
0
);
}
//查询有无历史订阅记录
boolean
isExisted
=
officialAccountSubscribeRecordService
.
isExisted
(
userOpenId
);
if
(
isExisted
)
{
if
(
SUBSCRIBE_EVENT
.
equals
(
event
))
{
officialAccountSubscribeRecord
.
setEnabled
(
1
);
}
else
{
officialAccountSubscribeRecord
.
setEnabled
(
0
);
}
officialAccountSubscribeRecord
.
setUpdateTime
(
date
);
officialAccountSubscribeRecordService
.
update
(
officialAccountSubscribeRecord
);
}
else
{
...
...
@@ -110,7 +110,6 @@ public class OfficialAccountCallbackController {
}
officialAccountSubscribeRecord
.
setCreateTime
(
date
);
officialAccountSubscribeRecord
.
setUpdateTime
(
date
);
officialAccountSubscribeRecord
.
setEnabled
(
1
);
officialAccountSubscribeRecord
.
setPlatformType
(
OfficalAccountEnum
.
PlatformTypeEnum
.
WECHAT
.
getCode
());
officialAccountSubscribeRecordService
.
insert
(
officialAccountSubscribeRecord
);
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
View file @
f3320628
...
...
@@ -8,8 +8,6 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
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