|
@@ -100,7 +100,8 @@ public class GrassUserAttentionListener extends AbstractMqListener<GrassUserAtte |
|
@@ -100,7 +100,8 @@ public class GrassUserAttentionListener extends AbstractMqListener<GrassUserAtte |
100
|
protected Object checkData(GrassUserAttention sourceObject, String action) {
|
100
|
protected Object checkData(GrassUserAttention sourceObject, String action) {
|
101
|
//grass_user_attention.attention_type取0时public_user_attention.target_id取值:
|
101
|
//grass_user_attention.attention_type取0时public_user_attention.target_id取值:
|
102
|
//select id from public_topic where relate_id = #{grass_user_attention.topic_id} and src_channel = 1
|
102
|
//select id from public_topic where relate_id = #{grass_user_attention.topic_id} and src_channel = 1
|
103
|
- if (ServiceConstant.Grass_User_Attention.ATTENTION_TYPE_TOPIC == sourceObject.getAttentionType()) {
|
103
|
+ if (sourceObject.getAttentionType() != null &&
|
|
|
104
|
+ ServiceConstant.Grass_User_Attention.ATTENTION_TYPE_TOPIC == sourceObject.getAttentionType()) {
|
104
|
return publicTopicService.findTopicIdByRelateIdAndSrcChannel(sourceObject.getTopicId(),
|
105
|
return publicTopicService.findTopicIdByRelateIdAndSrcChannel(sourceObject.getTopicId(),
|
105
|
ServiceConstant.SRCCHANNEL_TYPE.YOHO_GRASS);
|
106
|
ServiceConstant.SRCCHANNEL_TYPE.YOHO_GRASS);
|
106
|
}
|
107
|
}
|