...
|
...
|
@@ -8,6 +8,7 @@ import com.yoho.datasync.consumer.service.PublicUserCommentService; |
|
|
import com.yoho.datasync.consumer.service.PublicUserPraiseService;
|
|
|
import com.yoho.datasync.core.base.annotation.MqConsumerListerner;
|
|
|
import com.yoho.datasync.core.base.model.yh_grass.GrassCommentPraise;
|
|
|
import com.yoho.datasync.core.base.model.yh_pcms.PublicUserComment;
|
|
|
import com.yoho.datasync.core.base.model.yh_pcms.PublicUserPraise;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -56,7 +57,8 @@ public class GrassCommentPraiseListener extends AbstractMqListener<GrassCommentP |
|
|
logger.error("updateData failed , publicUserPraise is null");
|
|
|
return;
|
|
|
}
|
|
|
publicUserPraise.setTargetId((Integer) checkResult);
|
|
|
PublicUserComment publicUserComment = (PublicUserComment)checkResult;
|
|
|
publicUserPraise.setTargetId(publicUserComment.getId());
|
|
|
//grass_article_praise.status(0:已点赞,1:已取消)和public_user_praise.status(1-已点赞,2-已取消)状态转换
|
|
|
if (sourceObject.getStatus() != null) {
|
|
|
switch (sourceObject.getStatus()) {
|
...
|
...
|
|