调整公众号回复状态bug

This commit is contained in:
TinyAnts 2022-09-15 09:27:48 +08:00
parent 9c85b1e6a5
commit 71728aeea1
1 changed files with 3 additions and 2 deletions

View File

@ -346,6 +346,7 @@ public class ChannelOaReplyServiceImpl implements IChannelOaReplyService {
Assert.notNull(officialReply, "数据不存在!"); Assert.notNull(officialReply, "数据不存在!");
Integer status = officialReply.getStatus() == 1 ? 0 : 1;
if (officialReply.getReplyType() != 2 && officialReply.getStatus() == 1) { if (officialReply.getReplyType() != 2 && officialReply.getStatus() == 1) {
OfficialReply reply = new OfficialReply(); OfficialReply reply = new OfficialReply();
reply.setStatus(0); reply.setStatus(0);
@ -354,7 +355,7 @@ public class ChannelOaReplyServiceImpl implements IChannelOaReplyService {
} }
officialReply.setId(id); officialReply.setId(id);
officialReply.setStatus(officialReply.getStatus() == 1 ? 0 : 1); officialReply.setStatus(status);
officialReply.setUpdateTime(System.currentTimeMillis() / 1000); officialReply.setUpdateTime(System.currentTimeMillis() / 1000);
officialReplyMapper.updateById(officialReply); officialReplyMapper.updateById(officialReply);
} }