|
@@ -56,8 +56,16 @@ public class UserLikeServiceImpl implements UserLikeService {
|
|
|
CmBehaviorInfoPo behaviorInfo = likeMapper.getClubSpId(userId);
|
|
|
behaviorInfo.setOperateObject(1);
|
|
|
behaviorInfo.setType(6);
|
|
|
- behaviorInfo.setProductId(null != productInfo.getProductId() ? productInfo.getProductId().toString() : "");
|
|
|
- behaviorInfo.setLabel(StringUtils.isNotBlank(productInfo.getRelatedLabels()) ? productInfo.getRelatedLabels() : "");
|
|
|
+ behaviorInfo.setProductId(null != productInfo.getProductId() ? productInfo.getProductId() : null);
|
|
|
+ String label = "";
|
|
|
+ if (StringUtils.isNotBlank(productInfo.getRelatedLabels())) {
|
|
|
+ if (productInfo.getRelatedLabels().contains("#")) {
|
|
|
+ label = productInfo.getRelatedLabels().replaceAll("#","");
|
|
|
+ } else {
|
|
|
+ label = productInfo.getRelatedLabels();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ behaviorInfo.setLabel(label);
|
|
|
likeMapper.insertBehaviorInfo(behaviorInfo);
|
|
|
}
|
|
|
} catch (Exception e) {
|