Authored by liangyi.chen@yoho.cn

Fix BUg

... ... @@ -93,7 +93,7 @@ public class GrassArticleCommentListener extends AbstractMqListener<GrassArticle
// (1-未审核 2-审核通过 3-审核未通过)转换
if(sourceObject.getStatus() != null){
if(sourceObject.getStatus() > 0){
publicUserComment.setAuditTime(Long.valueOf(sourceObject.getUpdateTime()));
publicUserComment.setAuditTime(Long.valueOf(sourceObject.getUpdateTime().toString()+"000"));
}
switch (sourceObject.getStatus()){
case ServiceConstant.Grass_Article_Comment.TO_AUDIT_STATUS :
... ...
... ... @@ -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()) {
... ...