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