mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 21:29:02 +08:00
🐛 Fixing a bug. 微信公众号用户取消关注重新关注报主键重复
This commit is contained in:
1 parent
d2c6c44499
commit
b09808d7a5
3 files changed
+9
-4
No files matched your search
@@ -39,7 +39,6 @@
|
||||
<seata.version>1.4.2</seata.version>
|
||||
<asm.version>7.1</asm.version>
|
||||
<log4j2.version>2.17.1</log4j2.version>
|
||||
<jaxb.version>2.3.5</jaxb.version>
|
||||
<javaformat.plugin.version>0.0.23</javaformat.plugin.version>
|
||||
<docker.plugin.version>0.33.0</docker.plugin.version>
|
||||
<cloud.plugin.version>1.0.0</cloud.plugin.version>
|
||||
|
||||
+2
-3
@@ -57,13 +57,12 @@ public class SubscribeHandler extends AbstractHandler {
|
||||
WxAccountFans wxAccountFans = wxAccountFansMapper.selectOne(
|
||||
Wrappers.<WxAccountFans>lambdaUpdate().eq(WxAccountFans::getOpenid, wxMessage.getFromUser()));
|
||||
|
||||
// 删除历史关注保存的信息
|
||||
if (wxAccountFans != null) {
|
||||
wxAccountFansMapper.deleteById(wxAccountFans);
|
||||
}
|
||||
else {
|
||||
wxAccountFans = new WxAccountFans();
|
||||
}
|
||||
|
||||
wxAccountFans = new WxAccountFans();
|
||||
wxAccountFans.setOpenid(wxMpUser.getOpenId());
|
||||
wxAccountFans.setSubscribeStatus(String.valueOf(BooleanUtil.toInt(wxMpUser.getSubscribe())));
|
||||
wxAccountFans.setSubscribeTime(LocalDateTime
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
<velocity.tool.version>3.1</velocity.tool.version>
|
||||
<jasypt.version>3.0.4</jasypt.version>
|
||||
<ttl.version>2.12.6</ttl.version>
|
||||
<jaxb.version>2.3.5</jaxb.version>
|
||||
<ureport.version>2.2.9</ureport.version>
|
||||
<jimu.version>1.5.0-beta</jimu.version>
|
||||
<aws.version>1.11.543</aws.version>
|
||||
@@ -97,6 +98,12 @@
|
||||
<artifactId>lombok</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- JAVA 17 -->
|
||||
<dependency>
|
||||
<groupId>com.sun.xml.bind</groupId>
|
||||
<artifactId>jaxb-impl</artifactId>
|
||||
<version>${jaxb.version}</version>
|
||||
</dependency>
|
||||
<!--测试依赖-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
Reference in new issue
Block a user