修复公众号回复状态切换bug

This commit is contained in:
TinyAnts 2022-09-15 09:35:13 +08:00
parent e624ab8380
commit 208e942e09
1 changed files with 2 additions and 2 deletions

View File

@ -346,8 +346,8 @@ public class ChannelOaReplyServiceImpl implements IChannelOaReplyService {
Assert.notNull(officialReply, "数据不存在!");
Integer status = officialReply.getStatus() == 1 ? 0 : 1;
if (officialReply.getReplyType() != 2 && officialReply.getStatus() == 1) {
int status = officialReply.getStatus() == 1 ? 0 : 1;
if (officialReply.getReplyType() != 2 && status == 1) {
OfficialReply reply = new OfficialReply();
reply.setStatus(0);
officialReplyMapper.update(reply, new QueryWrapper<OfficialReply>()