调整公众号回复状态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,15 +346,16 @@ public class ChannelOaReplyServiceImpl implements IChannelOaReplyService {
Assert.notNull(officialReply, "数据不存在!");
Integer status = officialReply.getStatus() == 1 ? 0 : 1;
if (officialReply.getReplyType() != 2 && officialReply.getStatus() == 1) {
OfficialReply reply = new OfficialReply();
reply.setStatus(0);
officialReplyMapper.update(reply, new QueryWrapper<OfficialReply>()
officialReplyMapper.update(reply, new QueryWrapper<OfficialReply>()
.eq("reply_type", officialReply.getReplyType()));
}
officialReply.setId(id);
officialReply.setStatus(officialReply.getStatus() == 1 ? 0 : 1);
officialReply.setStatus(status);
officialReply.setUpdateTime(System.currentTimeMillis() / 1000);
officialReplyMapper.updateById(officialReply);
}