nili 3 years ago
parent
commit
bc6f9f10f2
  1. 2
      luigi-service/src/main/java/com/bzgame/server/luigi/service/bo/PoemService.java

2
luigi-service/src/main/java/com/bzgame/server/luigi/service/bo/PoemService.java

@ -66,7 +66,7 @@ public class PoemService {
} else { } else {
if (poemBo.getAuthorId() != null) { if (poemBo.getAuthorId() != null) {
Integer prevAuthorId = poemMapper.selectByPrimaryKey(poemBo.getId()).getAuthorId(); Integer prevAuthorId = poemMapper.selectByPrimaryKey(poemBo.getId()).getAuthorId();
if (poemBo.getStatus() < 0) { if (poemBo.getStatus() != null && poemBo.getStatus() < 0) {
manualMapper.decrAuthorPoemCnt(prevAuthorId); manualMapper.decrAuthorPoemCnt(prevAuthorId);
} else if (!poemBo.getAuthorId().equals(prevAuthorId)) { } else if (!poemBo.getAuthorId().equals(prevAuthorId)) {
manualMapper.decrAuthorPoemCnt(prevAuthorId); manualMapper.decrAuthorPoemCnt(prevAuthorId);

Loading…
Cancel
Save