...
|
...
|
@@ -26,13 +26,14 @@ public class PublicUserPraiseService { |
|
|
repository.save(publicUserPraise);
|
|
|
}
|
|
|
|
|
|
public void deletePublicUserPraise(PublicUserPraise publicUserPraise) {
|
|
|
public void deletePublicUserPraise(PublicUserPraise publicUserPraise) throws Exception{
|
|
|
PublicUserPraise publicUserPraiseFromDB = getPublicUserPraiseByUniqueKey(publicUserPraise);
|
|
|
if (publicUserPraiseFromDB != null) {
|
|
|
repository.deleteById(publicUserPraiseFromDB.getId());
|
|
|
}else{
|
|
|
logger.error("数据不存在praiseType={},uid={},targetId={}", publicUserPraise.getPraiseType(),
|
|
|
publicUserPraise.getUid(),publicUserPraise.getTargetId());
|
|
|
throw new Exception();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|